summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2011-09-28 16:47:30 (GMT)
committerKevin Smith <git@kismith.co.uk>2011-09-28 16:47:30 (GMT)
commit7b8860c794419b63f827c9b87fbc469a1bcd58ef (patch)
tree218b3544e7b8030186dcfd3558c144d8bce2b655 /Swiften/Elements
parent1daf22de85758cfd035f1fcf6a70007315db4f28 (diff)
downloadswift-7b8860c794419b63f827c9b87fbc469a1bcd58ef.zip
swift-7b8860c794419b63f827c9b87fbc469a1bcd58ef.tar.bz2
Missing File
Diffstat (limited to 'Swiften/Elements')
-rw-r--r--Swiften/Elements/MUCDestroyPayload.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/Swiften/Elements/MUCDestroyPayload.h b/Swiften/Elements/MUCDestroyPayload.h
new file mode 100644
index 0000000..f743ad0
--- /dev/null
+++ b/Swiften/Elements/MUCDestroyPayload.h
@@ -0,0 +1,42 @@
+/*
+ * Copyright (c) 2011 Kevin Smith
+ * Licensed under the GNU General Public License v3.
+ * See Documentation/Licenses/GPLv3.txt for more information.
+ */
+
+#pragma once
+
+#include <string>
+
+#include <Swiften/Elements/Payload.h>
+#include <Swiften/JID/JID.h>
+
+namespace Swift {
+ class MUCDestroyPayload : public Payload {
+ public:
+ typedef boost::shared_ptr<MUCDestroyPayload> ref;
+
+ MUCDestroyPayload() {
+ }
+
+ void setNewVenue(const JID& jid) {
+ newVenue_ = jid;
+ }
+
+ const JID& getNewVenue() const {
+ return newVenue_;
+ }
+
+ void setReason(const std::string& reason) {
+ reason_ = reason;
+ }
+
+ const std::string& getReason() const {
+ return reason_;
+ }
+
+ private:
+ JID newVenue_;
+ std::string reason_;
+ };
+}