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>.
|
#include <qnetworkreplywasmimpl_p.h>
Static Public Member Functions | |
static void | setReplyAttributes (quintptr data, int statusCode, const QString &statusReason) |
static void | downloadProgress (emscripten_fetch_t *fetch) |
static void | downloadFailed (emscripten_fetch_t *fetch) |
static void | downloadSucceeded (emscripten_fetch_t *fetch) |
static void | stateChange (emscripten_fetch_t *fetch) |
static QNetworkReply::NetworkError | statusCodeFromHttp (int httpStatusCode, const QUrl &url) |
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 (const QByteArray &value) |
static QByteArray | toHttpDate (const QDateTime &dt) |
static RawHeadersList | fromHttpToRaw (const QHttpHeaders &headers) |
static QHttpHeaders | fromRawToHttp (const RawHeadersList &raw) |
Additional Inherited Members | |
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, QByteArray > | RawHeaderPair |
typedef QList< RawHeaderPair > | RawHeadersList |
typedef QHash< QNetworkRequest::KnownHeaders, QVariant > | CookedHeadersMap |
typedef QHash< QNetworkRequest::Attribute, QVariant > | AttributesMap |
Static Public Attributes inherited from QNetworkReplyPrivate | |
static const int | progressSignalInterval = 100 |
Definition at line 66 of file qnetworkreplywasmimpl_p.h.
QNetworkReplyWasmImplPrivate::QNetworkReplyWasmImplPrivate | ( | ) |
Definition at line 58 of file qnetworkreplywasmimpl.cpp.
QNetworkReplyWasmImplPrivate::~QNetworkReplyWasmImplPrivate | ( | ) |
Definition at line 69 of file qnetworkreplywasmimpl.cpp.
void QNetworkReplyWasmImplPrivate::_q_bufferOutgoingData | ( | ) |
Definition at line 435 of file qnetworkreplywasmimpl.cpp.
References _q_bufferOutgoingData(), _q_bufferOutgoingDataFinished(), QIODevice::bytesAvailable(), bytesBuffered, QObject::connect(), forever, outgoingData, outgoingDataBuffer, QIODevice::read(), SIGNAL, and SLOT.
Referenced by _q_bufferOutgoingData(), _q_bufferOutgoingDataFinished(), and setup().
void QNetworkReplyWasmImplPrivate::_q_bufferOutgoingDataFinished | ( | ) |
Definition at line 418 of file qnetworkreplywasmimpl.cpp.
References _q_bufferOutgoingData(), _q_bufferOutgoingDataFinished(), QNetworkReplyPrivate::Buffering, QObject::disconnect(), doSendRequest(), outgoingData, SIGNAL, SLOT, and state.
Referenced by _q_bufferOutgoingData(), and _q_bufferOutgoingDataFinished().
void QNetworkReplyWasmImplPrivate::dataReceived | ( | const QByteArray & | buffer | ) |
Definition at line 325 of file qnetworkreplywasmimpl.cpp.
References QByteArray::append(), bytesDownloaded, downloadBuffer, downloadBufferCurrentSize, emit, percentFinished, and totalDownloadSize.
void QNetworkReplyWasmImplPrivate::doSendRequest | ( | ) |
Definition at line 223 of file qnetworkreplywasmimpl.cpp.
References QNetworkRequest::AlwaysCache, QNetworkRequest::AlwaysNetwork, arrayLength(), QNetworkRequest::attribute(), QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::CacheSaveControlAttribute, QByteArray::constData(), QByteArray::data(), downloadFailed(), downloadProgress(), downloadSucceeded(), QUrl::fileName(), QString::fromLatin1(), getArraySize(), headerName(), i, QByteArray::isEmpty(), QString::isEmpty(), m_fetch, outgoingData, QUrl::password(), QNetworkRequest::PreferCache, QNetworkRequest::PreferNetwork, qWarning, QNetworkRequest::rawHeader(), QNetworkRequest::rawHeaderList(), QIODevice::readAll(), QNetworkReplyPrivate::request, requestData, QByteArray::size(), state, stateChange(), QVariant::toBool(), QVariant::toInt(), QUrl::toString(), totalDownloadSize, QString::toUtf8(), QNetworkRequest::url(), QNetworkRequest::UseCredentialsAttribute, QUrl::userInfo(), QUrl::userName(), and QNetworkReplyPrivate::Working.
Referenced by _q_bufferOutgoingDataFinished(), and setup().
|
static |
Definition at line 537 of file qnetworkreplywasmimpl.cpp.
References QNetworkReplyPrivate::Aborted, QIODevicePrivate::buffer, QString::fromUtf8(), QStringLiteral, reply, QNetworkReply::request(), and QNetworkRequest::url().
Referenced by doSendRequest().
|
static |
Definition at line 523 of file qnetworkreplywasmimpl.cpp.
References QNetworkReplyPrivate::Aborted, and reply.
Referenced by doSendRequest().
|
static |
Definition at line 478 of file qnetworkreplywasmimpl.cpp.
References QNetworkReplyPrivate::Aborted, QIODevicePrivate::buffer, and reply.
Referenced by doSendRequest().
Definition at line 314 of file qnetworkreplywasmimpl.cpp.
References emit, percentFinished, and totalDownloadSize.
void QNetworkReplyWasmImplPrivate::emitReplyError | ( | QNetworkReply::NetworkError | errorCode, |
const QString & | errorString ) |
Definition at line 306 of file qnetworkreplywasmimpl.cpp.
References emit, QNetworkReplyPrivate::errorCode, and QIODevicePrivate::errorString.
Referenced by setCanceled().
void QNetworkReplyWasmImplPrivate::headersReceived | ( | const QByteArray & | buffer | ) |
Definition at line 391 of file qnetworkreplywasmimpl.cpp.
References QHttpHeaders::contains(), emit, headerName(), QNetworkHeadersPrivate::headers(), i, parseHeaderName(), and QHttpHeaders::size().
void QNetworkReplyWasmImplPrivate::setCanceled | ( | ) |
Definition at line 134 of file qnetworkreplywasmimpl.cpp.
References emit, emitReplyError(), m_fetch, QNetworkReply::OperationCanceledError, and QStringLiteral.
|
static |
Definition at line 209 of file qnetworkreplywasmimpl.cpp.
References QNetworkRequest::HttpReasonPhraseAttribute, QNetworkRequest::HttpStatusCodeAttribute, and Q_ASSERT.
void QNetworkReplyWasmImplPrivate::setReplyFinished | ( | ) |
Definition at line 494 of file qnetworkreplywasmimpl.cpp.
References emit, QNetworkReplyPrivate::Finished, and state.
void QNetworkReplyWasmImplPrivate::setStatusCode | ( | int | status, |
const QByteArray & | statusText ) |
Definition at line 503 of file qnetworkreplywasmimpl.cpp.
References QNetworkRequest::HttpReasonPhraseAttribute, and QNetworkRequest::HttpStatusCodeAttribute.
void QNetworkReplyWasmImplPrivate::setup | ( | QNetworkAccessManager::Operation | op, |
const QNetworkRequest & | request, | ||
QIODevice * | outgoingData ) |
Definition at line 176 of file qnetworkreplywasmimpl.cpp.
References _q_bufferOutgoingData(), QNetworkRequest::attribute(), QNetworkReplyPrivate::Buffering, QNetworkRequest::ContentLengthHeader, QNetworkRequest::DoNotBufferUploadDataAttribute, doSendRequest(), QNetworkRequest::header(), QIODevice::isSequential(), QVariant::isValid(), QNetworkReplyPrivate::operation, outgoingData, QIODeviceBase::ReadOnly, QNetworkReplyPrivate::request, state, QVariant::toBool(), QNetworkReplyPrivate::url, and QNetworkRequest::url().
|
static |
Definition at line 510 of file qnetworkreplywasmimpl.cpp.
References QNetworkReplyPrivate::Aborted, QString::data(), reply, QString::size(), str, and Qt::Uninitialized.
Referenced by doSendRequest().
|
static |
Definition at line 560 of file qnetworkreplywasmimpl.cpp.
References QNetworkReply::AuthenticationRequiredError, QNetworkReply::ContentAccessDenied, QNetworkReply::ContentConflictError, QNetworkReply::ContentGoneError, QNetworkReply::ContentNotFoundError, QNetworkReply::ContentOperationNotPermittedError, QNetworkReply::InternalServerError, QNetworkReply::OperationCanceledError, QNetworkReply::OperationNotImplementedError, QNetworkReply::ProtocolFailure, QNetworkReply::ProtocolInvalidOperationError, QNetworkReply::ProxyAuthenticationRequiredError, qPrintable, qWarning, QNetworkReply::ServiceUnavailableError, QUrl::toString(), QNetworkReply::UnknownContentError, QNetworkReply::UnknownServerError, and QNetworkReplyPrivate::url.
qint64 QNetworkReplyWasmImplPrivate::bytesBuffered |
Definition at line 94 of file qnetworkreplywasmimpl_p.h.
Referenced by _q_bufferOutgoingData().
qint64 QNetworkReplyWasmImplPrivate::bytesDownloaded |
Definition at line 93 of file qnetworkreplywasmimpl_p.h.
Referenced by dataReceived().
QByteArray QNetworkReplyWasmImplPrivate::downloadBuffer |
Definition at line 100 of file qnetworkreplywasmimpl_p.h.
Referenced by dataReceived().
qint64 QNetworkReplyWasmImplPrivate::downloadBufferCurrentSize |
Definition at line 97 of file qnetworkreplywasmimpl_p.h.
Referenced by dataReceived().
qint64 QNetworkReplyWasmImplPrivate::downloadBufferReadPosition |
Definition at line 96 of file qnetworkreplywasmimpl_p.h.
emscripten_fetch_t* QNetworkReplyWasmImplPrivate::m_fetch |
Definition at line 113 of file qnetworkreplywasmimpl_p.h.
Referenced by doSendRequest(), and setCanceled().
QNetworkAccessManagerPrivate* QNetworkReplyWasmImplPrivate::managerPrivate |
Definition at line 72 of file qnetworkreplywasmimpl_p.h.
QIODevice* QNetworkReplyWasmImplPrivate::outgoingData |
Definition at line 102 of file qnetworkreplywasmimpl_p.h.
Referenced by _q_bufferOutgoingData(), _q_bufferOutgoingDataFinished(), doSendRequest(), and setup().
std::shared_ptr<QRingBuffer> QNetworkReplyWasmImplPrivate::outgoingDataBuffer |
Definition at line 103 of file qnetworkreplywasmimpl_p.h.
Referenced by _q_bufferOutgoingData().
std::shared_ptr<QAtomicInt> QNetworkReplyWasmImplPrivate::pendingDownloadData |
Definition at line 90 of file qnetworkreplywasmimpl_p.h.
std::shared_ptr<QAtomicInt> QNetworkReplyWasmImplPrivate::pendingDownloadProgress |
Definition at line 91 of file qnetworkreplywasmimpl_p.h.
qint64 QNetworkReplyWasmImplPrivate::percentFinished |
Definition at line 99 of file qnetworkreplywasmimpl_p.h.
Referenced by dataReceived(), and emitDataReadProgress().
QByteArray QNetworkReplyWasmImplPrivate::requestData |
Definition at line 104 of file qnetworkreplywasmimpl_p.h.
Referenced by doSendRequest().
State QNetworkReplyWasmImplPrivate::state |
Definition at line 86 of file qnetworkreplywasmimpl_p.h.
Referenced by _q_bufferOutgoingDataFinished(), doSendRequest(), setReplyFinished(), and setup().
qint64 QNetworkReplyWasmImplPrivate::totalDownloadSize |
Definition at line 98 of file qnetworkreplywasmimpl_p.h.
Referenced by dataReceived(), doSendRequest(), and emitDataReadProgress().