#include <main.h>
Public Member Functions | |
| Main (int argc, char *argv[]) | |
| void | finalize () |
| Called by main() after run() returns. | |
| int | run () |
| Replaces main(). | |
Static Public Attributes | |
| static const QString | IP2C_FILENAME = "IpToCountry.csv" |
| static IP2C * | ip2c = NULL |
| static DataPaths * | dataPaths |
| static QWidget * | mainWindow = NULL |
| static PluginLoader * | enginePlugins = NULL |
| static bool | running = true |
| static RefreshingThread * | refreshingThread = new RefreshingThread() |
| Used to notify the Server objects that it should not refresh in order to end the program faster. | |
| static QString | workingDirectory = "./" |
Protected Member Functions | |
| void | convertCfgToIni () |
| void | convertOldIniToQSettingsIni () |
| void | createMainWindow () |
| bool | createRemoteConsole () |
| int | runTestMode () |
| bool | initDataDirectories () |
| int | initIP2C () |
| void | initIRCConfig () |
| void | initMainConfig () |
| void | initPluginConfig () |
| bool | interpretCommandLineParameters () |
| void | preserveOldConfigBackwardsCompatibility () |
| void | setupRefreshingThread () |
Protected Attributes | |
| QApplication * | application |
| char ** | arguments |
| int | argumentsCount |
| bool | bIsFirstRun |
| bool | bPortableMode |
| bool | bTestMode |
| QStringList | dataDirectories |
| QString | rconPluginName |
| QString | rconAddress |
| If not empty assume we want to launch an rcon client. | |
| unsigned short | rconPort |
| bool | startRcon |
Static Protected Attributes | |
| static const QString | DOOMSEEKER_CONFIG_FILENAME = "doomseeker.cfg" |
| static const QString | DOOMSEEKER_INI_FILENAME = "doomseeker.ini" |
| static const QString | DOOMSEEKER_IRC_INI_FILENAME = "doomseeker-irc.ini" |
This class holds some global information.
| 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.
| int Main::initIP2C | ( | ) | [protected] |
If updateip2c == true, application should quit after this returns.
| bool Main::interpretCommandLineParameters | ( | ) | [protected] |