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;
106 static const QString SECTION_NAME;
108 bool bUseNicknameUsedSound;
109 bool bUsePrivateMessageReceivedSound;
110 QString nicknameUsedSound;;
111 QString privateMessageReceivedSound;
138 Ini* ini() {
return this->pIni.data(); }
166 QScopedPointer<QSettings> settings;
167 QScopedPointer<SettingsProviderQt> settingsProvider;
168 QScopedPointer<Ini> pIni;
173 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.