summaryrefslogtreecommitdiffstats
blob: 290c5858d6966eef0a6ffc5097ff142c24f1179e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*
 * Copyright (c) 2011 Kevin Smith
 * Licensed under the GNU General Public License v3.
 * See Documentation/Licenses/GPLv3.txt for more information.
 */

#pragma once

#include <string>

#include <Swiften/Elements/Payload.h>
#include <Swiften/JID/JID.h>

namespace Swift {
	class MUCInvitationPayload : public Payload {
		public:
			typedef boost::shared_ptr<MUCInvitationPayload> ref;
			MUCInvitationPayload() : continuation_(false), impromptu_(false) {
			}

			void setIsContinuation(bool b) {
				continuation_ = b;
			}

			bool getIsContinuation() const {
				return continuation_;
			}

			void setIsImpromptu(bool b) {
				impromptu_ = b;
			}

			bool getIsImpromptu() const {
				return impromptu_;
			}

			void setJID(const JID& jid) {
				jid_ = jid;
			}

			const JID& getJID() const {
				return jid_;
			}

			void setPassword(const std::string& password) {
				password_ = password;
			}

			const std::string& getPassword() const {
				return password_;
			}

			void setReason(const std::string& text) {
				reason_ = text;
			}

			const std::string& getReason() const {
				return reason_;
			}

			void setThread(const std::string& thread) {
				thread_ = thread;
			}

			const std::string& getThread() const {
				return thread_;
			}

		private:
			bool continuation_;
			bool impromptu_;
			JID jid_;
			std::string password_;
			std::string reason_;
			std::string thread_;
	};
}