Update change log and spec for wrt-plugins-tizen_0.4.44
[framework/web/wrt-plugins-tizen.git] / src / Bluetooth / JSBluetoothHealthProfileHandler.h
1 //\r
2 // Tizen Web Device API\r
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.\r
4 //\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
8 //\r
9 // http://www.apache.org/licenses/LICENSE-2.0\r
10 //\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
16 //\r
17 \r
18 #ifndef __TIZEN_JS_HEALTH_PROFILE_HANDLER_H__\r
19 #define __TIZEN_JS_HEALTH_PROFILE_HANDLER_H__\r
20 \r
21 #include <JavaScriptCore/JavaScript.h>\r
22 \r
23 namespace DeviceAPI {\r
24 namespace Bluetooth {\r
25 \r
26 class JSBluetoothHealthProfileHandler\r
27 {\r
28 public:\r
29     static const JSClassDefinition* getClassInfo();\r
30     static const JSClassRef getClassRef();\r
31     static JSObjectRef createJSObject(JSContextRef context);\r
32     \r
33 private:\r
34 \r
35     /**\r
36      * The callback invoked when an object is first created.\r
37      */\r
38     static void initialize(JSContextRef context,\r
39             JSObjectRef object);\r
40 \r
41     /**\r
42      * The callback invoked when an object is finalized.\r
43      */\r
44     static void finalize(JSObjectRef object);\r
45 \r
46     static JSValueRef registerSinkApplication(JSContextRef context,\r
47         JSObjectRef object,\r
48         JSObjectRef thisObject,\r
49         size_t argumentCount,\r
50         const JSValueRef arguments[],\r
51         JSValueRef* exception);\r
52 \r
53     static JSValueRef connectToSource(JSContextRef context,\r
54         JSObjectRef object,\r
55         JSObjectRef thisObject,\r
56         size_t argumentCount,\r
57         const JSValueRef arguments[],\r
58         JSValueRef* exception);\r
59 \r
60     /**\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
63      */\r
64     static JSClassDefinition m_classInfo;\r
65 \r
66     /**\r
67      * This structure describes a statically declared function property.\r
68      */\r
69     static JSStaticFunction m_function[];\r
70 \r
71     static JSClassRef m_jsClassRef;\r
72 };\r
73 \r
74 \r
75 } // Bluetooth\r
76 } // DeviceAPI\r
77 \r
78 #endif // __TIZEN_JS_HEALTH_PROFILE_HANDLER_H__\r
79 \r
80 \r