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 bGroupServersWithPlayersAtTheTopOfTheList;
69 bool bIP2CountryAutoUpdate;
70 bool bLogCreatedServer;
72 bool bMarkServersWithBuddies;
73 bool bQueryAutoRefreshDontIfActive;
74 bool bQueryAutoRefreshEnabled;
75 bool bQueryBeforeLaunch;
78 bool bTellMeWhereAreTheWADsWhenIHoverCursorOverWADSColumn;
79 bool bCheckTheIntegrityOfWads;
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;
188 static const QString SECTION_NAME;
190 bool bAlwaysUseDefaultSites;
191 bool bSearchInIdgames;
192 bool bSearchInWadArchive;
193 QString colorMessageCriticalError;
194 QString colorMessageError;
195 QString colorMessageNotice;
196 int maxConcurrentSiteDownloads;
197 int maxConcurrentWadDownloads;
199 QStringList searchURLs;
200 QString targetDirectory;
236 return this->pIni.data();
279 QList<FileSearchPath> combinedWadseekPaths()
const;
285 bool isValidPluginName(
const QString &pluginName)
const;
293 QScopedPointer<QSettings> settings;
294 QScopedPointer<SettingsProviderQt> settingsProvider;
295 QScopedPointer<Ini> pIni;