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
qnetworkaccessauthenticationmanager_p.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 QNETWORKACCESSAUTHENTICATIONMANAGER_P_H
5#define QNETWORKACCESSAUTHENTICATIONMANAGER_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of the Network Access API. This header file may change from
13// version to version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtNetwork/private/qtnetworkglobal_p.h>
21#include "QtNetwork/qnetworkproxy.h"
22#include "QtCore/QMutex"
23
25
26class QAuthenticator;
30
43{ return t1.domain < t2; }
45{ return t1 < t2.domain; }
47{ return t1.domain < t2.domain; }
48
50{
51public:
53
54 void cacheCredentials(const QUrl &url, const QAuthenticator *auth);
56 const QAuthenticator *auth = nullptr);
57
58#ifndef QT_NO_NETWORKPROXY
61 const QAuthenticator *auth = nullptr);
62#endif
63
64 void clearCache();
65
66protected:
69};
70
72
73#endif
The QAbstractNetworkCache class provides the interface for cache implementations.
The QAuthenticator class provides an authentication object.
\inmodule QtCore
Definition qmutex.h:281
void cacheCredentials(const QUrl &url, const QAuthenticator *auth)
QNetworkAuthenticationCredential fetchCachedCredentials(const QUrl &url, const QAuthenticator *auth=nullptr)
Fetch the credential data from the credential cache.
QNetworkAuthenticationCredential fetchCachedProxyCredentials(const QNetworkProxy &proxy, const QAuthenticator *auth=nullptr)
void cacheProxyCredentials(const QNetworkProxy &proxy, const QAuthenticator *auth)
The QNetworkCookieJar class implements a simple jar of QNetworkCookie objects.
The QNetworkProxy class provides a network layer proxy.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
bool isNull() const
Returns true if this string is null; otherwise returns false.
Definition qstring.h:994
\inmodule QtCore
Definition qurl.h:94
Combined button and popup list for selecting options.
bool operator<(const QNetworkAuthenticationCredential &t1, const QString &t2)
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat t1
[4]
#define t2
@ Q_RELOCATABLE_TYPE
Definition qtypeinfo.h:158
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)
Definition qtypeinfo.h:180
QUrl url("example.com")
[constructor-url-reference]
QNetworkProxy proxy
[0]