aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorAlexander Tkachev2016-06-06 10:25:49 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commit6c5a8f34eaf5fe6af0d885cb162b5ebf193030f8 (patch)
treec66ecb537752149f78ad5860f9afb83fc615f69f /gui
parent9eb4aad7fdea54fd99ad4a9aa4ab78bf64f81794 (diff)
downloadscummvm-rg350-6c5a8f34eaf5fe6af0d885cb162b5ebf193030f8.tar.gz
scummvm-rg350-6c5a8f34eaf5fe6af0d885cb162b5ebf193030f8.tar.bz2
scummvm-rg350-6c5a8f34eaf5fe6af0d885cb162b5ebf193030f8.zip
CLOUD: Add SaveLoadCloudSyncProgress enum
It's common for Save/Load dialogs and SavesSyncRequest.
Diffstat (limited to 'gui')
-rw-r--r--gui/saveload-dialog.cpp12
-rw-r--r--gui/saveload-dialog.h5
2 files changed, 6 insertions, 11 deletions
diff --git a/gui/saveload-dialog.cpp b/gui/saveload-dialog.cpp
index 2f10182006..2646194b4b 100644
--- a/gui/saveload-dialog.cpp
+++ b/gui/saveload-dialog.cpp
@@ -40,9 +40,6 @@
namespace GUI {
enum {
- kSavesSyncProgressCmd = 'SSPR',
- kSavesSyncEndedCmd = 'SSEN',
-
kCancelSyncCmd = 'PDCS',
kBackgroundSyncCmd = 'PDBS'
};
@@ -198,15 +195,8 @@ void SaveLoadChooserDialog::handleCommand(CommandSender *sender, uint32 cmd, uin
#endif // !DISABLE_SAVELOADCHOOSER_GRID
if (cmd == kSavesSyncProgressCmd || cmd == kSavesSyncEndedCmd) {
- Cloud::SavesSyncRequest *request = (Cloud::SavesSyncRequest *)sender;
-
//this dialog only gets these commands if the progress dialog was shown and user clicked "run in background"
- switch (cmd) {
- case kSavesSyncProgressCmd:
- case kSavesSyncEndedCmd:
- updateSaveList();
- break;
- }
+ return updateSaveList();
}
return Dialog::handleCommand(sender, cmd, data);
diff --git a/gui/saveload-dialog.h b/gui/saveload-dialog.h
index a767fb8a23..435bfc7a5d 100644
--- a/gui/saveload-dialog.h
+++ b/gui/saveload-dialog.h
@@ -30,6 +30,11 @@
namespace GUI {
+enum SaveLoadCloudSyncProgress {
+ kSavesSyncProgressCmd = 'SSPR',
+ kSavesSyncEndedCmd = 'SSEN'
+};
+
class SaveLoadCloudSyncProgressDialog : public Dialog { //protected?
StaticTextWidget *_label;
bool _close;