wrt-plugins-tizen_0.4.23
[framework/web/wrt-plugins-tizen.git] / src / Contact / JSContactEmailAddress.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 341efb3..f8c802b
@@ -29,6 +29,7 @@
 #include "ContactConverter.h"
 #include "JSContactEmailAddressTypeArray.h"
 #include "JSContactEmailAddress.h"
+#include <Logger.h>
 
 #define CONTACT_CLASS_NAME "EmailAddress"
 
@@ -132,7 +133,7 @@ JSObjectRef JSContactEmailAddress::createJSObject(JSContextRef context,
        JSContactEmailAddressPriv *priv = new JSContactEmailAddressPriv(context, emailAddress);
        JSObjectRef jsObjectRef = JSObjectMake(context, getClassRef(), static_cast<void*>(priv));
        if (NULL == jsObjectRef) {
-               LogError("object creation error");
+               LoggerE("object creation error");
                return NULL;
        }
        return jsObjectRef;
@@ -157,7 +158,7 @@ JSObjectRef JSContactEmailAddress::constructor(JSContextRef context,
                const JSValueRef arguments[],
                JSValueRef* exception)
 {
-       LogDebug("entered");
+       LoggerD("entered");
 
        JSContactEmailAddressPriv *priv = static_cast<JSContactEmailAddressPriv*>(JSObjectGetPrivate(constructor));
        if (!priv) {
@@ -211,7 +212,7 @@ JSObjectRef JSContactEmailAddress::constructor(JSContextRef context,
        Try {
                jsobject = createJSObject(gContext, contactEmailAddress);
        } Catch(Exception) {
-               LogError("Argument type mismatch : " << _rethrown_exception.GetMessage());
+               LoggerE("Argument type mismatch : " << _rethrown_exception.GetMessage());
                *exception = JSTizenExceptionFactory::makeErrorObject(context, JSTizenException::TYPE_MISMATCH_ERROR, "Wrong arguments");
                return NULL;
        }
@@ -241,7 +242,7 @@ JSValueRef JSContactEmailAddress::getEmail(JSContextRef context,
        }
        Catch(WrtDeviceApis::Commons::Exception)
        {
-               LogWarning("trying to get incorrect value");
+               LoggerW("trying to get incorrect value");
        }
        return JSValueMakeUndefined(context);
 }
@@ -261,7 +262,7 @@ bool JSContactEmailAddress::setEmail(JSContextRef context,
        }
        Catch(WrtDeviceApis::Commons::Exception)
        {
-               LogWarning("trying to set incorrect value");
+               LoggerW("trying to set incorrect value");
                JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, "Type mismatch");
        }
        return true;
@@ -282,7 +283,7 @@ JSValueRef JSContactEmailAddress::getIsDefault(JSContextRef context,
        }
        Catch(WrtDeviceApis::Commons::Exception)
        {
-               LogWarning("trying to get incorrect value");
+               LoggerW("trying to get incorrect value");
        }
        return JSValueMakeUndefined(context);
 }
@@ -304,7 +305,7 @@ bool JSContactEmailAddress::setIsDefault(JSContextRef context,
        }
        Catch(WrtDeviceApis::Commons::Exception)
        {
-               LogWarning("trying to set incorrect value");
+               LoggerW("trying to set incorrect value");
                JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, "Type mismatch");
        }
        return true;
@@ -344,7 +345,7 @@ JSValueRef JSContactEmailAddress::getTypes(JSContextRef context,
        }
        Catch(WrtDeviceApis::Commons::Exception)
        {
-               LogWarning("trying to get incorrect value");
+               LoggerW("trying to get incorrect value");
        }
        return JSValueMakeUndefined(context);
 }
@@ -369,7 +370,7 @@ bool JSContactEmailAddress::setTypes(JSContextRef context,
        }
        Catch(WrtDeviceApis::Commons::Exception)
        {
-               LogWarning("trying to set incorrect value");
+               LoggerW("trying to set incorrect value");
                JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, "Type mismatch");
        }
        return true;