aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/folderdownloadrequest.h
diff options
context:
space:
mode:
Diffstat (limited to 'backends/cloud/folderdownloadrequest.h')
-rw-r--r--backends/cloud/folderdownloadrequest.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/backends/cloud/folderdownloadrequest.h b/backends/cloud/folderdownloadrequest.h
index ee17de08dc..1a67f32165 100644
--- a/backends/cloud/folderdownloadrequest.h
+++ b/backends/cloud/folderdownloadrequest.h
@@ -40,6 +40,7 @@ class FolderDownloadRequest: public Networking::Request, public GUI::CommandSend
Request *_workingRequest;
bool _ignoreCallback;
uint32 _totalFiles;
+ uint64 _downloadedBytes, _totalBytes;
void start();
void directoryListedCallback(Storage::ListDirectoryResponse response);
@@ -58,6 +59,12 @@ public:
/** Returns a number in range [0, 1], where 1 is "complete". */
double getProgress() const;
+ /** Returns a number of downloaded bytes. */
+ uint64 getDownloadedBytes() const;
+
+ /** Returns a total number of bytes to download. */
+ uint64 getTotalBytesToDownload() const;
+
/** Returns remote directory path. */
Common::String getRemotePath() { return _remoteDirectoryPath; }