summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-08-29 14:35:58 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-08-29 14:35:58 (GMT)
commit8310fa230b40122fff897727fe6850a67a4b73be (patch)
tree16afece093a6409ed2b3588f5c270f9781a40a75 /Swiften/Elements
parent0091fcc571758791442f82ece2a72444b6fe79cf (diff)
downloadswift-contrib-8310fa230b40122fff897727fe6850a67a4b73be.zip
swift-contrib-8310fa230b40122fff897727fe6850a67a4b73be.tar.bz2
Added Stream Management support to Stream Features.
Diffstat (limited to 'Swiften/Elements')
-rw-r--r--Swiften/Elements/StreamFeatures.h11
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_;
};
}