#include "JSBookmarkItem.h"
#include "JSBookmarkFolder.h"
#include "BookmarkData.h"
-#include <dpl/log/log.h>
#include <JSTizenException.h>
#include <JSTizenExceptionFactory.h>
#include <CommonsJavaScript/Converter.h>
#include <ArgumentValidator.h>
#include <PlatformException.h>
#include <JSWebAPIException.h>
+#include <Logger.h>
using namespace DeviceAPI::Common;
using namespace WrtDeviceApis::CommonsJavaScript;
void JSBookmarkItem::initialize(JSContextRef ctx, JSObjectRef object)
{
- LogDebug("JSBookmarkItem::initialize()");
+ LoggerD("JSBookmarkItem::initialize()");
}
void JSBookmarkItem::finalize(JSObjectRef object)
{
- LogDebug("JSBookmarkItem::finalize()");
+ LoggerD("JSBookmarkItem::finalize()");
BookmarkData *priv = static_cast<BookmarkData *>(JSObjectGetPrivate(object));
if( priv ){
JSObjectSetPrivate(object, NULL);
}
JSObjectRef JSBookmarkItem::constructor(JSContextRef ctx, JSObjectRef constructor, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception){
- LogDebug("JSBookmarkItem::constructor()");
+ LoggerD("JSBookmarkItem::constructor()");
ArgumentValidator validator(ctx, argumentCount, arguments);
try{
std::string title = validator.toString(0);
}
JSObjectRef JSBookmarkItem::createJSObject(JSContextRef context, const std::string &title, const std::string &url) {
- LogDebug("Enter");
+ LoggerD("Enter");
return createJSObject(context, title, url, UNDEFINED_ID, UNDEFINED_ID);
}
JSObjectRef JSBookmarkItem::createJSObject(JSContextRef context, const std::string &title, const std::string &url, const int id, const int parentId) {
- LogDebug("Enter");
+ LoggerD("Enter");
if (title == "")
throw InvalidValuesException("Title is empty");
if (url == "")
#endif
JSValueRef JSBookmarkItem::getProperty(JSContextRef context, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception)
{
- LogDebug("Enter");
+ LoggerD("Enter");
try {
Converter convert(context);
BookmarkData *priv = static_cast<BookmarkData *>(JSObjectGetPrivate(object));