23 #ifndef DOOMSEEKER_GUI_CREATESERVERDIALOG_H
24 #define DOOMSEEKER_GUI_CREATESERVERDIALOG_H
27 #include "serverapi/gamecreateparams.h"
50 enum class CommandLinePurpose
58 bool commandLineArguments(QString &executable, QStringList &args,
59 CommandLinePurpose purpose);
61 const QString &iwad,
const QList<PickedGameFile> &wads);
64 QString mapName()
const;
65 void setIwadByName(
const QString &iwad);
66 QStringList wadPaths()
const;
69 void changeToHostMode();
70 void changeToOfflineMode();
71 void firstLoadConfigTimer();
79 void initGamemodeSpecific(
const GameMode &gameMode);
80 void showCommandLine();
81 void showConfiguration();
82 void showLoadConfig();
83 void showSaveConfig();
87 static const QString TEMP_GAME_CONFIG_FILENAME;
96 void addIwad(
const QString &path);
105 bool createHostInfoDemoRecord(
GameCreateParams ¶ms, CommandLinePurpose purpose);
110 void initDMFlagsTabs();
119 void initServerTab();
123 bool loadConfig(
const QString &filename,
bool loadingPrevious);
125 bool saveConfig(
const QString &filename);
127 void switchToMode(GameCreateParams::HostMode mode);