summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-09-13 21:18:44 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-09-13 21:26:44 (GMT)
commit6efbed866f78e0bdd685817d9ed80405a2bf55d7 (patch)
tree99edb5ecd8ea715f8a52579b7b7fb6627ced1d84 /Swiften/Elements
parent30c3130def563b76c18f6bc91bd527ef1ba092be (diff)
downloadswift-contrib-6efbed866f78e0bdd685817d9ed80405a2bf55d7.zip
swift-contrib-6efbed866f78e0bdd685817d9ed80405a2bf55d7.tar.bz2
When joining a new room, create an instant room.
Resolves: #112
Diffstat (limited to 'Swiften/Elements')
-rw-r--r--Swiften/Elements/MUCOwnerPayload.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/Swiften/Elements/MUCOwnerPayload.h b/Swiften/Elements/MUCOwnerPayload.h
new file mode 100644
index 0000000..c418cc6
--- /dev/null
+++ b/Swiften/Elements/MUCOwnerPayload.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2010 Kevin Smith
+ * Licensed under the GNU General Public License v3.
+ * See Documentation/Licenses/GPLv3.txt for more information.
+ */
+
+#pragma once
+
+#include <boost/optional.hpp>
+
+#include "Swiften/Elements/Payload.h"
+
+namespace Swift {
+ class MUCOwnerPayload : public Payload {
+ public:
+ MUCOwnerPayload() {
+ }
+
+ boost::shared_ptr<Payload> getPayload() const {
+ return payload;
+ }
+
+ void setPayload(boost::shared_ptr<Payload> p) {
+ payload = p;
+ }
+
+ private:
+ boost::shared_ptr<Payload> payload;
+ };
+}