Qt 4.8
|
#include <qhttpnetworkconnection_p.h>
Public Types | |
enum | { ChunkSize = 4096 } |
enum | ConnectionState { RunningState = 0, PausedState = 1 } |
Public Types inherited from QObjectPrivate | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
Static Public Variables | |
static const int | defaultChannelCount = 6 |
static const int | defaultPipelineLength = 3 |
static const int | defaultRePipelineLength = 2 |
Friends | |
class | QHttpNetworkConnectionChannel |
Additional Inherited Members | |
Static Public Functions inherited from QObjectPrivate | |
static void | clearGuards (QObject *) |
static QObjectPrivate * | get (QObject *o) |
static void | resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender) |
static Sender * | setCurrentSender (QObject *receiver, Sender *sender) |
static void | signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result) |
Definition at line 142 of file qhttpnetworkconnection_p.h.
anonymous enum |
QHttpNetworkConnectionPrivate::QHttpNetworkConnectionPrivate | ( | const QString & | hostName, |
quint16 | port, | ||
bool | encrypt | ||
) |
Definition at line 84 of file qhttpnetworkconnection.cpp.
QHttpNetworkConnectionPrivate::QHttpNetworkConnectionPrivate | ( | quint16 | channelCount, |
const QString & | hostName, | ||
quint16 | port, | ||
bool | encrypt | ||
) |
Definition at line 95 of file qhttpnetworkconnection.cpp.
QHttpNetworkConnectionPrivate::~QHttpNetworkConnectionPrivate | ( | ) |
Definition at line 108 of file qhttpnetworkconnection.cpp.
void QHttpNetworkConnectionPrivate::_q_startNextRequest | ( | ) |
Definition at line 806 of file qhttpnetworkconnection.cpp.
Referenced by queueRequest().
void QHttpNetworkConnectionPrivate::copyCredentials | ( | int | fromChannel, |
QAuthenticator * | auth, | ||
bool | isProxy | ||
) |
Definition at line 316 of file qhttpnetworkconnection.cpp.
Referenced by handleAuthenticateChallenge().
void QHttpNetworkConnectionPrivate::createAuthorization | ( | QAbstractSocket * | socket, |
QHttpNetworkRequest & | request | ||
) |
Definition at line 441 of file qhttpnetworkconnection.cpp.
bool QHttpNetworkConnectionPrivate::dequeueRequest | ( | QAbstractSocket * | socket | ) |
Definition at line 525 of file qhttpnetworkconnection.cpp.
Referenced by _q_startNextRequest().
void QHttpNetworkConnectionPrivate::emitProxyAuthenticationRequired | ( | const QHttpNetworkConnectionChannel * | chan, |
const QNetworkProxy & | proxy, | ||
QAuthenticator * | auth | ||
) |
Definition at line 1035 of file qhttpnetworkconnection.cpp.
void QHttpNetworkConnectionPrivate::emitReplyError | ( | QAbstractSocket * | socket, |
QHttpNetworkReply * | reply, | ||
QNetworkReply::NetworkError | errorCode | ||
) |
Definition at line 292 of file qhttpnetworkconnection.cpp.
QString QHttpNetworkConnectionPrivate::errorDetail | ( | QNetworkReply::NetworkError | errorCode, |
QAbstractSocket * | socket, | ||
const QString & | extraDetail = QString() |
||
) |
Definition at line 685 of file qhttpnetworkconnection.cpp.
Referenced by emitReplyError(), and handleAuthenticateChallenge().
bool QHttpNetworkConnectionPrivate::expand | ( | QAbstractSocket * | socket, |
QHttpNetworkReply * | reply, | ||
bool | dataComplete | ||
) |
void QHttpNetworkConnectionPrivate::fillPipeline | ( | QAbstractSocket * | socket | ) |
Definition at line 563 of file qhttpnetworkconnection.cpp.
Referenced by _q_startNextRequest().
bool QHttpNetworkConnectionPrivate::fillPipeline | ( | QList< HttpMessagePair > & | queue, |
QHttpNetworkConnectionChannel & | channel | ||
) |
Definition at line 646 of file qhttpnetworkconnection.cpp.
bool QHttpNetworkConnectionPrivate::handleAuthenticateChallenge | ( | QAbstractSocket * | socket, |
QHttpNetworkReply * | reply, | ||
bool | isProxy, | ||
bool & | resend | ||
) |
Definition at line 346 of file qhttpnetworkconnection.cpp.
int QHttpNetworkConnectionPrivate::indexOf | ( | QAbstractSocket * | socket | ) | const |
Definition at line 168 of file qhttpnetworkconnection.cpp.
Referenced by createAuthorization(), dequeueRequest(), emitReplyError(), fillPipeline(), and handleAuthenticateChallenge().
void QHttpNetworkConnectionPrivate::init | ( | ) |
Definition at line 119 of file qhttpnetworkconnection.cpp.
void QHttpNetworkConnectionPrivate::pauseConnection | ( | ) |
Definition at line 132 of file qhttpnetworkconnection.cpp.
Referenced by handleAuthenticateChallenge().
QHttpNetworkRequest QHttpNetworkConnectionPrivate::predictNextRequest | ( | ) |
Definition at line 553 of file qhttpnetworkconnection.cpp.
void QHttpNetworkConnectionPrivate::prepareRequest | ( | HttpMessagePair & | request | ) |
Definition at line 188 of file qhttpnetworkconnection.cpp.
Referenced by dequeueRequest(), and fillPipeline().
QHttpNetworkReply * QHttpNetworkConnectionPrivate::queueRequest | ( | const QHttpNetworkRequest & | request | ) |
Definition at line 472 of file qhttpnetworkconnection.cpp.
void QHttpNetworkConnectionPrivate::readMoreLater | ( | QHttpNetworkReply * | reply | ) |
Definition at line 869 of file qhttpnetworkconnection.cpp.
void QHttpNetworkConnectionPrivate::removeReply | ( | QHttpNetworkReply * | reply | ) |
Definition at line 729 of file qhttpnetworkconnection.cpp.
void QHttpNetworkConnectionPrivate::requeueRequest | ( | const HttpMessagePair & | pair | ) |
Definition at line 507 of file qhttpnetworkconnection.cpp.
void QHttpNetworkConnectionPrivate::resumeConnection | ( | ) |
Definition at line 147 of file qhttpnetworkconnection.cpp.
Referenced by handleAuthenticateChallenge().
qint64 QHttpNetworkConnectionPrivate::uncompressedBytesAvailable | ( | const QHttpNetworkReply & | reply | ) | const |
Definition at line 178 of file qhttpnetworkconnection.cpp.
qint64 QHttpNetworkConnectionPrivate::uncompressedBytesAvailableNextBlock | ( | const QHttpNetworkReply & | reply | ) | const |
Definition at line 183 of file qhttpnetworkconnection.cpp.
|
friend |
Definition at line 222 of file qhttpnetworkconnection_p.h.
const int QHttpNetworkConnectionPrivate::channelCount |
Definition at line 199 of file qhttpnetworkconnection_p.h.
Referenced by _q_startNextRequest(), copyCredentials(), indexOf(), init(), pauseConnection(), QHttpNetworkConnectionPrivate(), readMoreLater(), removeReply(), resumeConnection(), and ~QHttpNetworkConnectionPrivate().
QHttpNetworkConnectionChannel* QHttpNetworkConnectionPrivate::channels |
Definition at line 200 of file qhttpnetworkconnection_p.h.
Referenced by _q_startNextRequest(), copyCredentials(), createAuthorization(), dequeueRequest(), emitReplyError(), fillPipeline(), handleAuthenticateChallenge(), indexOf(), init(), pauseConnection(), QHttpNetworkConnectionPrivate(), queueRequest(), readMoreLater(), removeReply(), resumeConnection(), and ~QHttpNetworkConnectionPrivate().
|
static |
Definition at line 146 of file qhttpnetworkconnection_p.h.
|
static |
Definition at line 147 of file qhttpnetworkconnection_p.h.
Referenced by fillPipeline().
|
static |
Definition at line 148 of file qhttpnetworkconnection_p.h.
Referenced by fillPipeline().
bool QHttpNetworkConnectionPrivate::encrypt |
Definition at line 197 of file qhttpnetworkconnection_p.h.
Referenced by init(), pauseConnection(), and resumeConnection().
QList<HttpMessagePair> QHttpNetworkConnectionPrivate::highPriorityQueue |
Definition at line 215 of file qhttpnetworkconnection_p.h.
Referenced by _q_startNextRequest(), dequeueRequest(), fillPipeline(), predictNextRequest(), queueRequest(), removeReply(), and requeueRequest().
QString QHttpNetworkConnectionPrivate::hostName |
Definition at line 195 of file qhttpnetworkconnection_p.h.
Referenced by prepareRequest().
QList<HttpMessagePair> QHttpNetworkConnectionPrivate::lowPriorityQueue |
Definition at line 216 of file qhttpnetworkconnection_p.h.
Referenced by _q_startNextRequest(), dequeueRequest(), fillPipeline(), predictNextRequest(), queueRequest(), removeReply(), and requeueRequest().
QNetworkProxy QHttpNetworkConnectionPrivate::networkProxy |
Definition at line 210 of file qhttpnetworkconnection_p.h.
Referenced by handleAuthenticateChallenge(), and prepareRequest().
QSharedPointer<QNetworkSession> QHttpNetworkConnectionPrivate::networkSession |
Definition at line 219 of file qhttpnetworkconnection_p.h.
Referenced by init().
quint16 QHttpNetworkConnectionPrivate::port |
Definition at line 196 of file qhttpnetworkconnection_p.h.
Referenced by prepareRequest().
ConnectionState QHttpNetworkConnectionPrivate::state |
Definition at line 162 of file qhttpnetworkconnection_p.h.
Referenced by _q_startNextRequest(), fillPipeline(), pauseConnection(), and resumeConnection().