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

#include <qnetworkreplyimpl_p.h>

+ Inheritance diagram for QNetworkReplyImplPrivate:
+ Collaboration diagram for QNetworkReplyImplPrivate:

Public Types

enum  InternalNotifications { NotifyDownstreamReadyWrite }
 
- Public Types inherited from QNetworkReplyPrivate
enum  State {
  Idle , Buffering , Working , Finished ,
  Aborted
}
 
- Public Types inherited from QIODevicePrivate
enum  AccessMode : quint8 { Unset , Sequential , RandomAccess }
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 
- Public Types inherited from QNetworkHeadersPrivate
typedef QPair< QByteArray, QByteArrayRawHeaderPair
 
typedef QList< RawHeaderPairRawHeadersList
 
typedef QHash< QNetworkRequest::KnownHeaders, QVariantCookedHeadersMap
 
typedef QHash< QNetworkRequest::Attribute, QVariantAttributesMap
 
typedef QList< QNetworkCookieNetworkCookieList
 

Public Member Functions

 QNetworkReplyImplPrivate ()
 
void _q_startOperation ()
 
void _q_copyReadyRead ()
 
void _q_copyReadChannelFinished ()
 
void _q_bufferOutgoingData ()
 
void _q_bufferOutgoingDataFinished ()
 
void setup (QNetworkAccessManager::Operation op, const QNetworkRequest &request, QIODevice *outgoingData)
 
void pauseNotificationHandling ()
 
void resumeNotificationHandling ()
 
void backendNotify (InternalNotifications notification)
 
void handleNotifications ()
 
void createCache ()
 
void completeCacheSave ()
 
void setCachingEnabled (bool enable)
 
bool isCachingEnabled () const
 
void consume (qint64 count)
 
void emitUploadProgress (qint64 bytesSent, qint64 bytesTotal)
 
qint64 nextDownstreamBlockSize () const
 
void initCacheSaveDevice ()
 
void appendDownstreamDataSignalEmissions ()
 
void appendDownstreamData (QByteDataBuffer &data)
 
void appendDownstreamData (QIODevice *data)
 
void setDownloadBuffer (QSharedPointer< char > sp, qint64 size)
 
char * getDownloadBuffer (qint64 size)
 
void appendDownstreamDataDownloadBuffer (qint64, qint64)
 
void finished ()
 
void error (QNetworkReply::NetworkError code, const QString &errorString)
 
void metaDataChanged ()
 
void redirectionRequested (const QUrl &target)
 
void encrypted ()
 
void sslErrors (const QList< QSslError > &errors)
 
void readFromBackend ()
 
QAbstractNetworkCachenetworkCache () const
 
- Public Member Functions inherited from QNetworkReplyPrivate
 QNetworkReplyPrivate ()
 
- Public Member Functions inherited from QIODevicePrivate
 QIODevicePrivate ()
 
virtual ~QIODevicePrivate ()
 
virtual bool putCharHelper (char c)
 
bool isSequential () const
 
bool isBufferEmpty () const
 
bool allWriteBuffersEmpty () const
 
void seekBuffer (qint64 newPos)
 
void setCurrentReadChannel (int channel)
 
void setCurrentWriteChannel (int channel)
 
void setReadChannelCount (int count)
 
void setWriteChannelCount (int count)
 
qint64 read (char *data, qint64 maxSize, bool peeking=false)
 
qint64 readLine (char *data, qint64 maxSize)
 
virtual qint64 peek (char *data, qint64 maxSize)
 
virtual QByteArray peek (qint64 maxSize)
 
qint64 skipByReading (qint64 maxSize)
 
void write (const char *data, qint64 size)
 
bool isWriteChunkCached (const char *data, qint64 size) const
 
- 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
 
- Public Member Functions inherited from QNetworkHeadersPrivate
const RawHeadersListallRawHeaders () const
 
QList< QByteArrayrawHeadersKeys () const
 
QByteArray rawHeader (QAnyStringView headerName) const
 
void setRawHeader (const QByteArray &key, const QByteArray &value)
 
void setCookedHeader (QNetworkRequest::KnownHeaders header, const QVariant &value)
 
QHttpHeaders headers () const
 
void setHeaders (const QHttpHeaders &newHeaders)
 
void setHeaders (QHttpHeaders &&newHeaders)
 
