diff options
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 77bdcd0815..f17625e215 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_TTS) +class TextToSpeechManager; +#endif #if defined(USE_SYSDIALOGS) class DialogManager; #endif @@ -184,6 +187,15 @@ protected: Common::UpdateManager *_updateManager; #endif +#if defined(USE_TTS) + /** + * No default value is provided for _textToSpeechManager by OSystem. + * + * @note _textToSpeechManager is deleted by the OSystem destructor. + */ + Common::TextToSpeechManager *_textToSpeechManager; +#endif + #if defined(USE_SYSDIALOGS) /** * No default value is provided for _dialogManager by OSystem. @@ -1325,6 +1337,17 @@ public: } #endif +#if defined(USE_TTS) + /** + * Returns the TextToSpeechManager, used to handle text to speech features. + * + * @return the TextToSpeechManager for the current architecture + */ + virtual Common::TextToSpeechManager *getTextToSpeechManager() { + return _textToSpeechManager; + } +#endif + #if defined(USE_SYSDIALOGS) /** * Returns the DialogManager, used to handle system dialogs. |