• Main Page
  • Classes
  • Files
  • File List

Swiften/Elements/MUCOwnerPayload.h

00001 /*
00002  * Copyright (c) 2010 Kevin Smith
00003  * Licensed under the GNU General Public License v3.
00004  * See Documentation/Licenses/GPLv3.txt for more information.
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 }

Generated on Fri Oct 12 2012 21:00:19 for Swiften by  doxygen 1.7.1