summaryrefslogtreecommitdiffstats
blob: 439e716fc2be9554f25f059db69c9f21fde41321 (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
#pragma once

#include <boost/optional.hpp>

#include "Swiften/Base/String.h"
#include "Swiften/JID/JID.h"

namespace Swift {
	class MUCBookmark {
		public:
			MUCBookmark(const JID& room, const String& bookmarkName) : room_(room), name_(bookmarkName){};
			void setAutojoin(bool enabled) {autojoin_ = enabled;};
			void setNick(const boost::optional<String>& nick) {nick_ = nick;};
			void setPassword(const boost::optional<String>& password) {password_ = password;};
			bool getAutojoin() const {return autojoin_;};
			const boost::optional<String>& getNick() const {return nick_;};
			const boost::optional<String>& getPassword() const {return password_;};
			const String& getName() const {return name_;};
			const JID& getRoom() const {return room_;};
		private:
			JID room_;
			String name_;
			boost::optional<String> nick_;
			boost::optional<String> password_;
			bool autojoin_;
	};
}