X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fquassel.h;h=3305009d3a538d997793ca12e7d0b17caf704d14;hb=97e06500c62eccc20c50d10e6ed09bc3fcebcde4;hp=ba883b0b9f865d05c167ceee94417c1fff1fb34b;hpb=620cd1aa35e05099b3f84400dd33afc207c98244;p=quassel.git diff --git a/src/common/quassel.h b/src/common/quassel.h index ba883b0b..3305009d 100644 --- a/src/common/quassel.h +++ b/src/common/quassel.h @@ -71,10 +71,13 @@ public: SaslExternal = 0x0004, HideInactiveNetworks = 0x0008, PasswordChange = 0x0010, + CapNegotiation = 0x0020, /// IRCv3 capability negotiation, account tracking + VerifyServerSSL = 0x0040, /// IRC server SSL validation + CustomRateLimits = 0x0080, /// IRC server custom message rate limits - NumFeatures = 0x0010 + NumFeatures = 0x0080 }; - Q_DECLARE_FLAGS(Features, Feature); + Q_DECLARE_FLAGS(Features, Feature) //! The features the current version of Quassel supports (\sa Feature) /** \return An ORed list of all enum values in Feature @@ -142,6 +145,16 @@ protected: virtual bool init(); virtual void quit(); + /** + * Requests a reload of relevant runtime configuration. + * + * Does not reload all configuration, but could catch things such as SSL certificates. Unless + * overridden, simply does nothing. + * + * @return True if configuration reload successful, otherwise false + */ + virtual bool reloadConfig() { return true; } + inline void setRunMode(RunMode mode); inline void setDataDirPaths(const QStringList &paths); QStringList findDataDirPaths() const;