QXmpp Version: 1.5.6
|
Public Types | |
enum | Affiliation { None , Member , Outcast , Owner , Publisher , PublishOnly } |
Public Member Functions | |
QXmppPubSubAffiliation (Affiliation=None, const QString &node={}, const QString &jid={}) | |
QXmppPubSubAffiliation (const QXmppPubSubAffiliation &) | |
Copy constructor. | |
QXmppPubSubAffiliation (QXmppPubSubAffiliation &&) | |
Move-constructor. | |
QXmppPubSubAffiliation & | operator= (const QXmppPubSubAffiliation &) |
Assignment operator. | |
QXmppPubSubAffiliation & | operator= (QXmppPubSubAffiliation &&) |
Move-assignment operator. | |
Affiliation | type () const |
void | setType (Affiliation type) |
QString | node () const |
void | setNode (const QString &node) |
QString | jid () const |
void | setJid (const QString &jid) |
Static Public Member Functions | |
static bool | isAffiliation (const QDomElement &) |
This class represents an affiliation of a user with a PubSub node as defined in XEP-0060: Publish-Subscribe.
This enum describes the type of the affiliation of the user with the node.
QXmppPubSubAffiliation::QXmppPubSubAffiliation | ( | Affiliation | type = None , |
const QString & | node = {} , |
||
const QString & | jid = {} |
||
) |
Default constructor.
|
static |
Returns true if the DOM element is a PubSub affiliation.
QString QXmppPubSubAffiliation::jid | ( | ) | const |
Returns the JID of the user.
QString QXmppPubSubAffiliation::node | ( | ) | const |
Returns the node name of the node the affiliation belongs to.
void QXmppPubSubAffiliation::setJid | ( | const QString & | jid | ) |
Sets the JID of the user.
void QXmppPubSubAffiliation::setNode | ( | const QString & | node | ) |
Sets the node name.
void QXmppPubSubAffiliation::setType | ( | Affiliation | type | ) |
Sets the type of the affiliation.
QXmppPubSubAffiliation::Affiliation QXmppPubSubAffiliation::type | ( | ) | const |
Returns the type of the affiliation.