aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/cloudmanager.h
diff options
context:
space:
mode:
authorAlexander Tkachev2016-06-05 11:35:18 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commit69aed03c4f6b23302836315502cd9abbb395415e (patch)
tree3623778212097b5058d32d91e2404543dd8349fc /backends/cloud/cloudmanager.h
parent91f75efa99ffe6d1c4e8e9b9b1fec368af192b7d (diff)
downloadscummvm-rg350-69aed03c4f6b23302836315502cd9abbb395415e.tar.gz
scummvm-rg350-69aed03c4f6b23302836315502cd9abbb395415e.tar.bz2
scummvm-rg350-69aed03c4f6b23302836315502cd9abbb395415e.zip
CLOUD: Add new CloudManager shortcuts
CloudIcon can easily use CloudMan.isWorking()
Diffstat (limited to 'backends/cloud/cloudmanager.h')
-rw-r--r--backends/cloud/cloudmanager.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/backends/cloud/cloudmanager.h b/backends/cloud/cloudmanager.h
index a13eeebb94..fa3a87de8b 100644
--- a/backends/cloud/cloudmanager.h
+++ b/backends/cloud/cloudmanager.h
@@ -77,6 +77,18 @@ public:
* Starts feature testing (the one I'm working on currently). (Temporary)
*/
void testFeature();
+
+ /** Returns whether there are any requests running. */
+ bool isWorking();
+
+ /** Returns whether there is a SavesSyncRequest running. */
+ bool isSyncing();
+
+ /** Returns a number in [0, 1] range which represents current sync progress (1 = complete). */
+ double getSyncProgress();
+
+ /** Returns an array of saves names which are not yet synced (thus cannot be used). */
+ Common::Array<Common::String> getSyncingFiles();
};
/** Shortcut for accessing the connection manager. */