aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/cloudmanager.cpp
diff options
context:
space:
mode:
authorAlexander Tkachev2016-07-14 15:29:47 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commit0ca791709329c3e7f24f68fa2da7c86c87dac557 (patch)
tree17ef63035c6226d45c758f3f59b580c174b32d63 /backends/cloud/cloudmanager.cpp
parentca33c0a0a8ce31b13137f74ba15e226b3855b75a (diff)
downloadscummvm-rg350-0ca791709329c3e7f24f68fa2da7c86c87dac557.tar.gz
scummvm-rg350-0ca791709329c3e7f24f68fa2da7c86c87dac557.tar.bz2
scummvm-rg350-0ca791709329c3e7f24f68fa2da7c86c87dac557.zip
CLOUD: Update FolderDownloadRequest
It now keeps track of downloaded bytes.
Diffstat (limited to 'backends/cloud/cloudmanager.cpp')
-rw-r--r--backends/cloud/cloudmanager.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/backends/cloud/cloudmanager.cpp b/backends/cloud/cloudmanager.cpp
index e5b2c2a69d..80ee24808c 100644
--- a/backends/cloud/cloudmanager.cpp
+++ b/backends/cloud/cloudmanager.cpp
@@ -346,6 +346,18 @@ double CloudManager::getDownloadingProgress() {
return 1;
}
+uint64 CloudManager::getDownloadBytesNumber() {
+ Storage *storage = getCurrentStorage();
+ if (storage) return storage->getDownloadBytesNumber();
+ return 1;
+}
+
+uint64 CloudManager::getDownloadTotalBytesNumber() {
+ Storage *storage = getCurrentStorage();
+ if (storage) return storage->getDownloadTotalBytesNumber();
+ return 1;
+}
+
Common::String CloudManager::getDownloadRemoteDirectory() {
Storage *storage = getCurrentStorage();
if (storage) return storage->getDownloadRemoteDirectory();