23 #ifndef __DOOMSEEKERCONFIG_H__ 24 #define __DOOMSEEKERCONFIG_H__ 26 #include "customservers.h" 28 #include "patternlist.h" 29 #include "gui/entity/serverlistfilterinfo.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 bGroupServersWithPlayersAtTheTopOfTheList;
68 bool bIP2CountryAutoUpdate;
70 bool bMarkServersWithBuddies;
71 bool bQueryAutoRefreshDontIfActive;
72 bool bQueryAutoRefreshEnabled;
73 bool bQueryBeforeLaunch;
76 bool bTellMeWhereAreTheWADsWhenIHoverCursorOverWADSColumn;
79 QString buddyServersColor;
80 QVector<CustomServerInfo> customServers;
81 QString customServersColor;
82 QString lanServersColor;
84 QString mainWindowState;
85 QByteArray mainWindowGeometry;
86 unsigned queryAutoRefreshEverySeconds;
87 QString previousCreateServerConfigDir;
88 QString previousCreateServerExecDir;
89 QString previousCreateServerWadDir;
90 QString serverListColumnState;
91 int serverListSortIndex;
92 int serverListSortDirection;
94 QList<FileSearchPath> wadPaths;
99 QList<ColumnSort> additionalSortColumns()
const;
100 void setAdditionalSortColumns(
const QList<ColumnSort> &val);
102 void enableFreedoomInstallation(
const QString &dir);
107 QList<FileAlias> wadAliases()
const;
108 void setWadAliases(
const QList<FileAlias> &val);
110 QStringList wadPathsOnly()
const;
147 static const QString SECTION_NAME;
162 bool bPerformUpdateOnNextRun;
172 static const QString SECTION_NAME;
184 static const QString SECTION_NAME;
186 bool bAlwaysUseDefaultSites;
187 bool bSearchInIdgames;
188 bool bSearchInWadArchive;
189 QString colorMessageCriticalError;
190 QString colorMessageError;
191 QString colorMessageNotice;
192 int connectTimeoutSeconds;
193 int downloadTimeoutSeconds;
194 int maxConcurrentSiteDownloads;
195 int maxConcurrentWadDownloads;
197 QStringList searchURLs;
198 QString targetDirectory;
232 Ini* ini() {
return this->pIni.data(); }
274 QList<FileSearchPath> combinedWadseekPaths()
const;
280 bool isValidPluginName(
const QString& pluginName)
const;
288 QScopedPointer<QSettings> settings;
289 QScopedPointer<SettingsProviderQt> settingsProvider;
290 QScopedPointer<Ini> pIni;
QString updateChannelName
Pass this to UpdateChannel::fromName() .
Structure describing server filter.
void init(IniSection §ion)
Initializes values that are not present in the section yet.
bool saveToFile()
Saves current settings to ini file. This file must be previously set by setIniFile() method...
This Singleton holds entire Doomseeker configuration in memory.
IniSection iniSectionForPlugin(const QString &pluginName)
This will assume that the .ini file is initialized.
bool readFromFile()
Reads settings from ini file. This file must be previously set by setIniFile() method.
static DoomseekerConfig & config()
Returns the Singleton.
INI section representation.
bool setIniFile(const QString &filePath)
Initializes the Ini class instance to point to a file.
static void dispose()
Disposes of the Singleton.
QMap< QString, QString > lastKnownUpdateRevisions
Used to check if there are new updates since last reject.