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
QNetworkAccessManagerPrivate Class Reference

#include <qnetworkaccessmanager_p.h>

+ Inheritance diagram for QNetworkAccessManagerPrivate:
+ Collaboration diagram for QNetworkAccessManagerPrivate:

Public Member Functions

 QNetworkAccessManagerPrivate ()
 
 ~QNetworkAccessManagerPrivate ()
 
QThreadcreateThread ()
 
void destroyThread ()
 
void _q_replyFinished (QNetworkReply *reply)
 
void _q_replyEncrypted (QNetworkReply *reply)
 
void _q_replySslErrors (const QList< QSslError > &errors)
 
void _q_replyPreSharedKeyAuthenticationRequired (QSslPreSharedKeyAuthenticator *authenticator)
 
QNetworkReplypostProcess (QNetworkReply *reply)
 
void createCookieJar () const
 
void authenticationRequired (QAuthenticator *authenticator, QNetworkReply *reply, bool synchronous, QUrl &url, QUrl *urlForLastAuthentication, bool allowAuthenticationReuse=true)
 
void cacheCredentials (const QUrl &url, const QAuthenticator *auth)
 
QNetworkAuthenticationCredentialfetchCachedCredentials (const QUrl &url, const QAuthenticator *auth=nullptr)
 
void proxyAuthenticationRequired (const QUrl &url, const QNetworkProxy &proxy, bool synchronous, QAuthenticator *authenticator, QNetworkProxy *lastProxyAuthentication)
 
void cacheProxyCredentials (const QNetworkProxy &proxy, const QAuthenticator *auth)
 
QNetworkAuthenticationCredentialfetchCachedProxyCredentials (const QNetworkProxy &proxy, const QAuthenticator *auth=nullptr)
 
QList< QNetworkProxyqueryProxy (const QNetworkProxyQuery &query)
 
QNetworkAccessBackendfindBackend (QNetworkAccessManager::Operation op, const QNetworkRequest &request)
 
QStringList backendSupportedSchemes () const
 
void ensureBackendPluginsLoaded ()
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
QObjectList receiverList (const char *signal) const
 
void ensureConnectionData ()
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void reinitBindingStorageAfterThreadMove ()
 
virtual std::string flagsForDumping () const
 
virtual void writeToDebugStream (QDebug &) const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Static Public Member Functions

static Q_AUTOTEST_EXPORT void clearAuthenticationCache (QNetworkAccessManager *manager)
 
static Q_AUTOTEST_EXPORT void clearConnectionCache (QNetworkAccessManager *manager)
 
- Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (const QObject *o)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
 
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static bool disconnect (const QObject *sender, int signal_index, void **slot)
 
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)
 

Public Attributes

QAbstractNetworkCachenetworkCache
 
QNetworkCookieJarcookieJar
 
QThreadthread
 
QNetworkProxy proxy
 
QNetworkProxyFactoryproxyFactory
 
bool cookieJarCreated
 
bool defaultAccessControl
 
QNetworkRequest::RedirectPolicy redirectPolicy = QNetworkRequest::NoLessSafeRedirectPolicy
 
std::shared_ptr< QNetworkAccessAuthenticationManagerauthenticationManager
 
QNetworkAccessCache objectCache
 
QHstsCache stsCache
 
bool stsEnabled = false
 
bool autoDeleteReplies = false
 
std::chrono::milliseconds transferTimeout {0}
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint isQuickItem: 1
 
uint willBeWidget: 1
 
uint wasWidget: 1
 
uint receiveParentEvents: 1
 
uint unused: 20
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Additional Inherited Members

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 

Detailed Description

Definition at line 40 of file qnetworkaccessmanager_p.h.

Constructor & Destructor Documentation

◆ QNetworkAccessManagerPrivate()

QNetworkAccessManagerPrivate::QNetworkAccessManagerPrivate ( )
inline

Definition at line 43 of file qnetworkaccessmanager_p.h.

◆ ~QNetworkAccessManagerPrivate()

QNetworkAccessManagerPrivate::~QNetworkAccessManagerPrivate ( )

Definition at line 1713 of file qnetworkaccessmanager.cpp.

References destroyThread().

+ Here is the call graph for this function:

Member Function Documentation

◆ _q_replyEncrypted()

void QNetworkAccessManagerPrivate::_q_replyEncrypted ( QNetworkReply * reply)

Definition at line 1527 of file qnetworkaccessmanager.cpp.

References emit, Q_UNUSED, and reply.

Referenced by postProcess().

+ Here is the caller graph for this function:

◆ _q_replyFinished()

void QNetworkAccessManagerPrivate::_q_replyFinished ( QNetworkReply * reply)

