diff options
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 |
