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 QDomElement sourceDomElement()
const;
48 QStringList attributeNames()
const;
50 QString attribute(
const QString &name)
const;
51 void setAttribute(
const QString &name,
const QString &value);
53 void appendChild(
const QXmppElement &child);
54 QXmppElement firstChildElement(
const QString &name = QString())
const;
55 QXmppElement nextSiblingElement(
const QString &name = QString())
const;
56 void removeChild(
const QXmppElement &child);
58 QString tagName()
const;
59 void setTagName(
const QString &type);
61 QString value()
const;
62 void setValue(
const QString &text);
65 void toXml(QXmlStreamWriter *writer)
const;
67 QXmppElement &operator=(
const QXmppElement &other);
70 QXmppElement(QXmppElementPrivate *other);
71 QXmppElementPrivate *d;