unique_ptr<_IpcClient> pIpcClient (new (std::nothrow) _IpcClient());
SysTryReturn(NID_SYS, pIpcClient != null, E_OUT_OF_MEMORY, r, "It is failed to create IPC instance.");
-// if(Tizen::Io::File::IsFileExist(L"/opt/usr/etc/common_service_for_powermanager") == true)
- {
- SysLog(NID_SYS, "PowerManager is serviced by common-service");
- r = pIpcClient->Construct(POWER_MANAGER_SERVICE_ID);
- }
-/* else
- {
- r = pIpcClient->Construct(_COMMUNICATION_DISPATCHER_IPC_ID);
- }
-*/
+ SysLog(NID_SYS, "PowerManager is serviced by common-service");
+ r = pIpcClient->Construct(POWER_MANAGER_SERVICE_ID);
SysTryReturn(NID_SYS, r == E_SUCCESS, E_SYSTEM, r, "[%s] It failed to create IpcClient", GetErrorMessage(r));
requestMessage.Construct();
unique_ptr<_IpcClient> pIpcClient (new (std::nothrow) _IpcClient());
SysTryReturn(NID_SYS, pIpcClient != null, E_OUT_OF_MEMORY, r, "It is failed to create IPC instance.");
-// if(Tizen::Io::File::IsFileExist(L"/opt/usr/etc/common_service_for_powermanager") == true)
- {
- SysLog(NID_SYS, "PowerManager is serviced by common-service");
- r = pIpcClient->Construct(POWER_MANAGER_SERVICE_ID);
- }
-/* else
- {
- r = pIpcClient->Construct(_COMMUNICATION_DISPATCHER_IPC_ID);
- }
-*/
+ SysLog(NID_SYS, "PowerManager is serviced by common-service");
+ r = pIpcClient->Construct(POWER_MANAGER_SERVICE_ID);
SysTryReturn(NID_SYS, r == E_SUCCESS, E_SYSTEM, r, "[%s] It failed to create IpcClient", GetErrorMessage(r));
requestMessage.Construct();