blob: 611c26b2fb7826592d586314e264313f578cdcf0 (
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
|
#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
|