wrt-plugins-tizen_0.4.23
[framework/web/wrt-plugins-tizen.git] / src / Bookmark / JSBookmarkFolder.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 44cac31..88a2f53
@@ -15,7 +15,6 @@
 // limitations under the License.
 //
 
-#include <dpl/log/log.h>
 #include <JSTizenException.h>
 #include <JSTizenExceptionFactory.h>
 #include <ArgumentValidator.h>
@@ -25,6 +24,7 @@
 #include "JSBookmarkFolder.h"
 #include "BookmarkManager.h"
 #include "BookmarkData.h"
+#include <Logger.h>
 
 using namespace DeviceAPI::Common;
 using namespace WrtDeviceApis::CommonsJavaScript;
@@ -80,12 +80,12 @@ const JSClassDefinition* JSBookmarkFolder::getClassInfo()
 
 void JSBookmarkFolder::initialize(JSContextRef ctx, JSObjectRef object)
 {
-    LogDebug("JSBookmarkFolder::initialize()\n");
+    LoggerD("JSBookmarkFolder::initialize()\n");
 }
 
 void JSBookmarkFolder::finalize(JSObjectRef object)
 {
-    LogDebug("JSBookmarkFolder::finalize()\n");
+    LoggerD("JSBookmarkFolder::finalize()\n");
     BookmarkData * priv = static_cast<BookmarkData *>(JSObjectGetPrivate(object));
     if( priv ){
         JSObjectSetPrivate(object, NULL);
@@ -94,7 +94,7 @@ void JSBookmarkFolder::finalize(JSObjectRef object)
 }
 
 JSObjectRef JSBookmarkFolder::constructor(JSContextRef ctx, JSObjectRef constructor, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception){
-    LogDebug("Enter");
+    LoggerD("Enter");
        try{
                ArgumentValidator validator(ctx, argumentCount, arguments);
 
@@ -120,7 +120,7 @@ JSObjectRef JSBookmarkFolder::createJSObject(JSContextRef context, const std::st
 }
 
 JSObjectRef JSBookmarkFolder::createJSObject(JSContextRef context, const std::string &title, const int id, const int parentId) {
-       LogDebug("Enter");
+       LoggerD("Enter");
        if (title == "")
                throw InvalidValuesException("Title is empty");
        BookmarkData *priv = new BookmarkData(BOOKMARKFOLDER_TYPE, title, "", id, parentId);
@@ -135,14 +135,14 @@ JSObjectRef JSBookmarkFolder::createJSObject(JSContextRef context, void *priv) {
 }
 #endif
 JSValueRef JSBookmarkFolder::getParent(JSContextRef context, JSObjectRef object) {
-       LogDebug("Enter");;
+       LoggerD("Enter");;
        BookmarkData * priv = static_cast<BookmarkData *>(JSObjectGetPrivate(object));
 
        if (!priv)
                throw TypeMismatchException("Private data is null");
 
-       LogDebug("bookmark id:" << priv->m_id);
-       LogDebug("bookmark parent id:" << priv->m_parentId);
+       LoggerD("bookmark id:" << priv->m_id);
+       LoggerD("bookmark parent id:" << priv->m_parentId);
        if (priv->m_id != UNDEFINED_ID) {
                BookmarkParentSearchDataPtr parentSearchData(new BookmarkParentSearchData(priv->m_id, priv->m_parentId));
                bool isAlive = BookmarkManager::getInstance()->findParent(parentSearchData);
@@ -159,7 +159,7 @@ JSValueRef JSBookmarkFolder::getParent(JSContextRef context, JSObjectRef object)
 
 JSValueRef JSBookmarkFolder::getProperty(JSContextRef context, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception)
 {
-       LogDebug("Enter");
+       LoggerD("Enter");
 
        try     {
                if (JSStringIsEqualToUTF8CString(propertyName, TIZEN_BOOKMARKFOLDER_PARENT)) {