5#ifndef QXMPPPUBSUBAFFILIATION_H
6#define QXMPPPUBSUBAFFILIATION_H
8#include "QXmppGlobal.h"
11#include <QSharedDataPointer>
13class QXmppPubSubAffiliationPrivate;
15class QXmlStreamWriter;
34 const QString &node = {},
35 const QString &jid = {});
47 void setNode(
const QString &node);
50 void setJid(
const QString &jid);
52 static bool isAffiliation(
const QDomElement &);
55 void parse(
const QDomElement &);
56 void toXml(QXmlStreamWriter *)
const;
60 QSharedDataPointer<QXmppPubSubAffiliationPrivate> d;
Definition QXmppPubSubAffiliation.h:18
QXmppPubSubAffiliation(const QXmppPubSubAffiliation &)
Copy constructor.
QXmppPubSubAffiliation & operator=(QXmppPubSubAffiliation &&)
Move-assignment operator.
QXmppPubSubAffiliation & operator=(const QXmppPubSubAffiliation &)
Assignment operator.
QXmppPubSubAffiliation(QXmppPubSubAffiliation &&)
Move-constructor.
Affiliation
Definition QXmppPubSubAffiliation.h:24
@ None
No affiliation, but may subscribe.
Definition QXmppPubSubAffiliation.h:25
@ Member
Active member, is subscribed, can read.
Definition QXmppPubSubAffiliation.h:26
@ Publisher
May read and publish, but cannot configure node.
Definition QXmppPubSubAffiliation.h:29
@ Outcast
Cannot subscribe, cannot read, 'banned'.
Definition QXmppPubSubAffiliation.h:27
@ Owner
Highest privileges, can read, publish & configure.
Definition QXmppPubSubAffiliation.h:28
@ PublishOnly
Can only publish, cannot subscribe.
Definition QXmppPubSubAffiliation.h:30