23 #ifndef __DOOMSEEKERCONFIG_H__
24 #define __DOOMSEEKERCONFIG_H__
26 #include "customservers.h"
28 #include "gui/entity/serverlistfilterinfo.h"
29 #include "patternlist.h"
30 #include <QScopedPointer>
33 #include <QStringList>
35 #define gConfig DoomseekerConfig::config()
59 static const QString OS_USERNAME_TMPL;
60 static const QString SECTION_NAME;
62 bool bBotsAreNotPlayers;
63 bool bCloseToTrayIcon;
64 bool bColorizeServerConsole;
65 bool bDrawGridInServerTable;
67 bool bHonorServerCountries;
68 bool bIP2CountryAutoUpdate;
69 bool bLogCreatedServer;
71 bool bMarkServersWithBuddies;
72 bool bQueryAutoRefreshDontIfActive;
73 bool bQueryAutoRefreshEnabled;
74 bool bQueryBeforeLaunch;
77 bool bTellMeWhereAreTheWADsWhenIHoverCursorOverWADSColumn;
78 bool bCheckTheIntegrityOfWads;
79 bool bResolveTemplatedPathsPlaceholders;
82 QString buddyServersColor;
83 QVector<CustomServerInfo> customServers;
84 QString customServersColor;
85 QString lanServersColor;
87 QString mainWindowState;
88 QByteArray mainWindowGeometry;
89 QByteArray demoManagerGeometry;
90 QByteArray demoManagerSplitterState;
91 unsigned queryAutoRefreshEverySeconds;
93 QString previousCreateServerConfigDir;
94 QString previousCreateServerExecDir;
95 QString previousCreateServerLogDir;
96 QString previousCreateServerWadDir;
97 QString previousDemoExportDir;
98 QString serverListColumnState;
99 int serverListSortIndex;
100 int serverListSortDirection;
102 QList<FileSearchPath> wadPaths;
107 QList<ColumnSort> additionalSortColumns()
const;
108 void setAdditionalSortColumns(
const QList<ColumnSort> &val);
110 void enableFreedoomInstallation(
const QString &dir);
124 QList<FileAlias> wadAliases()
const;
125 void setWadAliases(
const QList<FileAlias> &val);
127 QStringList wadPathsOnly()
const;
164 static const QString SECTION_NAME;
179 bool bPerformUpdateOnNextRun;
189 static const QString SECTION_NAME;
192 QString currentPreset;
203 static const QString SECTION_NAME;
205 bool bAlwaysUseDefaultSites;
206 bool bSearchInIdgames;
207 QString colorMessageCriticalError;
208 QString colorMessageError;
209 QString colorMessageNotice;
210 QString colorMessageNavigation;
211 int maxConcurrentSiteDownloads;
212 int maxConcurrentWadDownloads;
214 QStringList searchURLs;
215 QString targetDirectory;
251 return this->pIni.data();
294 QList<FileSearchPath> combinedWadseekPaths()
const;
299 bool isValidPluginName(
const QString &pluginName)
const;
307 QScopedPointer<QSettings> settings;
308 QScopedPointer<SettingsProviderQt> settingsProvider;
309 QScopedPointer<Ini> pIni;