diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-04-20 17:24:49 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-04-20 17:24:49 +0000 |
| commit | 633f408fe98e6af5542d0261e71ff452a9183920 (patch) | |
| tree | 520906b1d641585f9219d0b0746df5adde559c6a /src/base/QXmppStanza.h | |
| parent | 9684bb108207ae64ddbb0a0708f69890b250783c (diff) | |
| download | qxmpp-633f408fe98e6af5542d0261e71ff452a9183920.tar.gz | |
Remove QXmppPacket class.
Diffstat (limited to 'src/base/QXmppStanza.h')
| -rw-r--r-- | src/base/QXmppStanza.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/base/QXmppStanza.h b/src/base/QXmppStanza.h index bd29cbab..287b7382 100644 --- a/src/base/QXmppStanza.h +++ b/src/base/QXmppStanza.h @@ -25,8 +25,7 @@ #ifndef QXMPPSTANZA_H #define QXMPPSTANZA_H -#include "QXmppElement.h" -#include "QXmppPacket.h" +#include <QByteArray> #include <QString> // forward declarations of QXmlStream* classes will not work on Mac, we need to @@ -35,13 +34,15 @@ // for an explanation. #include <QXmlStreamWriter> +#include "QXmppElement.h" + /// \defgroup Stanzas /// \brief The QXmppStanza class is the base class for all XMPP stanzas. /// /// \ingroup Stanzas -class QXMPP_EXPORT QXmppStanza : public QXmppPacket +class QXMPP_EXPORT QXmppStanza { public: class QXMPP_EXPORT Error @@ -143,10 +144,11 @@ public: /// \cond // FIXME : why is this needed? bool isErrorStanza() const; + virtual void parse(const QDomElement &element); + virtual void toXml(QXmlStreamWriter *writer) const; protected: void generateAndSetNextId(); - void parse(const QDomElement &element); /// \endcond private: |
