#include <CommonsJavaScript/JSDOMExceptionFactory.h>
#include <API/Call/ICallManager.h>
#include <API/Call/CallFactory.h>
+#include <API/Call/CallDefine.h>
#include <API/Call/EventGetCallService.h>
#include <Tizen/Common/JSTizenExceptionFactory.h>
#include <Tizen/Common/JSTizenException.h>
};
JSStaticValue JSCallManager::m_property[] = {
- { "history", getProperty, NULL, kJSPropertyAttributeReadOnly },
+ { STR_HISTORY, getProperty, NULL, kJSPropertyAttributeReadOnly },
{ 0, 0, 0, 0 }
};
JSContextRef globalContext = priv->getContext();
try {
Converter convert(context);
- if(JSStringIsEqualToUTF8CString(propertyName, "history")) {
+ if(JSStringIsEqualToUTF8CString(propertyName, STR_HISTORY)) {
return JSCallHistory::createJSObject(globalContext, object);
}
} catch(const WrtDeviceApis::Commons::Exception& ex) {
if (argumentCount == 0) {
StringArrayPtr tags(new StringArray());
- tags->push_back("call");
+ tags->push_back(STR_CALL);
filter->setTags(tags);
} else {
if (!JSValueIsObject(context, arguments[0])) {
if (event->getExceptionCode() == WrtDeviceApis::Commons::ExceptionCodes::None) {
return converter.toJSValueRef(event->getResult(), gContext);
} else {
- if (event->getExceptionCode() == WrtDeviceApis::Commons::ExceptionCodes::UnsupportedException) {
- return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_SUPPORTED_ERROR, "Not supported value");
+ if (event->getExceptionCode() == WrtDeviceApis::Commons::ExceptionCodes::InvalidArgumentException) {
+ return JSTizenExceptionFactory::postException(context, exception, JSTizenException::INVALID_VALUES_ERROR, "Invalid values error : CallServiceFilter");
} else {
return JSTizenExceptionFactory::postException(context, exception, JSTizenException::UNKNOWN_ERROR, "Unknown error");
}