• Main Page
  • Classes
  • Files
  • File List

Swiften/Elements/MUCDestroyPayload.h

00001 /*
00002  * Copyright (c) 2011 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 <string>
00010 
00011 #include <Swiften/Elements/Payload.h>
00012 #include <Swiften/JID/JID.h>
00013 
00014 namespace Swift {
00015   class MUCDestroyPayload : public Payload {
00016     public:
00017       typedef boost::shared_ptr<MUCDestroyPayload> ref;
00018 
00019       MUCDestroyPayload() {
00020       }
00021 
00022       void setNewVenue(const JID& jid) {
00023         newVenue_ = jid;
00024       }
00025 
00026       const JID& getNewVenue() const {
00027         return newVenue_;
00028       }
00029 
00030       void setReason(const std::string& reason) {
00031         reason_ = reason;
00032       }
00033 
00034       const std::string& getReason() const {
00035         return reason_;
00036       }
00037 
00038     private:
00039       JID newVenue_;
00040       std::string reason_;
00041   };
00042 }

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