Update PowerManager [dep:osp-common-service, osp-appfw, osp-appservice]
authorHokwon Song <hokwon.song@samsung.com>
Thu, 25 Jul 2013 04:57:53 +0000 (13:57 +0900)
committerHokwon Song <hokwon.song@samsung.com>
Thu, 25 Jul 2013 04:59:09 +0000 (13:59 +0900)
Change-Id: I18f00b5cb63e81464d0e1d604a0cef7a9492291a
Signed-off-by: Hokwon Song <hokwon.song@samsung.com>
src/FSys_SystemService.cpp

index 7158b3d..ab4ccc8 100644 (file)
@@ -28,6 +28,7 @@
 #include <telephony-client/ITapiModem.h>
 #include <vconf.h>
 
+#include <FIo.h>
 #include <FBaseSysLog.h>
 #include <FSysSystemTime.h>
 
@@ -86,8 +87,11 @@ _SystemService::_SystemService()
        r = __pCommunicationDispatcher->AddCommunicationEventListener(*this);
        SysTryCatch(NID_SYS, r == E_SUCCESS, r = E_SYSTEM, E_SYSTEM, "It is failed to add event listener");
 
-       __pPowerManager = _PowerManager::GetInstance();
-       SysTryCatch(NID_SYS, __pPowerManager != null, r = E_SYSTEM, E_SYSTEM, "_pPowerManager initiate is failed");
+       if(Tizen::Io::File::IsFileExist(L"/opt/usr/etc/common_service_for_powermanager") != true)
+       {
+               __pPowerManager = _PowerManager::GetInstance();
+               SysTryCatch(NID_SYS, __pPowerManager != null, r = E_SYSTEM, E_SYSTEM, "_pPowerManager initiate is failed");
+       }
 
        pAppManagerImpl = _AppManagerImpl::GetInstance();
        SysTryCatch(NID_SYS, pAppManagerImpl != null, r = E_SYSTEM, E_SYSTEM, "It is failed to get _AppManagerImpl class.");