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 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 unsigned queryAutoRefreshEverySeconds;
90 QString previousCreateServerConfigDir;
91 QString previousCreateServerExecDir;
92 QString previousCreateServerLogDir;
93 QString previousCreateServerWadDir;
94 QString serverListColumnState;
95 int serverListSortIndex;
96 int serverListSortDirection;
98 QList<FileSearchPath> wadPaths;
103 QList<ColumnSort> additionalSortColumns()
const;
104 void setAdditionalSortColumns(
const QList<ColumnSort> &val);
106 void enableFreedoomInstallation(
const QString &dir);
111 QList<FileAlias> wadAliases()
const;
112 void setWadAliases(
const QList<FileAlias> &val);
114 QStringList wadPathsOnly()
const;
151 static const QString SECTION_NAME;
166 bool bPerformUpdateOnNextRun;
176 static const QString SECTION_NAME;
179 QString currentPreset;
190 static const QString SECTION_NAME;
192 bool bAlwaysUseDefaultSites;
193 bool bSearchInIdgames;
194 QString colorMessageCriticalError;
195 QString colorMessageError;
196 QString colorMessageNotice;
197 int maxConcurrentSiteDownloads;
198 int maxConcurrentWadDownloads;
200 QStringList searchURLs;
201 QString targetDirectory;
237 return this->pIni.data();
280 QList<FileSearchPath> combinedWadseekPaths()
const;
286 bool isValidPluginName(
const QString &pluginName)
const;
294 QScopedPointer<QSettings> settings;
295 QScopedPointer<SettingsProviderQt> settingsProvider;
296 QScopedPointer<Ini> pIni;