diff options
Diffstat (limited to 'backends/cloud/storage.h')
-rw-r--r-- | backends/cloud/storage.h | 13 |
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 |