aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/cloudmanager.h
diff options
context:
space:
mode:
authorAlexander Tkachev2016-06-09 14:23:14 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commit9b15ec9989fc67a0537b1e70732d3dba48797165 (patch)
tree4867997d8e41d756e4b25654756818bd020031d4 /backends/cloud/cloudmanager.h
parentaf9930482e17f4b55e46707fc017090e4c24a38e (diff)
downloadscummvm-rg350-9b15ec9989fc67a0537b1e70732d3dba48797165.tar.gz
scummvm-rg350-9b15ec9989fc67a0537b1e70732d3dba48797165.tar.bz2
scummvm-rg350-9b15ec9989fc67a0537b1e70732d3dba48797165.zip
CLOUD: Update CloudManager
It now has methods to update Storage's information.
Diffstat (limited to 'backends/cloud/cloudmanager.h')
-rw-r--r--backends/cloud/cloudmanager.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/backends/cloud/cloudmanager.h b/backends/cloud/cloudmanager.h
index 5e26ece088..7ce7e925da 100644
--- a/backends/cloud/cloudmanager.h
+++ b/backends/cloud/cloudmanager.h
@@ -144,6 +144,33 @@ public:
Common::String getStorageLastSync(uint32 index);
/**
+ * Set Storage's username.
+ * Automatically saves changes to the config.
+ *
+ * @param index Storage's index.
+ * @param name username to set
+ */
+ void setStorageUsername(uint32 index, Common::String name);
+
+ /**
+ * Set Storage's used space field.
+ * Automatically saves changes to the config.
+ *
+ * @param index Storage's index.
+ * @param used value to set
+ */
+ void setStorageUsedSpace(uint32 index, uint64 used);
+
+ /**
+ * Set Storage's last sync date.
+ * Automatically saves changes to the config.
+ *
+ * @param index Storage's index.
+ * @param date date to set
+ */
+ void setStorageLastSync(uint32 index, Common::String date);
+
+ /**
* Starts saves syncing process in currently active storage if there is any.
*/
SavesSyncRequest *syncSaves(Cloud::Storage::BoolCallback callback = nullptr, Networking::ErrorCallback errorCallback = nullptr);