Update DeviceManager [dep:osp-appfw, osp-common-servie]
authorHokwon Song <hokwon.song@samsung.com>
Wed, 24 Jul 2013 00:57:25 +0000 (09:57 +0900)
committerHokwon Song <hokwon.song@samsung.com>
Wed, 24 Jul 2013 00:57:25 +0000 (09:57 +0900)
Change-Id: I07f8b52d15fa31a875ec7b4f9d163c85b6910edf
Signed-off-by: Hokwon Song <hokwon.song@samsung.com>
src/FSys_DeviceManagerService.cpp

index 85a822a..7a275bf 100644 (file)
@@ -23,6 +23,7 @@
 #include <system/media_key.h>
 #include <bluetooth.h>
 
+#include <FIo.h>
 #include <FBaseSysLog.h>
 #include <FSys_DeviceManagerEventProvider.h>
 
@@ -134,9 +135,11 @@ _DeviceManagerService::_DeviceManagerService()
        __pCommunicationDispatcher = _CommunicationDispatcher::GetInstance();
        SysTryCatch(NID_SYS, __pCommunicationDispatcher != null, r = E_SYSTEM, E_SYSTEM, "_CommunicationDispatcher initiate is failed.");
 
-       r = __pCommunicationDispatcher->AddCommunicationEventListener(*this);
-       SysTryCatch(NID_SYS, r == E_SUCCESS, r = E_SYSTEM, E_SYSTEM, "It is failed to add event listener.");
-
+       if(Tizen::Io::File::IsFileExist(L"/opt/usr/etc/common_service_for_devicemanager") != true)
+       {
+               r = __pCommunicationDispatcher->AddCommunicationEventListener(*this);
+               SysTryCatch(NID_SYS, r == E_SUCCESS, r = E_SYSTEM, E_SYSTEM, "It is failed to add event listener.");
+       }
        r = __interestedPidList.Construct();
        SysTryCatch(NID_SYS, r == E_SUCCESS, r = E_SYSTEM, E_SYSTEM, "It is failed to initiate bluetooth headset application list.");
 CATCH: