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/QXmppStanza.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/QXmppStanza.h') diff --git a/source/QXmppStanza.h b/source/QXmppStanza.h index e50607c0..58aedb57 100644 --- a/source/QXmppStanza.h +++ b/source/QXmppStanza.h @@ -28,6 +28,8 @@ #include "QXmppPacket.h" #include +class QXmlStreamWriter; + class QXmppStanza : public QXmppPacket { public: @@ -81,7 +83,7 @@ public: QString getText() const; Condition getCondition() const; Type getType() const; - QString toXml() const; + void toXml( QXmlStreamWriter *writer ) const; QString getConditionStr() const; QString getTypeStr() const; -- cgit v1.2.3