diff options
author | SupSuper | 2018-11-19 14:57:50 +0000 |
---|---|---|
committer | Thierry Crozat | 2018-12-16 10:48:13 +0000 |
commit | 952b12311cfbdc48ddae0dbc7b960cd17c8e2b1e (patch) | |
tree | e689fda0423e30ca904497de4fda33c787c9d4d3 /common/system.h | |
parent | 313cd2315e43bd0d9a052a6486dab36648a98d1b (diff) | |
download | scummvm-rg350-952b12311cfbdc48ddae0dbc7b960cd17c8e2b1e.tar.gz scummvm-rg350-952b12311cfbdc48ddae0dbc7b960cd17c8e2b1e.tar.bz2 scummvm-rg350-952b12311cfbdc48ddae0dbc7b960cd17c8e2b1e.zip |
BACKENDS: Add base support for system dialogs
Diffstat (limited to 'common/system.h')
-rw-r--r-- | common/system.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/common/system.h b/common/system.h index 405d6a90a8..01d436e5df 100644 --- a/common/system.h +++ b/common/system.h @@ -49,6 +49,9 @@ class TaskbarManager; #if defined(USE_UPDATES) class UpdateManager; #endif +#if defined(USE_SYSDIALOGS) +class DialogManager; +#endif class TimerManager; class SeekableReadStream; class WriteStream; @@ -179,6 +182,15 @@ protected: Common::UpdateManager *_updateManager; #endif +#if defined(USE_SYSDIALOGS) + /** + * No default value is provided for _dialogManager by OSystem. + * + * @note _dialogManager is deleted by the OSystem destructor. + */ + Common::DialogManager *_dialogManager; +#endif + /** * No default value is provided for _fsFactory by OSystem. * @@ -1305,6 +1317,17 @@ public: } #endif +#if defined(USE_SYSDIALOGS) + /** + * Returns the DialogManager, used to handle system dialogs. + * + * @return the DialogManager for the current architecture + */ + virtual Common::DialogManager *getDialogManager() { + return _dialogManager; + } +#endif + /** * Returns the FilesystemFactory object, depending on the current architecture. * |