diff options
Diffstat (limited to 'Swiften/Elements')
-rw-r--r-- | Swiften/Elements/StreamFeatures.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Swiften/Elements/StreamFeatures.h b/Swiften/Elements/StreamFeatures.h index ec27014..d8a6af7 100644 --- a/Swiften/Elements/StreamFeatures.h +++ b/Swiften/Elements/StreamFeatures.h @@ -17,7 +17,7 @@ namespace Swift { class StreamFeatures : public Element { public: - StreamFeatures() : hasStartTLS_(false), hasResourceBind_(false), hasSession_(false) {} + StreamFeatures() : hasStartTLS_(false), hasResourceBind_(false), hasSession_(false), hasStreamManagement_(false) {} void setHasStartTLS() { hasStartTLS_ = true; @@ -71,12 +71,21 @@ namespace Swift { return !authenticationMechanisms_.empty(); } + bool hasStreamManagement() const { + return hasStreamManagement_; + } + + void setHasStreamManagement() { + hasStreamManagement_ = true; + } + private: bool hasStartTLS_; std::vector<String> compressionMethods_; std::vector<String> authenticationMechanisms_; bool hasResourceBind_; bool hasSession_; + bool hasStreamManagement_; }; } |