diff options
| author | Linus Jahn <lnj@kaidan.im> | 2015-10-24 00:19:25 +0200 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2018-10-29 21:41:31 +0100 |
| commit | 5559ed29681d031f36e7a7d011e3ec4bec3635f5 (patch) | |
| tree | b639a8c68f1d1255b5528bde34412ffc64a34fb6 /src/base/QXmppStreamFeatures.h | |
| parent | 3e2ca3c04a5a681fa97ebabf6f31b301ec9753a0 (diff) | |
| download | qxmpp-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.h | 9 |
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; }; |
