From 084eb01fb395488a0a3aee799be2b72ce11aa220 Mon Sep 17 00:00:00 2001 From: Niels Ole Salscheider Date: Sun, 12 Feb 2017 17:18:06 +0100 Subject: Implement XEP-0198: Stream Management (client only) (#99) * Some features can be available with different namespaces (e.g. SM) * Provide static functions to convert between strings and stream errors Stream management will reuse this for . * [travis] test builds using clang * Implement XEP-0198: Stream Management (client only) * QXmppOutgoingClient: Move private methods to QXmppOutgoingClientPrivate --- src/base/QXmppStreamFeatures.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/base/QXmppStreamFeatures.h') diff --git a/src/base/QXmppStreamFeatures.h b/src/base/QXmppStreamFeatures.h index 46a9fd7d..242f748c 100644 --- a/src/base/QXmppStreamFeatures.h +++ b/src/base/QXmppStreamFeatures.h @@ -56,6 +56,15 @@ public: Mode tlsMode() const; void setTlsMode(Mode mode); + /// Returns the mode (disabled, enabled or required) for XEP-0198: Stream + /// Management + Mode streamManagementMode() const; + + /// Sets the mode for XEP-0198: Stream Management + /// + /// \pa mode The mode to set. + void setStreamManagementMode(Mode mode); + /// \cond void parse(const QDomElement &element); void toXml(QXmlStreamWriter *writer) const; @@ -68,6 +77,7 @@ private: Mode m_sessionMode; Mode m_nonSaslAuthMode; Mode m_tlsMode; + Mode m_streamManagementMode; QStringList m_authMechanisms; QStringList m_compressionMethods; }; -- cgit v1.2.3