aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAlexander Tkachev2016-05-24 16:19:22 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commit5f4bbe6e9e08f5f76eada84497a7530ffb08fbf1 (patch)
treeca5ab83c41a254c68a816bc62599879bc0b1011e /common
parentcaaa4c5a5d0bce7582cc6611d8bde53fbdb1f2d1 (diff)
downloadscummvm-rg350-5f4bbe6e9e08f5f76eada84497a7530ffb08fbf1.tar.gz
scummvm-rg350-5f4bbe6e9e08f5f76eada84497a7530ffb08fbf1.tar.bz2
scummvm-rg350-5f4bbe6e9e08f5f76eada84497a7530ffb08fbf1.zip
CLOUD: Add OneDrive Storage stub
Knows how to OAuth already. This commit also adds CloudManager::addStorage(), so OneDriveStorage can add newly created Storage and CloudManager can save it in the configuration file.
Diffstat (limited to 'common')
-rw-r--r--common/cloudmanager.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/common/cloudmanager.h b/common/cloudmanager.h
index d1c89454b1..a480bdf684 100644
--- a/common/cloudmanager.h
+++ b/common/cloudmanager.h
@@ -47,6 +47,16 @@ public:
virtual void save() = 0;
/**
+ * Adds new Storage into list.
+ *
+ * @param storage Cloud::Storage to add.
+ * @param makeCurrent whether added storage should be the new current storage.
+ * @param saveConfig whether save() should be called to update configuration file.
+ */
+
+ virtual void addStorage(Cloud::Storage *storage, bool makeCurrent = true, bool saveConfig = true) = 0;
+
+ /**
* Returns active Storage, which could be used to interact
* with cloud storage.
*