blob: 3c89e68a6f31d38e0b49fb60f710fb1bf940e8a4 (
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
|
/*
* Copyright (c) 2011-2016 Isode Limited.
* All rights reserved.
* See the COPYING file for more information.
*/
#pragma once
#include <Swiften/Elements/MUCOccupant.h>
#include <Swiften/JID/JID.h>
namespace Swift {
struct MUCItem {
MUCItem() {}
MUCItem(MUCOccupant::Affiliation affiliation, const JID& jid, MUCOccupant::Role role) : realJID(jid), affiliation(affiliation), role(role) {}
MUCItem(MUCOccupant::Affiliation affiliation, MUCOccupant::Role role) : affiliation(affiliation), role(role) {}
boost::optional<JID> realJID;
boost::optional<std::string> nick;
boost::optional<MUCOccupant::Affiliation> affiliation;
boost::optional<MUCOccupant::Role> role;
boost::optional<JID> actor;
boost::optional<std::string> reason;
};
}
|