24 #ifndef QXMPPELEMENT_H
25 #define QXMPPELEMENT_H
28 #include <QStringList>
29 #include <QXmlStreamWriter>
31 #include "QXmppGlobal.h"
35 class QXmppElementPrivate;
37 typedef QList<QXmppElement> QXmppElementList;
38 class QXMPP_EXPORT QXmppElement
42 QXmppElement(
const QXmppElement &other);
43 QXmppElement(
const QDomElement &element);
46 QStringList attributeNames()
const;
48 QString attribute(
const QString &name)
const;
49 void setAttribute(
const QString &name,
const QString &value);
51 void appendChild(
const QXmppElement &child);
52 QXmppElement firstChildElement(
const QString &name = QString())
const;
53 QXmppElement nextSiblingElement(
const QString &name = QString())
const;
54 void removeChild(
const QXmppElement &child);
56 QString tagName()
const;
57 void setTagName(
const QString &type);
59 QString value()
const;
60 void setValue(
const QString &text);
63 void toXml(QXmlStreamWriter *writer)
const;
65 QXmppElement &operator=(
const QXmppElement &other);
68 QXmppElement(QXmppElementPrivate *other);
69 QXmppElementPrivate *d;