diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-07-08 13:24:17 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-07-08 13:24:17 +0000 |
| commit | ad6dbbdf512d664a64dd67db81341d6beb16a117 (patch) | |
| tree | e029ed8abf4abb82588a7c70c4083c03b2c1bf20 /source | |
| parent | 41c8502e6a751afc22122a8854af15a67bebbc50 (diff) | |
| download | qxmpp-ad6dbbdf512d664a64dd67db81341d6beb16a117.tar.gz | |
update MUC iqs for new QXmppIq API
Diffstat (limited to 'source')
| -rw-r--r-- | source/QXmppMucIq.cpp | 10 | ||||
| -rw-r--r-- | source/QXmppMucIq.h | 8 |
2 files changed, 8 insertions, 10 deletions
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")); } diff --git a/source/QXmppMucIq.h b/source/QXmppMucIq.h index 2dd7b7c5..6efa0c22 100644 --- a/source/QXmppMucIq.h +++ b/source/QXmppMucIq.h @@ -69,7 +69,9 @@ public: void setItems(const QList<QXmppMucAdminIq::Item> &items); static bool isMucAdminIq(const QDomElement &element); - void parse(const QDomElement &element); + +protected: + void parseElementFromChild(const QDomElement &element); void toXmlElementFromChild(QXmlStreamWriter *writer) const; private: @@ -91,7 +93,9 @@ public: void setForm(const QXmppDataForm &form); static bool isMucOwnerIq(const QDomElement &element); - void parse(const QDomElement &element); + +protected: + void parseElementFromChild(const QDomElement &element); void toXmlElementFromChild(QXmlStreamWriter *writer) const; private: |
