2 // Tizen Web Device API
3 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
18 #ifndef __TIZEN_JS_SENSOR_DATA_H__
19 #define __TIZEN_JS_SENSOR_DATA_H__
21 #include <JavaScriptCore/JavaScript.h>
23 #include "SensorData.h"
31 static const JSClassDefinition* getClassInfo();
32 static const JSClassRef getClassRef();
33 static JSValueRef createJSObject(JSContextRef context, LightData* lightData);
34 static JSValueRef getProperty(JSContextRef context, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception);
38 * The callback invoked when an object is first created.
40 static void initialize(JSContextRef context, JSObjectRef object);
43 * The callback invoked when an object is finalized.
45 static void finalize(JSObjectRef object);
48 * This member variable contains the values which has to be passed
49 * when the this class is embedded into JS Engine.
51 static JSClassDefinition m_classInfo;
54 * This member variable contains the initialization values for the
55 * properties of this class. The values are given according to
56 * the data structure JSPropertySpec
58 static JSStaticValue m_property[];
60 static JSClassRef m_jsClassRef;
67 static const JSClassDefinition* getClassInfo();
68 static const JSClassRef getClassRef();
69 static JSValueRef createJSObject(JSContextRef context, ProximityData* proximityData);
70 static JSValueRef getProperty(JSContextRef context, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception);
74 * The callback invoked when an object is first created.
76 static void initialize(JSContextRef context, JSObjectRef object);
79 * The callback invoked when an object is finalized.
81 static void finalize(JSObjectRef object);
84 * This member variable contains the values which has to be passed
85 * when the this class is embedded into JS Engine.
87 static JSClassDefinition m_classInfo;
90 * This member variable contains the initialization values for the
91 * properties of this class. The values are given according to
92 * the data structure JSPropertySpec
94 static JSStaticValue m_property[];
96 static JSClassRef m_jsClassRef;
103 static const JSClassDefinition* getClassInfo();
104 static const JSClassRef getClassRef();
105 static JSValueRef createJSObject(JSContextRef context, MagneticData* magneticData);
106 static JSValueRef getProperty(JSContextRef context, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception);
110 * The callback invoked when an object is first created.
112 static void initialize(JSContextRef context, JSObjectRef object);
115 * The callback invoked when an object is finalized.
117 static void finalize(JSObjectRef object);
120 * This member variable contains the values which has to be passed
121 * when the this class is embedded into JS Engine.
123 static JSClassDefinition m_classInfo;
126 * This member variable contains the initialization values for the
127 * properties of this class. The values are given according to
128 * the data structure JSPropertySpec
130 static JSStaticValue m_property[];
132 static JSClassRef m_jsClassRef;
138 static const JSClassDefinition* getClassInfo();
139 static const JSClassRef getClassRef();
140 static JSValueRef createJSObject(JSContextRef context, PressureData* pressureData);
141 static JSValueRef getProperty(JSContextRef context, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception);
145 * The callback invoked when an object is first created.
147 static void initialize(JSContextRef context, JSObjectRef object);
150 * The callback invoked when an object is finalized.
152 static void finalize(JSObjectRef object);
155 * This member variable contains the values which has to be passed
156 * when the this class is embedded into JS Engine.
158 static JSClassDefinition m_classInfo;
161 * This member variable contains the initialization values for the
162 * properties of this class. The values are given according to
163 * the data structure JSPropertySpec
165 static JSStaticValue m_property[];
167 static JSClassRef m_jsClassRef;
171 class JSUltravioletData
174 static const JSClassDefinition* getClassInfo();
175 static const JSClassRef getClassRef();
176 static JSValueRef createJSObject(JSContextRef context, UltravioletData* ultravioletData);
177 static JSValueRef getProperty(JSContextRef context, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception);
181 * The callback invoked when an object is first created.
183 static void initialize(JSContextRef context, JSObjectRef object);
186 * The callback invoked when an object is finalized.
188 static void finalize(JSObjectRef object);
191 * This member variable contains the values which has to be passed
192 * when the this class is embedded into JS Engine.
194 static JSClassDefinition m_classInfo;
198 * This member variable contains the initialization values for the
199 * properties of this class. The values are given according to
200 * the data structure JSPropertySpec
202 static JSStaticValue m_property[];
204 static JSClassRef m_jsClassRef;
210 #endif // __TIZEN_JS_DOWNLOAD_MANAGER_H__