path: root/src/network/access/qnetworkaccessdebugpipebackend_p.h
diff options
authorMårten Nordheim <>2020-06-23 17:07:37 +0200
committerMårten Nordheim <>2020-08-27 18:58:21 +0200
commitbba0bdb35c2806bcdde8e89965e99b3d412b8d3a (patch)
tree90b695e41a6257b5c2fce295dfbcb732a1d8a896 /src/network/access/qnetworkaccessdebugpipebackend_p.h
parentf7f79483e73fed5664763a125b3d27861586b7d2 (diff)
Redo QNetworkAccessBackend and various cleanups around it
Makes the QNetworkAccessBackendFactory a real interface to be used in plugins. Requires exporting some classes but they're not made public yet. Removes unused features and functions. Some things are likely still unused due to being specific for HTTP but the HTTP network replies don't use this backend system. Changes QNetworkAccessBackend to use a more traditional read(char*, qint64) function for the "downloaded" data. And an optional readPointer if supported. So far no backends have it so it's somewhat useless, but it may be useful going forward. If not it shall be deleted Converts all current backends to the new setup Easy enough, also gets rid of some unused functions. Task-number: QTBUG-80340 Change-Id: I9339e6c6eb394c471c921f5cafd3af6175936399 Reviewed-by: Qt CI Bot <> Reviewed-by: Edward Welbourne <>
Diffstat (limited to 'src/network/access/qnetworkaccessdebugpipebackend_p.h')
1 files changed, 4 insertions, 4 deletions
diff --git a/src/network/access/qnetworkaccessdebugpipebackend_p.h b/src/network/access/qnetworkaccessdebugpipebackend_p.h
index 761c7055b8..50ef5cea7d 100644
--- a/src/network/access/qnetworkaccessdebugpipebackend_p.h
+++ b/src/network/access/qnetworkaccessdebugpipebackend_p.h
@@ -68,13 +68,13 @@ public:
virtual ~QNetworkAccessDebugPipeBackend();
- virtual void open() override;
- virtual void closeDownstreamChannel() override;
+ void open() override;
+ void close() override;
- virtual void downstreamReadyWrite() override;
+ qint64 read(char *data, qint64 maxlen) override;
+ qint64 bytesAvailable() const override;
- void pushFromSocketToDownstream();
void pushFromUpstreamToSocket();
void possiblyFinish();