aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/QXmppMucIq.cpp10
-rw-r--r--source/QXmppMucIq.h8
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: