summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-08-29 12:51:45 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-08-29 13:30:18 (GMT)
commit0091fcc571758791442f82ece2a72444b6fe79cf (patch)
tree807f20a4047604a87f56d247d8ad7180489fe82b /Swiften/Elements/StanzaAck.h
parent901f620b6ccabde19ef460368028fa0464aa56c5 (diff)
downloadswift-contrib-0091fcc571758791442f82ece2a72444b6fe79cf.zip
swift-contrib-0091fcc571758791442f82ece2a72444b6fe79cf.tar.bz2
Added Stanza Ack Requester & Responder.
Diffstat (limited to 'Swiften/Elements/StanzaAck.h')
-rw-r--r--Swiften/Elements/StanzaAck.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/Swiften/Elements/StanzaAck.h b/Swiften/Elements/StanzaAck.h
index a1a39f8..eaf4e26 100644
--- a/Swiften/Elements/StanzaAck.h
+++ b/Swiften/Elements/StanzaAck.h
@@ -12,21 +12,23 @@
namespace Swift {
class StanzaAck : public Element, public Shared<StanzaAck> {
public:
- StanzaAck() : handledStanzasCount(-1) {}
+ StanzaAck() : valid(false), handledStanzasCount(0) {}
- int getHandledStanzasCount() const {
+ unsigned int getHandledStanzasCount() const {
return handledStanzasCount;
}
void setHandledStanzasCount(int i) {
handledStanzasCount = i;
+ valid = true;
}
bool isValid() const {
- return handledStanzasCount != -1;
+ return valid;
}
private:
- int handledStanzasCount;
+ bool valid;
+ unsigned int handledStanzasCount;
};
}