aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/cloudmanager.h
diff options
context:
space:
mode:
authorAlexander Tkachev2016-06-08 18:51:00 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commit870e96eb9ca6e69bea5f47a215d171fd58ab1265 (patch)
tree57516a6cc7bf5f2c6912e15b5ad4045c4b151c9e /backends/cloud/cloudmanager.h
parent1479d126520a9f3472797c1bb98b534f0b2a6b97 (diff)
downloadscummvm-rg350-870e96eb9ca6e69bea5f47a215d171fd58ab1265.tar.gz
scummvm-rg350-870e96eb9ca6e69bea5f47a215d171fd58ab1265.tar.bz2
scummvm-rg350-870e96eb9ca6e69bea5f47a215d171fd58ab1265.zip
CLOUD: Update CloudManager and Storage
* Storage::name(); * CloudManager::getStorageName(); * CloudManager::getStorageIndex(); * CloudManager::listStorages(); * CloudManager::switchStorage().
Diffstat (limited to 'backends/cloud/cloudmanager.h')
-rw-r--r--backends/cloud/cloudmanager.h31
1 files changed, 30 insertions, 1 deletions
diff --git a/backends/cloud/cloudmanager.h b/backends/cloud/cloudmanager.h
index dbff0184eb..7e8cfd68a3 100644
--- a/backends/cloud/cloudmanager.h
+++ b/backends/cloud/cloudmanager.h
@@ -26,6 +26,7 @@
#include "backends/cloud/storage.h"
#include "common/array.h"
#include "common/singleton.h"
+#include <cge/console.h>
namespace GUI {
@@ -72,7 +73,35 @@ public:
*
* @return active Cloud::Storage or null, if there is no active Storage.
*/
- Cloud::Storage *getCurrentStorage();
+ Cloud::Storage *getCurrentStorage() const;
+
+ /**
+ * Return active Storage's name.
+ *
+ * @return active Storage's or _("No active storage"), if there is no active Storage.
+ */
+ Common::String getStorageName() const;
+
+ /**
+ * Return active Storage's index.
+ *
+ * @return active Storage's index.
+ */
+ uint32 getStorageIndex() const;
+
+ /**
+ * Return Storages names as list.
+ *
+ * @return a list of Storages names.
+ */
+ Common::StringArray listStorages() const;
+
+ /**
+ * Changes the storage to the one with given index.
+ *
+ * @param new Storage's index.
+ */
+ bool switchStorage(uint32 index);
/**
* Starts saves syncing process in currently active storage if there is any.