![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qnetworkreplyimpl_p.h>
Public Types | |
enum | InternalNotifications { NotifyDownstreamReadyWrite } |
Public Types inherited from QNetworkReplyPrivate | |
enum | State { Idle , Buffering , Working , Finished , Aborted } |
Public Types inherited from QIODevicePrivate | |
enum class | ReadLineOption { NotNullTerminated , NullTerminated } |
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 std::pair< QByteArray, QByteArray > | RawHeaderPair |
typedef QList< RawHeaderPair > | RawHeadersList |
typedef QHash< QNetworkRequest::KnownHeaders, QVariant > | CookedHeadersMap |
typedef QHash< QNetworkRequest::Attribute, QVariant > | AttributesMap |
typedef QList< QNetworkCookie > | NetworkCookieList |
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 QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (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< qint64 > | toInt (QByteArrayView value) |
static QByteArray | fromCookieList (const NetworkCookieList &cookies) |
static std::optional< NetworkCookieList > | toSetCookieList (const QList< QByteArray > &values) |
static std::optional< NetworkCookieList > | toCookieList (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 |
Definition at line 71 of file qnetworkreplyimpl_p.h.
Enumerator | |
---|---|
NotifyDownstreamReadyWrite |
Definition at line 74 of file qnetworkreplyimpl_p.h.
|
inline |
Definition at line 21 of file qnetworkreplyimpl.cpp.
void QNetworkReplyImplPrivate::_q_bufferOutgoingData | ( | ) |
Definition at line 159 of file qnetworkreplyimpl.cpp.
void QNetworkReplyImplPrivate::_q_bufferOutgoingDataFinished | ( | ) |
Definition at line 142 of file qnetworkreplyimpl.cpp.
References state.
void QNetworkReplyImplPrivate::_q_copyReadChannelFinished | ( | ) |
Definition at line 137 of file qnetworkreplyimpl.cpp.
References _q_copyReadyRead().
void QNetworkReplyImplPrivate::_q_copyReadyRead | ( | ) |
Definition at line 83 of file qnetworkreplyimpl.cpp.
References pauseNotificationHandling(), resumeNotificationHandling(), and state.
Referenced by _q_copyReadChannelFinished(), and appendDownstreamData().
void QNetworkReplyImplPrivate::_q_startOperation | ( | ) |
Definition at line 38 of file qnetworkreplyimpl.cpp.
References backend, finished(), handleNotifications(), and state.
Referenced by setup().
void QNetworkReplyImplPrivate::appendDownstreamData | ( | QByteDataBuffer & | data | ) |
Definition at line 454 of file qnetworkreplyimpl.cpp.
References appendDownstreamDataSignalEmissions(), and initCacheSaveDevice().
Definition at line 506 of file qnetworkreplyimpl.cpp.
References _q_copyReadyRead().
void QNetworkReplyImplPrivate::appendDownstreamDataDownloadBuffer | ( | qint64 | bytesReceived, |
qint64 | bytesTotal ) |
Definition at line 560 of file qnetworkreplyimpl.cpp.
References initCacheSaveDevice().
void QNetworkReplyImplPrivate::appendDownstreamDataSignalEmissions | ( | ) |
Definition at line 481 of file qnetworkreplyimpl.cpp.
References backendNotify(), NotifyDownstreamReadyWrite, pauseNotificationHandling(), and resumeNotificationHandling().
Referenced by appendDownstreamData().
void QNetworkReplyImplPrivate::backendNotify | ( | InternalNotifications | notification | ) |
Definition at line 274 of file qnetworkreplyimpl.cpp.
Referenced by appendDownstreamDataSignalEmissions().
void QNetworkReplyImplPrivate::completeCacheSave | ( | ) |
Definition at line 372 of file qnetworkreplyimpl.cpp.
References cacheEnabled.
Referenced by finished().
void QNetworkReplyImplPrivate::createCache | ( | ) |
Definition at line 331 of file qnetworkreplyimpl.cpp.
References cacheEnabled.
Referenced by setCachingEnabled().
Definition at line 383 of file qnetworkreplyimpl.cpp.
References pauseNotificationHandling(), and resumeNotificationHandling().
void QNetworkReplyImplPrivate::encrypted | ( | ) |
Definition at line 678 of file qnetworkreplyimpl.cpp.
void QNetworkReplyImplPrivate::error | ( | QNetworkReply::NetworkError | code, |
const QString & | errorString ) |
Definition at line 633 of file qnetworkreplyimpl.cpp.
void QNetworkReplyImplPrivate::finished | ( | ) |
Definition at line 590 of file qnetworkreplyimpl.cpp.
References completeCacheSave(), pauseNotificationHandling(), resumeNotificationHandling(), and state.
Referenced by _q_startOperation().
char * QNetworkReplyImplPrivate::getDownloadBuffer | ( | qint64 | size | ) |
Definition at line 527 of file qnetworkreplyimpl.cpp.
References downloadBuffer.
void QNetworkReplyImplPrivate::handleNotifications | ( | ) |
Definition at line 285 of file qnetworkreplyimpl.cpp.
References notificationHandlingPaused.
Referenced by _q_startOperation().
void QNetworkReplyImplPrivate::initCacheSaveDevice | ( | ) |
Definition at line 413 of file qnetworkreplyimpl.cpp.
References cacheEnabled, and networkCache().
Referenced by appendDownstreamData(), and appendDownstreamDataDownloadBuffer().
bool QNetworkReplyImplPrivate::isCachingEnabled | ( | ) | const |
Definition at line 340 of file qnetworkreplyimpl.cpp.
References cacheEnabled, and networkCache().
void QNetworkReplyImplPrivate::metaDataChanged | ( | ) |
Definition at line 651 of file qnetworkreplyimpl.cpp.
QAbstractNetworkCache * QNetworkReplyImplPrivate::networkCache | ( | ) | const |
Definition at line 324 of file qnetworkreplyimpl.cpp.
References backend.
Referenced by initCacheSaveDevice(), and isCachingEnabled().
qint64 QNetworkReplyImplPrivate::nextDownstreamBlockSize | ( | ) | const |
Definition at line 404 of file qnetworkreplyimpl.cpp.
void QNetworkReplyImplPrivate::pauseNotificationHandling | ( | ) |
Definition at line 310 of file qnetworkreplyimpl.cpp.
References notificationHandlingPaused.
Referenced by _q_copyReadyRead(), appendDownstreamDataSignalEmissions(), emitUploadProgress(), and finished().
void QNetworkReplyImplPrivate::readFromBackend | ( | ) |
Definition at line 696 of file qnetworkreplyimpl.cpp.
References backend.
Definition at line 673 of file qnetworkreplyimpl.cpp.
void QNetworkReplyImplPrivate::resumeNotificationHandling | ( | ) |
Definition at line 316 of file qnetworkreplyimpl.cpp.
References notificationHandlingPaused.
Referenced by _q_copyReadyRead(), appendDownstreamDataSignalEmissions(), emitUploadProgress(), and finished().
void QNetworkReplyImplPrivate::setCachingEnabled | ( | bool | enable | ) |
Definition at line 345 of file qnetworkreplyimpl.cpp.
References backend, cacheEnabled, and createCache().
void QNetworkReplyImplPrivate::setDownloadBuffer | ( | QSharedPointer< char > | sp, |
qint64 | size ) |
Definition at line 548 of file qnetworkreplyimpl.cpp.
void QNetworkReplyImplPrivate::setup | ( | QNetworkAccessManager::Operation | op, |
const QNetworkRequest & | request, | ||
QIODevice * | outgoingData ) |
Definition at line 202 of file qnetworkreplyimpl.cpp.
References _q_startOperation(), backend, and state.
Definition at line 686 of file qnetworkreplyimpl.cpp.
QNetworkAccessBackend* QNetworkReplyImplPrivate::backend |
Definition at line 121 of file qnetworkreplyimpl_p.h.
Referenced by _q_startOperation(), networkCache(), readFromBackend(), setCachingEnabled(), and setup().
qint64 QNetworkReplyImplPrivate::bytesDownloaded |
Definition at line 139 of file qnetworkreplyimpl_p.h.
qint64 QNetworkReplyImplPrivate::bytesUploaded |
Definition at line 140 of file qnetworkreplyimpl_p.h.
bool QNetworkReplyImplPrivate::cacheEnabled |
Definition at line 127 of file qnetworkreplyimpl_p.h.
Referenced by completeCacheSave(), createCache(), initCacheSaveDevice(), isCachingEnabled(), and setCachingEnabled().
QIODevice* QNetworkReplyImplPrivate::cacheSaveDevice |
Definition at line 128 of file qnetworkreplyimpl_p.h.
QIODevice* QNetworkReplyImplPrivate::copyDevice |
Definition at line 124 of file qnetworkreplyimpl_p.h.
char* QNetworkReplyImplPrivate::downloadBuffer |
Definition at line 153 of file qnetworkreplyimpl_p.h.
Referenced by getDownloadBuffer().
qint64 QNetworkReplyImplPrivate::downloadBufferCurrentSize |
Definition at line 150 of file qnetworkreplyimpl_p.h.
qint64 QNetworkReplyImplPrivate::downloadBufferMaximumSize |
Definition at line 151 of file qnetworkreplyimpl_p.h.
QSharedPointer<char> QNetworkReplyImplPrivate::downloadBufferPointer |
Definition at line 152 of file qnetworkreplyimpl_p.h.
qint64 QNetworkReplyImplPrivate::downloadBufferReadPosition |
Definition at line 149 of file qnetworkreplyimpl_p.h.
QString QNetworkReplyImplPrivate::httpReasonPhrase |
Definition at line 142 of file qnetworkreplyimpl_p.h.
int QNetworkReplyImplPrivate::httpStatusCode |
Definition at line 143 of file qnetworkreplyimpl_p.h.
QNetworkProxy QNetworkReplyImplPrivate::lastProxyAuthentication |
Definition at line 135 of file qnetworkreplyimpl_p.h.
bool QNetworkReplyImplPrivate::notificationHandlingPaused |
Definition at line 131 of file qnetworkreplyimpl_p.h.
Referenced by handleNotifications(), pauseNotificationHandling(), and resumeNotificationHandling().
QIODevice* QNetworkReplyImplPrivate::outgoingData |
Definition at line 122 of file qnetworkreplyimpl_p.h.
std::shared_ptr<QRingBuffer> QNetworkReplyImplPrivate::outgoingDataBuffer |
Definition at line 123 of file qnetworkreplyimpl_p.h.
std::vector<InternalNotifications> QNetworkReplyImplPrivate::pendingNotifications |
Definition at line 130 of file qnetworkreplyimpl_p.h.
QList<QNetworkProxy> QNetworkReplyImplPrivate::proxyList |
Definition at line 136 of file qnetworkreplyimpl_p.h.
State QNetworkReplyImplPrivate::state |
Definition at line 145 of file qnetworkreplyimpl_p.h.
Referenced by _q_bufferOutgoingDataFinished(), _q_copyReadyRead(), _q_startOperation(), finished(), and setup().
QUrl QNetworkReplyImplPrivate::urlForLastAuthentication |
Definition at line 133 of file qnetworkreplyimpl_p.h.