aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppNonSASLAuth.h
blob: 79cb82276529b89c9821f41ba09df024afe68946 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef QXmppNonSASLAuth_H
#define QXmppNonSASLAuth_H

#include "QXmppIq.h"

class QXmppNonSASLAuthTypesRequestIq : public QXmppIq
{
public:
    QXmppNonSASLAuthTypesRequestIq();
    void setUsername( const QString &username );
    virtual void toXmlElementFromChild(QXmlStreamWriter *writer) const;
private:
    QString m_username;
};

class QXmppNonSASLAuthIq : public QXmppIq
{
public:
    QXmppNonSASLAuthIq();
    virtual void toXmlElementFromChild(QXmlStreamWriter *writer) 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