Definition at line 1518 of file qnetworkaccessmanager.cpp.

References QNetworkRequest::attribute(), QNetworkRequest::AutoDeleteReplyOnFinishAttribute, QObject::deleteLater(), emit, QMetaObject::invokeMethod(), Qt::QueuedConnection, reply, QNetworkReply::request(), and QVariant::toBool().

Referenced by postProcess().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_replyPreSharedKeyAuthenticationRequired()

void QNetworkAccessManagerPrivate::_q_replyPreSharedKeyAuthenticationRequired ( QSslPreSharedKeyAuthenticator * authenticator)

Definition at line 1550 of file qnetworkaccessmanager.cpp.

References emit, and reply.

Referenced by postProcess().

+ Here is the caller graph for this function:

◆ _q_replySslErrors()

void QNetworkAccessManagerPrivate::_q_replySslErrors ( const QList< QSslError > & errors)

Definition at line 1537 of file qnetworkaccessmanager.cpp.

References emit, Q_UNUSED, and reply.

Referenced by postProcess().

+ Here is the caller graph for this function:

◆ authenticationRequired()

void QNetworkAccessManagerPrivate::authenticationRequired ( QAuthenticator * authenticator,
QNetworkReply * reply,
bool synchronous,
QUrl & url,
QUrl * urlForLastAuthentication,
bool allowAuthenticationReuse = true )

Definition at line 1587 of file qnetworkaccessmanager.cpp.

References authenticationManager, emit, QUrl::FullyDecoded, QUrl::isEmpty(), QString::isEmpty(), QAuthenticator::password(), QUrl::password(), reply, QAuthenticator::setPassword(), QAuthenticator::setUser(), url, QAuthenticator::user(), and QUrl::userName().

Referenced by QNetworkReplyHttpImplPrivate::httpAuthenticationRequired().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ backendSupportedSchemes()

QStringList QNetworkAccessManagerPrivate::backendSupportedSchemes ( ) const

Definition at line 76 of file qnetworkaccessbackend.cpp.

References QSet< T >::constBegin(), it, mutex, and QNetworkAccessBackendFactoryData::valid.

+ Here is the call graph for this function:

◆ cacheCredentials()

void QNetworkAccessManagerPrivate::cacheCredentials ( const QUrl & url,
const QAuthenticator * auth )

◆ cacheProxyCredentials()

void QNetworkAccessManagerPrivate::cacheProxyCredentials ( const QNetworkProxy & proxy,
const QAuthenticator * auth )

◆ clearAuthenticationCache()

void QNetworkAccessManagerPrivate::clearAuthenticationCache ( QNetworkAccessManager * manager)
static

Definition at line 1702 of file qnetworkaccessmanager.cpp.

References manager.

Referenced by QNetworkAccessManager::clearAccessCache().

+ Here is the caller graph for this function:

◆ clearConnectionCache()

void QNetworkAccessManagerPrivate::clearConnectionCache ( QNetworkAccessManager * manager)
static

Definition at line 1707 of file qnetworkaccessmanager.cpp.

References manager.

Referenced by QNetworkAccessManager::clearAccessCache(), and QNetworkAccessManager::clearConnectionCache().

+ Here is the caller graph for this function:

◆ createCookieJar()

void QNetworkAccessManagerPrivate::createCookieJar ( ) const

Definition at line 1577 of file qnetworkaccessmanager.cpp.

References cookieJar, and cookieJarCreated.

◆ createThread()

QThread * QNetworkAccessManagerPrivate::createThread ( )

Definition at line 1718 of file qnetworkaccessmanager.cpp.

References Q_ASSERT, QStringLiteral, QObject::setObjectName(), QThread::start(), and thread.

Referenced by QNetworkReplyHttpImplPrivate::postRequest().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ destroyThread()

void QNetworkAccessManagerPrivate::destroyThread ( )

Definition at line 1729 of file qnetworkaccessmanager.cpp.

References QObject::connect(), QThread::isFinished(), QThread::quit(), SIGNAL, SLOT, thread, and QThread::wait().

Referenced by ~QNetworkAccessManagerPrivate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ensureBackendPluginsLoaded()

void QNetworkAccessManagerPrivate::ensureBackendPluginsLoaded ( )

Go through the instances so the factories will be created and register themselves to QNetworkAccessBackendFactoryData

Definition at line 1799 of file qnetworkaccessmanager.cpp.

References mutex.

◆ fetchCachedCredentials()

QNetworkAuthenticationCredential * QNetworkAccessManagerPrivate::fetchCachedCredentials ( const QUrl & url,
const QAuthenticator * auth = nullptr )

