aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppNonSASLAuth.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/QXmppNonSASLAuth.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/QXmppNonSASLAuth.h')
-rw-r--r--source/QXmppNonSASLAuth.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/QXmppNonSASLAuth.h b/source/QXmppNonSASLAuth.h
index bf071584..6de1063f 100644
--- a/source/QXmppNonSASLAuth.h
+++ b/source/QXmppNonSASLAuth.h
@@ -8,7 +8,7 @@ class QXmppNonSASLAuthTypesRequestIq : public QXmppIq
public:
QXmppNonSASLAuthTypesRequestIq();
void setUsername( const QString &username );
- virtual QByteArray toXmlElementFromChild() const;
+ virtual void toXmlElementFromChild(QXmlStreamWriter *writer) const;
private:
QString m_username;
};
@@ -17,7 +17,7 @@ class QXmppNonSASLAuthIq : public QXmppIq
{
public:
QXmppNonSASLAuthIq();
- virtual QByteArray toXmlElementFromChild() const;
+ virtual void toXmlElementFromChild(QXmlStreamWriter *writer) const;
void setUsername( const QString &username );
void setPassword( const QString &password );
void setResource( const QString &resource );