• Main Page
  • Classes
  • Files
  • File List

Swiften/Elements/StreamResume.h

00001 /*
00002  * Copyright (c) 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 #include <boost/optional.hpp>
00011 
00012 #include <Swiften/Elements/Element.h>
00013 
00014 namespace Swift {
00015   class StreamResume : public Element {
00016     public:
00017       StreamResume();
00018       ~StreamResume();
00019 
00020       void setResumeID(const std::string& id) {
00021         resumeID = id;
00022       }
00023 
00024       const std::string& getResumeID() const {
00025         return resumeID;
00026       }
00027 
00028       const boost::optional<unsigned int> getHandledStanzasCount() const {
00029         return handledStanzasCount;
00030       }
00031 
00032       void setHandledStanzasCount(unsigned int i) {
00033         handledStanzasCount = i;
00034       }
00035 
00036     private:
00037       std::string resumeID;
00038       boost::optional<unsigned int> handledStanzasCount;
00039   };
00040 }

Generated on Fri Oct 12 2012 21:00:19 for Swiften by  doxygen 1.7.1