• Main Page
  • Classes
  • Files
  • File List

Swiften/Elements/StanzaAck.h

00001 /*
00002  * Copyright (c) 2010 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 <Swiften/Elements/Element.h>
00010 
00011 
00012 namespace Swift {
00013   class StanzaAck : public Element {
00014     public:
00015       typedef boost::shared_ptr<StanzaAck> ref;
00016 
00017       StanzaAck() : valid(false), handledStanzasCount(0) {}
00018       StanzaAck(unsigned int handledStanzasCount) : valid(true), handledStanzasCount(handledStanzasCount) {}
00019 
00020       unsigned int getHandledStanzasCount() const {
00021         return handledStanzasCount;
00022       }
00023 
00024       void setHandledStanzasCount(int i) {
00025         handledStanzasCount = i;
00026         valid = true;
00027       }
00028 
00029       bool isValid() const {
00030         return valid;
00031       }
00032 
00033     private:
00034       bool valid;
00035       unsigned int handledStanzasCount;
00036   };
00037 }

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