#define TIZEN_SERVICE_EVENT_PROPERTY_BUNDLE "__bundle"
#define CATCH_EXCEPTION_CONVERSION \
- Catch(Commons::ConversionException) {\
- LogError("Error on conversion");\
- return JSDOMExceptionFactory::\
- UnknownException.make(context, exception);\
+ Catch(Commons::ConversionException) { \
+ LogError("Error on conversion"); \
+ return JSDOMExceptionFactory:: \
+ UnknownException.make(context, exception); \
}
#define CATCH_EXCEPTION_NULL_PTR \
- Catch(Commons::NullPointerException) {\
- LogError("Error on pointer, null value");\
- return JSDOMExceptionFactory::\
- UnknownException.make(context, exception);\
+ Catch(Commons::NullPointerException) { \
+ LogError("Error on pointer, null value"); \
+ return JSDOMExceptionFactory:: \
+ UnknownException.make(context, exception); \
}
#define CATCH_EXCEPTION_PLATFORM_ERROR \
- Catch(Commons::PlatformException){\
- LogError("PlatformException occured");\
- return JSDOMExceptionFactory::\
- UnknownException.make(context, exception);\
+ Catch(Commons::PlatformException){ \
+ LogError("PlatformException occured"); \
+ return JSDOMExceptionFactory:: \
+ UnknownException.make(context, exception); \
}
#define CATCH_EXCEPTION_SECURITY \
- Catch(Commons::SecurityException){\
- LogError("Security exception occured");\
- return JSDOMExceptionFactory::\
- SecurityException.make(context, exception);\
+ Catch(Commons::SecurityException){ \
+ LogError("Security exception occured"); \
+ return JSDOMExceptionFactory:: \
+ SecurityException.make(context, exception); \
}
namespace WrtPlugins {
return &m_classInfo;
}
-JSClassRef JSTizenServiceEvent::m_jsClassRef = JSClassCreate(JSTizenServiceEvent::getClassInfo());
+JSClassRef JSTizenServiceEvent::m_jsClassRef = JSClassCreate(
+ JSTizenServiceEvent::getClassInfo());
void JSTizenServiceEvent::initialize(JSContextRef context,
JSObjectRef object)
LogDebug("entered");
JSTizenServiceEventPrivateObject* priv =
- static_cast<JSTizenServiceEventPrivateObject*>(JSObjectGetPrivate(object));
+ static_cast<JSTizenServiceEventPrivateObject*>(JSObjectGetPrivate(
+ object));
Assert(priv && "Missing private object");
}
{
LogDebug("entered");
JSTizenServiceEventPrivateObject* priv =
- static_cast<JSTizenServiceEventPrivateObject*>(JSObjectGetPrivate(object));
+ static_cast<JSTizenServiceEventPrivateObject*>(JSObjectGetPrivate(
+ object));
delete priv;
LogDebug("private object is realised");
-
}
JSValueRef JSTizenServiceEvent::getScale(
- JSContextRef context,
- JSObjectRef object,
- JSStringRef propertyName,
- JSValueRef* exception)
+ JSContextRef context,
+ JSObjectRef object,
+ JSStringRef propertyName,
+ JSValueRef* exception)
{
LogDebug("entered");
CATCH_EXCEPTION_CONVERSION
CATCH_EXCEPTION_NULL_PTR
CATCH_EXCEPTION_PLATFORM_ERROR
- CATCH_EXCEPTION_SECURITY
+ CATCH_EXCEPTION_SECURITY
}
JSValueRef JSTizenServiceEvent::getBundle(
- JSContextRef context,
- JSObjectRef object,
- JSStringRef propertyName,
- JSValueRef* exception)
+ JSContextRef context,
+ JSObjectRef object,
+ JSStringRef propertyName,
+ JSValueRef* exception)
{
LogDebug("entered");
CATCH_EXCEPTION_CONVERSION
CATCH_EXCEPTION_NULL_PTR
CATCH_EXCEPTION_PLATFORM_ERROR
- CATCH_EXCEPTION_SECURITY
+ CATCH_EXCEPTION_SECURITY
}
ITizenServiceEventPtr JSTizenServiceEvent::getPrivateObject(JSObjectRef arg)
#undef CATCH_EXCEPTION_NULL_PTR
#undef CATCH_EXCEPTION_PLATFORM_ERROR
#undef CATCH_EXCEPTION_SECURITY
-
}
}