void setHeader (QHttpHeaders::WellKnownHeader name, QByteArrayView value)
 
void clearHeaders ()
 

Public Attributes

QNetworkAccessBackendbackend
 
QIODeviceoutgoingData
 
std::shared_ptr< QRingBufferoutgoingDataBuffer
 
QIODevicecopyDevice
 
bool cacheEnabled
 
QIODevicecacheSaveDevice
 
std::vector< InternalNotificationspendingNotifications
 
bool notificationHandlingPaused
 
QUrl urlForLastAuthentication
 
QNetworkProxy lastProxyAuthentication
 
QList< QNetworkProxyproxyList
 
qint64 bytesDownloaded
 
qint64 bytesUploaded
 
QString httpReasonPhrase
 
int httpStatusCode
 
State state
 
qint64 downloadBufferReadPosition
 
qint64 downloadBufferCurrentSize
 
qint64 downloadBufferMaximumSize
 
QSharedPointer< char > downloadBufferPointer
 
char * downloadBuffer
 
- Public Attributes inherited from QNetworkReplyPrivate
QNetworkRequest request
 
QNetworkRequest originalRequest
 
QUrl url
 
QPointer< QNetworkAccessManagermanager
 
qint64 readBufferMaxSize
 
QElapsedTimer downloadProgressSignalChoke
 
QElapsedTimer uploadProgressSignalChoke
 
bool emitAllUploadProgressSignals
 
QNetworkAccessManager::Operation operation
 
QNetworkReply::NetworkError errorCode
 
bool isFinished
 
- Public Attributes inherited from QIODevicePrivate
qint64 pos = 0
 
qint64 devicePos = 0
 
qint64 transactionPos = 0
 
QRingBufferRef buffer
 
QRingBufferRef writeBuffer
 
const QByteArraycurrentWriteChunk = nullptr
 
int readChannelCount = 0
 
int writeChannelCount = 0
 
int currentReadChannel = 0
 
int currentWriteChannel = 0
 
int readBufferChunkSize = QIODEVICE_BUFFERSIZE
 
int writeBufferChunkSize = 0
 
QVarLengthArray< QRingBuffer, 2 > readBuffers
 
QVarLengthArray< QRingBuffer, 1 > writeBuffers
 
QString errorString
 
QIODevice::OpenMode openMode = QIODevice::NotOpen
 
bool transactionStarted = false
 
bool baseReadLineDataCalled = false
 
AccessMode accessMode = Unset
 
- 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
 
- Public Attributes inherited from QNetworkHeadersPrivate
struct { 
 
   RawHeadersList   headersList 
 
