// limitations under the License.
//
-#include <dpl/log/log.h>
#include <JSTizenException.h>
#include <JSTizenExceptionFactory.h>
#include <ArgumentValidator.h>
#include "JSBookmarkFolder.h"
#include "BookmarkManager.h"
#include "BookmarkData.h"
+#include <Logger.h>
using namespace DeviceAPI::Common;
using namespace WrtDeviceApis::CommonsJavaScript;
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);
}
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);
}
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);
}
#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);
JSValueRef JSBookmarkFolder::getProperty(JSContextRef context, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception)
{
- LogDebug("Enter");
+ LoggerD("Enter");
try {
if (JSStringIsEqualToUTF8CString(propertyName, TIZEN_BOOKMARKFOLDER_PARENT)) {