#include <mw/messagingbus/channelaffiliation.h>
class ChannelAffiliation |
MB channelaffiliation is an list item in affiliation list and contains affiliation and JID of the channel affiliation.
Public Member Enumerations | |
---|---|
enum | Affiliation { Owner, Publisher, PublishOnly, Member, ..., Outcast } |
Public Member Functions | |
---|---|
ChannelAffiliation() | |
ChannelAffiliation(const ChannelAffiliation &) | |
virtual | ~ChannelAffiliation() |
Affiliation | affiliation() |
Jid | jid() |
ChannelAffiliation & | operator=(const ChannelAffiliation &) |
void | setAffiliation(Affiliation) |
void | setJid(const Jid &) |
MB channel affiliation type.
Owner Owner of channel. Publisher Publisher, cannot configure or delete node. PublishOnly Publisher only, cannot subcribe or retrieve. Member Subscribe and retrieve. Cannot publish. None Only subscribe. Outcast Default value in the constructor, no affiliation.
ChannelAffiliation | ( | const ChannelAffiliation & | other | ) |
Copy Constructor.
other - ChannelAffiliation class type parameter
Affiliation | affiliation | ( | ) | const |
Returns channel affiliation type.
ChannelAffiliation & | operator= | ( | const ChannelAffiliation & | other | ) |
Operator =, protect against self-assignment.
void | setAffiliation | ( | Affiliation | id | ) |
Method used for setting affiliation type.
affiliation - Affiliation type parameter.
ChannelAffiliation::Affiliation
See also: affiliation()