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 /backends/cloud/manager.h | |
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 'backends/cloud/manager.h')
-rw-r--r-- | backends/cloud/manager.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/backends/cloud/manager.h b/backends/cloud/manager.h index 3ad2e0d607..e531854ba9 100644 --- a/backends/cloud/manager.h +++ b/backends/cloud/manager.h @@ -29,15 +29,17 @@ namespace Cloud { class Manager: public Common::CloudManager { - Storage* _currentStorage; + Common::Array<Storage *> _storages; + uint _currentStorageIndex; public: Manager(); virtual ~Manager(); virtual void init(); + virtual void save(); - virtual Storage* getCurrentStorage(); + virtual Storage *getCurrentStorage(); virtual void syncSaves(Storage::BoolCallback callback); }; |