00001
00002
00003
00004
00005
00006
00007 #pragma once
00008
00009 #include <boost/optional.hpp>
00010
00011 #include <Swiften/Elements/Payload.h>
00012 #include <Swiften/Elements/Form.h>
00013
00014 namespace Swift {
00015 class MUCOwnerPayload : public Payload {
00016 public:
00017 typedef boost::shared_ptr<MUCOwnerPayload> ref;
00018
00019 MUCOwnerPayload() {
00020 }
00021
00022 boost::shared_ptr<Payload> getPayload() const {
00023 return payload;
00024 }
00025
00026 void setPayload(boost::shared_ptr<Payload> p) {
00027 payload = p;
00028 }
00029
00030 Form::ref getForm() {
00031 return boost::dynamic_pointer_cast<Form>(payload);
00032 }
00033
00034 private:
00035 boost::shared_ptr<Payload> payload;
00036 };
00037 }