Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QNetworkReplyWasmImplPrivate Class Reference

#include <qnetworkreplywasmimpl_p.h>

Inheritance diagram for QNetworkReplyWasmImplPrivate:
Collaboration diagram for QNetworkReplyWasmImplPrivate:

Public Member Functions

 QNetworkReplyWasmImplPrivate ()
 ~QNetworkReplyWasmImplPrivate ()
void doSendRequest ()
void emitReplyError (QNetworkReply::NetworkError errorCode, const QString &)
void emitDataReadProgress (qint64 done, qint64 total)
void dataReceived (const QByteArray &buffer)
void headersReceived (const QByteArray &buffer)
void setStatusCode (int status, const QByteArray &statusText)
void setup (QNetworkAccessManager::Operation op, const QNetworkRequest &request, QIODevice *outgoingData)
void _q_bufferOutgoingData ()
void _q_bufferOutgoingDataFinished ()
void setReplyFinished ()
void setCanceled ()
Public Member Functions inherited from QNetworkReplyPrivate
 QNetworkReplyPrivate ()
Public Member Functions inherited from QIODevicePrivate
 QIODevicePrivate (decltype(QObjectPrivateVersion) version=QObjectPrivateVersion)
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, ReadLineOption option=ReadLineOption::NullTerminated)
virtual qint64 peek (char *data, qint64 maxSize)
virtual QByteArray peek (qint64 maxSize)
qint64 skipByReading (qint64 maxSize)
qint64 skipLine ()
void write (const char *data, qint64 size)
bool isWriteChunkCached (const char *data, qint64 size) const
Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
void setObjectNameWithoutBindings (const QString &name)
 QObjectPrivate (decltype(QObjectPrivateVersion) version=QObjectPrivateVersion)
virtual ~QObjectPrivate ()
void deleteChildren ()
void clearBindingStorage ()
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
const 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 ()

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 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)

Public Attributes

QNetworkAccessManagerPrivatemanagerPrivate
State state
std::shared_ptr< QAtomicIntpendingDownloadData
std::shared_ptr< QAtomicIntpendingDownloadProgress
qint64 bytesDownloaded
qint64 bytesBuffered
qint64 downloadBufferReadPosition
qint64 downloadBufferCurrentSize
qint64 totalDownloadSize
qint64 percentFinished
QByteArray downloadBuffer
QIODeviceoutgoingData
std::shared_ptr< QRingBufferoutgoingDataBuffer
emscripten_fetch_t * m_fetch
FetchContextm_fetchContext
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

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, QByteArrayRawHeaderPair
typedef QList< RawHeaderPairRawHeadersList
typedef QHash< QNetworkRequest::KnownHeaders, QVariantCookedHeadersMap
typedef QHash< QNetworkRequest::Attribute, QVariantAttributesMap
typedef QList< QNetworkCookieNetworkCookieList
Static Public Attributes inherited from QNetworkReplyPrivate
static const int progressSignalInterval = 100

Detailed Description

Definition at line 91 of file qnetworkreplywasmimpl_p.h.

Constructor & Destructor Documentation

◆ QNetworkReplyWasmImplPrivate()

QNetworkReplyWasmImplPrivate::QNetworkReplyWasmImplPrivate ( )

Definition at line 59 of file qnetworkreplywasmimpl.cpp.

References QNetworkReplyWasmImplPrivate(), m_fetchContext, and managerPrivate.

Referenced by QNetworkReplyWasmImplPrivate().

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

◆ ~QNetworkReplyWasmImplPrivate()

Member Function Documentation

◆ _q_bufferOutgoingData()

void QNetworkReplyWasmImplPrivate::_q_bufferOutgoingData ( )

Definition at line 468 of file qnetworkreplywasmimpl.cpp.

Referenced by setup().

Here is the caller graph for this function:

◆ _q_bufferOutgoingDataFinished()

void QNetworkReplyWasmImplPrivate::_q_bufferOutgoingDataFinished ( )

Definition at line 451 of file qnetworkreplywasmimpl.cpp.

References doSendRequest(), and state.

Here is the call graph for this function:

◆ dataReceived()

void QNetworkReplyWasmImplPrivate::dataReceived ( const QByteArray & buffer)

Definition at line 356 of file qnetworkreplywasmimpl.cpp.

◆ doSendRequest()

void QNetworkReplyWasmImplPrivate::doSendRequest ( )

Definition at line 246 of file qnetworkreplywasmimpl.cpp.

References FetchContext::FetchContext(), m_fetchContext, outgoingData, and state.

Referenced by _q_bufferOutgoingDataFinished(), and setup().

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

◆ downloadFailed()

void QNetworkReplyWasmImplPrivate::downloadFailed ( emscripten_fetch_t * fetch)
static

◆ downloadProgress()

void QNetworkReplyWasmImplPrivate::downloadProgress ( emscripten_fetch_t * fetch)
static

Definition at line 567 of file qnetworkreplywasmimpl.cpp.

◆ downloadSucceeded()

void QNetworkReplyWasmImplPrivate::downloadSucceeded ( emscripten_fetch_t * fetch)
static

