20 #ifndef __COMMON_APP_H 21 #define __COMMON_APP_H 58 virtual QString
const name()
const {
return mName; }
60 virtual QString
const language()
const {
return mLanguage; }
68 virtual void quit(
bool err =
false);
70 virtual bool isReady()
const {
return mReady; }
72 virtual QString
const rootDir()
const {
return mRootDir; }
76 virtual QString
const binDir()
const {
return mBinDir; }
78 virtual QString
const etcDir()
const;
80 virtual QString
const logDir()
const;
82 virtual QString
const docDir()
const;
99 mutable QString mXmlFile;
105 mutable QString mDataRootDir;
111 mutable QString mQtPluginsDir;
114 mutable QString mEtcDir;
117 mutable QString mLogDir;
120 mutable QString mDocDir;
131 void setReady(
bool value);
virtual QString const xmlFileName() const
Returns the name of the application's XML file.
virtual QString const docDir() const
Returns the documentation directory.
virtual QString const qtPluginsDir() const
Returns the Qt plugins directory.
bool init()
Initializes the interface implementation.
virtual int exec()
Enters the main event loop of the Qt application.
virtual QString const logDir() const
Returns the log files directory.
virtual QString const language() const
Returns the current language and country used by the application.
virtual QString const dataRootDir() const
Returns the name of the eVaf data directory.
virtual void restart()
Requests the eVaf application to restart.
eVaf application interface
virtual QString const rootDir() const
Returns the name of the eVaf root directory.
virtual bool event(QEvent *)
virtual QString const etcDir() const
Returns the configuration files directory.
virtual QString const binDir() const
Returns the name of the binary files directory.
virtual bool isReady() const
Returns true if the eVaf application is ready.
iApp application interface implementation
virtual void quit(bool err=false)
Requests the eVaf application to quit.
virtual QString const name() const
Returns the name of the eVaf application.
eVaf application interface