◆ fetchCachedProxyCredentials()

QNetworkAuthenticationCredential * QNetworkAccessManagerPrivate::fetchCachedProxyCredentials ( const QNetworkProxy & proxy,
const QAuthenticator * auth = nullptr )

◆ findBackend()

QNetworkAccessBackend * QNetworkAccessManagerPrivate::findBackend ( QNetworkAccessManager::Operation op,
const QNetworkRequest & request )

Definition at line 57 of file qnetworkaccessbackend.cpp.

References QSet< T >::constBegin(), it, mutex, request, and QNetworkAccessBackendFactoryData::valid.

+ Here is the call graph for this function:

◆ postProcess()

QNetworkReply * QNetworkAccessManagerPrivate::postProcess ( QNetworkReply * reply)

Definition at line 1559 of file qnetworkaccessmanager.cpp.

References _q_replyEncrypted(), _q_replyFinished(), _q_replyPreSharedKeyAuthenticationRequired(), _q_replySslErrors(), QNetworkReply::finished(), reply, QNetworkReplyPrivate::setManager(), SIGNAL, and SLOT.

+ Here is the call graph for this function:

◆ proxyAuthenticationRequired()

void QNetworkAccessManagerPrivate::proxyAuthenticationRequired ( const QUrl & url,
const QNetworkProxy & proxy,
bool synchronous,
QAuthenticator * authenticator,
QNetworkProxy * lastProxyAuthentication )

Definition at line 1634 of file qnetworkaccessmanager.cpp.

References authenticationManager, emit, QAuthenticatorPrivate::getPrivate(), QNetworkProxy::hostName(), priv(), proxy, Q_UNUSED, QUrl::scheme(), QAuthenticator::setPassword(), QAuthenticator::setUser(), and url.

Referenced by QNetworkReplyHttpImplPrivate::proxyAuthenticationRequired().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ queryProxy()

QList< QNetworkProxy > QNetworkAccessManagerPrivate::queryProxy ( const QNetworkProxyQuery & query)

Definition at line 1681 of file qnetworkaccessmanager.cpp.

References QNetworkProxy::DefaultProxy, QNetworkProxy::NoProxy, proxy, proxyFactory, QNetworkProxyFactory::proxyForQuery(), QNetworkProxyFactory::queryProxy(), qWarning, and QNetworkProxy::type().

Referenced by QNetworkReplyHttpImplPrivate::postRequest().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ authenticationManager

std::shared_ptr<QNetworkAccessAuthenticationManager> QNetworkAccessManagerPrivate::authenticationManager

◆ autoDeleteReplies

bool QNetworkAccessManagerPrivate::autoDeleteReplies = false

Definition at line 132 of file qnetworkaccessmanager_p.h.

◆ cookieJar

QNetworkCookieJar* QNetworkAccessManagerPrivate::cookieJar

Definition at line 102 of file qnetworkaccessmanager_p.h.

Referenced by createCookieJar().

◆ cookieJarCreated

bool QNetworkAccessManagerPrivate::cookieJarCreated

Definition at line 112 of file qnetworkaccessmanager_p.h.

Referenced by createCookieJar().

◆ defaultAccessControl

bool QNetworkAccessManagerPrivate::defaultAccessControl

Definition at line 113 of file qnetworkaccessmanager_p.h.

◆ networkCache

◆ objectCache

QNetworkAccessCache QNetworkAccessManagerPrivate::objectCache

Definition at line 121 of file qnetworkaccessmanager_p.h.

◆ proxy

QNetworkProxy QNetworkAccessManagerPrivate::proxy

Definition at line 108 of file qnetworkaccessmanager_p.h.

Referenced by proxyAuthenticationRequired(), and queryProxy().

◆ proxyFactory

QNetworkProxyFactory* QNetworkAccessManagerPrivate::proxyFactory

Definition at line 109 of file qnetworkaccessmanager_p.h.

Referenced by queryProxy().

◆ redirectPolicy

QNetworkRequest::RedirectPolicy QNetworkAccessManagerPrivate::redirectPolicy = QNetworkRequest::NoLessSafeRedirectPolicy

Definition at line 114 of file qnetworkaccessmanager_p.h.

◆ stsCache

QHstsCache QNetworkAccessManagerPrivate::stsCache

◆ stsEnabled

bool QNetworkAccessManagerPrivate::stsEnabled = false

◆ thread

QThread* QNetworkAccessManagerPrivate::thread

◆ transferTimeout

std::chrono::milliseconds QNetworkAccessManagerPrivate::transferTimeout {0}

Definition at line 134 of file qnetworkaccessmanager_p.h.


The documentation for this class was generated from the following files: