diff options
| author | Linus Jahn <lnj@kaidan.im> | 2019-01-22 20:25:31 +0100 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2019-05-01 10:24:51 +0200 |
| commit | 5b97e23737eb970d65a68f7a2c45c92c38fe50eb (patch) | |
| tree | f7e68e00a280b504fa8ccde0686492b4dac6fd0f /src/base/QXmppRosterIq.h | |
| parent | 9df7e7f24a2a6c313e7367d596601e07dbd2baeb (diff) | |
| download | qxmpp-5b97e23737eb970d65a68f7a2c45c92c38fe50eb.tar.gz | |
roster iq: Make use of d-pointer
Diffstat (limited to 'src/base/QXmppRosterIq.h')
| -rw-r--r-- | src/base/QXmppRosterIq.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/base/QXmppRosterIq.h b/src/base/QXmppRosterIq.h index b2883557..6f6749c9 100644 --- a/src/base/QXmppRosterIq.h +++ b/src/base/QXmppRosterIq.h @@ -30,6 +30,8 @@ #include <QList> #include <QSet> +class QXmppRosterIqPrivate; + /// \brief The QXmppRosterIq class represents a roster IQ. /// /// \ingroup Stanzas @@ -37,6 +39,7 @@ class QXMPP_EXPORT QXmppRosterIq : public QXmppIq { public: + class ItemPrivate; /// \brief The QXmppRosterIq::Item class represents a roster entry. class QXMPP_EXPORT Item @@ -59,6 +62,10 @@ public: }; Item(); + ~Item(); + + Item& operator=(const Item &other); + QString bareJid() const; QSet<QString> groups() const; QString name() const; @@ -80,14 +87,12 @@ public: QString getSubscriptionTypeStr() const; void setSubscriptionTypeFromStr(const QString&); - QString m_bareJid; - SubscriptionType m_type; - QString m_name; - // can be subscribe/unsubscribe (attribute "ask") - QString m_subscriptionStatus; - QSet<QString> m_groups; + ItemPrivate *d; }; + QXmppRosterIq(); + ~QXmppRosterIq(); + QString version() const; void setVersion(const QString&); @@ -105,9 +110,7 @@ protected: /// \endcond private: - QList<Item> m_items; - // XEP-0237 Roster Versioning - QString m_version; + QXmppRosterIqPrivate *d; }; #endif // QXMPPROSTERIQ_H |
