From 952b12311cfbdc48ddae0dbc7b960cd17c8e2b1e Mon Sep 17 00:00:00 2001 From: SupSuper Date: Mon, 19 Nov 2018 14:57:50 +0000 Subject: BACKENDS: Add base support for system dialogs --- common/system.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'common/system.h') 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. * -- cgit v1.2.3