diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2010-01-11 12:24:15 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2010-01-11 14:27:13 (GMT) |
commit | 36dcdcdf5b6869ded0401a879b1397ad9d20b324 (patch) | |
tree | 96d86590e989ed623f518b0648683c323ae6c002 /src/network/access/qnetworkaccesshttpbackend_p.h | |
parent | e2a94baeed03edbaeea9b4658f2a820520e1363f (diff) | |
download | Qt-36dcdcdf5b6869ded0401a879b1397ad9d20b324.zip Qt-36dcdcdf5b6869ded0401a879b1397ad9d20b324.tar.gz Qt-36dcdcdf5b6869ded0401a879b1397ad9d20b324.tar.bz2 |
QNAM HTTP: Fix readBuffer maximum size.
QHttpNetworkReply has now a throttled mode. If this is activated,
it will only read HTTP body when its internal buffer is empty.
This means that QNetworkReply.setReadBufferSize() can finally
be used for bandwidth limiting.
Thanks to David Faure for helping out.
Reviewed-By: Peter Hartmann
Diffstat (limited to 'src/network/access/qnetworkaccesshttpbackend_p.h')
-rw-r--r-- | src/network/access/qnetworkaccesshttpbackend_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/access/qnetworkaccesshttpbackend_p.h b/src/network/access/qnetworkaccesshttpbackend_p.h index 705323d..0eaf003 100644 --- a/src/network/access/qnetworkaccesshttpbackend_p.h +++ b/src/network/access/qnetworkaccesshttpbackend_p.h @@ -82,6 +82,8 @@ public: virtual bool waitForDownstreamReadyRead(int msecs); virtual void downstreamReadyWrite(); + virtual void setDownstreamLimited(bool b); + virtual void copyFinished(QIODevice *); #ifndef QT_NO_OPENSSL virtual void ignoreSslErrors(); |