X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcorenetwork.h;h=4e6544e199cba2fdcdbf9e99d4aa73f05c1a3a7d;hp=88ea9bd569e30bec42dd78494181c0a0e137cb62;hb=e67887343c433cc35bc26ad6a9392588f427e746;hpb=51ced68c9ba7f733c354e0b2dc737caa1f436a47 diff --git a/src/core/corenetwork.h b/src/core/corenetwork.h index 88ea9bd5..4e6544e1 100644 --- a/src/core/corenetwork.h +++ b/src/core/corenetwork.h @@ -105,6 +105,7 @@ public: /** * Checks if a given capability is enabled. * + * @param[in] capability Name of capability * @returns True if enabled, otherwise false */ inline bool capEnabled(const QString &capability) const { return _capsSupported.contains(capability); } @@ -119,6 +120,7 @@ public: /** * Gets the value of an enabled or pending capability, e.g. sasl=plain. * + * @param[in] capability Name of capability * @returns Value of capability if one was specified, otherwise empty string */ QString capValue(const QString &capability) const; @@ -150,6 +152,42 @@ public: */ inline bool useCapAwayNotify() const { return capEnabled("away-notify"); } + /** + * Gets the status of the account-notify capability. + * + * http://ircv3.net/specs/extensions/account-notify-3.1.html + * + * @returns True if account-notify is enabled, otherwise false + */ + inline bool useCapAccountNotify() const { return capEnabled("account-notify"); } + + /** + * Gets the status of the extended-join capability. + * + * http://ircv3.net/specs/extensions/extended-join-3.1.html + * + * @returns True if extended-join is enabled, otherwise false + */ + inline bool useCapExtendedJoin() const { return capEnabled("extended-join"); } + + /** + * Gets the status of the userhost-in-names capability. + * + * http://ircv3.net/specs/extensions/userhost-in-names-3.2.html + * + * @returns True if userhost-in-names is enabled, otherwise false + */ + inline bool useCapUserhostInNames() const { return capEnabled("userhost-in-names"); } + + /** + * Gets the status of the multi-prefix capability. + * + * http://ircv3.net/specs/extensions/multi-prefix-3.1.html + * + * @returns True if multi-prefix is enabled, otherwise false + */ + inline bool useCapMultiPrefix() const { return capEnabled("multi-prefix"); } + public slots: virtual void setMyNick(const QString &mynick);