]> vaikene.ee Git - evaf/blobdiff - src/libs/Common/globals.cpp
Added the iConfig interface and default implementation in the common library.
[evaf] / src / libs / Common / globals.cpp
index e494908e5f64a48ac86c9b030b08adb5c39c4b78..b981fff43ceee7f65537fe162d19c58e11475aa4 100644 (file)
@@ -18,8 +18,8 @@
  */
 
 #include "globals.h"
-#include "env.h"
 #include "app.h"
+#include "config.h"
 #include "logger.h"
 #include "version.h"
 #include "ilogger.h"
@@ -40,10 +40,10 @@ bool eVaf::Common::init()
 
     // Initialize all the common interface implementations in the proper sequence
 
-    eVaf::Common::Internal::Env * env =
-        qobject_cast<eVaf::Common::Internal::Env *>(eVaf::Common::iEnv::instance());
-    if (env) {
-        if (!env->init())
+    eVaf::Common::Internal::App * app =
+        qobject_cast<eVaf::Common::Internal::App *>(eVaf::Common::iApp::instance());
+    if (app) {
+        if (!app->init())
             return false;
     }
     eVaf::Common::Internal::Logger * logger =
@@ -52,10 +52,10 @@ bool eVaf::Common::init()
         if (!logger->init())
             return false;
     }
-    eVaf::Common::Internal::App * app =
-        qobject_cast<eVaf::Common::Internal::App *>(eVaf::Common::iApp::instance());
-    if (app) {
-        if (!app->init())
+    eVaf::Common::Internal::Config * config =
+        qobject_cast<eVaf::Common::Internal::Config *>(eVaf::Common::iConfig::instance());
+    if (config) {
+        if (!config->init())
             return false;
     }