![]() |
Qt 4.8
|
#include <qhttpnetworkconnectionchannel_p.h>
Public Types | |
| enum | ChannelState { IdleState = 0, ConnectingState = 1, WritingState = 2, WaitingState = 4, ReadingState = 8, ClosingState = 16, BusyState = (ConnectingState|WritingState|WaitingState|ReadingState|ClosingState) } |
| enum | PipeliningSupport { PipeliningSupportUnknown, PipeliningProbablySupported, PipeliningNotSupported } |
Public Functions | |
| void | allDone () |
| void | close () |
| void | closeAndResendCurrentRequest () |
| void | detectPipeliningSupport () |
| bool | ensureConnection () |
| bool | expand (bool dataComplete) |
| void | handleStatus () |
| void | handleUnexpectedEOF () |
| void | init () |
| bool | isSocketBusy () const |
| bool | isSocketReading () const |
| bool | isSocketWaiting () const |
| bool | isSocketWriting () const |
| void | pipelineFlush () |
| void | pipelineInto (HttpMessagePair &pair) |
| QHttpNetworkConnectionChannel () | |
| void | requeueCurrentlyPipelinedRequests () |
| bool | resetUploadData () |
| bool | sendRequest () |
| void | setConnection (QHttpNetworkConnection *c) |
Public Functions inherited from QObject | |
| bool | blockSignals (bool b) |
| If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it). More... | |
| const QObjectList & | children () const |
| Returns a list of child objects. More... | |
| bool | connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const |
| bool | disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0) |
| bool | disconnect (const QObject *receiver, const char *member=0) |
| void | dumpObjectInfo () |
| Dumps information about signal connections, etc. More... | |
| void | dumpObjectTree () |
| Dumps a tree of children to the debug output. More... | |
| QList< QByteArray > | dynamicPropertyNames () const |
| Returns the names of all properties that were dynamically added to the object using setProperty(). More... | |
| virtual bool | event (QEvent *) |
| This virtual function receives events to an object and should return true if the event e was recognized and processed. More... | |
| virtual bool | eventFilter (QObject *, QEvent *) |
| Filters events if this object has been installed as an event filter for the watched object. More... | |
| template<typename T > | |
| T | findChild (const QString &aName=QString()) const |
| Returns the child of this object that can be cast into type T and that is called name, or 0 if there is no such object. More... | |
| template<typename T > | |
| QList< T > | findChildren (const QString &aName=QString()) const |
| Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects. More... | |
| template<typename T > | |
| QList< T > | findChildren (const QRegExp &re) const |
| bool | inherits (const char *classname) const |
| Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false. More... | |
| void | installEventFilter (QObject *) |
| Installs an event filter filterObj on this object. More... | |
| bool | isWidgetType () const |
| Returns true if the object is a widget; otherwise returns false. More... | |
| void | killTimer (int id) |
| Kills the timer with timer identifier, id. More... | |
| virtual const QMetaObject * | metaObject () const |
| Returns a pointer to the meta-object of this object. More... | |
| void | moveToThread (QThread *thread) |
| Changes the thread affinity for this object and its children. More... | |
| QString | objectName () const |
| QObject * | parent () const |
| Returns a pointer to the parent object. More... | |
| QVariant | property (const char *name) const |
| Returns the value of the object's name property. More... | |
| Q_INVOKABLE | QObject (QObject *parent=0) |
| Constructs an object with parent object parent. More... | |
| void | removeEventFilter (QObject *) |
| Removes an event filter object obj from this object. More... | |
| void | setObjectName (const QString &name) |
| void | setParent (QObject *) |
| Makes the object a child of parent. More... | |
| bool | setProperty (const char *name, const QVariant &value) |
| Sets the value of the object's name property to value. More... | |
| void | setUserData (uint id, QObjectUserData *data) |
| bool | signalsBlocked () const |
| Returns true if signals are blocked; otherwise returns false. More... | |
| int | startTimer (int interval) |
| Starts a timer and returns a timer identifier, or returns zero if it could not start a timer. More... | |
| QThread * | thread () const |
| Returns the thread in which the object lives. More... | |
| QObjectUserData * | userData (uint id) const |
| virtual | ~QObject () |
| Destroys the object, deleting all its child objects. More... | |
Protected Slots | |
| void | _q_bytesWritten (qint64 bytes) |
| void | _q_connected () |
| void | _q_disconnected () |
| void | _q_encrypted () |
| void | _q_encryptedBytesWritten (qint64 bytes) |
| void | _q_error (QAbstractSocket::SocketError) |
| void | _q_proxyAuthenticationRequired (const QNetworkProxy &proxy, QAuthenticator *auth) |
| void | _q_readyRead () |
| void | _q_receiveReply () |
| void | _q_sslErrors (const QList< QSslError > &errors) |
| void | _q_uploadDataReadyRead () |
Friends | |
| class | QNetworkAccessHttpBackend |
Additional Inherited Members | |
Public Slots inherited from QObject | |
| void | deleteLater () |
| Schedules this object for deletion. More... | |
Signals inherited from QObject | |
| void | destroyed (QObject *=0) |
| This signal is emitted immediately before the object obj is destroyed, and can not be blocked. More... | |
Static Public Functions inherited from QObject | |
| static bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection) |
| Creates a connection of the given type from the signal in the sender object to the method in the receiver object. More... | |
| static bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection) |
| static bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member) |
| Disconnects signal in object sender from method in object receiver. More... | |
| static bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member) |
| static uint | registerUserData () |
| static QString | tr (const char *sourceText, const char *comment=0, int n=-1) |
| static QString | trUtf8 (const char *sourceText, const char *comment=0, int n=-1) |
Static Public Variables inherited from QObject | |
| static const QMetaObject | staticMetaObject |
| This variable stores the meta-object for the class. More... | |
Protected Functions inherited from QObject | |
| virtual void | childEvent (QChildEvent *) |
| This event handler can be reimplemented in a subclass to receive child events. More... | |
| virtual void | connectNotify (const char *signal) |
| This virtual function is called when something has been connected to signal in this object. More... | |
| virtual void | customEvent (QEvent *) |
| This event handler can be reimplemented in a subclass to receive custom events. More... | |
| virtual void | disconnectNotify (const char *signal) |
| This virtual function is called when something has been disconnected from signal in this object. More... | |
| QObject (QObjectPrivate &dd, QObject *parent=0) | |
| int | receivers (const char *signal) const |
| Returns the number of receivers connected to the signal. More... | |
| QObject * | sender () const |
| Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns 0. More... | |
| int | senderSignalIndex () const |
| virtual void | timerEvent (QTimerEvent *) |
| This event handler can be reimplemented in a subclass to receive timer events for the object. More... | |
Protected Variables inherited from QObject | |
| QScopedPointer< QObjectData > | d_ptr |
Static Protected Variables inherited from QObject | |
| static const QMetaObject | staticQtMetaObject |
Related Functions inherited from QObject | |
| T | qFindChildqFindChildren (const QObject *obj, const QString &name)() |
| QList< T > | qFindChildrenqFindChildren (const QObject *obj, const QString &name)() |
| QList< T > | qFindChildrenqFindChildren (const QObject *obj, const QRegExp ®Exp)() |
| T * | qobject_cast (QObject *object) |
| QObjectList | |
| void * | qt_find_obj_child (QObject *parent, const char *type, const QString &name) |
| Returns a pointer to the object named name that inherits type and with a given parent. More... | |
Definition at line 89 of file qhttpnetworkconnectionchannel_p.h.
| Enumerator | |
|---|---|
| IdleState | |
| ConnectingState | |
| WritingState | |
| WaitingState | |
| ReadingState | |
| ClosingState | |
| BusyState | |
Definition at line 92 of file qhttpnetworkconnectionchannel_p.h.
| Enumerator | |
|---|---|
| PipeliningSupportUnknown | |
| PipeliningProbablySupported | |
| PipeliningNotSupported | |
Definition at line 127 of file qhttpnetworkconnectionchannel_p.h.
| QHttpNetworkConnectionChannel::QHttpNetworkConnectionChannel | ( | ) |
Definition at line 65 of file qhttpnetworkconnectionchannel.cpp.
|
protectedslot |
Definition at line 980 of file qhttpnetworkconnectionchannel.cpp.
Referenced by init().
|
protectedslot |
Definition at line 1014 of file qhttpnetworkconnectionchannel.cpp.
Referenced by init().
|
protectedslot |
Definition at line 989 of file qhttpnetworkconnectionchannel.cpp.
Referenced by init().
|
protectedslot |
Definition at line 1164 of file qhttpnetworkconnectionchannel.cpp.
Referenced by init().
|
protectedslot |
Definition at line 1191 of file qhttpnetworkconnectionchannel.cpp.
Referenced by init().
|
protectedslot |
Definition at line 1042 of file qhttpnetworkconnectionchannel.cpp.
Referenced by _q_readyRead(), and init().
|
protectedslot |
Definition at line 1148 of file qhttpnetworkconnectionchannel.cpp.
Referenced by init().
|
protectedslot |
Definition at line 955 of file qhttpnetworkconnectionchannel.cpp.
Referenced by init().
|
protectedslot |
Definition at line 334 of file qhttpnetworkconnectionchannel.cpp.
Referenced by _q_disconnected(), _q_error(), and _q_readyRead().
Definition at line 1176 of file qhttpnetworkconnectionchannel.cpp.
Referenced by init().
|
protectedslot |
Definition at line 1158 of file qhttpnetworkconnectionchannel.cpp.
Referenced by sendRequest().
| void QHttpNetworkConnectionChannel::allDone | ( | ) |
Definition at line 687 of file qhttpnetworkconnectionchannel.cpp.
Referenced by _q_receiveReply().
| void QHttpNetworkConnectionChannel::close | ( | ) |
Definition at line 159 of file qhttpnetworkconnectionchannel.cpp.
Referenced by _q_disconnected(), _q_error(), _q_receiveReply(), allDone(), closeAndResendCurrentRequest(), QHttpNetworkConnectionPrivate::emitReplyError(), handleStatus(), and handleUnexpectedEOF().
| void QHttpNetworkConnectionChannel::closeAndResendCurrentRequest | ( | ) |
Definition at line 924 of file qhttpnetworkconnectionchannel.cpp.
Referenced by _q_error(), handleStatus(), and handleUnexpectedEOF().
| void QHttpNetworkConnectionChannel::detectPipeliningSupport | ( | ) |
Definition at line 777 of file qhttpnetworkconnectionchannel.cpp.
Referenced by allDone().
| bool QHttpNetworkConnectionChannel::ensureConnection | ( | ) |
Definition at line 535 of file qhttpnetworkconnectionchannel.cpp.
Referenced by QHttpNetworkConnectionPrivate::_q_startNextRequest(), and sendRequest().
| bool QHttpNetworkConnectionChannel::expand | ( | bool | dataComplete | ) |
Definition at line 647 of file qhttpnetworkconnectionchannel.cpp.
Referenced by _q_receiveReply(), and allDone().
| void QHttpNetworkConnectionChannel::handleStatus | ( | ) |
Definition at line 818 of file qhttpnetworkconnectionchannel.cpp.
Referenced by allDone().
| void QHttpNetworkConnectionChannel::handleUnexpectedEOF | ( | ) |
Definition at line 516 of file qhttpnetworkconnectionchannel.cpp.
Referenced by _q_receiveReply().
| void QHttpNetworkConnectionChannel::init | ( | ) |
Definition at line 90 of file qhttpnetworkconnectionchannel.cpp.
Referenced by QHttpNetworkConnectionPrivate::init().
| bool QHttpNetworkConnectionChannel::isSocketBusy | ( | ) | const |
Definition at line 934 of file qhttpnetworkconnectionchannel.cpp.
| bool QHttpNetworkConnectionChannel::isSocketReading | ( | ) | const |
Definition at line 949 of file qhttpnetworkconnectionchannel.cpp.
Referenced by _q_disconnected(), and _q_readyRead().
| bool QHttpNetworkConnectionChannel::isSocketWaiting | ( | ) | const |
Definition at line 944 of file qhttpnetworkconnectionchannel.cpp.
Referenced by _q_disconnected(), and _q_readyRead().
| bool QHttpNetworkConnectionChannel::isSocketWriting | ( | ) | const |
Definition at line 939 of file qhttpnetworkconnectionchannel.cpp.
Referenced by _q_bytesWritten(), and _q_encryptedBytesWritten().
| void QHttpNetworkConnectionChannel::pipelineFlush | ( | ) |
Definition at line 909 of file qhttpnetworkconnectionchannel.cpp.
Referenced by QHttpNetworkConnectionPrivate::fillPipeline().
| void QHttpNetworkConnectionChannel::pipelineInto | ( | HttpMessagePair & | pair | ) |
Definition at line 885 of file qhttpnetworkconnectionchannel.cpp.
Referenced by QHttpNetworkConnectionPrivate::fillPipeline().
| void QHttpNetworkConnectionChannel::requeueCurrentlyPipelinedRequests | ( | ) |
Definition at line 805 of file qhttpnetworkconnectionchannel.cpp.
Referenced by _q_disconnected(), allDone(), closeAndResendCurrentRequest(), QHttpNetworkConnectionPrivate::emitReplyError(), handleUnexpectedEOF(), and QHttpNetworkConnectionPrivate::removeReply().
| bool QHttpNetworkConnectionChannel::resetUploadData | ( | ) |
Definition at line 865 of file qhttpnetworkconnectionchannel.cpp.
Referenced by handleStatus().
| bool QHttpNetworkConnectionChannel::sendRequest | ( | ) |
Definition at line 170 of file qhttpnetworkconnectionchannel.cpp.
Referenced by _q_bytesWritten(), _q_connected(), _q_encrypted(), _q_encryptedBytesWritten(), QHttpNetworkConnectionPrivate::_q_startNextRequest(), and _q_uploadDataReadyRead().
| void QHttpNetworkConnectionChannel::setConnection | ( | QHttpNetworkConnection * | c | ) |
Definition at line 1202 of file qhttpnetworkconnectionchannel.cpp.
Referenced by QHttpNetworkConnectionPrivate::init().
|
friend |
Definition at line 166 of file qhttpnetworkconnectionchannel_p.h.
| QList<HttpMessagePair> QHttpNetworkConnectionChannel::alreadyPipelinedRequests |
Definition at line 133 of file qhttpnetworkconnectionchannel_p.h.
Referenced by allDone(), QHttpNetworkConnectionPrivate::fillPipeline(), handleStatus(), pipelineInto(), QHttpNetworkConnectionPrivate::removeReply(), and requeueCurrentlyPipelinedRequests().
| bool QHttpNetworkConnectionChannel::authenticationCredentialsSent |
Definition at line 116 of file qhttpnetworkconnectionchannel_p.h.
Referenced by QHttpNetworkConnectionPrivate::createAuthorization(), ensureConnection(), and QHttpNetworkConnectionPrivate::handleAuthenticateChallenge().
| QAuthenticator QHttpNetworkConnectionChannel::authenticator |
Definition at line 114 of file qhttpnetworkconnectionchannel_p.h.
Referenced by QHttpNetworkConnectionPrivate::copyCredentials(), ensureConnection(), QHttpNetworkConnectionPrivate::fillPipeline(), QHttpNetworkConnectionPrivate::handleAuthenticateChallenge(), and sendRequest().
| QAuthenticatorPrivate::Method QHttpNetworkConnectionChannel::authMethod |
Definition at line 112 of file qhttpnetworkconnectionchannel_p.h.
Referenced by QHttpNetworkConnectionPrivate::handleAuthenticateChallenge().
| qint64 QHttpNetworkConnectionChannel::bytesTotal |
Definition at line 107 of file qhttpnetworkconnectionchannel_p.h.
Referenced by allDone(), and sendRequest().
| QPointer<QHttpNetworkConnection> QHttpNetworkConnectionChannel::connection |
Definition at line 143 of file qhttpnetworkconnectionchannel_p.h.
Referenced by _q_connected(), _q_disconnected(), _q_encrypted(), _q_error(), _q_proxyAuthenticationRequired(), _q_receiveReply(), _q_sslErrors(), allDone(), closeAndResendCurrentRequest(), ensureConnection(), expand(), handleStatus(), handleUnexpectedEOF(), init(), pipelineInto(), requeueCurrentlyPipelinedRequests(), resetUploadData(), sendRequest(), and setConnection().
| bool QHttpNetworkConnectionChannel::ignoreAllSslErrors |
Definition at line 119 of file qhttpnetworkconnectionchannel_p.h.
Referenced by ensureConnection().
Definition at line 120 of file qhttpnetworkconnectionchannel_p.h.
Referenced by ensureConnection().
| int QHttpNetworkConnectionChannel::lastStatus |
Definition at line 109 of file qhttpnetworkconnectionchannel_p.h.
Referenced by _q_receiveReply().
| QSharedPointer<QNetworkSession> QHttpNetworkConnectionChannel::networkSession |
Definition at line 123 of file qhttpnetworkconnectionchannel_p.h.
Referenced by init(), and QHttpNetworkConnectionPrivate::init().
| bool QHttpNetworkConnectionChannel::pendingEncrypt |
Definition at line 110 of file qhttpnetworkconnectionchannel_p.h.
Referenced by _q_connected(), _q_encrypted(), _q_sslErrors(), and ensureConnection().
| QByteArray QHttpNetworkConnectionChannel::pipeline |
Definition at line 134 of file qhttpnetworkconnectionchannel_p.h.
Referenced by pipelineFlush(), and pipelineInto().
| PipeliningSupport QHttpNetworkConnectionChannel::pipeliningSupported |
Definition at line 132 of file qhttpnetworkconnectionchannel_p.h.
Referenced by _q_connected(), detectPipeliningSupport(), and ensureConnection().
| QAuthenticator QHttpNetworkConnectionChannel::proxyAuthenticator |
Definition at line 115 of file qhttpnetworkconnectionchannel_p.h.
Referenced by QHttpNetworkConnectionPrivate::copyCredentials(), ensureConnection(), QHttpNetworkConnectionPrivate::fillPipeline(), and QHttpNetworkConnectionPrivate::handleAuthenticateChallenge().
| QAuthenticatorPrivate::Method QHttpNetworkConnectionChannel::proxyAuthMethod |
Definition at line 113 of file qhttpnetworkconnectionchannel_p.h.
Referenced by QHttpNetworkConnectionPrivate::handleAuthenticateChallenge().
| bool QHttpNetworkConnectionChannel::proxyCredentialsSent |
Definition at line 117 of file qhttpnetworkconnectionchannel_p.h.
Referenced by QHttpNetworkConnectionPrivate::createAuthorization(), ensureConnection(), and QHttpNetworkConnectionPrivate::handleAuthenticateChallenge().
| int QHttpNetworkConnectionChannel::reconnectAttempts |
Definition at line 111 of file qhttpnetworkconnectionchannel_p.h.
Referenced by _q_error(), allDone(), and handleUnexpectedEOF().
| QHttpNetworkReply* QHttpNetworkConnectionChannel::reply |
Definition at line 105 of file qhttpnetworkconnectionchannel_p.h.
Referenced by _q_connected(), _q_disconnected(), _q_encrypted(), _q_error(), _q_proxyAuthenticationRequired(), _q_readyRead(), _q_receiveReply(), _q_sslErrors(), allDone(), closeAndResendCurrentRequest(), QHttpNetworkConnectionPrivate::dequeueRequest(), detectPipeliningSupport(), QHttpNetworkConnectionPrivate::emitProxyAuthenticationRequired(), QHttpNetworkConnectionPrivate::emitReplyError(), ensureConnection(), expand(), QHttpNetworkConnectionPrivate::handleAuthenticateChallenge(), handleStatus(), handleUnexpectedEOF(), pipelineInto(), QHttpNetworkConnectionPrivate::removeReply(), resetUploadData(), and sendRequest().
| QHttpNetworkRequest QHttpNetworkConnectionChannel::request |
Definition at line 104 of file qhttpnetworkconnectionchannel_p.h.
Referenced by allDone(), QHttpNetworkConnectionPrivate::dequeueRequest(), QHttpNetworkConnectionPrivate::emitReplyError(), ensureConnection(), pipelineInto(), QHttpNetworkConnectionPrivate::removeReply(), resetUploadData(), and sendRequest().
| bool QHttpNetworkConnectionChannel::resendCurrent |
Definition at line 108 of file qhttpnetworkconnectionchannel_p.h.
Referenced by _q_disconnected(), QHttpNetworkConnectionPrivate::_q_startNextRequest(), allDone(), closeAndResendCurrentRequest(), ensureConnection(), handleStatus(), and QHttpNetworkConnectionPrivate::removeReply().
| QAbstractSocket* QHttpNetworkConnectionChannel::socket |
Definition at line 101 of file qhttpnetworkconnectionchannel_p.h.
Referenced by _q_connected(), _q_encrypted(), _q_error(), _q_proxyAuthenticationRequired(), _q_readyRead(), _q_receiveReply(), _q_sslErrors(), QHttpNetworkConnectionPrivate::_q_startNextRequest(), allDone(), close(), detectPipeliningSupport(), QHttpNetworkConnectionPrivate::emitProxyAuthenticationRequired(), ensureConnection(), expand(), handleStatus(), handleUnexpectedEOF(), init(), pipelineFlush(), resetUploadData(), sendRequest(), and QHttpNetworkConnectionPrivate::~QHttpNetworkConnectionPrivate().
| bool QHttpNetworkConnectionChannel::ssl |
Definition at line 102 of file qhttpnetworkconnectionchannel_p.h.
Referenced by _q_error(), ensureConnection(), and QHttpNetworkConnectionPrivate::init().
| ChannelState QHttpNetworkConnectionChannel::state |
Definition at line 103 of file qhttpnetworkconnectionchannel_p.h.
Referenced by _q_connected(), _q_disconnected(), _q_encrypted(), _q_error(), _q_readyRead(), _q_receiveReply(), QHttpNetworkConnectionPrivate::_q_startNextRequest(), allDone(), close(), ensureConnection(), isSocketBusy(), isSocketReading(), isSocketWaiting(), isSocketWriting(), and sendRequest().
| qint64 QHttpNetworkConnectionChannel::written |
Definition at line 106 of file qhttpnetworkconnectionchannel_p.h.
Referenced by allDone(), resetUploadData(), and sendRequest().