X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcommon%2Fquassel.h;h=e9ed0f9562df79f3b5342cb6203da3dc2424015b;hb=123fc368f8705fa7799c04ee84af85999a7ebde3;hp=3b29521bc549480f68843fd5c81b95e1cdc522bc;hpb=0a43227b8cd44625f4881cc1545d42c8c8a4876c;p=quassel.git diff --git a/src/common/quassel.h b/src/common/quassel.h index 3b29521b..e9ed0f95 100644 --- a/src/common/quassel.h +++ b/src/common/quassel.h @@ -47,8 +47,7 @@ public: QString baseVersion; QString generatedVersion; QString commitHash; - uint commitDate; - QString buildDate; + QString commitDate; uint protocolVersion; // deprecated @@ -72,10 +71,14 @@ 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 + DccFileTransfer = 0x0100, - NumFeatures = 0x0010 + NumFeatures = 0x0100 }; - 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 @@ -143,6 +146,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;