aboutsummaryrefslogtreecommitdiff
path: root/gui/options.h
diff options
context:
space:
mode:
authorAlexander Tkachev2016-06-09 18:49:17 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commite6242b0be8fc9f9abc4daf87f80675cca46df4d9 (patch)
tree9f775a11ed08c242d926c1135079e8f4ebcc05b9 /gui/options.h
parentbeb168a3a5bac602a9bf1455e7fe93dda0b13a1c (diff)
downloadscummvm-rg350-e6242b0be8fc9f9abc4daf87f80675cca46df4d9.tar.gz
scummvm-rg350-e6242b0be8fc9f9abc4daf87f80675cca46df4d9.tar.bz2
scummvm-rg350-e6242b0be8fc9f9abc4daf87f80675cca46df4d9.zip
GUI: Add Refresh button in Options Cloud tab
Commit changes CloudManager and Storages so they would automatically refresh the fields when the could.
Diffstat (limited to 'gui/options.h')
-rw-r--r--gui/options.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gui/options.h b/gui/options.h
index 4addf717b8..1454ddbfc8 100644
--- a/gui/options.h
+++ b/gui/options.h
@@ -37,6 +37,10 @@
#include "gui/fluidsynth-dialog.h"
#endif
+#ifdef USE_CLOUD
+#include "backends/cloud/storage.h"
+#endif
+
namespace GUI {
class CheckboxWidget;
@@ -206,6 +210,7 @@ public:
void open();
void close();
void handleCommand(CommandSender *sender, uint32 cmd, uint32 data);
+ void handleTickle();
virtual void reflowLayout();
@@ -256,8 +261,12 @@ protected:
StaticTextWidget *_storageLastSyncDesc;
StaticTextWidget *_storageLastSync;
ButtonWidget *_storageConnectButton;
+ ButtonWidget *_storageRefreshButton;
+ bool _redrawCloudTab;
void setupCloudTab();
+ void storageInfoCallback(Cloud::Storage::StorageInfoResponse response);
+ void storageListDirectoryCallback(Cloud::Storage::ListDirectoryResponse response);
#endif
};