◆ emitDataReadProgress()

void QNetworkReplyWasmImplPrivate::emitDataReadProgress ( qint64 done,
qint64 total )

Definition at line 345 of file qnetworkreplywasmimpl.cpp.

◆ emitReplyError()

void QNetworkReplyWasmImplPrivate::emitReplyError ( QNetworkReply::NetworkError errorCode,
const QString & errorString )

Definition at line 337 of file qnetworkreplywasmimpl.cpp.

◆ headersReceived()

void QNetworkReplyWasmImplPrivate::headersReceived ( const QByteArray & buffer)

Definition at line 422 of file qnetworkreplywasmimpl.cpp.

◆ setCanceled()

void QNetworkReplyWasmImplPrivate::setCanceled ( )

◆ setReplyAttributes()

void QNetworkReplyWasmImplPrivate::setReplyAttributes ( quintptr data,
int statusCode,
const QString & statusReason )
static

Definition at line 232 of file qnetworkreplywasmimpl.cpp.

◆ setReplyFinished()

void QNetworkReplyWasmImplPrivate::setReplyFinished ( )

Definition at line 537 of file qnetworkreplywasmimpl.cpp.

References state.

◆ setStatusCode()

void QNetworkReplyWasmImplPrivate::setStatusCode ( int status,
const QByteArray & statusText )

Definition at line 546 of file qnetworkreplywasmimpl.cpp.

◆ setup()

void QNetworkReplyWasmImplPrivate::setup ( QNetworkAccessManager::Operation op,
const QNetworkRequest & request,
QIODevice * outgoingData )

Definition at line 199 of file qnetworkreplywasmimpl.cpp.

References _q_bufferOutgoingData(), doSendRequest(), outgoingData, and state.

Here is the call graph for this function:

◆ stateChange()

void QNetworkReplyWasmImplPrivate::stateChange ( emscripten_fetch_t * fetch)
static

Definition at line 553 of file qnetworkreplywasmimpl.cpp.

◆ statusCodeFromHttp()

QNetworkReply::NetworkError QNetworkReplyWasmImplPrivate::statusCodeFromHttp ( int httpStatusCode,
const QUrl & url )
static

Definition at line 616 of file qnetworkreplywasmimpl.cpp.

Member Data Documentation

◆ bytesBuffered

qint64 QNetworkReplyWasmImplPrivate::bytesBuffered

Definition at line 119 of file qnetworkreplywasmimpl_p.h.

◆ bytesDownloaded

qint64 QNetworkReplyWasmImplPrivate::bytesDownloaded

Definition at line 118 of file qnetworkreplywasmimpl_p.h.

◆ downloadBuffer

QByteArray QNetworkReplyWasmImplPrivate::downloadBuffer

Definition at line 125 of file qnetworkreplywasmimpl_p.h.

◆ downloadBufferCurrentSize

qint64 QNetworkReplyWasmImplPrivate::downloadBufferCurrentSize

Definition at line 122 of file qnetworkreplywasmimpl_p.h.

◆ downloadBufferReadPosition

qint64 QNetworkReplyWasmImplPrivate::downloadBufferReadPosition

Definition at line 121 of file qnetworkreplywasmimpl_p.h.

◆ m_fetch

emscripten_fetch_t* QNetworkReplyWasmImplPrivate::m_fetch

Definition at line 137 of file qnetworkreplywasmimpl_p.h.

◆ m_fetchContext

FetchContext* QNetworkReplyWasmImplPrivate::m_fetchContext

◆ managerPrivate

QNetworkAccessManagerPrivate* QNetworkReplyWasmImplPrivate::managerPrivate

Definition at line 97 of file qnetworkreplywasmimpl_p.h.

Referenced by QNetworkReplyWasmImplPrivate().

◆ outgoingData

QIODevice* QNetworkReplyWasmImplPrivate::outgoingData

Definition at line 127 of file qnetworkreplywasmimpl_p.h.

Referenced by doSendRequest(), and setup().

◆ outgoingDataBuffer

std::shared_ptr<QRingBuffer> QNetworkReplyWasmImplPrivate::outgoingDataBuffer

Definition at line 128 of file qnetworkreplywasmimpl_p.h.

◆ pendingDownloadData

std::shared_ptr<QAtomicInt> QNetworkReplyWasmImplPrivate::pendingDownloadData

Definition at line 115 of file qnetworkreplywasmimpl_p.h.

◆ pendingDownloadProgress

std::shared_ptr<QAtomicInt> QNetworkReplyWasmImplPrivate::pendingDownloadProgress

Definition at line 116 of file qnetworkreplywasmimpl_p.h.

◆ percentFinished

qint64 QNetworkReplyWasmImplPrivate::percentFinished

Definition at line 124 of file qnetworkreplywasmimpl_p.h.

◆ state

State QNetworkReplyWasmImplPrivate::state

◆ totalDownloadSize

qint64 QNetworkReplyWasmImplPrivate::totalDownloadSize

Definition at line 123 of file qnetworkreplywasmimpl_p.h.


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