From e2be03e254a956024c9d67b19b8a809c9692b6f1 Mon Sep 17 00:00:00 2001 From: Manjeet Dahiya Date: Tue, 20 Oct 2009 11:43:45 +0000 Subject: 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 --- source/QXmppPacket.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/QXmppPacket.h') diff --git a/source/QXmppPacket.h b/source/QXmppPacket.h index bb96c790..95f698fb 100644 --- a/source/QXmppPacket.h +++ b/source/QXmppPacket.h @@ -27,6 +27,7 @@ #include +class QXmlStreamWriter; class QXmppPacket { public: @@ -34,7 +35,7 @@ public: ~QXmppPacket(); QByteArray getXmlReceived() const; - virtual QByteArray toXml() const = 0; + virtual void toXml( QXmlStreamWriter *writer ) const = 0; private: QByteArray m_xmlReceived; -- cgit v1.2.3