diff options
| author | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2009-10-20 11:43:45 +0000 |
|---|---|---|
| committer | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2009-10-20 11:43:45 +0000 |
| commit | e2be03e254a956024c9d67b19b8a809c9692b6f1 (patch) | |
| tree | 4da3e5da19d109bf34d02ed9359065c73be176ab /source/QXmppNonSASLAuth.h | |
| parent | a9d542be47e91ae39390247f8c8bbb21d588388f (diff) | |
| download | qxmpp-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.h | 4 |
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 );
|
