8#include "QXmppDataForm.h"
22 UnspecifiedAffiliation,
42 QString actor()
const;
43 void setActor(
const QString &actor);
45 Affiliation affiliation()
const;
46 void setAffiliation(Affiliation affiliation);
49 void setJid(
const QString &jid);
52 void setNick(
const QString &nick);
54 QString reason()
const;
55 void setReason(
const QString &reason);
58 void setRole(Role role);
61 void parse(
const QDomElement &element);
62 void toXml(QXmlStreamWriter *writer)
const;
64 static Affiliation affiliationFromString(
const QString &affiliationStr);
65 static QString affiliationToString(Affiliation affiliation);
66 static Role roleFromString(
const QString &roleStr);
67 static QString roleToString(Role role);
71 Affiliation m_affiliation;
88 QList<QXmppMucItem> items()
const;
89 void setItems(
const QList<QXmppMucItem> &items);
92 static bool isMucAdminIq(
const QDomElement &element);
97 void parseElementFromChild(
const QDomElement &element)
override;
98 void toXmlElementFromChild(QXmlStreamWriter *writer)
const override;
102 QList<QXmppMucItem> m_items;
120 static bool isMucOwnerIq(
const QDomElement &element);
125 void parseElementFromChild(
const QDomElement &element)
override;
126 void toXmlElementFromChild(QXmlStreamWriter *writer)
const override;
The QXmppIq class is the base class for all IQs.
Definition: QXmppIq.h:23
The QXmppMucAdminIq class represents a chat room administration IQ as defined by XEP-0045: Multi-User...
Definition: QXmppMucIq.h:86
The QXmppMucItem class represents a chat room "item".
Definition: QXmppMucIq.h:18
Affiliation
This enum is used to represent long-lived permissions in a room (affiliations).
Definition: QXmppMucIq.h:21
Role
This enum is used to represent short-lived permissions in a room (roles).
Definition: QXmppMucIq.h:31
The QXmppMucOwnerIq class represents a chat room configuration IQ as defined by XEP-0045: Multi-User ...
Definition: QXmppMucIq.h:114