From 7fcca9ddacac1abd8002e8c478b1d1e092e85a89 Mon Sep 17 00:00:00 2001 From: Manjeet Dahiya Date: Thu, 4 Mar 2010 18:54:36 +0000 Subject: API cleanup: accessors naming --- source/QXmppBind.cpp | 13 +++++++++++-- source/QXmppBind.h | 10 ++++++++-- 2 files changed, 19 insertions(+), 4 deletions(-) (limited to 'source') diff --git a/source/QXmppBind.cpp b/source/QXmppBind.cpp index 3742660b..df3f8066 100644 --- a/source/QXmppBind.cpp +++ b/source/QXmppBind.cpp @@ -42,12 +42,12 @@ QXmppBind::~QXmppBind() { } -QString QXmppBind::getJid() const +QString QXmppBind::jid() const { return m_jid; } -QString QXmppBind::getResource() const +QString QXmppBind::resource() const { return m_resource; } @@ -71,3 +71,12 @@ void QXmppBind::toXmlElementFromChild(QXmlStreamWriter *writer) const writer->writeEndElement(); } +QString QXmppBind::getJid() const +{ + return m_jid; +} + +QString QXmppBind::getResource() const +{ + return m_resource; +} diff --git a/source/QXmppBind.h b/source/QXmppBind.h index 4e8472d1..eb4062f6 100644 --- a/source/QXmppBind.h +++ b/source/QXmppBind.h @@ -34,11 +34,17 @@ public: QXmppBind(const QString& type); ~QXmppBind(); - QString getJid() const; - QString getResource() const; + QString jid() const; + QString resource() const; void setJid(const QString&); void setResource(const QString&); +// deprecated accessors, use the form without "get" instead +// obsolete start + QString Q_DECL_DEPRECATED getJid() const; + QString Q_DECL_DEPRECATED getResource() const; +// obsolete end + private: QString m_jid; QString m_resource; -- cgit v1.2.3