summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Elements/StanzaAck.h')
-rw-r--r--Swiften/Elements/StanzaAck.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/Swiften/Elements/StanzaAck.h b/Swiften/Elements/StanzaAck.h
new file mode 100644
index 0000000..a1a39f8
--- /dev/null
+++ b/Swiften/Elements/StanzaAck.h
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2010 Remko Tronçon
+ * Licensed under the GNU General Public License v3.
+ * See Documentation/Licenses/GPLv3.txt for more information.
+ */
+
+#pragma once
+
+#include "Swiften/Elements/Element.h"
+#include "Swiften/Base/Shared.h"
+
+namespace Swift {
+ class StanzaAck : public Element, public Shared<StanzaAck> {
+ public:
+ StanzaAck() : handledStanzasCount(-1) {}
+
+ int getHandledStanzasCount() const {
+ return handledStanzasCount;
+ }
+
+ void setHandledStanzasCount(int i) {
+ handledStanzasCount = i;
+ }
+
+ bool isValid() const {
+ return handledStanzasCount != -1;
+ }
+
+ private:
+ int handledStanzasCount;
+ };
+}