#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 {
controller = static_cast<AddressBookController*>(JSObjectGetPrivate(m_object));
if (!controller) {
- LogWarning("Object has no controller");
+ LoggerW("Object has no controller");
return;
}
addressBook = controller->getObject();
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());
}
}
};
controller = static_cast<ContactManagerController*>(JSObjectGetPrivate(m_object));
if (!controller) {
- LogWarning("Object has no controller");
+ LoggerW("Object has no controller");
return;
}
addressBook = controller->getObject();
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());
}
}
};