13#include <QSharedDataPointer>
15namespace QXmpp::Private {
19class QXmppRosterIqPrivate;
58 QString bareJid()
const;
59 QSet<QString> groups()
const;
61 QString subscriptionStatus()
const;
63 bool isApproved()
const;
65 void setBareJid(
const QString &);
66 void setGroups(
const QSet<QString> &);
67 void setName(
const QString &);
68 void setSubscriptionStatus(
const QString &);
70 void setIsApproved(
bool);
73 bool isMixChannel()
const;
74 void setIsMixChannel(
bool);
76 QString mixParticipantId()
const;
77 void setMixParticipantId(
const QString &);
80 void parse(
const QDomElement &element);
81 void toXml(QXmlStreamWriter *writer)
const;
85 friend struct QXmpp::Private::RosterData;
87 void toXml(QXmlStreamWriter *writer,
bool external)
const;
89 QString getSubscriptionTypeStr()
const;
90 void setSubscriptionTypeFromStr(
const QString &);
92 QSharedDataPointer<ItemPrivate> d;
103 QString version()
const;
104 void setVersion(
const QString &);
106 QList<Item> items()
const;
107 void setItems(
const QList<Item> &);
108 void addItem(
const Item &);
111 bool mixAnnotate()
const;
112 void setMixAnnotate(
bool);
115 static bool isRosterIq(
const QDomElement &element);
120 void parseElementFromChild(
const QDomElement &element)
override;
121 void toXmlElementFromChild(QXmlStreamWriter *writer)
const override;
125 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:33
SubscriptionType
An enumeration for type of subscription with the bareJid in the roster.
Definition: QXmppRosterIq.h:36
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:27
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.