summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorUwe Klotz <uklotz@mixxx.org>2020-03-25 09:55:13 +0100
committerUwe Klotz <uklotz@mixxx.org>2020-03-25 09:55:13 +0100
commitf1d3976921fc96f9b9cd64630d5f58a3dedbc4ce (patch)
tree1ce370e2f9b9d58c1fd5f66dc92120ec1bbdc033 /src/network
parente2740bac94ad34ac8da8fc4a8a6da6bded9e6668 (diff)
Add documentation for pure virtual functions
Diffstat (limited to 'src/network')
-rw-r--r--src/network/webtask.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/network/webtask.h b/src/network/webtask.h
index e78f0c2be9..81f62bc46c 100644
--- a/src/network/webtask.h
+++ b/src/network/webtask.h
@@ -171,10 +171,17 @@ class WebTask : public QObject {
QPair<QNetworkReply*, HttpStatusCode> receiveNetworkReply();
private:
+ // Try to compose and send the actual network request. If
+ // true is returned than the network request is running
+ // and a reply is pending.
virtual bool doStart(
QNetworkAccessManager* networkAccessManager,
int parentTimeoutMillis) = 0;
- // Handle status change requests and return the request URL
+
+ // Handle status change requests by aborting a running request
+ // and return the request URL. If no request is running or if
+ // the request has already been finished tha QUrl() must be
+ // returned.
virtual QUrl doAbort() = 0;
virtual QUrl doTimeOut() = 0;