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_BLUETOOTH_PROFILE_HANDLER_H__
\r
19 #define __TIZEN_JS_BLUETOOTH_PROFILE_HANDLER_H__
\r
21 #include <JavaScriptCore/JavaScript.h>
\r
23 namespace DeviceAPI {
\r
24 namespace Bluetooth {
\r
26 class JSBluetoothProfileHandler
\r
29 static const JSClassDefinition* getClassInfo();
\r
30 static const JSClassRef getClassRef();
\r
35 * The callback invoked when an object is first created.
\r
37 static void initialize(JSContextRef context,
\r
38 JSObjectRef object);
\r
41 * The callback invoked when an object is finalized.
\r
43 static void finalize(JSObjectRef object);
\r
45 static JSValueRef getProperty(JSContextRef context,
\r
47 JSStringRef propertyName,
\r
48 JSValueRef* exception);
\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
54 static JSClassDefinition m_classInfo;
\r
56 static JSStaticValue m_property[];
\r
58 static JSClassRef m_jsClassRef;
\r
67 #endif // __TIZEN_JS_BLUETOOTH_PROFILE_HANDLER_H__
\r