42 #ifndef QHTTPTHREADDELEGATE_H 43 #define QHTTPTHREADDELEGATE_H 58 #include <QThreadStorage> 59 #include <QNetworkProxy> 60 #include <QSslConfiguration> 63 #include <QNetworkReply> 66 #include <QSharedPointer> 68 #include "private/qnoncontiguousbytedevice_p.h" 101 #ifndef QT_NO_NETWORKPROXY 117 #ifndef QT_NO_BEARERMANAGEMENT 134 #ifndef QT_NO_NETWORKPROXY 137 #ifndef QT_NO_OPENSSL 165 #ifndef QT_NO_OPENSSL 170 #ifndef QT_NO_NETWORKPROXY 196 wantDataPending(false),
217 }
else if (!wantDataPending) {
219 wantDataPending =
true;
220 emit wantData(maximumLength);
237 emit processedData(a);
272 wantDataPending =
false;
274 m_dataArray = dataArray;
275 m_data =
const_cast<char*
>(m_dataArray.
constData());
276 m_amount = dataArray.
size();
291 void processedData(
qint64);
292 void resetData(
bool *b);
299 #endif // QHTTPTHREADDELEGATE_H QNetworkReply::NetworkError incomingErrorCode
QSharedPointer< char > downloadBuffer
#define QT_END_NAMESPACE
This macro expands to.
QNetworkProxy transparentProxy
void synchronousFinishedSlot()
static QThreadStorage< QNetworkAccessCache * > connections
The QByteArray class provides an array of bytes.
void haveDataSlot(QByteArray dataArray, bool dataAtEnd, qint64 dataSize)
void synchronousFinishedWithErrorSlot(QNetworkReply::NetworkError errorCode, const QString &detail=QString())
QHttpNetworkRequest httpRequest
QSslConfiguration incomingSslConfiguration
NetworkError
Indicates all possible error conditions found during the processing of the request.
QString incomingErrorDetail
void downloadMetaData(QList< QPair< QByteArray, QByteArray > >, int, QString, bool, QSharedPointer< char >, qint64)
const char * readPointer(qint64 maximumLength, qint64 &len)
Return a byte pointer for at most maximumLength bytes of that device.
long ASN1_INTEGER_get ASN1_INTEGER * a
void dataReadProgressSlot(int done, int total)
void proxyAuthenticationRequired(const QNetworkProxy &, QAuthenticator *)
The QString class provides a Unicode character string.
void downloadProgress(qint64, qint64)
The QObject class is the base class of all Qt objects.
qint64 downloadBufferMaximumSize
void sslErrors(const QList< QSslError > &, bool *, QList< QSslError > *)
bool advanceReadPointer(qint64 a)
The old readPointer is invalid after this call.
QNonContiguousByteDeviceThreadForwardImpl(bool aE, qint64 s)
void synchronousHeaderChangedSlot()
bool reset()
Moves the internal read pointer back to the beginning.
The QNetworkProxy class provides a network layer proxy.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QEventLoop class provides a means of entering and leaving an event loop.
QEventLoop * synchronousRequestLoop
void error(QNetworkReply::NetworkError, const QString)
void sslConfigurationChanged(const QSslConfiguration)
QHttpThreadDelegate(QObject *parent=0)
qint64 incomingContentLength
QNetworkAccessCachedHttpConnection * httpConnection
void startRequestSynchronously()
QByteArray synchronousDownloadData
The QAuthenticator class provides an authentication object.
const char * constData() const
Returns a pointer to the data stored in the byte array.
~QNonContiguousByteDeviceThreadForwardImpl()
QObject * parent() const
Returns a pointer to the parent object.
QSharedPointer< QNetworkSession > networkSession
void readBufferFreed(qint64 size)
void finishedWithErrorSlot(QNetworkReply::NetworkError errorCode, const QString &detail=QString())
void downloadData(QByteArray)
int size() const
Returns the number of bytes in this byte array.
void synchronousProxyAuthenticationRequiredSlot(const QNetworkProxy &, QAuthenticator *)
QSharedPointer< QAtomicInt > pendingDownloadProgress
QSharedPointer< QNetworkAccessAuthenticationManager > authenticationManager
qint64 size()
Returns the size of the complete device or -1 if unknown.
QList< QPair< QByteArray, QByteArray > > incomingHeaders
void readBufferSizeChanged(qint64 size)
A QNonContiguousByteDevice is a representation of a file, array or buffer that allows access with a r...
The QSslConfiguration class holds the configuration and state of an SSL connection.
void authenticationRequired(const QHttpNetworkRequest &request, QAuthenticator *)
void synchronousAuthenticationRequiredSlot(const QHttpNetworkRequest &request, QAuthenticator *)
QString incomingReasonPhrase
void cacheCredentialsSlot(const QHttpNetworkRequest &request, QAuthenticator *authenticator)
QHttpNetworkReply * httpReply
The QThreadStorage class provides per-thread data storage.
bool atEnd()
Returns true if everything has been read and the read pointer cannot be advanced anymore.
void sslErrorsSlot(const QList< QSslError > &errors)
QSharedPointer< QAtomicInt > pendingDownloadData
The QList class is a template class that provides lists.