diff -r 2f34d5167611 -r fcece45ef507 src/network/access/qhttpnetworkconnectionchannel_p.h --- a/src/network/access/qhttpnetworkconnectionchannel_p.h Fri Apr 16 15:50:13 2010 +0300 +++ b/src/network/access/qhttpnetworkconnectionchannel_p.h Mon May 03 13:17:34 2010 +0300 @@ -65,6 +65,7 @@ #include #include +#include "qhttpnetworkconnection_p.h" #ifndef QT_NO_HTTP @@ -80,7 +81,6 @@ class QHttpNetworkRequest; class QHttpNetworkReply; class QByteArray; -class QHttpNetworkConnection; #ifndef HttpMessagePair typedef QPair HttpMessagePair; @@ -127,18 +127,10 @@ QList alreadyPipelinedRequests; - QHttpNetworkConnectionChannel() : socket(0), state(IdleState), reply(0), written(0), bytesTotal(0), resendCurrent(false), - lastStatus(0), pendingEncrypt(false), reconnectAttempts(2), - authMehtod(QAuthenticatorPrivate::None), proxyAuthMehtod(QAuthenticatorPrivate::None) -#ifndef QT_NO_OPENSSL - , ignoreAllSslErrors(false) -#endif - , pipeliningSupported(PipeliningSupportUnknown) - , connection(0) - {} - - void setConnection(QHttpNetworkConnection *c) {connection = c;} - QHttpNetworkConnection *connection; + QHttpNetworkConnectionChannel(); + + void setConnection(QHttpNetworkConnection *c); + QPointer connection; void init(); void close(); @@ -187,8 +179,6 @@ #endif }; - - QT_END_NAMESPACE #endif // QT_NO_HTTP