23 #ifndef __IRCCONFIG_H__ 24 #define __IRCCONFIG_H__ 26 #define gIRCConfig IRCConfig::config() 29 #include "irc/entities/ircnetworkentity.h" 31 #include <QScopedPointer> 50 static const QString SECTION_NAME;
52 QString backgroundColor;
53 QString channelActionColor;
55 QString defaultTextColor;
58 QString networkActionColor;
62 QString userListSelectedTextColor;
63 QString userListSelectedBackgroundColor;
64 bool windowAlertOnImportantChatEvent;
76 static const QString SECTION_NAME;
87 static const QString SECTION_NAME;
89 QString alternativeNickname;
107 static const QString SECTION_NAME;
109 bool bUseNicknameUsedSound;
110 bool bUsePrivateMessageReceivedSound;
111 QString nicknameUsedSound;
112 QString privateMessageReceivedSound;
141 return this->pIni.data();
170 QScopedPointer<QSettings> settings;
171 QScopedPointer<SettingsProviderQt> settingsProvider;
172 QScopedPointer<Ini> pIni;
177 void loadNetworksFromPlugins();
static IRCConfig & config()
Returns the Singleton.
This Singleton holds most of Doomseeker IRC configuration in memory.
bool saveToFile()
Saves current settings to ini file. This file must be previously set by setIniFile() method...
bool readFromFile()
Reads settings from ini file. This file must be previously set by setIniFile() method.
static void dispose()
Disposes of the Singleton.
INI section representation.
bool setIniFile(const QString &filePath)
Initializes the Ini class instance to point to a file.