+};
+
+// ========================================
+// 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 CLIENT_EXPORT CoreAccountSettings : public ClientSettings
+{
+public:
+ // stores account-specific data in CoreAccounts/$ACCID/$SUBGROUP/$KEY)
+ CoreAccountSettings(QString subgroup = "General");
+
+ QList<AccountId> knownAccounts() const;
+ AccountId lastAccount() const;
+ void setLastAccount(AccountId);
+ AccountId autoConnectAccount() const;
+ void setAutoConnectAccount(AccountId);
+ bool autoConnectOnStartup() const;
+ void setAutoConnectOnStartup(bool);
+ bool autoConnectToFixedAccount() const;
+ void setAutoConnectToFixedAccount(bool);
+
+ void clearAccounts();
+
+ void storeAccountData(AccountId id, const QVariantMap& data);
+ QVariantMap retrieveAccountData(AccountId) const;
+ void removeAccount(AccountId);
+
+ void setJumpKeyMap(const QHash<int, BufferId>& keyMap);
+ QHash<int, BufferId> jumpKeyMap() const;
+
+ void setBufferViewOverlay(const QSet<int>& viewIds);
+ QSet<int> bufferViewOverlay() const;
+
+ void setAccountValue(const QString& key, const QVariant& data);
+ QVariant accountValue(const QString& key, const QVariant& def = QVariant()) const;
+
+protected:
+ QString keyForNotify(const QString& key) const override;
+
+private:
+ QString _subgroup;
+};
+
+// ========================================
+// NotificationSettings
+// ========================================
+class CLIENT_EXPORT NotificationSettings : public ClientSettings
+{
+public:
+ enum HighlightNickType
+ {
+ NoNick = 0x00,
+ CurrentNick = 0x01,
+ AllNicks = 0x02
+ };