aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/downloadrequest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/cloud/downloadrequest.cpp')
-rw-r--r--backends/cloud/downloadrequest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/cloud/downloadrequest.cpp b/backends/cloud/downloadrequest.cpp
index 43bb02a756..5efb87e0c8 100644
--- a/backends/cloud/downloadrequest.cpp
+++ b/backends/cloud/downloadrequest.cpp
@@ -122,4 +122,10 @@ void DownloadRequest::finishError(Networking::ErrorResponse error) {
Request::finishError(error);
}
+double DownloadRequest::getProgress() const {
+ if (_remoteFileStream)
+ return _remoteFileStream->getProgress();
+ return 0;
+}
+
} // End of namespace Cloud