QXmpp: QXmppNonSASLAuth.h Source File

QXmpp Version: 1.14.4

Loading...
Searching...
No Matches
QXmppNonSASLAuth.h
1// SPDX-FileCopyrightText: 2009 Manjeet Dahiya <manjeetdahiya@gmail.com>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXmppNonSASLAuth_H
6#define QXmppNonSASLAuth_H
7
8#include "QXmppIq.h"
9
10 class QXMPP_EXPORT QXmppNonSASLAuthIq : public QXmppIq
11{
12public:
13 QXmppNonSASLAuthIq();
14
15 QString username() const;
16 void setUsername(const QString &username);
17
18 QByteArray digest() const;
19 void setDigest(const QString &streamId, const QString &password);
20
21 QString password() const;
22 void setPassword(const QString &password);
23
24 QString resource() const;
25 void setResource(const QString &resource);
26
28 static constexpr std::tuple PayloadXmlTag = { u"query", QXmpp::Private::ns_auth };
29 [[deprecated("Use QXmpp::isIqElement()")]]
30 static bool isNonSASLAuthIq(const QDomElement &element);
31
32protected:
33 void parseElementFromChild(const QDomElement &element) override;
34 void toXmlElementFromChild(QXmlStreamWriter *writer) const override;
36
37private:
38 QString m_username;
39 QByteArray m_digest;
40 QString m_password;
41 QString m_resource;
42};
43
44#endif // QXmppNonSASLAuth_H
QXmppIq::QXmppIq
QXmppIq(QXmppIq::Type type=QXmppIq::Get)
Definition QXmppIq.cpp:39
QXmppNonSASLAuthIq::resource
QString resource() const
Definition QXmppNonSASLAuth.cpp:86
QXmppNonSASLAuthIq::setPassword
void setPassword(const QString &password)
Definition QXmppNonSASLAuth.cpp:78
QXmppNonSASLAuthIq::digest
QByteArray digest() const
Definition QXmppNonSASLAuth.cpp:53
QXmppNonSASLAuthIq::password
QString password() const
Definition QXmppNonSASLAuth.cpp:70
QXmppNonSASLAuthIq::setDigest
void setDigest(const QString &streamId, const QString &password)
Definition QXmppNonSASLAuth.cpp:62
QXmppNonSASLAuthIq::setResource
void setResource(const QString &resource)
Definition QXmppNonSASLAuth.cpp:94
QXmppNonSASLAuthIq::setUsername
void setUsername(const QString &username)
Definition QXmppNonSASLAuth.cpp:45
QXmppNonSASLAuthIq::username
QString username() const
Definition QXmppNonSASLAuth.cpp:37