diff options
author | Alexander Tkachev | 2016-05-23 11:23:33 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | 41e65db7d0468b01f626c6ce21a1b8e6791f58fa (patch) | |
tree | b8ea4bbd60950c5f58e323b4c504b4be13b07493 /common | |
parent | c4b1fdc72752516a81b83490035d8f71357d045b (diff) | |
download | scummvm-rg350-41e65db7d0468b01f626c6ce21a1b8e6791f58fa.tar.gz scummvm-rg350-41e65db7d0468b01f626c6ce21a1b8e6791f58fa.tar.bz2 scummvm-rg350-41e65db7d0468b01f626c6ce21a1b8e6791f58fa.zip |
CLOUD: Add Storage saving mechanism
In this commit CloudManager starts supporting multiple Storage. Now, in
its init() it loads all the Storages and determines the current one.
It now also has save() method. In that method all Storages are saved
with their new saveConfig() method.
CloudManager::save() not called from anywhere, though. The only one
Storage that could be added is DropboxStorage in case you have no
cloud-related config keys or you have no storages connected.
Diffstat (limited to 'common')
-rw-r--r-- | common/cloudmanager.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/common/cloudmanager.h b/common/cloudmanager.h index 5919937720..d1c89454b1 100644 --- a/common/cloudmanager.h +++ b/common/cloudmanager.h @@ -41,13 +41,19 @@ public: virtual void init() = 0; /** + * Saves all information into configuration file. + */ + + virtual void save() = 0; + + /** * Returns active Storage, which could be used to interact * with cloud storage. * * @return active Cloud::Storage or null, if there is no active Storage. */ - virtual Cloud::Storage* getCurrentStorage() = 0; + virtual Cloud::Storage *getCurrentStorage() = 0; /** * Starts saves syncing process in currently active storage if there is any. |