diff options
| author | 0xd34df00d <0xd34df00d@gmail.com> | 2014-02-28 23:37:16 +0400 |
|---|---|---|
| committer | 0xd34df00d <0xd34df00d@gmail.com> | 2014-02-28 23:37:16 +0400 |
| commit | 3f73de1f0305fb2cd62ef81416c331fbb59d27e7 (patch) | |
| tree | 248b48ee87f428c7a34d8717d74f6bc49d8a130f /src/base/QXmppElement.cpp | |
| parent | 5619a6e81498da219561b7c9b030a07d89b76c41 (diff) | |
QXmppElement::sourceDomElement().
Diffstat (limited to 'src/base/QXmppElement.cpp')
| -rw-r--r-- | src/base/QXmppElement.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/base/QXmppElement.cpp b/src/base/QXmppElement.cpp index 2d722fd8..cbb6d8bb 100644 --- a/src/base/QXmppElement.cpp +++ b/src/base/QXmppElement.cpp @@ -40,6 +40,8 @@ public: QList<QXmppElementPrivate*> children; QString name; QString value; + + QDomElement source; }; QXmppElementPrivate::QXmppElementPrivate() @@ -48,7 +50,7 @@ QXmppElementPrivate::QXmppElementPrivate() } QXmppElementPrivate::QXmppElementPrivate(const QDomElement &element) - : counter(1), parent(NULL) + : counter(1), parent(NULL), source(element) { if (element.isNull()) return; @@ -124,6 +126,11 @@ QXmppElement &QXmppElement::operator=(const QXmppElement &other) return *this; } +const QDomElement &QXmppElement::sourceDomElement() const +{ + return d->source; +} + QStringList QXmppElement::attributeNames() const { return d->attributes.keys(); |
