X-Git-Url: https://vaikene.ee/gitweb/pswgen11.html?a=blobdiff_plain;f=src%2Flibs%2FCommon%2Fglobals.cpp;h=5054bd1e05c71f1d4d8093277e564d7b3240a67f;hb=5a08cb13071dc1dadb2786b39174010f1d55e739;hp=63d4bce2bd6c3a988c333459d3e42220fb56957d;hpb=be0e791df48f5a8c9bb4c16f65b62e41e1149552;p=evaf
diff --git a/src/libs/Common/globals.cpp b/src/libs/Common/globals.cpp
index 63d4bce..5054bd1 100644
--- a/src/libs/Common/globals.cpp
+++ b/src/libs/Common/globals.cpp
@@ -3,7 +3,7 @@
* @brief Global constants and macros for eVaf
* @author Enar Vaikene
*
- * Copyright (c) 2011 Enar Vaikene
+ * Copyright (c) 2011-2012 Enar Vaikene
*
* This file is part of the eVaf C++ cross-platform application development framework.
*
@@ -19,6 +19,8 @@
#include "globals.h"
#include "app.h"
+#include "config.h"
+#include "prop.h"
#include "logger.h"
#include "version.h"
#include "ilogger.h"
@@ -40,13 +42,25 @@ bool eVaf::Common::init()
// Initialize all the common interface implementations in the proper sequence
eVaf::Common::Internal::App * app =
- qobject_cast(eVaf::Common::iApp::instance());
+ qobject_cast(eVaf::Common::iApp::instance());
if (app) {
if (!app->init())
return false;
}
+ eVaf::Common::Internal::Config * config =
+ qobject_cast(eVaf::Common::iConfig::instance());
+ if (config) {
+ if (!config->init())
+ return false;
+ }
+ eVaf::Common::Internal::Prop * prop =
+ qobject_cast(eVaf::Common::iProp::instance());
+ if (prop) {
+ if (!prop->init())
+ return false;
+ }
eVaf::Common::Internal::Logger * logger =
- qobject_cast(eVaf::Common::iLogger::instance());
+ qobject_cast(eVaf::Common::iLogger::instance());
if (logger) {
if (!logger->init())
return false;