summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Elements/DeliveryReceipt.h')
-rw-r--r--Swiften/Elements/DeliveryReceipt.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/Swiften/Elements/DeliveryReceipt.h b/Swiften/Elements/DeliveryReceipt.h
new file mode 100644
index 0000000..927da73
--- /dev/null
+++ b/Swiften/Elements/DeliveryReceipt.h
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) 2011 Tobias Markmann
+ * Licensed under the BSD license.
+ * See http://www.opensource.org/licenses/bsd-license.php for more information.
+ */
+
+#pragma once
+
+#include <Swiften/Elements/Payload.h>
+
+namespace Swift {
+
+class DeliveryReceipt : public Payload {
+ public:
+ typedef boost::shared_ptr<DeliveryReceipt> ref;
+
+ public:
+ DeliveryReceipt() {}
+
+ DeliveryReceipt(const std::string& msgId) : receivedID_(msgId) {}
+
+ void setReceivedID(const std::string& msgId) {
+ receivedID_ = msgId;
+ }
+
+ std::string getReceivedID() const {
+ return receivedID_;
+ }
+
+ private:
+ std::string receivedID_;
+};
+
+}