ChannelAffiliation Class Reference

#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.

Member Enumeration Documentation

Enum Affiliation

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.

EnumeratorValueDescription
Owner0
Publisher
PublishOnly
Member
None
Outcast

Constructor & Destructor Documentation

ChannelAffiliation ( )

ChannelAffiliation()

Constructor Creates the ChannelAffiliationData object.

ChannelAffiliation ( const ChannelAffiliation & )

ChannelAffiliation(const ChannelAffiliation &other)

Copy Constructor.

other - ChannelAffiliation class type parameter

~ChannelAffiliation ( )

~ChannelAffiliation()[virtual]

Destructor.

Member Function Documentation

affiliation ( )

Affiliation affiliation()const

Returns channel affiliation type.

Return Value
ChannelAffiliation::Affiliation

jid ( )

Jid jid()const

Returns jid.

operator= ( const ChannelAffiliation & )

ChannelAffiliation &operator=(const ChannelAffiliation &other)

Operator =, protect against self-assignment.

setAffiliation ( Affiliation )

voidsetAffiliation(Affiliationid)

Method used for setting affiliation type.

affiliation - Affiliation type parameter.

ChannelAffiliation::Affiliation

See also: affiliation()

setJid ( const Jid & )

voidsetJid(const Jid &id)

Method used for setting jid.

id - Jid& type parameter.