SEGS  0.6.1-develop [3e741b81]
Super Entity Game Server
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::AppVersionManifest ( )

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

◆ buildFromFileSystem()

void AppVersionManifest::buildFromFileSystem ( const QString &  basePath)
Here is the caller graph for this function:

◆ buildManifestDelta()

bool buildManifestDelta ( const QString &  original_manifest_path,
const QString &  new_directory,
AppVersionManifest delta 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ calculateDelta()

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:

◆ calculateManifestForDirectory()

bool calculateManifestForDirectory ( const QString &  dirpath,
AppVersionManifest manifest 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ connectUI()

void SLAVLogic::connectUI ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dumpManifest()

void dumpManifest ( AppVersionManifest current_manifest)
Here is the call graph for this function:

◆ FileSignatureWorker()

FileSignatureWorker::FileSignatureWorker ( QObject *  parent = 0)
explicit

◆ loadFrom() [1/3]

bool loadFrom ( ProjectList target,
const QString &  data 
)

◆ loadFrom() [2/3]

bool loadFrom ( ProjectApp target,
const QString &  data 
)

◆ loadFrom() [3/3]

bool loadFrom ( AppVersionManifest target,
const QString &  data 
)
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Two work modes for now.

Here is the call graph for this function:

◆ operator==()

bool AppVersionManifest::operator== ( const AppVersionManifest other) const

◆ ServerConnection()

ServerConnection::ServerConnection ( const QString &  baseUrl,
QObject *  parent = 0 
)
explicit

◆ SLAVLogic()

SLAVLogic::SLAVLogic ( QObject *  parent = 0)
explicit
Here is the call graph for this function:

◆ start()

void SLAVLogic::start ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ storeTo()

bool storeTo ( AppVersionManifest target,
QString &  data 
)
Here is the caller graph for this function:

◆ UpdaterDlg()

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

◆ ~UpdaterDlg()

UpdaterDlg::~UpdaterDlg ( )

Public Slots

◆ onDownloadProgressed

void UpdaterDlg::onDownloadProgressed ( const QString &  fname,
quint64  bytes,
quint64  overall 
)
slot
Here is the caller graph for this function:

◆ onManifestReceived

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:

◆ onRequestAppData

void ServerConnection::onRequestAppData ( )
slot
Here is the caller graph for this function:

◆ onRequestFileList

void ServerConnection::onRequestFileList ( const QString &  base_path,
const QStringList &  files 
)
slot

◆ onRequestManifest

void ServerConnection::onRequestManifest ( const QString &  manifestname)
slot

◆ onRequestProjectList

void ServerConnection::onRequestProjectList ( )
slot

◆ onUpdateAvailable

void UpdaterDlg::onUpdateAvailable ( AppVersionManifest manifest,
const QString &  changelog 
)
slot
Here is the caller graph for this function:

◆ onUpdateRequested

void SLAVLogic::onUpdateRequested ( ServerDescriptor manifest)
slot
Here is the call graph for this function:

◆ process

void FileSignatureWorker::process ( )
slot
Here is the caller graph for this function:

◆ projectListChanged

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