Main Class Reference

#include <main.h>

+ Inheritance diagram for Main:

Public Member Functions

 Main (int argc, char *argv[])
 
void finalize ()
 Called by main() after run() returns. More...
 
int run ()
 Replaces main(). More...
 

Static Public Attributes

static QString argDataDir
 
static bool bInstallUpdatesAndRestart = false
 If true then program will install updates and restart instead of quitting if quit is requested. More...
 
static QList< LocalizationInfolocalizations
 

Protected Member Functions

int connectToServerByURL ()
 
void convertOldIniToQSettingsIni ()
 
void createMainWindow ()
 
bool createRemoteConsole ()
 
bool initDataDirectories ()
 
int initIP2C ()
 
void initIRCConfig ()
 
void initLocalizationsDefinitions ()
 
void initMainConfig ()
 
void initPasswordsConfig ()
 
void initPluginConfig ()
 
int installPendingUpdates ()
 
bool interpretCommandLineParameters ()
 
int runTestMode ()
 
void setupRefreshingThread ()
 

Protected Attributes

char ** arguments
 
int argumentsCount
 
bool bIsFirstRun
 
bool bTestMode
 
QUrl connectUrl
 
QStringList dataDirectories
 
QString rconAddress
 If not empty assume we want to launch an rcon client. More...
 
QString rconPluginName
 
unsigned short rconPort
 
bool startRcon
 
int updateFailedCode
 

Detailed Description

This class holds some global information.

Definition at line 37 of file main.h.

Member Function Documentation

void Main::finalize ( )

Called by main() after run() returns.

finalize() cleans up after Main object.

bool Main::initDataDirectories ( )
protected

Creates required directories and sets up the application.

Returns
False if it was impossible to setup the directories.

Definition at line 318 of file main.cpp.

int Main::initIP2C ( )
protected

If updateip2c == true, application should quit after this returns.

Returns
If updateip2c == true it returns the exit code. Otherwise always returns zero.

Definition at line 349 of file main.cpp.

bool Main::interpretCommandLineParameters ( )
protected
Returns
If false - terminate the application after this method returns.

Definition at line 459 of file main.cpp.

int Main::run ( )

Replaces main().

Definition at line 125 of file main.cpp.

Member Data Documentation

bool Main::bInstallUpdatesAndRestart = false
static

If true then program will install updates and restart instead of quitting if quit is requested.

This flag is ignored if the program configuration states that there are no updates to install.

Default: false.

Definition at line 51 of file main.h.

QString Main::rconAddress
protected

If not empty assume we want to launch an rcon client.

Definition at line 112 of file main.h.


The documentation for this class was generated from the following files: