aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/storage.h
diff options
context:
space:
mode:
authorAlexander Tkachev2019-07-27 22:44:15 +0700
committerMatan Bareket2019-07-30 14:51:41 -0400
commitf6a17e679f4fac2fda21dc7f64565a0dc4a10ca1 (patch)
tree115b53d284e100ae04914ac90c1a4823ef95fb4f /backends/cloud/storage.h
parent85431c39bf191725910703f699fe95da595f6adf (diff)
downloadscummvm-rg350-f6a17e679f4fac2fda21dc7f64565a0dc4a10ca1.tar.gz
scummvm-rg350-f6a17e679f4fac2fda21dc7f64565a0dc4a10ca1.tar.bz2
scummvm-rg350-f6a17e679f4fac2fda21dc7f64565a0dc4a10ca1.zip
CLOUD: Ask user to manually enable Storage
For more security, newly connected Storage only gets username/used space information and is disabled until user manually presses the button.
Diffstat (limited to 'backends/cloud/storage.h')
-rw-r--r--backends/cloud/storage.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/backends/cloud/storage.h b/backends/cloud/storage.h
index e914834dae..aa6455b841 100644
--- a/backends/cloud/storage.h
+++ b/backends/cloud/storage.h
@@ -70,6 +70,9 @@ protected:
/** FolderDownloadRequest-related */
FolderDownloadRequest *_downloadFolderRequest;
+ /** Whether user manually enabled the Storage. */
+ bool _isEnabled;
+
/** Returns default error callback (printErrorResponse). */
virtual Networking::ErrorCallback getErrorPrintingCallback();
@@ -116,6 +119,16 @@ public:
virtual Common::String name() const = 0;
/**
+ * Return whether Storage has been manually enabled by user.
+ */
+ bool isEnabled() const;
+
+ /**
+ * Set _isEnabled to true.
+ */
+ void enable();
+
+ /**
* Public Cloud API comes down there.
*
* All Cloud API methods return Networking::Request *, which