]>
vaikene.ee Git - evaf/blob - src/libs/Common/env.h
3 * @brief iEnv 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_ENV_H
21 #define __COMMON_ENV_H
33 * iEnv interface implementation
35 class Env
: public iEnv
46 * Initializes the iEnv interface implementation
47 * @return True if ok; false if the initialization fails
55 virtual QString
const rootDir() const { return mRootDir
; }
57 virtual QString
const dataRootDir() const;
59 virtual QString
const binDir() const { return mBinDir
; }
61 virtual QString
const etcDir() const;
63 virtual QString
const logDir() const;
65 virtual QString
const docDir() const;
67 virtual QString
const qtPluginsDir() const;
73 mutable QString mDataRootDir
;
75 mutable QString mQtPluginsDir
;
76 mutable QString mEtcDir
;
77 mutable QString mLogDir
;
78 mutable QString mDocDir
;
82 } // namespace eVaf::Common::Internal
83 } // namespace eVaf::Common