13#include <QSharedDataPointer>
15class QXmppRosterIqPrivate;
53 QString bareJid()
const;
54 QSet<QString> groups()
const;
56 QString subscriptionStatus()
const;
58 bool isApproved()
const;
60 void setBareJid(
const QString &);
61 void setGroups(
const QSet<QString> &);
62 void setName(
const QString &);
63 void setSubscriptionStatus(
const QString &);
65 void setIsApproved(
bool);
68 bool isMixChannel()
const;
69 void setIsMixChannel(
bool);
71 QString mixParticipantId()
const;
72 void setMixParticipantId(
const QString &);
75 void parse(
const QDomElement &element);
76 void toXml(QXmlStreamWriter *writer)
const;
80 QString getSubscriptionTypeStr()
const;
81 void setSubscriptionTypeFromStr(
const QString &);
83 QSharedDataPointer<ItemPrivate> d;
94 QString version()
const;
95 void setVersion(
const QString &);
97 void addItem(
const Item &);
98 QList<Item> items()
const;
101 bool mixAnnotate()
const;
102 void setMixAnnotate(
bool);
105 static bool isRosterIq(
const QDomElement &element);
110 void parseElementFromChild(
const QDomElement &element)
override;
111 void toXmlElementFromChild(QXmlStreamWriter *writer)
const override;
115 QSharedDataPointer<QXmppRosterIqPrivate> d;
The QXmppIq class is the base class for all IQs.
Definition QXmppIq.h:23
virtual void parse(const QDomElement &)=0
virtual void toXml(QXmlStreamWriter *writer) const =0
The QXmppRosterIq::Item class represents a roster entry.
Definition QXmppRosterIq.h:28
SubscriptionType
An enumeration for type of subscription with the bareJid in the roster.
Definition QXmppRosterIq.h:31
Item(Item &&)
Default move-constructor.
Item & operator=(const Item &other)
Default assignment operator.
Item & operator=(Item &&)
Default assignment operator.
Item(const Item &other)
Default copy-constructor.
The QXmppRosterIq class represents a roster IQ.
Definition QXmppRosterIq.h:22
QXmppRosterIq(const QXmppRosterIq &)
Default copy-constructor.
QXmppRosterIq & operator=(const QXmppRosterIq &)
Default assignment operator.
QXmppRosterIq & operator=(QXmppRosterIq &&)
Default move-assignment operator.
QXmppRosterIq(QXmppRosterIq &&)
Default move-constructor.