23 #ifndef __DOOMSEEKERCONFIG_H__ 24 #define __DOOMSEEKERCONFIG_H__ 26 #include "customservers.h" 28 #include "gui/entity/serverlistfilterinfo.h" 29 #include "serverapi/buddyinfo.h" 30 #include <QScopedPointer> 33 #include <QStringList> 36 #define gConfig DoomseekerConfig::config() 60 static const QString SECTION_NAME;
63 bool bBotsAreNotPlayers;
64 bool bCloseToTrayIcon;
65 bool bColorizeServerConsole;
66 bool bDrawGridInServerTable;
68 bool bGroupServersWithPlayersAtTheTopOfTheList;
69 bool bIP2CountryAutoUpdate;
71 bool bMarkServersWithBuddies;
72 bool bQueryAutoRefreshDontIfActive;
73 bool bQueryAutoRefreshEnabled;
74 bool bQueryBeforeLaunch;
77 bool bTellMeWhereAreTheWADsWhenIHoverCursorOverWADSColumn;
78 QVector<BuddyInfo> buddiesList;
80 QString buddyServersColor;
81 QVector<CustomServerInfo> customServers;
82 QString customServersColor;
83 QString lanServersColor;
85 QString mainWindowState;
86 QByteArray mainWindowGeometry;
87 unsigned queryAutoRefreshEverySeconds;
88 QString previousCreateServerConfigDir;
89 QString previousCreateServerExecDir;
90 QString previousCreateServerWadDir;
91 QString serverListColumnState;
92 int serverListSortIndex;
93 int serverListSortDirection;
95 QList<FileSearchPath> wadPaths;
100 QList<ColumnSort> additionalSortColumns()
const;
101 void setAdditionalSortColumns(
const QList<ColumnSort> &val);
103 void enableFreedoomInstallation(
const QString &dir);
108 QList<FileAlias> wadAliases()
const;
109 void setWadAliases(
const QList<FileAlias> &val);
111 QStringList wadPathsOnly()
const;
148 static const QString SECTION_NAME;
163 bool bPerformUpdateOnNextRun;
173 static const QString SECTION_NAME;
185 static const QString SECTION_NAME;
187 bool bAlwaysUseDefaultSites;
188 bool bSearchInIdgames;
189 bool bSearchInWadArchive;
190 QString colorMessageCriticalError;
191 QString colorMessageError;
192 QString colorMessageNotice;
193 int connectTimeoutSeconds;
194 int downloadTimeoutSeconds;
195 int maxConcurrentSiteDownloads;
196 int maxConcurrentWadDownloads;
198 QStringList searchURLs;
199 QString targetDirectory;
233 Ini* ini() {
return this->pIni.data(); }
275 QList<FileSearchPath> combinedWadseekPaths()
const;
281 bool isValidPluginName(
const QString& pluginName)
const;
289 QScopedPointer<QSettings> settings;
290 QScopedPointer<SettingsProviderQt> settingsProvider;
291 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.