aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppStreamFeatures.h
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2015-10-24 00:19:25 +0200
committerLinus Jahn <lnj@kaidan.im>2018-10-29 21:41:31 +0100
commit5559ed29681d031f36e7a7d011e3ec4bec3635f5 (patch)
treeb639a8c68f1d1255b5528bde34412ffc64a34fb6 /src/base/QXmppStreamFeatures.h
parent3e2ca3c04a5a681fa97ebabf6f31b301ec9753a0 (diff)
downloadqxmpp-5559ed29681d031f36e7a7d011e3ec4bec3635f5.tar.gz
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.
Diffstat (limited to 'src/base/QXmppStreamFeatures.h')
-rw-r--r--src/base/QXmppStreamFeatures.h9
1 files changed, 9 insertions, 0 deletions
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;
};