X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fclientsettings.h;h=40e890dbcd220fa1dbc150e4d612d6a57c2fd710;hb=615c5621f63360ef11c9cc3519c0462d8b5ec85b;hp=bf24410fb2e2338aa0b9c96e35c139c89f7b96b3;hpb=e10200137c6829b7a0bab2968394d99f3c796290;p=quassel.git diff --git a/src/client/clientsettings.h b/src/client/clientsettings.h index bf24410f..40e890db 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(); }; // ========================================