Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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{
20public:
23
25 QAuthenticator &operator=(const QAuthenticator &other);
26
27 bool operator==(const QAuthenticator &other) const;
28 inline bool operator!=(const QAuthenticator &other) const { return !operator==(other); }
29
30 QString user() const;
31 void setUser(const QString &user);
32
33 QString password() const;
34 void setPassword(const QString &password);
35
36 QString realm() const;
37 void setRealm(const QString &realm);
38
39 QVariant option(const QString &opt) const;
40 QVariantHash options() const;
41 void setOption(const QString &opt, const QVariant &value);
42
43 bool isNull() const;
44 void detach();
45private:
48};
49
51
52#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:129
\inmodule QtCore
Definition qurl.h:94
\inmodule QtCore
Definition qvariant.h:65
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:1220
#define Q_GADGET
QSharedPointer< T > other(t)
[5]
proxy setUser("username")
proxy setPassword("password")