aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppIq.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-03-04 07:50:38 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-03-04 07:50:38 +0000
commitf3c8579fd664461f529d2fe4713093596ba9ff97 (patch)
tree9e637d7fb763a4298a2cf6564c8ccb20e717574c /source/QXmppIq.cpp
parentcc55b18c8fc24dd2249d24748ef256e85033177b (diff)
downloadqxmpp-f3c8579fd664461f529d2fe4713093596ba9ff97.tar.gz
cleanup QXmppIq accessors
Diffstat (limited to 'source/QXmppIq.cpp')
-rw-r--r--source/QXmppIq.cpp13
1 files changed, 10 insertions, 3 deletions
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;
+}
+