2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dpl/log/log.h>
20 #include <CommonsJavaScript/JSUtils.h>
21 #include <CommonsJavaScript/Converter.h>
22 #include <CommonsJavaScript/Validator.h>
23 #include <CommonsJavaScript/JSDOMExceptionFactory.h>
24 #include <Commons/Exception.h>
25 #include <Tizen/Common/JSTizenExceptionFactory.h>
26 #include <Tizen/Common/JSTizenException.h>
29 #include "JSAbstractAlarm.h"
39 using namespace WrtDeviceApis::Commons;
40 using namespace WrtDeviceApis::CommonsJavaScript;
42 JSClassRef JSAbstractAlarm::m_jsClassRef = NULL;
44 JSClassDefinition JSAbstractAlarm::m_jsClassInfo = {
46 kJSClassAttributeNone,
56 NULL, //deleteProperty,Geolocation
57 NULL, //getPropertyNames,
63 const JSClassRef JSAbstractAlarm::getClassRef()
66 m_jsClassRef = JSClassCreate(&m_jsClassInfo);
71 const JSClassDefinition* JSAbstractAlarm::getClassInfo()
73 return &m_jsClassInfo;
76 void JSAbstractAlarm::initialize(JSContextRef context, JSObjectRef object)
80 void JSAbstractAlarm::finalize(JSObjectRef object)
85 bool JSAbstractAlarm::hasInstance(JSContextRef context, JSObjectRef constructor, JSValueRef possibleInstance, JSValueRef* exception)
87 return JSValueIsObjectOfClass(context, possibleInstance, getClassRef());