wrt-plugins-tizen_0.4.23
[framework/web/wrt-plugins-tizen.git] / src / Contact / ContactListenerManager.h
old mode 100755 (executable)
new mode 100644 (file)
index 7ad069c..62883a9
 
 #include <map>
 #include <JavaScriptCore/JavaScript.h>
-#include <dpl/log/log.h>
 #include <dpl/shared_ptr.h>
 #include <dpl/singleton.h>
 #include <IListenerManager.h>
 #include "AddressBookController.h"
 #include "ContactManagerController.h"
+#include <Logger.h>
 
 namespace DeviceAPI {
 namespace Contact {
@@ -70,7 +70,7 @@ public:
 
                controller = static_cast<AddressBookController*>(JSObjectGetPrivate(m_object));
                if (!controller) {
-                       LogWarning("Object has no controller");
+                       LoggerW("Object has no controller");
                        return;
                }
                addressBook = controller->getObject();
@@ -81,10 +81,10 @@ public:
            dplEvent->setForSynchronousCall();
 
                Try {
-                       LogDebug("Remove change listener");
+                       LoggerD("Remove change listener");
                        addressBook->removeChangeListener(dplEvent);
                } Catch(WrtDeviceApis::Commons::Exception) {
-                       LogError("Error on platform : " << _rethrown_exception.GetMessage());
+                       LoggerE("Error on platform : " << _rethrown_exception.GetMessage());
                }
        }
 };
@@ -109,7 +109,7 @@ public:
 
                controller = static_cast<ContactManagerController*>(JSObjectGetPrivate(m_object));
                if (!controller) {
-                       LogWarning("Object has no controller");
+                       LoggerW("Object has no controller");
                        return;
                }
                addressBook = controller->getObject();
@@ -120,10 +120,10 @@ public:
            dplEvent->setForSynchronousCall();
 
                Try {
-                       LogDebug("Remove change listener");
+                       LoggerD("Remove change listener");
                        addressBook->removeChangeListener(dplEvent);
                } Catch(WrtDeviceApis::Commons::Exception) {
-                       LogError("Error on platform : " << _rethrown_exception.GetMessage());
+                       LoggerE("Error on platform : " << _rethrown_exception.GetMessage());
                }
        }
 };