   bool   isCached = false 
 
rawHeaderCache 
 
QHttpHeaders httpHeaders
 
CookedHeadersMap cookedHeaders
 
AttributesMap attributes
 
QPointer< QObjectoriginatingObject
 

Additional Inherited Members

- Static Public Member Functions inherited from QNetworkReplyPrivate
static void setManager (QNetworkReply *reply, 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)
 
- Static Public Member Functions inherited from QNetworkHeadersPrivate
static QDateTime fromHttpDate (QByteArrayView value)
 
static QByteArray toHttpDate (const QDateTime &dt)
 
static std::optional< qint64toInt (QByteArrayView value)
 
static QByteArray fromCookieList (const NetworkCookieList &cookies)
 
static std::optional< NetworkCookieListtoSetCookieList (const QList< QByteArray > &values)
 
static std::optional< NetworkCookieListtoCookieList (const QList< QByteArray > &values)
 
static RawHeadersList fromHttpToRaw (const QHttpHeaders &headers)
 
static QHttpHeaders fromRawToHttp (const RawHeadersList &raw)
 
- Static Public Attributes inherited from QNetworkReplyPrivate
static const int progressSignalInterval = 100
 

Detailed Description

Definition at line 70 of file qnetworkreplyimpl_p.h.

Member Enumeration Documentation

◆ InternalNotifications

Enumerator
NotifyDownstreamReadyWrite 

Definition at line 73 of file qnetworkreplyimpl_p.h.

Constructor & Destructor Documentation

◆ QNetworkReplyImplPrivate()

QT_BEGIN_NAMESPACE QNetworkReplyImplPrivate::QNetworkReplyImplPrivate ( )
inline

Definition at line 20 of file qnetworkreplyimpl.cpp.

References QNetworkRequest::attribute(), QNetworkRequest::EmitAllUploadProgressSignalsAttribute, request, and QVariant::toBool().

+ Here is the call graph for this function:

Member Function Documentation

◆ _q_bufferOutgoingData()

void QNetworkReplyImplPrivate::_q_bufferOutgoingData ( )

Definition at line 157 of file qnetworkreplyimpl.cpp.

References _q_bufferOutgoingData(), _q_bufferOutgoingDataFinished(), QIODevice::bytesAvailable(), QObject::connect(), forever, outgoingData, outgoingDataBuffer, QIODevice::read(), SIGNAL, and SLOT.

Referenced by _q_bufferOutgoingData(), and _q_bufferOutgoingDataFinished().

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

◆ _q_bufferOutgoingDataFinished()

void QNetworkReplyImplPrivate::_q_bufferOutgoingDataFinished ( )

Definition at line 140 of file qnetworkreplyimpl.cpp.

References _q_bufferOutgoingData(), _q_bufferOutgoingDataFinished(), QNetworkReplyPrivate::Buffering, QObject::disconnect(), QMetaObject::invokeMethod(), outgoingData, Qt::QueuedConnection, SIGNAL, SLOT, and state.

Referenced by _q_bufferOutgoingData(), and _q_bufferOutgoingDataFinished().

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

◆ _q_copyReadChannelFinished()

void QNetworkReplyImplPrivate::_q_copyReadChannelFinished ( )

Definition at line 135 of file qnetworkreplyimpl.cpp.

References _q_copyReadyRead().

Referenced by appendDownstreamData().

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

◆ _q_copyReadyRead()

void QNetworkReplyImplPrivate::_q_copyReadyRead ( )

Definition at line 82 of file qnetworkreplyimpl.cpp.

References QIODevice::atEnd(), QIODevice::bytesAvailable(), bytesDownloaded, QHttpHeaders::ContentLength, copyDevice, QNetworkReplyPrivate::downloadProgressSignalChoke, QElapsedTimer::elapsed(), emit, forever, QNetworkHeadersPrivate::headers(), QIODevice::isOpen(), QIODevice::isSequential(), nextDownstreamBlockSize(), pauseNotificationHandling(), QNetworkReplyPrivate::progressSignalInterval, QIODevice::read(), QElapsedTimer::restart(), resumeNotificationHandling(), state, QNetworkHeadersPrivate::toInt(), and QNetworkReplyPrivate::Working.

Referenced by _q_copyReadChannelFinished(), appendDownstreamData(), and handleNotifications().

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

◆ _q_startOperation()

void QNetworkReplyImplPrivate::_q_startOperation ( )

Definition at line 37 of file qnetworkreplyimpl.cpp.

References arg, backend, QNetworkReplyPrivate::downloadProgressSignalChoke, error, QNetworkReplyPrivate::Finished, finished(), QNetworkAccessManager::GetOperation, handleNotifications(), QElapsedTimer::invalidate(), NotifyDownstreamReadyWrite, QNetworkReplyPrivate::operation, pendingNotifications, QNetworkReply::ProtocolUnknownError, qDebug, qWarning, QUrl::scheme(), QNetworkAccessBackend::start(), QElapsedTimer::start(), state, QCoreApplication::translate(), QNetworkReply::UnknownNetworkError, QNetworkReplyPrivate::uploadProgressSignalChoke, QNetworkReplyPrivate::url, and QNetworkReplyPrivate::Working.

Referenced by setup().

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

◆ appendDownstreamData() [1/2]

void QNetworkReplyImplPrivate::appendDownstreamData ( QByteDataBuffer & data)

Definition at line 454 of file qnetworkreplyimpl.cpp.

References appendDownstreamDataSignalEmissions(), bytesDownloaded, cacheEnabled, cacheSaveDevice, i, initCacheSaveDevice(), item, and QIODevice::write().

+ Here is the call graph for this function:

◆ appendDownstreamData() [2/2]

void QNetworkReplyImplPrivate::appendDownstreamData ( QIODevice * data)

Definition at line 505 of file qnetworkreplyimpl.cpp.

References _q_copyReadChannelFinished(), _q_copyReadyRead(), QObject::connect(), copyDevice, Q_UNLIKELY, qCritical, SIGNAL, and SLOT.

+ Here is the call graph for this function:

◆ appendDownstreamDataDownloadBuffer()

void QNetworkReplyImplPrivate::appendDownstreamDataDownloadBuffer ( qint64 bytesReceived,
qint64 bytesTotal )

Definition at line 559 of file qnetworkreplyimpl.cpp.

References bytesDownloaded, cacheEnabled, cacheSaveDevice, downloadBuffer, downloadBufferCurrentSize, QNetworkReplyPrivate::downloadProgressSignalChoke, QElapsedTimer::elapsed(), emit, initCacheSaveDevice(), QNetworkReplyPrivate::progressSignalInterval, QElapsedTimer::restart(), and QIODevice::write().

+ Here is the call graph for this function:

◆ appendDownstreamDataSignalEmissions()

void QNetworkReplyImplPrivate::appendDownstreamDataSignalEmissions ( )

Definition at line 481 of file qnetworkreplyimpl.cpp.

References backendNotify(), bytesDownloaded, QHttpHeaders::ContentLength, QNetworkReplyPrivate::downloadProgressSignalChoke, QElapsedTimer::elapsed(), emit, QNetworkHeadersPrivate::headers(), nextDownstreamBlockSize(), NotifyDownstreamReadyWrite, pauseNotificationHandling(), QNetworkReplyPrivate::progressSignalInterval, QElapsedTimer::restart(), resumeNotificationHandling(), and QNetworkHeadersPrivate::toInt().

Referenced by appendDownstreamData().

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

◆ backendNotify()

void QNetworkReplyImplPrivate::backendNotify ( InternalNotifications notification)

Definition at line 272 of file qnetworkreplyimpl.cpp.

References QSet< T >::cend(), it, QEvent::NetworkReplyUpdated, pendingNotifications, and QCoreApplication::postEvent().

Referenced by appendDownstreamDataSignalEmissions().

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

◆ completeCacheSave()

void QNetworkReplyImplPrivate::completeCacheSave ( )

Definition at line 370 of file qnetworkreplyimpl.cpp.

References cacheEnabled, cacheSaveDevice, QNetworkReplyPrivate::errorCode, QAbstractNetworkCache::insert(), networkCache(), QNetworkReply::NoError, QAbstractNetworkCache::remove(), and QNetworkReplyPrivate::url.

Referenced by finished().

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

◆ consume()

void QNetworkReplyImplPrivate::consume ( qint64 count)

◆ createCache()

void QNetworkReplyImplPrivate::createCache ( )

Definition at line 329 of file qnetworkreplyimpl.cpp.

References QNetworkRequest::attribute(), cacheEnabled, QNetworkRequest::CacheSaveControlAttribute, networkCache(), QNetworkReplyPrivate::request, and QVariant::toBool().

Referenced by setCachingEnabled().

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

◆ emitUploadProgress()

void QNetworkReplyImplPrivate::emitUploadProgress ( qint64 bytesSent,
qint64 bytesTotal )

◆ encrypted()

void QNetworkReplyImplPrivate::encrypted ( )

Definition at line 676 of file qnetworkreplyimpl.cpp.

References emit.

◆ error()

void QNetworkReplyImplPrivate::error ( QNetworkReply::NetworkError code,
const QString & errorString )

Definition at line 631 of file qnetworkreplyimpl.cpp.

References emit, QNetworkReplyPrivate::errorCode, errorMessage(), QNetworkReply::NoError, and qWarning.

+ Here is the call graph for this function:

◆ finished()

void QNetworkReplyImplPrivate::finished ( )

Definition at line 588 of file qnetworkreplyimpl.cpp.

References QNetworkReplyPrivate::Aborted, bytesDownloaded, bytesUploaded, completeCacheSave(), QHttpHeaders::ContentLength, emit, QNetworkReplyPrivate::Finished, QNetworkHeadersPrivate::headers(), outgoingData, outgoingDataBuffer, pauseNotificationHandling(), pendingNotifications, resumeNotificationHandling(), state, and QNetworkHeadersPrivate::toInt().

Referenced by _q_startOperation().

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

◆ getDownloadBuffer()

char * QNetworkReplyImplPrivate::getDownloadBuffer ( qint64 size)

Definition at line 526 of file qnetworkreplyimpl.cpp.

References QNetworkRequest::attribute(), downloadBuffer, QNetworkRequest::DownloadBufferAttribute, downloadBufferCurrentSize, downloadBufferMaximumSize, downloadBufferPointer, QVariant::fromValue(), QNetworkRequest::MaximumDownloadBufferSizeAttribute, and QNetworkReplyPrivate::request.

+ Here is the call graph for this function:

◆ handleNotifications()

void QNetworkReplyImplPrivate::handleNotifications ( )

Definition at line 283 of file qnetworkreplyimpl.cpp.

References _q_copyReadyRead(), backend, QNetworkAccessBackend::bytesAvailable(), copyDevice, notificationHandlingPaused, NotifyDownstreamReadyWrite, pendingNotifications, readFromBackend(), state, QNetworkAccessBackend::wantToRead(), and QNetworkReplyPrivate::Working.

Referenced by _q_startOperation().

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

◆ initCacheSaveDevice()

void QNetworkReplyImplPrivate::initCacheSaveDevice ( )

Definition at line 413 of file qnetworkreplyimpl.cpp.

References QNetworkCacheMetaData::attributes(), QNetworkHeadersPrivate::attributes, cacheEnabled, cacheSaveDevice, className, QNetworkRequest::HttpStatusCodeAttribute, QHash< Key, T >::insert(), QIODevice::isOpen(), QObjectData::metaObject, networkCache(), QAbstractNetworkCache::prepare(), Q_UNLIKELY, qCritical, QNetworkRequest::RedirectionTargetAttribute, QAbstractNetworkCache::remove(), QNetworkCacheMetaData::setAttributes(), QNetworkCacheMetaData::setUrl(), and QNetworkReplyPrivate::url.

Referenced by appendDownstreamData(), and appendDownstreamDataDownloadBuffer().

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

◆ isCachingEnabled()

bool QNetworkReplyImplPrivate::isCachingEnabled ( ) const

Definition at line 338 of file qnetworkreplyimpl.cpp.

References cacheEnabled, and networkCache().

+ Here is the call graph for this function:

◆ metaDataChanged()

◆ networkCache()

QAbstractNetworkCache * QNetworkReplyImplPrivate::networkCache ( ) const

Definition at line 322 of file qnetworkreplyimpl.cpp.

References backend, and QNetworkAccessBackend::networkCache().

Referenced by completeCacheSave(), createCache(), initCacheSaveDevice(), isCachingEnabled(), and setCachingEnabled().

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

◆ nextDownstreamBlockSize()

qint64 QNetworkReplyImplPrivate::nextDownstreamBlockSize ( ) const

Definition at line 404 of file qnetworkreplyimpl.cpp.

References QNetworkReplyPrivate::readBufferMaxSize.

Referenced by _q_copyReadyRead(), appendDownstreamDataSignalEmissions(), and readFromBackend().

+ Here is the caller graph for this function:

◆ pauseNotificationHandling()

void QNetworkReplyImplPrivate::pauseNotificationHandling ( )

Definition at line 308 of file qnetworkreplyimpl.cpp.

References notificationHandlingPaused.

Referenced by _q_copyReadyRead(), appendDownstreamDataSignalEmissions(), emitUploadProgress(), and finished().

+ Here is the caller graph for this function:

◆ readFromBackend()

void QNetworkReplyImplPrivate::readFromBackend ( )

Definition at line 694 of file qnetworkreplyimpl.cpp.

References backend, QNetworkAccessBackend::bytesAvailable(), emit, QNetworkAccessBackend::ioFeatures(), nextDownstreamBlockSize(), Q_ASSERT, qMin(), QNetworkAccessBackend::read(), QNetworkReplyPrivate::readBufferMaxSize, and QNetworkAccessBackend::ZeroCopy.

Referenced by handleNotifications().

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

◆ redirectionRequested()

void QNetworkReplyImplPrivate::redirectionRequested ( const QUrl & target)

Definition at line 671 of file qnetworkreplyimpl.cpp.

References QNetworkHeadersPrivate::attributes, QHash< Key, T >::insert(), and QNetworkRequest::RedirectionTargetAttribute.

+ Here is the call graph for this function:

◆ resumeNotificationHandling()

void QNetworkReplyImplPrivate::resumeNotificationHandling ( )

Definition at line 314 of file qnetworkreplyimpl.cpp.

References QEvent::NetworkReplyUpdated, notificationHandlingPaused, pendingNotifications, and QCoreApplication::postEvent().

Referenced by _q_copyReadyRead(), appendDownstreamDataSignalEmissions(), emitUploadProgress(), and finished().

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

◆ setCachingEnabled()

void QNetworkReplyImplPrivate::setCachingEnabled ( bool enable)

Definition at line 343 of file qnetworkreplyimpl.cpp.

References backend, bytesDownloaded, cacheEnabled, cacheSaveDevice, createCache(), networkCache(), Q_UNLIKELY, qCritical, qDebug, QAbstractNetworkCache::remove(), and QNetworkReplyPrivate::url.

+ Here is the call graph for this function:

◆ setDownloadBuffer()

void QNetworkReplyImplPrivate::setDownloadBuffer ( QSharedPointer< char > sp,
qint64 size )

Definition at line 547 of file qnetworkreplyimpl.cpp.

References QSharedPointer< T >::data(), downloadBuffer, QNetworkRequest::DownloadBufferAttribute, downloadBufferCurrentSize, downloadBufferMaximumSize, downloadBufferPointer, QVariant::fromValue(), and sp.

+ Here is the call graph for this function:

◆ setup()

◆ sslErrors()

void QNetworkReplyImplPrivate::sslErrors ( const QList< QSslError > & errors)

Definition at line 684 of file qnetworkreplyimpl.cpp.

References emit, and Q_UNUSED.

Member Data Documentation

◆ backend

QNetworkAccessBackend* QNetworkReplyImplPrivate::backend

◆ bytesDownloaded

◆ bytesUploaded

qint64 QNetworkReplyImplPrivate::bytesUploaded

Definition at line 139 of file qnetworkreplyimpl_p.h.

Referenced by emitUploadProgress(), and finished().

◆ cacheEnabled

◆ cacheSaveDevice

QIODevice* QNetworkReplyImplPrivate::cacheSaveDevice

◆ copyDevice

QIODevice* QNetworkReplyImplPrivate::copyDevice

◆ downloadBuffer

char* QNetworkReplyImplPrivate::downloadBuffer

◆ downloadBufferCurrentSize

qint64 QNetworkReplyImplPrivate::downloadBufferCurrentSize

◆ downloadBufferMaximumSize

qint64 QNetworkReplyImplPrivate::downloadBufferMaximumSize

Definition at line 150 of file qnetworkreplyimpl_p.h.

Referenced by getDownloadBuffer(), and setDownloadBuffer().

◆ downloadBufferPointer

QSharedPointer<char> QNetworkReplyImplPrivate::downloadBufferPointer

Definition at line 151 of file qnetworkreplyimpl_p.h.

Referenced by getDownloadBuffer(), and setDownloadBuffer().

◆ downloadBufferReadPosition

qint64 QNetworkReplyImplPrivate::downloadBufferReadPosition

Definition at line 148 of file qnetworkreplyimpl_p.h.

◆ httpReasonPhrase

QString QNetworkReplyImplPrivate::httpReasonPhrase

Definition at line 141 of file qnetworkreplyimpl_p.h.

◆ httpStatusCode

int QNetworkReplyImplPrivate::httpStatusCode

Definition at line 142 of file qnetworkreplyimpl_p.h.

◆ lastProxyAuthentication

QNetworkProxy QNetworkReplyImplPrivate::lastProxyAuthentication

Definition at line 134 of file qnetworkreplyimpl_p.h.

◆ notificationHandlingPaused

bool QNetworkReplyImplPrivate::notificationHandlingPaused

◆ outgoingData

QIODevice* QNetworkReplyImplPrivate::outgoingData

◆ outgoingDataBuffer

std::shared_ptr<QRingBuffer> QNetworkReplyImplPrivate::outgoingDataBuffer

Definition at line 122 of file qnetworkreplyimpl_p.h.

Referenced by _q_bufferOutgoingData(), finished(), and setup().

◆ pendingNotifications

std::vector<InternalNotifications> QNetworkReplyImplPrivate::pendingNotifications

◆ proxyList

QList<QNetworkProxy> QNetworkReplyImplPrivate::proxyList

Definition at line 135 of file qnetworkreplyimpl_p.h.

◆ state

State QNetworkReplyImplPrivate::state

◆ urlForLastAuthentication

QUrl QNetworkReplyImplPrivate::urlForLastAuthentication

Definition at line 132 of file qnetworkreplyimpl_p.h.


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