diff options
| author | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-03-04 18:54:36 +0000 |
|---|---|---|
| committer | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-03-04 18:54:36 +0000 |
| commit | 7fcca9ddacac1abd8002e8c478b1d1e092e85a89 (patch) | |
| tree | ce4455a7f9550f43891662a8cefe6a2f0c9fc04f /source | |
| parent | bc53ec18864eb93ae108c2c6bec943b8f8989b94 (diff) | |
| download | qxmpp-7fcca9ddacac1abd8002e8c478b1d1e092e85a89.tar.gz | |
API cleanup: accessors naming
Diffstat (limited to 'source')
| -rw-r--r-- | source/QXmppBind.cpp | 13 | ||||
| -rw-r--r-- | source/QXmppBind.h | 10 |
2 files changed, 19 insertions, 4 deletions
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; |
