diff options
| author | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2009-10-18 22:54:04 +0000 |
|---|---|---|
| committer | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2009-10-18 22:54:04 +0000 |
| commit | 8054a813ea973b69fa655ce0cdfb516db58e4295 (patch) | |
| tree | adaaf6c64f467008130b2126fa121aff20a4d286 /source/QXmppNonSASLAuth.h | |
| parent | d7a8921864d1a622ee1125075139b6693a9011c2 (diff) | |
| download | qxmpp-8054a813ea973b69fa655ce0cdfb516db58e4295.tar.gz | |
XEP-0078: Non-SASL Authentication Implementation
Diffstat (limited to 'source/QXmppNonSASLAuth.h')
| -rw-r--r-- | source/QXmppNonSASLAuth.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/source/QXmppNonSASLAuth.h b/source/QXmppNonSASLAuth.h new file mode 100644 index 00000000..bf071584 --- /dev/null +++ b/source/QXmppNonSASLAuth.h @@ -0,0 +1,35 @@ +#ifndef QXmppNonSASLAuth_H
+#define QXmppNonSASLAuth_H
+
+#include "QXmppIq.h"
+
+class QXmppNonSASLAuthTypesRequestIq : public QXmppIq
+{
+public:
+ QXmppNonSASLAuthTypesRequestIq();
+ void setUsername( const QString &username );
+ virtual QByteArray toXmlElementFromChild() const;
+private:
+ QString m_username;
+};
+
+class QXmppNonSASLAuthIq : public QXmppIq
+{
+public:
+ QXmppNonSASLAuthIq();
+ virtual QByteArray toXmlElementFromChild() const;
+ void setUsername( const QString &username );
+ void setPassword( const QString &password );
+ void setResource( const QString &resource );
+ void setStreamId( const QString &sid );
+ void setUsePlainText( bool useplaintext );
+
+private:
+ QString m_username;
+ QString m_password;
+ QString m_resource;
+ QString m_sid;
+ bool m_useplaintext;
+};
+
+#endif // QXmppNonSASLAuth_H
|
