the QCoreApplication object and we have no access to the QCoreApplication::applicationDirPath().
iEnv * iEnv::instance()
{
- static Internal::Env singleton;
+ static eVaf::Common::Internal::Env singleton;
return &singleton;
}
: iEnv()
{
setObjectName(QString("%1-iEnv").arg(VER_MODULE_NAME_STR));
+}
+
+Env::~Env()
+{
+}
+
+bool Env::init()
+{
+ // Register out interface
+ iRegistry::instance()->registerInterface("iEnv", this);
// Set initial bin and root directories
mRootDir = mBinDir = qApp->applicationDirPath();
mBinDir.append('/');
if (!mRootDir.endsWith('/'))
mRootDir.append('/');
-}
-
-Env::~Env()
-{
-}
-
-bool Env::init()
-{
- // Register out interface
- iRegistry::instance()->registerInterface("iEnv", this);
- // Clear directories
+ // Clear other directories
mDataRootDir.clear();
mQtPluginsDir.clear();
mEtcDir.clear();
* your receiver to this signal if you want to add your own message handling. For example,
* use this signal to show messages in a log window etc.
*/
- void loggerEvent(Severity severity, QString const & text, QString const & source, QString const & where);
+ void loggerEvent(eVaf::Common::iLogger::Severity severity, QString const & text, QString const & source, QString const & where);
};
/**
* Module/library version number in the form major,minor,release,build
*/
-#define VER_FILE_VERSION 0,1,1,1
+#define VER_FILE_VERSION 0,1,1,2
/**
* Module/library version number in the string format (shall end with \0)
*/
-#define VER_FILE_VERSION_STR "0.1.1.1\0"
+#define VER_FILE_VERSION_STR "0.1.1.2\0"
/**
* Module/library name (shall end with \0)