![]() |
Qt 6.x
The Qt SDK
|
#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 void | setManager (QNetworkReply *reply, QNetworkAccessManager *manager) |
![]() | |
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 QDateTime | fromHttpDate (const QByteArray &value) |
static QByteArray | toHttpDate (const QDateTime &dt) |
Additional Inherited Members | |
![]() | |
enum | State { Idle , Buffering , Working , Finished , Aborted } |
![]() | |
enum | AccessMode : quint8 { Unset , Sequential , RandomAccess } |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
![]() | |
typedef QPair< QByteArray, QByteArray > | RawHeaderPair |
typedef QList< RawHeaderPair > | RawHeadersList |
typedef QHash< QNetworkRequest::KnownHeaders, QVariant > | CookedHeadersMap |
typedef QHash< QNetworkRequest::Attribute, QVariant > | AttributesMap |
![]() | |
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 430 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 413 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, |
int | bufferSize | ||
) |
Definition at line 321 of file qnetworkreplywasmimpl.cpp.
References QByteArray::append(), bytesDownloaded, downloadBuffer, downloadBufferCurrentSize, emit, percentFinished, and totalDownloadSize.
void QNetworkReplyWasmImplPrivate::doSendRequest | ( | ) |
Definition at line 219 of file qnetworkreplywasmimpl.cpp.
References QNetworkRequest::AlwaysCache, QNetworkRequest::AlwaysNetwork, arrayLength(), QNetworkRequest::attribute(), QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::CacheSaveControlAttribute, QByteArray::constData(), QList< T >::count(), QByteArray::data(), downloadFailed(), downloadProgress(), downloadSucceeded(), QUrl::fileName(), QString::fromLatin1(), getArraySize(), headerName(), i, QString::isEmpty(), QByteArray::isEmpty(), m_fetch, outgoingData, QUrl::password(), QNetworkRequest::PreferCache, QNetworkRequest::PreferNetwork, QStringLiteral, 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 531 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 517 of file qnetworkreplywasmimpl.cpp.
References QNetworkReplyPrivate::Aborted, and reply.
Referenced by doSendRequest().
|
static |
Definition at line 473 of file qnetworkreplywasmimpl.cpp.
References QNetworkReplyPrivate::Aborted, QIODevicePrivate::buffer, and reply.
Referenced by doSendRequest().
Definition at line 310 of file qnetworkreplywasmimpl.cpp.
References emit, percentFinished, and totalDownloadSize.
void QNetworkReplyWasmImplPrivate::emitReplyError | ( | QNetworkReply::NetworkError | errorCode, |
const QString & | errorString | ||
) |
Definition at line 302 of file qnetworkreplywasmimpl.cpp.
References emit, QNetworkReplyPrivate::errorCode, and QIODevicePrivate::errorString.
Referenced by setCanceled().
void QNetworkReplyWasmImplPrivate::headersReceived | ( | const QByteArray & | buffer | ) |
Definition at line 386 of file qnetworkreplywasmimpl.cpp.
References QList< T >::at(), emit, headerName(), i, QByteArray::isEmpty(), parseHeaderName(), and QList< T >::size().
void QNetworkReplyWasmImplPrivate::setCanceled | ( | ) |
Definition at line 131 of file qnetworkreplywasmimpl.cpp.
References emit, emitReplyError(), m_fetch, QNetworkReply::OperationCanceledError, and QStringLiteral.
|
static |
Definition at line 205 of file qnetworkreplywasmimpl.cpp.
References QNetworkRequest::HttpReasonPhraseAttribute, QNetworkRequest::HttpStatusCodeAttribute, QString::isEmpty(), and Q_ASSERT.
void QNetworkReplyWasmImplPrivate::setReplyFinished | ( | ) |
Definition at line 489 of file qnetworkreplywasmimpl.cpp.
References emit.
void QNetworkReplyWasmImplPrivate::setStatusCode | ( | int | status, |
const QByteArray & | statusText | ||
) |
Definition at line 497 of file qnetworkreplywasmimpl.cpp.
References QNetworkRequest::HttpReasonPhraseAttribute, and QNetworkRequest::HttpStatusCodeAttribute.
void QNetworkReplyWasmImplPrivate::setup | ( | QNetworkAccessManager::Operation | op, |
const QNetworkRequest & | request, | ||
QIODevice * | outgoingData | ||
) |
Definition at line 172 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 504 of file qnetworkreplywasmimpl.cpp.
References QNetworkReplyPrivate::Aborted, QString::data(), reply, QString::size(), str, and Qt::Uninitialized.
Referenced by doSendRequest().
|
static |
Definition at line 554 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(), and setup().
qint64 QNetworkReplyWasmImplPrivate::totalDownloadSize |
Definition at line 98 of file qnetworkreplywasmimpl_p.h.
Referenced by dataReceived(), doSendRequest(), and emitDataReadProgress().