blob: 4d8e85c000dc497b330c6f468a7a4d8a3edb3c1c (
plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
// 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
|