]>
vaikene.ee Git - evaf/blob - src/libs/Common/app.h
3bcde5aaa045c422acaeff53658b9529e40c6be7
3 * @brief Application interface implementation
6 * Copyright (c) 2011 Enar Vaikene
8 * This file is part of the eVaf C++ cross-platform application development framework.
10 * This file can be used under the terms of the GNU General Public License
11 * version 3.0 as published by the Free Software Foundation and appearing in
12 * the file LICENSE included in the packaging of this file. Please review the
13 * the following information to ensure the GNU General Public License version
14 * 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.
16 * Alternatively, this file may be used in accordance with the Commercial License
17 * Agreement provided with the Software.
20 #ifndef __COMMON_APP_H
21 #define __COMMON_APP_H
33 * iApp application interface implementation
35 class App
: public iApp
46 * Initializes the interface implementation
47 * @return True if ok; false if initialization failed
54 virtual QString
const name() const { return mName
; }
56 virtual QString
const language() const { return mLanguage
; }
58 virtual QString
const xmlFileName() const;
60 virtual void restart();
62 virtual void quit(bool err
= false);
64 virtual bool isReady() const { return mReady
; }
66 virtual QString
const rootDir() const { return mRootDir
; }
68 virtual QString
const dataRootDir() const;
70 virtual QString
const binDir() const { return mBinDir
; }
72 virtual QString
const etcDir() const;
74 virtual QString
const logDir() const;
76 virtual QString
const docDir() const;
78 virtual QString
const qtPluginsDir() const;
83 /// Flag indicating that the eVaf application is ready
86 /// Name of the application
89 /// Language for the application
92 /// Name of the application's XML file
93 mutable QString mXmlFile
;
95 /// Name of the root directry
98 /// Name of the data root directory
99 mutable QString mDataRootDir
;
101 /// Name of the binary directory
104 /// Name of the Qt plugins directory
105 mutable QString mQtPluginsDir
;
107 /// Name of the configuration files directory
108 mutable QString mEtcDir
;
110 /// Name of the log files directory
111 mutable QString mLogDir
;
113 /// Name of the documentation directory
114 mutable QString mDocDir
;
118 } // namespace eVaf::Common::Internal
119 } // namespace eVaf::Common