diff options
author | Alexander Tkachev | 2016-07-04 16:14:30 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | b8ee9d4e7d32d0cc0dd832cbd0ffec5c5d08db34 (patch) | |
tree | 8394f3ff0b9e272acd8840df82c56f316698e129 /backends/cloud/cloudmanager.h | |
parent | 71a326493b351b845ea800ae88495238b1a61066 (diff) | |
download | scummvm-rg350-b8ee9d4e7d32d0cc0dd832cbd0ffec5c5d08db34.tar.gz scummvm-rg350-b8ee9d4e7d32d0cc0dd832cbd0ffec5c5d08db34.tar.bz2 scummvm-rg350-b8ee9d4e7d32d0cc0dd832cbd0ffec5c5d08db34.zip |
CLOUD: Add FolderDownload-related methods in Storage
CloudManager's shortcuts are added too.
The idea is to keep FolderDownload request within Storage, and provide
necessary means to access it. The download is started and cancelled
through the DownloadDialog.
Diffstat (limited to 'backends/cloud/cloudmanager.h')
-rw-r--r-- | backends/cloud/cloudmanager.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/backends/cloud/cloudmanager.h b/backends/cloud/cloudmanager.h index 574c51a439..2617a9c62e 100644 --- a/backends/cloud/cloudmanager.h +++ b/backends/cloud/cloudmanager.h @@ -206,6 +206,8 @@ public: /** Returns whether there are any requests running. */ bool isWorking(); + ///// SavesSyncRequest-related ///// + /** Returns whether there is a SavesSyncRequest running. */ bool isSyncing(); @@ -223,6 +225,23 @@ public: /** Sets SavesSyncRequest's target to given CommandReceiver. */ void setSyncTarget(GUI::CommandReceiver *target); + + ///// DownloadFolderRequest-related ///// + + /** Starts a folder download. */ + bool startDownload(Common::String remotePath, Common::String localPath); + + /** Cancels running download. */ + void cancelDownload(); + + /** Sets FolderDownloadRequest's target to given CommandReceiver. */ + void setDownloadTarget(GUI::CommandReceiver *target); + + /** Returns whether there is a FolderDownloadRequest running. */ + bool isDownloading(); + + /** Returns a number in [0, 1] range which represents current download progress (1 = complete). */ + double getDownloadingProgress(); }; /** Shortcut for accessing the connection manager. */ |