Update change log and spec for wrt-plugins-tizen_0.4.44
[framework/web/wrt-plugins-tizen.git] / src / Bluetooth / JSBluetoothProfileHandler.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_BLUETOOTH_PROFILE_HANDLER_H__\r
19 #define __TIZEN_JS_BLUETOOTH_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 JSBluetoothProfileHandler\r
27 {\r
28 public:\r
29     static const JSClassDefinition* getClassInfo();\r
30     static const JSClassRef getClassRef();\r
31 \r
32 private:\r
33 \r
34     /**\r
35      * The callback invoked when an object is first created.\r
36      */\r
37     static void initialize(JSContextRef context,\r
38             JSObjectRef object);\r
39 \r
40     /**\r
41      * The callback invoked when an object is finalized.\r
42      */\r
43     static void finalize(JSObjectRef object);\r
44 \r
45     static JSValueRef getProperty(JSContextRef context,\r
46             JSObjectRef object,\r
47             JSStringRef propertyName,\r
48             JSValueRef* exception);\r
49 \r
50     /**\r
51      * This member variable contains the values which has to be passed\r
52      * when the this class is embedded into JS Engine.\r
53      */\r
54     static JSClassDefinition m_classInfo;\r
55 \r
56     static JSStaticValue m_property[];\r
57 \r
58     static JSClassRef m_jsClassRef;\r
59 \r
60 };\r
61 \r
62 \r
63 \r
64 } // Bluetooth\r
65 } // DeviceAPI\r
66 \r
67 #endif // __TIZEN_JS_BLUETOOTH_PROFILE_HANDLER_H__\r
68 \r