From 5559ed29681d031f36e7a7d011e3ec4bec3635f5 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Sat, 24 Oct 2015 00:19:25 +0200 Subject: Implement XEP-0352: Client State Indication This commit is based on a pull request by fbeutel (GitHub) (see #87) and was rebased and slightly modified by me. --- src/base/QXmppStreamFeatures.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/base/QXmppStreamFeatures.h') diff --git a/src/base/QXmppStreamFeatures.h b/src/base/QXmppStreamFeatures.h index 242f748c..20507364 100644 --- a/src/base/QXmppStreamFeatures.h +++ b/src/base/QXmppStreamFeatures.h @@ -65,6 +65,14 @@ public: /// \pa mode The mode to set. void setStreamManagementMode(Mode mode); + /// Returns the mode for XEP-0352: Client State Indication + Mode clientStateIndicationMode() const; + + /// Sets the mode for XEP-0352: Client State Indication + /// + /// \pa mode The mode to set. + void setClientStateIndicationMode(Mode mode); + /// \cond void parse(const QDomElement &element); void toXml(QXmlStreamWriter *writer) const; @@ -78,6 +86,7 @@ private: Mode m_nonSaslAuthMode; Mode m_tlsMode; Mode m_streamManagementMode; + Mode m_csiMode; QStringList m_authMechanisms; QStringList m_compressionMethods; }; -- cgit v1.2.3