From ad6dbbdf512d664a64dd67db81341d6beb16a117 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Thu, 8 Jul 2010 13:24:17 +0000 Subject: update MUC iqs for new QXmppIq API --- source/QXmppMucIq.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'source/QXmppMucIq.cpp') diff --git a/source/QXmppMucIq.cpp b/source/QXmppMucIq.cpp index 54f62820..7902d8e6 100644 --- a/source/QXmppMucIq.cpp +++ b/source/QXmppMucIq.cpp @@ -93,11 +93,8 @@ bool QXmppMucAdminIq::isMucAdminIq(const QDomElement &element) return (queryElement.namespaceURI() == ns_muc_admin); } -void QXmppMucAdminIq::parse(const QDomElement &element) +void QXmppMucAdminIq::parseElementFromChild(const QDomElement &element) { - QXmppStanza::parse(element); - setTypeFromStr(element.attribute("type")); - QDomElement queryElement = element.firstChildElement("query"); QDomElement child = queryElement.firstChildElement("item"); while (!child.isNull()) @@ -146,11 +143,8 @@ bool QXmppMucOwnerIq::isMucOwnerIq(const QDomElement &element) return (queryElement.namespaceURI() == ns_muc_owner); } -void QXmppMucOwnerIq::parse(const QDomElement &element) +void QXmppMucOwnerIq::parseElementFromChild(const QDomElement &element) { - QXmppStanza::parse(element); - setTypeFromStr(element.attribute("type")); - QDomElement queryElement = element.firstChildElement("query"); m_form.parse(queryElement.firstChildElement("x")); } -- cgit v1.2.3