From f3c8579fd664461f529d2fe4713093596ba9ff97 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Thu, 4 Mar 2010 07:50:38 +0000 Subject: cleanup QXmppIq accessors --- source/QXmppIq.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'source/QXmppIq.cpp') diff --git a/source/QXmppIq.cpp b/source/QXmppIq.cpp index dc8c2a48..601092b4 100644 --- a/source/QXmppIq.cpp +++ b/source/QXmppIq.cpp @@ -46,7 +46,7 @@ QXmppIq::~QXmppIq() } -QXmppIq::Type QXmppIq::getType() const +QXmppIq::Type QXmppIq::type() const { return m_type; } @@ -97,7 +97,7 @@ void QXmppIq::toXmlElementFromChild( QXmlStreamWriter *writer ) const QString QXmppIq::getTypeStr() const { - switch(getType()) + switch(m_type) { case QXmppIq::Error: return "error"; @@ -108,7 +108,7 @@ QString QXmppIq::getTypeStr() const case QXmppIq::Result: return "result"; default: - qWarning("QXmppIq::getTypeStr() invalid type %d", (int)getType()); + qWarning("QXmppIq::getTypeStr() invalid type %d", (int)m_type); return ""; } } @@ -144,3 +144,10 @@ void QXmppIq::setTypeFromStr(const QString& str) } } +// deprecated + +QXmppIq::Type QXmppIq::getType() const +{ + return m_type; +} + -- cgit v1.2.3