aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppIq.h
diff options
context:
space:
mode:
authorManjeet Dahiya <manjeetdahiya@gmail.com>2009-10-20 11:43:45 +0000
committerManjeet Dahiya <manjeetdahiya@gmail.com>2009-10-20 11:43:45 +0000
commite2be03e254a956024c9d67b19b8a809c9692b6f1 (patch)
tree4da3e5da19d109bf34d02ed9359065c73be176ab /source/QXmppIq.h
parenta9d542be47e91ae39390247f8c8bbb21d588388f (diff)
downloadqxmpp-e2be03e254a956024c9d67b19b8a809c9692b6f1.tar.gz
Using QXmlStreamWriter for directly writing to the socket. This will avoid string concatenations and problems with XML escaping rules.
and Fix for Issue 19: XMPP Version < 1.0 send NonSASL Auth query
Diffstat (limited to 'source/QXmppIq.h')
-rw-r--r--source/QXmppIq.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/QXmppIq.h b/source/QXmppIq.h
index d79b080a..54903d15 100644
--- a/source/QXmppIq.h
+++ b/source/QXmppIq.h
@@ -26,6 +26,7 @@
#define QXMPPIQ_H
#include "QXmppStanza.h"
+class QXmlStreamWriter;
class QXmppIq : public QXmppStanza
{
@@ -47,8 +48,8 @@ public:
void setType(QXmppIq::Type);
void setTypeFromStr(const QString& str);
- QByteArray toXml() const;
- virtual QByteArray toXmlElementFromChild() const;
+ void toXml( QXmlStreamWriter *writer ) const;
+ virtual void toXmlElementFromChild( QXmlStreamWriter *writer ) const;
private:
Type m_type;