aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/googledrive/googledrivestorage.h
diff options
context:
space:
mode:
authorAlexander Tkachev2016-06-08 13:02:49 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commitf0d61084daf7292d157e451c7bfc5485757eac43 (patch)
treed99da13cfaa971c3dc81f3977b7f018a6ea3d127 /backends/cloud/googledrive/googledrivestorage.h
parent60add0df1b63dbd31b88edcabf0769eb675efab0 (diff)
downloadscummvm-rg350-f0d61084daf7292d157e451c7bfc5485757eac43.tar.gz
scummvm-rg350-f0d61084daf7292d157e451c7bfc5485757eac43.tar.bz2
scummvm-rg350-f0d61084daf7292d157e451c7bfc5485757eac43.zip
CLOUD: Update downloading in Storages
Id should be used everywhere.
Diffstat (limited to 'backends/cloud/googledrive/googledrivestorage.h')
-rw-r--r--backends/cloud/googledrive/googledrivestorage.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/cloud/googledrive/googledrivestorage.h b/backends/cloud/googledrive/googledrivestorage.h
index 274bc78401..a456030369 100644
--- a/backends/cloud/googledrive/googledrivestorage.h
+++ b/backends/cloud/googledrive/googledrivestorage.h
@@ -95,6 +95,10 @@ public:
/** Returns pointer to Networking::NetworkReadStream. */
virtual Networking::Request *streamFile(Common::String path, Networking::NetworkReadStreamCallback callback, Networking::ErrorCallback errorCallback);
+ virtual Networking::Request *streamFileById(Common::String id, Networking::NetworkReadStreamCallback callback, Networking::ErrorCallback errorCallback);
+
+ /** Calls the callback when finished. */
+ virtual Networking::Request *download(Common::String remotePath, Common::String localPath, BoolCallback callback, Networking::ErrorCallback errorCallback);
/** Calls the callback when finished. */
virtual Networking::Request *remove(Common::String path, BoolCallback callback, Networking::ErrorCallback errorCallback) { return nullptr; } //TODO