From 5a764007436eac8416a2d567bbc5e0a56ffc4240 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Fri, 12 Feb 2010 09:21:28 +0000 Subject: add support for nest QXmppElements --- source/QXmppElement.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source/QXmppElement.h') diff --git a/source/QXmppElement.h b/source/QXmppElement.h index ca1159ba..74f8150c 100644 --- a/source/QXmppElement.h +++ b/source/QXmppElement.h @@ -25,7 +25,7 @@ #define QXMPPELEMENT_H #include -#include +#include #include class QDomElement; @@ -36,9 +36,14 @@ public: QXmppElement(); QXmppElement(const QDomElement &element); + QStringList attributeNames() const; + QString attribute(const QString &name) const; void setAttribute(const QString &name, const QString &value); + QList children() const; + void setChildren(QList &children); + QString tagName() const; void setTagName(const QString &type); @@ -46,6 +51,7 @@ public: private: QMap m_attributes; + QList m_children; QString m_tagName; }; -- cgit v1.2.3