From db8440865fe73618dcc2da70f885eb892623d66a Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Thu, 4 Mar 2010 06:49:18 +0000 Subject: start cleaning up accessor names --- source/QXmppStanza.h | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'source/QXmppStanza.h') diff --git a/source/QXmppStanza.h b/source/QXmppStanza.h index 024264ab..50b38b23 100644 --- a/source/QXmppStanza.h +++ b/source/QXmppStanza.h @@ -104,17 +104,23 @@ public: QXmppStanza(const QString& from = "", const QString& to = ""); ~QXmppStanza(); - QString getTo() const; - QString getFrom() const; - QString getId() const; - QString getLang() const; - QXmppStanza::Error getError() const; + // deprecated accessors, use the form without "get" instead + QString Q_DECL_DEPRECATED getTo() const; + QString Q_DECL_DEPRECATED getFrom() const; + QString Q_DECL_DEPRECATED getId() const; + QString Q_DECL_DEPRECATED getLang() const; + QXmppStanza::Error Q_DECL_DEPRECATED getError() const; + + QString to() const; + QString from() const; + QString id() const; + QString lang() const; + QXmppStanza::Error error() const; QXmppElementList extensions() const; void setTo(const QString&); void setFrom(const QString&); void setId(const QString&); - void generateAndSetNextId(); void setLang(const QString&); void setError(QXmppStanza::Error& error); void setExtensions(const QXmppElementList &elements); @@ -123,6 +129,9 @@ public: // FIXME : make this method protected static QXmppStanza::Error parseError(const QDomElement&); +protected: + void generateAndSetNextId(); + private: static uint s_uniqeIdNo; QString m_to; -- cgit v1.2.3