Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qauthenticator.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QAUTHENTICATOR_H
5#define QAUTHENTICATOR_H
6
7#include <QtNetwork/qtnetworkglobal.h>
8#include <QtCore/qstring.h>
9#include <QtCore/qvariant.h>
10
12
13
15class QUrl;
16
17class Q_NETWORK_EXPORT QAuthenticator
18{
19public:
22
24 QAuthenticator &operator=(const QAuthenticator &other);
25
26 bool operator==(const QAuthenticator &other) const;
27 inline bool operator!=(const QAuthenticator &other) const { return !operator==(other); }
28
29 QString user() const;
30 void setUser(const QString &user);
31
32 QString password() const;
33 void setPassword(const QString &password);
34
35 QString realm() const;
36 void setRealm(const QString &realm);
37
38 QVariant option(const QString &opt) const;
39 QVariantHash options() const;
40 void setOption(const QString &opt, const QVariant &value);
41
42 bool isNull() const;
43 void detach();
44private:
47};
48
50
51#endif
The QAuthenticator class provides an authentication object.
bool operator!=(const QAuthenticator &other) const
Returns true if this authenticator is different from other; otherwise returns false.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
\inmodule QtCore
Definition qurl.h:94
\inmodule QtCore
Definition qvariant.h:64
QStyleOptionButton opt
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLuint GLenum option
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
Definition qrandom.cpp:1219
QSharedPointer< T > other(t)
[5]
proxy setUser("username")
proxy setPassword("password")