diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-04-20 18:48:38 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-04-23 07:53:50 (GMT) |
commit | b6246efcf15f03bb5b44bc79190bc9f4c7be9506 (patch) | |
tree | b85028f8bca17b066512e0bad688b74fb7717a34 /Swiften/Elements/StreamResume.h | |
parent | b381d4fac4c4362ab534ab73875126cb5c6cd101 (diff) | |
download | swift-contrib-b6246efcf15f03bb5b44bc79190bc9f4c7be9506.zip swift-contrib-b6246efcf15f03bb5b44bc79190bc9f4c7be9506.tar.bz2 |
Finished Stream Management parserialements.
Diffstat (limited to 'Swiften/Elements/StreamResume.h')
-rw-r--r-- | Swiften/Elements/StreamResume.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Swiften/Elements/StreamResume.h b/Swiften/Elements/StreamResume.h new file mode 100644 index 0000000..652182a --- /dev/null +++ b/Swiften/Elements/StreamResume.h @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2011 Remko Tronçon + * Licensed under the GNU General Public License v3. + * See Documentation/Licenses/GPLv3.txt for more information. + */ + +#pragma once + +#include <string> +#include <boost/optional.hpp> + +#include <Swiften/Elements/Element.h> + +namespace Swift { + class StreamResume : public Element { + public: + StreamResume(); + ~StreamResume(); + + void setResumeID(const std::string& id) { + resumeID = id; + } + + const std::string& getResumeID() const { + return resumeID; + } + + const boost::optional<int> getHandledStanzasCount() const { + return handledStanzasCount; + } + + void setHandledStanzasCount(int i) { + handledStanzasCount = i; + } + + private: + std::string resumeID; + boost::optional<int> handledStanzasCount; + }; +} |