00001 /* 00002 * Copyright (c) 2010-2011 Remko Tronçon 00003 * Licensed under the GNU General Public License v3. 00004 * See Documentation/Licenses/GPLv3.txt for more information. 00005 */ 00006 00007 #pragma once 00008 00009 #include <string> 00010 00011 #include <Swiften/Base/API.h> 00012 #include <Swiften/Elements/Element.h> 00013 00014 namespace Swift { 00015 class SWIFTEN_API StreamManagementEnabled : public Element { 00016 public: 00017 StreamManagementEnabled(); 00018 ~StreamManagementEnabled(); 00019 00020 void setResumeSupported() { 00021 resumeSupported = true; 00022 } 00023 00024 bool getResumeSupported() const { 00025 return resumeSupported; 00026 } 00027 00028 void setResumeID(const std::string& id) { 00029 resumeID = id; 00030 } 00031 00032 const std::string& getResumeID() const { 00033 return resumeID; 00034 } 00035 00036 private: 00037 bool resumeSupported; 00038 std::string resumeID; 00039 }; 00040 }