equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the QtNetwork module of the Qt Toolkit. |
7 ** This file is part of the QtNetwork module of the Qt Toolkit. |
8 ** |
8 ** |
80 virtual void open(); |
80 virtual void open(); |
81 virtual void closeDownstreamChannel(); |
81 virtual void closeDownstreamChannel(); |
82 virtual bool waitForDownstreamReadyRead(int msecs); |
82 virtual bool waitForDownstreamReadyRead(int msecs); |
83 |
83 |
84 virtual void downstreamReadyWrite(); |
84 virtual void downstreamReadyWrite(); |
|
85 virtual void setDownstreamLimited(bool b); |
|
86 |
85 virtual void copyFinished(QIODevice *); |
87 virtual void copyFinished(QIODevice *); |
86 #ifndef QT_NO_OPENSSL |
88 #ifndef QT_NO_OPENSSL |
87 virtual void ignoreSslErrors(); |
89 virtual void ignoreSslErrors(); |
88 virtual void ignoreSslErrors(const QList<QSslError> &errors); |
90 virtual void ignoreSslErrors(const QList<QSslError> &errors); |
89 |
91 |
102 void replyFinished(); |
104 void replyFinished(); |
103 void replyHeaderChanged(); |
105 void replyHeaderChanged(); |
104 void httpAuthenticationRequired(const QHttpNetworkRequest &request, QAuthenticator *auth); |
106 void httpAuthenticationRequired(const QHttpNetworkRequest &request, QAuthenticator *auth); |
105 void httpError(QNetworkReply::NetworkError error, const QString &errorString); |
107 void httpError(QNetworkReply::NetworkError error, const QString &errorString); |
106 bool sendCacheContents(const QNetworkCacheMetaData &metaData); |
108 bool sendCacheContents(const QNetworkCacheMetaData &metaData); |
|
109 void finished(); // override |
107 |
110 |
108 private: |
111 private: |
109 QHttpNetworkReply *httpReply; |
112 QHttpNetworkReply *httpReply; |
110 QPointer<QNetworkAccessCachedHttpConnection> http; |
113 QPointer<QNetworkAccessCachedHttpConnection> http; |
111 QByteArray cacheKey; |
114 QByteArray cacheKey; |
116 bool pendingIgnoreAllSslErrors; |
119 bool pendingIgnoreAllSslErrors; |
117 QList<QSslError> pendingIgnoreSslErrorsList; |
120 QList<QSslError> pendingIgnoreSslErrorsList; |
118 #endif |
121 #endif |
119 |
122 |
120 void disconnectFromHttp(); |
123 void disconnectFromHttp(); |
121 void finished(); // override |
|
122 void setupConnection(); |
124 void setupConnection(); |
123 void validateCache(QHttpNetworkRequest &httpRequest, bool &loadedFromCache); |
125 void validateCache(QHttpNetworkRequest &httpRequest, bool &loadedFromCache); |
124 void invalidateCache(); |
126 void invalidateCache(); |
125 void postRequest(); |
127 void postRequest(); |
126 void readFromHttp(); |
128 void readFromHttp(); |