From 2d7fe115b763f1f030dce7d0082ae976458c5761 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Thu, 4 Mar 2010 07:31:28 +0000 Subject: cleanup QXmppMessage accessors --- source/QXmppMessage.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'source/QXmppMessage.h') diff --git a/source/QXmppMessage.h b/source/QXmppMessage.h index c4e2809d..92b55478 100644 --- a/source/QXmppMessage.h +++ b/source/QXmppMessage.h @@ -55,24 +55,31 @@ public: const QString& body = "", const QString& thread = ""); ~QXmppMessage(); - QXmppMessage::Type getType() const; + QXmppMessage::Type type() const; void setType(QXmppMessage::Type); - QXmppMessage::State getState() const; + QXmppMessage::State state() const; void setState(QXmppMessage::State); - QString getBody() const; + QString body() const; void setBody(const QString&); - QString getSubject() const; + QString subject() const; void setSubject(const QString&); - QString getThread() const; + QString thread() const; void setThread(const QString&); void parse(QDomElement &element); void toXml(QXmlStreamWriter *writer) const; + // deprecated accessors, use the form without "get" instead + QXmppMessage::Type Q_DECL_DEPRECATED getType() const; + QXmppMessage::State Q_DECL_DEPRECATED getState() const; + QString Q_DECL_DEPRECATED getBody() const; + QString Q_DECL_DEPRECATED getSubject() const; + QString Q_DECL_DEPRECATED getThread() const; + private: QString getTypeStr() const; void setTypeFromStr(const QString&); -- cgit v1.2.3