diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-07-21 21:15:44 +0200 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-07-21 21:15:44 +0200 |
| commit | c75eb544afb18c05be83d04626fc02e3ed2eb603 (patch) | |
| tree | 4d2d04fea4cba60166d0ee867927635b345128d9 /src/base/QXmppMessage.h | |
| parent | fbd08d4872f7d6820c247621465716fd0be11eda (diff) | |
| download | qxmpp-c75eb544afb18c05be83d04626fc02e3ed2eb603.tar.gz | |
make QXmppMessage use implicit data sharing
Diffstat (limited to 'src/base/QXmppMessage.h')
| -rw-r--r-- | src/base/QXmppMessage.h | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/src/base/QXmppMessage.h b/src/base/QXmppMessage.h index 8bb6b835..c0ac487a 100644 --- a/src/base/QXmppMessage.h +++ b/src/base/QXmppMessage.h @@ -28,6 +28,8 @@ #include <QDateTime> #include "QXmppStanza.h" +class QXmppMessagePrivate; + /// \brief The QXmppMessage class represents an XMPP message. /// /// \ingroup Stanzas @@ -60,8 +62,11 @@ public: QXmppMessage(const QString& from = "", const QString& to = "", const QString& body = "", const QString& thread = ""); + QXmppMessage(const QXmppMessage &other); ~QXmppMessage(); + QXmppMessage& operator=(const QXmppMessage &other); + QString body() const; void setBody(const QString&); @@ -98,29 +103,7 @@ public: /// \endcond private: - /// This enum describe a type of message timestamp. - enum StampType - { - LegacyDelayedDelivery, ///< XEP-0091: Legacy Delayed Delivery - DelayedDelivery, ///< XEP-0203: Delayed Delivery - }; - - Type m_type; - QDateTime m_stamp; - StampType m_stampType; - State m_state; - - bool m_attentionRequested; - QString m_body; - QString m_subject; - QString m_thread; - - // XEP-0071: XHTML-IM - QString m_xhtml; - - // Request message receipt as per XEP-0184. - QString m_receiptId; - bool m_receiptRequested; + QSharedDataPointer<QXmppMessagePrivate> d; }; #endif // QXMPPMESSAGE_H |
