SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions | Public Slots
Utilities/slav

Functions

int main (int argc, char **argv)
 Two work modes for now. More...
 
bool calculateManifestForDirectory (const QString &dirpath, AppVersionManifest &manifest)
 
bool buildManifestDelta (const QString &original_manifest_path, const QString &new_directory, AppVersionManifest &delta)
 
void dumpManifest (AppVersionManifest &current_manifest)
 
bool loadFrom (ProjectList &target, const QString &data)
 
bool loadFrom (ProjectApp &target, const QString &data)
 
bool loadFrom (AppVersionManifest &target, const QString &data)
 
bool storeTo (AppVersionManifest &target, QString &data)
 
AppVersionManifest calculateDelta (const AppVersionManifest &old_version, const AppVersionManifest &new_version)
 calculateDelta will build a 'delta' manifest containing only 'new' files More...
 
 FileSignatureWorker::FileSignatureWorker (QObject *parent=0)
 
 AppVersionManifest::AppVersionManifest ()
 
void AppVersionManifest::buildFromFileSystem (const QString &basePath)
 
bool AppVersionManifest::operator== (const AppVersionManifest &other) const
 
 ServerConnection::ServerConnection (const QString &baseUrl, QObject *parent=0)
 
 SLAVLogic::SLAVLogic (QObject *parent=0)
 
void SLAVLogic::connectUI ()
 
void SLAVLogic::start ()
 
 UpdaterDlg::UpdaterDlg (QWidget *parent=0)
 
 UpdaterDlg::~UpdaterDlg ()
 

Public Slots

void FileSignatureWorker::process ()
 
void ServerConnection::onRequestManifest (const QString &manifestname)
 
void ServerConnection::onRequestFileList (const QString &base_path, const QStringList &files)
 
void ServerConnection::onRequestProjectList ()
 
void ServerConnection::onRequestAppData ()
 
void SLAVLogic::onManifestReceived (const QString &manifest_url, const QString &manifestData)
 
void SLAVLogic::onUpdateRequested (ServerDescriptor *manifest)
 
void UpdaterDlg::projectListChanged (const std::vector< ProjectDescriptor > &projects)
 
void UpdaterDlg::onDownloadProgressed (const QString &fname, quint64 bytes, quint64 overall)
 
void UpdaterDlg::onUpdateAvailable (AppVersionManifest *manifest, const QString &changelog)
 

Detailed Description

Function Documentation

AppVersionManifest::AppVersionManifest ( )

Basic idea is to have 'base' project files and allow per-server 'mods' that add/override the base files.

void AppVersionManifest::buildFromFileSystem ( const QString &  basePath)

Here is the caller graph for this function:

bool buildManifestDelta ( const QString &  original_manifest_path,
const QString &  new_directory,
AppVersionManifest delta 
)

Here is the call graph for this function:

AppVersionManifest calculateDelta ( const AppVersionManifest old_version,
const AppVersionManifest new_version 
)

calculateDelta will build a 'delta' manifest containing only 'new' files

Parameters
old_version- manifest of the baseline app
new_version- manifest of the whole app, with mods
Returns
AppVersionManifest containing only new+changed files.

Here is the caller graph for this function:

bool calculateManifestForDirectory ( const QString &  dirpath,
AppVersionManifest manifest 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void SLAVLogic::connectUI ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void dumpManifest ( AppVersionManifest current_manifest)

Here is the call graph for this function:

FileSignatureWorker::FileSignatureWorker ( QObject *  parent = 0)
explicit
bool loadFrom ( ProjectList target,
const QString &  data 
)
bool loadFrom ( ProjectApp target,
const QString &  data 
)
bool loadFrom ( AppVersionManifest target,
const QString &  data 
)
int main ( int  argc,
char **  argv 
)

Two work modes for now.

Here is the call graph for this function:

bool AppVersionManifest::operator== ( const AppVersionManifest other) const
ServerConnection::ServerConnection ( const QString &  baseUrl,
QObject *  parent = 0 
)
explicit
SLAVLogic::SLAVLogic ( QObject *  parent = 0)
explicit

Here is the call graph for this function:

void SLAVLogic::start ( )

Here is the call graph for this function:

Here is the caller graph for this function:

bool storeTo ( AppVersionManifest target,
QString &  data 
)

Here is the caller graph for this function:

UpdaterDlg::UpdaterDlg ( QWidget *  parent = 0)
explicit
UpdaterDlg::~UpdaterDlg ( )

Public Slots

void UpdaterDlg::onDownloadProgressed ( const QString &  fname,
quint64  bytes,
quint64  overall 
)
slot

Here is the caller graph for this function:

void SLAVLogic::onManifestReceived ( const QString &  manifest_url,
const QString &  manifestData 
)
slot

Here is the call graph for this function:

Here is the caller graph for this function:

void ServerConnection::onRequestAppData ( )
slot

Here is the caller graph for this function:

void ServerConnection::onRequestFileList ( const QString &  base_path,
const QStringList &  files 
)
slot
void ServerConnection::onRequestManifest ( const QString &  manifestname)
slot
void ServerConnection::onRequestProjectList ( )
slot
void UpdaterDlg::onUpdateAvailable ( AppVersionManifest manifest,
const QString &  changelog 
)
slot

Here is the caller graph for this function:

void SLAVLogic::onUpdateRequested ( ServerDescriptor manifest)
slot
void FileSignatureWorker::process ( )
slot

Here is the caller graph for this function:

void UpdaterDlg::projectListChanged ( const std::vector< ProjectDescriptor > &  projects)
slot