Loading...
Searching...
No Matches
QXmppNonSASLAuth.h
// SPDX-FileCopyrightText: 2009 Manjeet Dahiya <manjeetdahiya@gmail.com>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXmppNonSASLAuth_H
#define QXmppNonSASLAuth_H
#include "QXmppIq.h"
class QXMPP_EXPORT QXmppNonSASLAuthIq : public QXmppIq
{
public:
QXmppNonSASLAuthIq();
QString username() const;
void setUsername(const QString &username);
QByteArray digest() const;
void setDigest(const QString &streamId, const QString &password);
QString password() const;
void setPassword(const QString &password);
QString resource() const;
void setResource(const QString &resource);
static constexpr std::tuple PayloadXmlTag = { u"query", QXmpp::Private::ns_auth };
[[deprecated("Use QXmpp::isIqElement()")]]
static bool isNonSASLAuthIq(const QDomElement &element);
protected:
void parseElementFromChild(const QDomElement &element) override;
void toXmlElementFromChild(QXmlStreamWriter *writer) const override;
private:
QString m_username;
QByteArray m_digest;
QString m_password;
QString m_resource;
};
#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