X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclientsettings.h;h=be3fb102f1ecbd009dc243d21550e2538b8f4e09;hp=bf24410fb2e2338aa0b9c96e35c139c89f7b96b3;hb=84381d6b74a31c8b1b6468fa490621f8a7a32c23;hpb=e10200137c6829b7a0bab2968394d99f3c796290 diff --git a/src/client/clientsettings.h b/src/client/clientsettings.h index bf24410f..be3fb102 100644 --- a/src/client/clientsettings.h +++ b/src/client/clientsettings.h @@ -64,6 +64,8 @@ public: bool autoConnectToFixedAccount(); void setAutoConnectToFixedAccount(bool); + void clearAccounts(); + void storeAccountData(AccountId id, const QVariantMap &data); QVariantMap retrieveAccountData(AccountId); void removeAccount(AccountId); @@ -71,7 +73,9 @@ public: void setJumpKeyMap(const QHash &keyMap); QHash jumpKeyMap(); -protected: + void setBufferViewOverlay(const QSet &viewIds); + QSet bufferViewOverlay(); + void setAccountValue(const QString &key, const QVariant &data); QVariant accountValue(const QString &key, const QVariant &def = QVariant()); @@ -106,23 +110,31 @@ public: bool nicksCaseSensitive(); }; - // ======================================== -// KnownHostsSettings +// CoreConnectionSettings // ======================================== -class KnownHostsSettings : public ClientSettings { + +class CoreConnectionSettings : public ClientSettings { public: - KnownHostsSettings(); + enum NetworkDetectionMode { + UseSolid, + UsePingTimeout, + NoActiveDetection + }; - QByteArray knownDigest(const QHostAddress &address); - void saveKnownHost(const QHostAddress &address, const QByteArray &certDigest); - bool isKnownHost(const QHostAddress &address, const QByteArray &certDigest); + CoreConnectionSettings(); -#ifdef HAVE_SSL - QByteArray knownDigest(const QSslSocket *socket); - void saveKnownHost(const QSslSocket *socket); - bool isKnownHost(const QSslSocket *socket); -#endif + void setNetworkDetectionMode(NetworkDetectionMode mode); + NetworkDetectionMode networkDetectionMode(); + + void setAutoReconnect(bool autoReconnect); + bool autoReconnect(); + + void setPingTimeoutInterval(int interval); + int pingTimeoutInterval(); + + void setReconnectInterval(int interval); + int reconnectInterval(); }; // ======================================== @@ -141,6 +153,9 @@ public: void setCompletionSuffix(const QString &); QString completionSuffix(); + void setAddSpaceMidSentence(const bool &); + bool addSpaceMidSentence(); + void setSortMode(SortMode); SortMode sortMode();