• Main Page
  • Classes
  • Files
  • File List

Swiften/Elements/MUCInvitationPayload.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 MUCInvitationPayload : public Payload {
00016     public:
00017       typedef boost::shared_ptr<MUCInvitationPayload> ref;
00018       MUCInvitationPayload() : continuation_(false) {
00019       }
00020 
00021       void setIsContinuation(bool b) {
00022         continuation_ = b;
00023       }
00024 
00025       bool getIsContinuation() const {
00026         return continuation_;
00027       }
00028 
00029       void setJID(const JID& jid) {
00030         jid_ = jid;
00031       }
00032 
00033       const JID& getJID() const {
00034         return jid_;
00035       }
00036 
00037       void setPassword(const std::string& password) {
00038         password_ = password;
00039       }
00040 
00041       const std::string& getPassword() const {
00042         return password_;
00043       }
00044 
00045       void setReason(const std::string& text) {
00046         reason_ = text;
00047       }
00048 
00049       const std::string& getReason() const {
00050         return reason_;
00051       }
00052 
00053       void setThread(const std::string& thread) {
00054         thread_ = thread;
00055       }
00056 
00057       const std::string& getThread() const {
00058         return thread_;
00059       }
00060 
00061     private:
00062       bool continuation_;
00063       JID jid_;
00064       std::string password_;
00065       std::string reason_;
00066       std::string thread_;
00067   };
00068 }

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