From 69aed03c4f6b23302836315502cd9abbb395415e Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Sun, 5 Jun 2016 11:35:18 +0600 Subject: CLOUD: Add new CloudManager shortcuts CloudIcon can easily use CloudMan.isWorking() --- backends/cloud/cloudmanager.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'backends/cloud/cloudmanager.h') 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 getSyncingFiles(); }; /** Shortcut for accessing the connection manager. */ -- cgit v1.2.3