From c17e68b620c8f721d771aed5f2096597bc2cb0d1 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Sun, 5 May 2019 13:31:55 +0200 Subject: QXmppStanza::Error: Use d-pointer to maintain binary compat in future --- src/base/QXmppStanza.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/base/QXmppStanza.h') diff --git a/src/base/QXmppStanza.h b/src/base/QXmppStanza.h index 713435c1..eda8c04d 100644 --- a/src/base/QXmppStanza.h +++ b/src/base/QXmppStanza.h @@ -80,6 +80,7 @@ private: }; class QXmppStanzaPrivate; +class QXmppStanzaErrorPrivate; /// \defgroup Stanzas @@ -129,8 +130,12 @@ public: }; Error(); + Error(const Error &); Error(Type type, Condition cond, const QString& text = QString()); Error(const QString& type, const QString& cond, const QString& text = QString()); + ~Error(); + + Error &operator=(const Error &); int code() const; void setCode(int code); @@ -156,10 +161,7 @@ public: QString getTypeStr() const; void setTypeFromStr(const QString& type); - int m_code; - Type m_type; - Condition m_condition; - QString m_text; + QSharedDataPointer d; }; QXmppStanza(const QString& from = QString(), const QString& to = QString()); -- cgit v1.2.3