CLOUD: Update FolderDownloadRequest

It now keeps track of downloaded bytes.
This commit is contained in:
Alexander Tkachev 2016-07-14 15:29:47 +06:00
parent ca33c0a0a8
commit 0ca7917093
7 changed files with 73 additions and 2 deletions

View file

@ -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();