2 // Tizen Web Device API
\r
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
\r
5 // Licensed under the Apache License, Version 2.0 (the License);
\r
6 // you may not use this file except in compliance with the License.
\r
7 // You may obtain a copy of the License at
\r
9 // http://www.apache.org/licenses/LICENSE-2.0
\r
11 // Unless required by applicable law or agreed to in writing, software
\r
12 // distributed under the License is distributed on an "AS IS" BASIS,
\r
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
14 // See the License for the specific language governing permissions and
\r
15 // limitations under the License.
\r
18 #ifndef __TIZEN_JS_HEALTH_PROFILE_HANDLER_H__
\r
19 #define __TIZEN_JS_HEALTH_PROFILE_HANDLER_H__
\r
21 #include <JavaScriptCore/JavaScript.h>
\r
23 namespace DeviceAPI {
\r
24 namespace Bluetooth {
\r
26 class JSBluetoothHealthProfileHandler
\r
29 static const JSClassDefinition* getClassInfo();
\r
30 static const JSClassRef getClassRef();
\r
31 static JSObjectRef createJSObject(JSContextRef context);
\r
36 * The callback invoked when an object is first created.
\r
38 static void initialize(JSContextRef context,
\r
39 JSObjectRef object);
\r
42 * The callback invoked when an object is finalized.
\r
44 static void finalize(JSObjectRef object);
\r
46 static JSValueRef registerSinkApplication(JSContextRef context,
\r
48 JSObjectRef thisObject,
\r
49 size_t argumentCount,
\r
50 const JSValueRef arguments[],
\r
51 JSValueRef* exception);
\r
53 static JSValueRef connectToSource(JSContextRef context,
\r
55 JSObjectRef thisObject,
\r
56 size_t argumentCount,
\r
57 const JSValueRef arguments[],
\r
58 JSValueRef* exception);
\r
61 * This member variable contains the values which has to be passed
\r
62 * when the this class is embedded into JS Engine.
\r
64 static JSClassDefinition m_classInfo;
\r
67 * This structure describes a statically declared function property.
\r
69 static JSStaticFunction m_function[];
\r
71 static JSClassRef m_jsClassRef;
\r
78 #endif // __TIZEN_JS_HEALTH_PROFILE_HANDLER_H__
\r