// limitations under the License.
//
-
#include <cassert>
#include <memory>
-#include <dpl/log/log.h>
#include <CommonsJavaScript/Utils.h>
#include <CommonsJavaScript/Validator.h>
#include <CommonsJavaScript/Converter.h>
#include "ContentFilterConverter.h"
#include "ContentUtility.h"
#include "JSWebAPIException.h"
-
+#include <Logger.h>
using namespace DeviceAPI::Common;
using namespace DeviceAPI::Tizen;
const JSValueRef arguments[],
JSValueRef* exception )
{
- LogDebug("JSContentManagerManager::getFolders entered");
+ LoggerD("JSContentManagerManager::getFolders entered");
TIME_TRACER_ITEM_BEGIN(__FUNCTION__, 0);
MediacontentManagerPrivObject *privateObject;
}
Catch(WrtDeviceApis::Commons::UnsupportedException)
{
- LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+ LoggerW("Exception: "<<_rethrown_exception.GetMessage());
return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_SUPPORTED_ERROR, _rethrown_exception.GetMessage());
}
Catch(WrtDeviceApis::Commons::InvalidArgumentException)
{
- LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+ LoggerW("Exception: "<<_rethrown_exception.GetMessage());
return JSTizenExceptionFactory::postException(context, exception, JSTizenException::INVALID_VALUES_ERROR, _rethrown_exception.GetMessage());
}
Catch(WrtDeviceApis::Commons::ConversionException)
{
- LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+ LoggerW("Exception: "<<_rethrown_exception.GetMessage());
return JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, _rethrown_exception.GetMessage());
}
Catch(WrtDeviceApis::Commons::NotFoundException)
{
- LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+ LoggerW("Exception: "<<_rethrown_exception.GetMessage());
return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_FOUND_ERROR, _rethrown_exception.GetMessage());
}
Catch(WrtDeviceApis::Commons::Exception)
{
- LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+ LoggerW("Exception: "<<_rethrown_exception.GetMessage());
return JSTizenExceptionFactory::postException(context, exception, JSTizenException::UNKNOWN_ERROR, _rethrown_exception.GetMessage());
}
const JSValueRef arguments[],
JSValueRef* exception )
{
- LogDebug("JSContentManagerManager::find entered");
+ LoggerD("JSContentManagerManager::find entered");
TIME_TRACER_ITEM_BEGIN(__FUNCTION__, 0);
MediacontentManagerPrivObject *privateObject;
}
Catch(WrtDeviceApis::Commons::UnsupportedException)
{
- LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+ LoggerW("Exception: "<<_rethrown_exception.GetMessage());
return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_SUPPORTED_ERROR, _rethrown_exception.GetMessage());
}
Catch(WrtDeviceApis::Commons::InvalidArgumentException)
{
- LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+ LoggerW("Exception: "<<_rethrown_exception.GetMessage());
return JSTizenExceptionFactory::postException(context, exception, JSTizenException::INVALID_VALUES_ERROR, _rethrown_exception.GetMessage());
}
Catch(WrtDeviceApis::Commons::ConversionException)
{
- LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+ LoggerW("Exception: "<<_rethrown_exception.GetMessage());
return JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, _rethrown_exception.GetMessage());
}
Catch(WrtDeviceApis::Commons::NotFoundException)
{
- LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+ LoggerW("Exception: "<<_rethrown_exception.GetMessage());
return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_FOUND_ERROR, _rethrown_exception.GetMessage());
}
Catch(WrtDeviceApis::Commons::Exception)
{
- LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+ LoggerW("Exception: "<<_rethrown_exception.GetMessage());
return JSTizenExceptionFactory::postException(context, exception, JSTizenException::UNKNOWN_ERROR, _rethrown_exception.GetMessage());
}
const JSValueRef arguments[],
JSValueRef* exception)
{
- LogDebug("JSContentManagerManager::updateItemsBatch entered");
+ LoggerD("JSContentManagerManager::updateItemsBatch entered");
TIME_TRACER_ITEM_BEGIN(__FUNCTION__, 0);
MediacontentManagerPrivObject *privateObject;
privateObject = static_cast<MediacontentManagerPrivObject*>(JSObjectGetPrivate(thisObject));
}
Catch(WrtDeviceApis::Commons::UnsupportedException)
{
- LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+ LoggerW("Exception: "<<_rethrown_exception.GetMessage());
return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_SUPPORTED_ERROR, _rethrown_exception.GetMessage());
}
Catch(WrtDeviceApis::Commons::InvalidArgumentException)
{
- LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+ LoggerW("Exception: "<<_rethrown_exception.GetMessage());
return JSTizenExceptionFactory::postException(context, exception, JSTizenException::INVALID_VALUES_ERROR, _rethrown_exception.GetMessage());
}
Catch(WrtDeviceApis::Commons::ConversionException)
{
- LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+ LoggerW("Exception: "<<_rethrown_exception.GetMessage());
return JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, _rethrown_exception.GetMessage());
}
Catch(WrtDeviceApis::Commons::NotFoundException)
{
- LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+ LoggerW("Exception: "<<_rethrown_exception.GetMessage());
return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_FOUND_ERROR, _rethrown_exception.GetMessage());
}
Catch(WrtDeviceApis::Commons::Exception)
{
- LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+ LoggerW("Exception: "<<_rethrown_exception.GetMessage());
return JSTizenExceptionFactory::postException(context, exception, JSTizenException::UNKNOWN_ERROR, _rethrown_exception.GetMessage());
}
const JSValueRef arguments[],
JSValueRef* exception)
{
- LogDebug("JSContentManagerManager::updateItem entered");
+ LoggerD("JSContentManagerManager::updateItem entered");
TIME_TRACER_ITEM_BEGIN(__FUNCTION__, 0);
MediacontentManagerPrivObject *privateObject;
}
Catch(WrtDeviceApis::Commons::UnsupportedException)
{
- LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+ LoggerW("Exception: "<<_rethrown_exception.GetMessage());
return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_SUPPORTED_ERROR, _rethrown_exception.GetMessage());
}
Catch(WrtDeviceApis::Commons::InvalidArgumentException)
{
- LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+ LoggerW("Exception: "<<_rethrown_exception.GetMessage());
return JSTizenExceptionFactory::postException(context, exception, JSTizenException::INVALID_VALUES_ERROR, _rethrown_exception.GetMessage());
}
Catch(WrtDeviceApis::Commons::ConversionException)
{
- LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+ LoggerW("Exception: "<<_rethrown_exception.GetMessage());
return JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, _rethrown_exception.GetMessage());
}
Catch(WrtDeviceApis::Commons::NotFoundException)
{
- LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+ LoggerW("Exception: "<<_rethrown_exception.GetMessage());
return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_FOUND_ERROR, _rethrown_exception.GetMessage());
}
Catch(WrtDeviceApis::Commons::Exception)
{
- LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+ LoggerW("Exception: "<<_rethrown_exception.GetMessage());
return JSTizenExceptionFactory::postException(context, exception, JSTizenException::UNKNOWN_ERROR, _rethrown_exception.GetMessage());
}
const JSValueRef arguments[],
JSValueRef* exception)
{
- LogDebug("JSContentManagerManager::scanFile entered");
+ LoggerD("JSContentManagerManager::scanFile entered");
TIME_TRACER_ITEM_BEGIN(__FUNCTION__, 0);
MediacontentManagerPrivObject *privateObject;
}
Catch(WrtDeviceApis::Commons::UnsupportedException)
{
- LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+ LoggerW("Exception: "<<_rethrown_exception.GetMessage());
return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_SUPPORTED_ERROR, _rethrown_exception.GetMessage());
}
Catch(WrtDeviceApis::Commons::InvalidArgumentException)
{
- LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+ LoggerW("Exception: "<<_rethrown_exception.GetMessage());
return JSTizenExceptionFactory::postException(context, exception, JSTizenException::INVALID_VALUES_ERROR, _rethrown_exception.GetMessage());
}
Catch(WrtDeviceApis::Commons::ConversionException)
{
- LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+ LoggerW("Exception: "<<_rethrown_exception.GetMessage());
return JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, _rethrown_exception.GetMessage());
}
Catch(WrtDeviceApis::Commons::NotFoundException)
{
- LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+ LoggerW("Exception: "<<_rethrown_exception.GetMessage());
return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_FOUND_ERROR, _rethrown_exception.GetMessage());
}
Catch(WrtDeviceApis::Commons::Exception)
{
- LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+ LoggerW("Exception: "<<_rethrown_exception.GetMessage());
return JSTizenExceptionFactory::postException(context, exception, JSTizenException::UNKNOWN_ERROR, _rethrown_exception.GetMessage());
}
const JSValueRef arguments[],
JSValueRef* exception)
{
- LogDebug("JSContentManagerManager::setChangeListener entered");
+ LoggerD("JSContentManagerManager::setChangeListener entered");
TIME_TRACER_ITEM_BEGIN(__FUNCTION__, 0);
MediacontentManagerPrivObject *privateObject;
const JSValueRef arguments[],
JSValueRef* exception)
{
- LogDebug("JSContentManagerManager::unsetChangeListener entered");
+ LoggerD("JSContentManagerManager::unsetChangeListener entered");
TIME_TRACER_ITEM_BEGIN(__FUNCTION__, 0);
MediacontentManagerPrivObject *privateObject;
privateObject = static_cast<MediacontentManagerPrivObject*>(JSObjectGetPrivate(thisObject));
void JSMediacontentManager::initialize(JSContextRef context, JSObjectRef object)
{
- LogDebug("JSContentManager initialize entered");
+ LoggerD("JSContentManager initialize entered");
MediacontentManagerPrivObject *privateObject = static_cast<MediacontentManagerPrivObject*>(JSObjectGetPrivate(object));
if (NULL == privateObject)
{
- LogDebug("Create ContenttManagerPrivObject");
+ LoggerD("Create ContenttManagerPrivObject");
IMediacontentManagerPtr contentManager = MediacontentFactory::getInstance().createMediacontentManagerObject();
privateObject = new MediacontentManagerPrivObject(context, contentManager);
if (!JSObjectSetPrivate(object, static_cast<void*>(privateObject)))
void JSMediacontentManager::finalize(JSObjectRef object)
{
- LogDebug("Entered");
+ LoggerD("Entered");
MediacontentManagerPrivObject* priv = static_cast<MediacontentManagerPrivObject*> (JSObjectGetPrivate(object));
if(priv != NULL)
{
- LogDebug("Deleting coordinates object");
+ LoggerD("Deleting coordinates object");
delete priv;
JSObjectSetPrivate(object, NULL);
priv = NULL;