mirror of
https://github.com/NohamR/RMHook-Win.git
synced 2026-05-25 04:17:10 +00:00
52 lines
1.2 KiB
C++
52 lines
1.2 KiB
C++
// Copyright (C) 2016 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
|
|
|
#ifndef QAUTHENTICATOR_H
|
|
#define QAUTHENTICATOR_H
|
|
|
|
#include <QtNetwork/qtnetworkglobal.h>
|
|
#include <QtCore/qstring.h>
|
|
#include <QtCore/qvariant.h>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
|
class QAuthenticatorPrivate;
|
|
class QUrl;
|
|
|
|
class Q_NETWORK_EXPORT QAuthenticator
|
|
{
|
|
public:
|
|
QAuthenticator();
|
|
~QAuthenticator();
|
|
|
|
QAuthenticator(const QAuthenticator &other);
|
|
QAuthenticator &operator=(const QAuthenticator &other);
|
|
|
|
bool operator==(const QAuthenticator &other) const;
|
|
inline bool operator!=(const QAuthenticator &other) const { return !operator==(other); }
|
|
|
|
QString user() const;
|
|
void setUser(const QString &user);
|
|
|
|
QString password() const;
|
|
void setPassword(const QString &password);
|
|
|
|
QString realm() const;
|
|
void setRealm(const QString &realm);
|
|
|
|
QVariant option(const QString &opt) const;
|
|
QVariantHash options() const;
|
|
void setOption(const QString &opt, const QVariant &value);
|
|
|
|
bool isNull() const;
|
|
void detach();
|
|
private:
|
|
friend class QAuthenticatorPrivate;
|
|
QAuthenticatorPrivate *d;
|
|
};
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
#endif
|