Qt 6.x
The Qt SDK
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, int bufferSize)
 
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 ()
 
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)
 
void _q_reregisterTimers (void *pointer)
 
bool isSender (const QObject *receiver, const char *signal) const
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () 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
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 
- Public Member Functions inherited from QNetworkHeadersPrivate
RawHeadersList::ConstIterator findRawHeader (const QByteArray &key) const
 
RawHeadersList allRawHeaders () const
 
QList< QByteArrayrawHeadersKeys () const
 
void setRawHeader (const QByteArray &key, const QByteArray &value)
 
void setAllRawHeaders (const RawHeadersList &list)
 
void setCookedHeader (QNetworkRequest::KnownHeaders header, const QVariant &value)
 

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 (const QByteArray &value)
 
static QByteArray toHttpDate (const QDateTime &dt)
 

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
 
QByteArray requestData
 
emscripten_fetch_t * m_fetch
 
- 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 unused: 21
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 
- Public Attributes inherited from QNetworkHeadersPrivate
RawHeadersList rawHeaders
 
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  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
 
- Static Public Attributes inherited from QNetworkReplyPrivate
static const int progressSignalInterval = 100
 

Detailed Description

Definition at line 66 of file qnetworkreplywasmimpl_p.h.

Constructor & Destructor Documentation

◆ QNetworkReplyWasmImplPrivate()

QNetworkReplyWasmImplPrivate::QNetworkReplyWasmImplPrivate ( )

Definition at line 58 of file qnetworkreplywasmimpl.cpp.

◆ ~QNetworkReplyWasmImplPrivate()

QNetworkReplyWasmImplPrivate::~QNetworkReplyWasmImplPrivate ( )

Definition at line 69 of file qnetworkreplywasmimpl.cpp.

Member Function Documentation

◆ _q_bufferOutgoingData()

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

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

◆ _q_bufferOutgoingDataFinished()

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

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

◆ dataReceived()

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.

+ Here is the call graph for this function:

◆ doSendRequest()

◆ downloadFailed()

void QNetworkReplyWasmImplPrivate::downloadFailed ( emscripten_fetch_t *  fetch)
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().

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

◆ downloadProgress()

void QNetworkReplyWasmImplPrivate::downloadProgress ( emscripten_fetch_t *  fetch)
static

Definition at line 517 of file qnetworkreplywasmimpl.cpp.

References QNetworkReplyPrivate::Aborted, and reply.

Referenced by doSendRequest().

+ Here is the caller graph for this function:

◆ downloadSucceeded()

void QNetworkReplyWasmImplPrivate::downloadSucceeded ( emscripten_fetch_t *  fetch)
static

Definition at line 473 of file qnetworkreplywasmimpl.cpp.

References QNetworkReplyPrivate::Aborted, QIODevicePrivate::buffer, and reply.

Referenced by doSendRequest().

+ Here is the caller graph for this function:

◆ emitDataReadProgress()

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

Definition at line 310 of file qnetworkreplywasmimpl.cpp.

References emit, percentFinished, and totalDownloadSize.

◆ emitReplyError()

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

+ Here is the caller graph for this function:

◆ headersReceived()

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

+ Here is the call graph for this function:

◆ setCanceled()

void QNetworkReplyWasmImplPrivate::setCanceled ( )

Definition at line 131 of file qnetworkreplywasmimpl.cpp.

References emit, emitReplyError(), m_fetch, QNetworkReply::OperationCanceledError, and QStringLiteral.

+ Here is the call graph for this function:

◆ setReplyAttributes()

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

Definition at line 205 of file qnetworkreplywasmimpl.cpp.

References QNetworkRequest::HttpReasonPhraseAttribute, QNetworkRequest::HttpStatusCodeAttribute, QString::isEmpty(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ setReplyFinished()

void QNetworkReplyWasmImplPrivate::setReplyFinished ( )

Definition at line 489 of file qnetworkreplywasmimpl.cpp.

References emit.

◆ setStatusCode()

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

◆ setup()

◆ stateChange()

void QNetworkReplyWasmImplPrivate::stateChange ( emscripten_fetch_t *  fetch)
static

Definition at line 504 of file qnetworkreplywasmimpl.cpp.

References QNetworkReplyPrivate::Aborted, QString::data(), reply, QString::size(), str, and Qt::Uninitialized.

Referenced by doSendRequest().

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

◆ statusCodeFromHttp()

Member Data Documentation

◆ bytesBuffered

qint64 QNetworkReplyWasmImplPrivate::bytesBuffered

Definition at line 94 of file qnetworkreplywasmimpl_p.h.

Referenced by _q_bufferOutgoingData().

◆ bytesDownloaded

qint64 QNetworkReplyWasmImplPrivate::bytesDownloaded

Definition at line 93 of file qnetworkreplywasmimpl_p.h.

Referenced by dataReceived().

◆ downloadBuffer

QByteArray QNetworkReplyWasmImplPrivate::downloadBuffer

Definition at line 100 of file qnetworkreplywasmimpl_p.h.

Referenced by dataReceived().

◆ downloadBufferCurrentSize

qint64 QNetworkReplyWasmImplPrivate::downloadBufferCurrentSize

Definition at line 97 of file qnetworkreplywasmimpl_p.h.

Referenced by dataReceived().

◆ downloadBufferReadPosition

qint64 QNetworkReplyWasmImplPrivate::downloadBufferReadPosition

Definition at line 96 of file qnetworkreplywasmimpl_p.h.

◆ m_fetch

emscripten_fetch_t* QNetworkReplyWasmImplPrivate::m_fetch

Definition at line 113 of file qnetworkreplywasmimpl_p.h.

Referenced by doSendRequest(), and setCanceled().

◆ managerPrivate

QNetworkAccessManagerPrivate* QNetworkReplyWasmImplPrivate::managerPrivate

Definition at line 72 of file qnetworkreplywasmimpl_p.h.

◆ outgoingData

QIODevice* QNetworkReplyWasmImplPrivate::outgoingData

◆ outgoingDataBuffer

std::shared_ptr<QRingBuffer> QNetworkReplyWasmImplPrivate::outgoingDataBuffer

Definition at line 103 of file qnetworkreplywasmimpl_p.h.

Referenced by _q_bufferOutgoingData().

◆ pendingDownloadData

std::shared_ptr<QAtomicInt> QNetworkReplyWasmImplPrivate::pendingDownloadData

Definition at line 90 of file qnetworkreplywasmimpl_p.h.

◆ pendingDownloadProgress

std::shared_ptr<QAtomicInt> QNetworkReplyWasmImplPrivate::pendingDownloadProgress

Definition at line 91 of file qnetworkreplywasmimpl_p.h.

◆ percentFinished

qint64 QNetworkReplyWasmImplPrivate::percentFinished

Definition at line 99 of file qnetworkreplywasmimpl_p.h.

Referenced by dataReceived(), and emitDataReadProgress().

◆ requestData

QByteArray QNetworkReplyWasmImplPrivate::requestData

Definition at line 104 of file qnetworkreplywasmimpl_p.h.

Referenced by doSendRequest().

◆ state

State QNetworkReplyWasmImplPrivate::state

Definition at line 86 of file qnetworkreplywasmimpl_p.h.

Referenced by _q_bufferOutgoingDataFinished(), doSendRequest(), and setup().

◆ totalDownloadSize

qint64 QNetworkReplyWasmImplPrivate::totalDownloadSize

Definition at line 98 of file qnetworkreplywasmimpl_p.h.

Referenced by dataReceived(), doSendRequest(), and emitDataReadProgress().


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