diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-08-03 14:39:21 +0200 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-08-03 14:39:21 +0200 |
| commit | 96c449cd837fc141a0ee3fede727f58b7b4fb2d6 (patch) | |
| tree | 9d877445da80a3a37b12244139aafe6184c58c28 /src/base/QXmppIq.h | |
| parent | 02929ceb4d2c07606ed4fa81db66733d2ad8c872 (diff) | |
| download | qxmpp-96c449cd837fc141a0ee3fede727f58b7b4fb2d6.tar.gz | |
make QXmppIq use pimpl + implicit data sharing
Diffstat (limited to 'src/base/QXmppIq.h')
| -rw-r--r-- | src/base/QXmppIq.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/base/QXmppIq.h b/src/base/QXmppIq.h index 41e42af3..785bcc6c 100644 --- a/src/base/QXmppIq.h +++ b/src/base/QXmppIq.h @@ -33,6 +33,8 @@ // for an explanation. #include <QXmlStreamWriter> +class QXmppIqPrivate; + /// \brief The QXmppIq class is the base class for all IQs. /// /// \ingroup Stanzas @@ -50,6 +52,10 @@ public: }; QXmppIq(QXmppIq::Type type = QXmppIq::Get); + QXmppIq(const QXmppIq &other); + ~QXmppIq(); + + QXmppIq& operator=(const QXmppIq &other); QXmppIq::Type type() const; void setType(QXmppIq::Type); @@ -64,7 +70,7 @@ protected: /// \endcond private: - Type m_type; + QSharedDataPointer<QXmppIqPrivate> d; }; #endif // QXMPPIQ_H |
