aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppStreamFeatures.h
diff options
context:
space:
mode:
authorMelvin Keskin <melvo@olomono.de>2019-06-25 12:09:27 +0200
committerLNJ <lnj@kaidan.im>2019-09-06 19:53:01 +0200
commitfae818fdc89364515a86ef1cc1d1aa449372f281 (patch)
tree91ad3f8a0ab3027dc1321cceffaeea339fdce3b7 /src/base/QXmppStreamFeatures.h
parent8ab56c2cf1ff490b78def3f9799d4b8a99965d47 (diff)
downloadqxmpp-fae818fdc89364515a86ef1cc1d1aa449372f281.tar.gz
Add register stream feature
This adds parsing, serialization and a test for the 'register' stream feature of XEP-0077: In-Band Registration. Co-authored-by: Linus Jahn <lnj@kaidan.im>
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 952e8c84..dfb20bb9 100644
--- a/src/base/QXmppStreamFeatures.h
+++ b/src/base/QXmppStreamFeatures.h
@@ -73,6 +73,14 @@ public:
/// \pa mode The mode to set.
void setClientStateIndicationMode(Mode mode);
+ /// Returns the mode for XEP-0077: In-Band Registration
+ Mode registerMode() const;
+
+ /// Sets the mode for XEP-0077: In-Band Registration
+ ///
+ /// \pa mode The mode to set.
+ void setRegisterMode(const Mode &registerMode);
+
/// \cond
void parse(const QDomElement &element);
void toXml(QXmlStreamWriter *writer) const;
@@ -87,6 +95,7 @@ private:
Mode m_tlsMode;
Mode m_streamManagementMode;
Mode m_csiMode;
+ Mode m_registerMode;
QStringList m_authMechanisms;
QStringList m_compressionMethods;
};