summaryrefslogtreecommitdiffstats
blob: e0c7bcbe7e4181933bb56a5b61cf879a9802f75d (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
/*
 * Copyright (c) 2010 Remko Tronçon
 * Licensed under the GNU General Public License v3.
 * See Documentation/Licenses/GPLv3.txt for more information.
 */

#ifndef SWIFTEN_SecurityLabelsCatalog_H
#define SWIFTEN_SecurityLabelsCatalog_H

#include <vector>

#include "Swiften/JID/JID.h"
#include "Swiften/Base/String.h"
#include "Swiften/Elements/Payload.h"
#include "Swiften/Elements/SecurityLabel.h"

namespace Swift {
	class SecurityLabelsCatalog : public Payload {
		public:
			SecurityLabelsCatalog(const JID& to = JID()) : to_(to) {}

			const std::vector<SecurityLabel>& getLabels() const {
				return labels_;
			}

			void addLabel(const SecurityLabel& label) {
				labels_.push_back(label);
			}

			const JID& getTo() const {
				return to_;
			}

			void setTo(const JID& to) {
				to_ = to;
			}

			const String& getName() const {
				return name_;
			}

			void setName(const String& name) {
				name_ = name;
			}

			const String& getDescription() const {
				return description_;
			}

			void setDescription(const String& description) {
				description_ = description;
			}

		private:
			JID to_;
			String name_;
			String description_;
			std::vector<SecurityLabel> labels_;
	};
}

#endif