+};
+
+
+// ========================================
+// CoreAccountSettings
+// ========================================
+
+// Deriving from CoreAccountSettings:
+// MySettings() : CoreAccountSettings("MyGroup") {};
+// Then use accountValue() / setAccountValue() to retrieve/store data associated to the currently
+// connected account. This is stored in CoreAccounts/$ACCID/MyGroup/$KEY) then.
+//
+// Note that you'll get invalid data (and setting is ignored) if you are not connected to a core!
+
+class CoreAccountSettings : public ClientSettings
+{
+public:
+ // stores account-specific data in CoreAccounts/$ACCID/$SUBGROUP/$KEY)
+ CoreAccountSettings(const QString &subgroup = "General");
+
+ virtual void notify(const QString &key, QObject *receiver, const char *slot);
+
+ QList<AccountId> knownAccounts();
+ AccountId lastAccount();
+ void setLastAccount(AccountId);
+ AccountId autoConnectAccount();
+ void setAutoConnectAccount(AccountId);
+ bool autoConnectOnStartup();
+ void setAutoConnectOnStartup(bool);
+ bool autoConnectToFixedAccount();
+ void setAutoConnectToFixedAccount(bool);
+
+ void clearAccounts();
+
+ void storeAccountData(AccountId id, const QVariantMap &data);
+ QVariantMap retrieveAccountData(AccountId);
+ void removeAccount(AccountId);
+
+ void setJumpKeyMap(const QHash<int, BufferId> &keyMap);
+ QHash<int, BufferId> jumpKeyMap();
+
+ void setBufferViewOverlay(const QSet<int> &viewIds);
+ QSet<int> bufferViewOverlay();
+
+ void setAccountValue(const QString &key, const QVariant &data);
+ QVariant accountValue(const QString &key, const QVariant &def = QVariant());
+
+private:
+ QString _subgroup;
+};
+
+
+// ========================================
+// NotificationSettings
+// ========================================
+class NotificationSettings : public ClientSettings
+{
+public:
+ enum HighlightNickType {
+ NoNick = 0x00,
+ CurrentNick = 0x01,
+ AllNicks = 0x02
+ };
+
+ NotificationSettings();
+
+ inline void setValue(const QString &key, const QVariant &data) { setLocalValue(key, data); }
+ inline QVariant value(const QString &key, const QVariant &def = QVariant()) { return localValue(key, def); }
+ inline void remove(const QString &key) { removeLocalKey(key); }