23 #ifndef DOOMSEEKER_GUI_CREATESERVERDIALOG_H
24 #define DOOMSEEKER_GUI_CREATESERVERDIALOG_H
27 #include "serverapi/gamecreateparams.h"
46 enum class CommandLinePurpose
54 bool commandLineArguments(QString &executable, QStringList &args,
55 bool offline, CommandLinePurpose purpose);
58 QString mapName()
const;
59 void setIwadByName(
const QString &iwad);
60 QStringList wadPaths()
const;
63 void changeToHostMode();
64 void changeToOfflineMode();
65 void firstLoadConfigTimer();
73 void initGamemodeSpecific(
const GameMode &gameMode);
74 void showConfiguration();
75 void showLoadConfig();
76 void showSaveConfig();
77 void showStartGameCommandLine();
81 static const QString TEMP_GAME_CONFIG_FILENAME;
90 void addIwad(
const QString &path);
98 bool createHostInfo(
GameCreateParams ¶ms,
bool offline, CommandLinePurpose purpose);
99 bool createHostInfoDemoRecord(
GameCreateParams ¶ms,
bool offline, CommandLinePurpose purpose);
104 void initDMFlagsTabs();
113 void initServerTab();
117 bool loadConfig(
const QString &filename,
bool loadingPrevious);
118 void runGame(
bool offline);
119 bool saveConfig(
const QString &filename);
121 void showCommandLine(
bool offline);