ITranslationManager.h
Go to the documentation of this file.
1 #ifndef iqt_ITranslationManager_included
2 #define iqt_ITranslationManager_included
3 
4 
5 // ACF includes
6 #include <iprm/IOptionsList.h>
7 
8 
9 class QTranslator;
10 
11 
12 namespace iqt
13 {
14 
19 {
20 public:
24  virtual const iprm::IOptionsList& GetLanguagesInfo() const = 0;
25 
29  virtual int GetCurrentLanguageIndex() const = 0;
30 
34  virtual const QTranslator* GetLanguageTranslator(int languageIndex) const = 0;
35 
39  virtual const ITranslationManager* GetSlaveTranslationManager() const = 0;
40 
44  virtual void SwitchLanguage(int languageIndex) = 0;
45 
49  virtual void SetSystemLanguage() = 0;
50 };
51 
52 
53 } // namespace iqt
54 
55 
56 #endif // !iqt_ITranslationManager_included
57 
58 
virtual const iprm::IOptionsList & GetLanguagesInfo() const =0
Get the list of supported languages given as a list of options.
Constraints of selection from set of possibilities.
Definition: IOptionsList.h:22
virtual void SetSystemLanguage()=0
Set default system's language.
Base interface for all used interfaces and implementations.
Definition: IPolymorphic.h:17
Common interface for the localization manager.
virtual const ITranslationManager * GetSlaveTranslationManager() const =0
Get slave translation manager, if set.
virtual const QTranslator * GetLanguageTranslator(int languageIndex) const =0
Get Qt translator for a given language.
virtual int GetCurrentLanguageIndex() const =0
Get current language index.
virtual void SwitchLanguage(int languageIndex)=0
Switch the current language to the language with the index languageIndex.

© 2007-2017 Witold Gantzke and Kirill Lepskiy