Remove hardcoded path for multiuser support
[platform/framework/web/wrt-plugins-tizen.git] / src / Bluetooth / plugin_config.h
1 //
2 // Tizen Web Device API
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
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.
16 //
17
18
19 #ifndef _BLUETOOTH_PLUGIN_CONFIG_H_
20 #define _BLUETOOTH_PLUGIN_CONFIG_H_
21
22 #include <Commons/FunctionDeclaration.h>
23
24 namespace DeviceAPI {
25 namespace Bluetooth {
26
27 // attributes
28 #define BLUETOOTH_MANAGER_DEVICE_MAJOR "deviceMajor"
29 #define BLUETOOTH_MANAGER_DEVICE_MINOR "deviceMinor"
30 #define BLUETOOTH_MANAGER_DEVICE_SERVICE "deviceService"
31 #define BLUETOOTH_ADAPTER_NAME "name"
32 #define BLUETOOTH_ADAPTER_ADDRESS "address"
33 #define BLUETOOTH_ADAPTER_POWERED "powered"
34 #define BLUETOOTH_ADAPTER_VISIBLE "visible"
35 #define BLUETOOTH_DEVICE_NAME "name"
36 #define BLUETOOTH_DEVICE_ADDRESS "address"
37 #define BLUETOOTH_DEVICE_DEVICE_CLASS "deviceClass"
38 #define BLUETOOTH_DEVICE_IS_BONDED "isBonded"
39 #define BLUETOOTH_DEVICE_IS_TRUSTED "isTrusted"
40 #define BLUETOOTH_DEVICE_IS_CONNECTED "isConnected"
41 #define BLUETOOTH_DEVICE_UUIDS "uuids"
42 #define BLUETOOTH_SOCKET_UUID "uuid"
43 #define BLUETOOTH_SOCKET_STATE "state"
44 #define BLUETOOTH_SOCKET_PEER "peer"
45 #define BLUETOOTH_SOCKET_ONMESSAGE "onmessage"
46 #define BLUETOOTH_SOCKET_ONCLOSE "onclose"
47 #define BLUETOOTH_SOCKET_ONERROR "onerror"
48 #define BLUETOOTH_CLASS_MAJOR "major"
49 #define BLUETOOTH_CLASS_MINOR "minor"
50 #define BLUETOOTH_CLASS_SERVICES "services"
51 #define BLUETOOTH_SERVICE_HANDLER_UUID "uuid"
52 #define BLUETOOTH_SERVICE_HANDLER_NAME "name"
53 #define BLUETOOTH_SERVICE_HANDLER_IS_CONNECTED "isConnected"
54 #define BLUETOOTH_SERVICE_HANDLER_ONCONNECT "onconnect"
55 #define BLUETOOTH_PROFILE_TYPE "profileType"
56 #define BLUETOOTH_HEALTH_APPLICATION_DATA_TYPE "dataType"
57 #define BLUETOOTH_HEALTH_APPLICATION_NAME "name"
58 #define BLUETOOTH_HEALTH_APPLICATION_ONCONNECT "onconnect"
59 #define BLUETOOTH_HEALTH_CHANNEL_PEER "peer"
60 #define BLUETOOTH_HEALTH_CHANNEL_TYPE "channelType"
61 #define BLUETOOTH_HEALTH_CHANNEL_APP "application"
62 #define BLUETOOTH_HEALTH_CHANNEL_IS_CONNECTED "isConnected"
63
64
65 // functions
66 #define BLUETOOTH_MANAGER_API_GET_DEFAULT_ADAPTER "getDefaultAdapter"
67 #define BLUETOOTH_ADAPTER_API_SET_NAME "setName"
68 #define BLUETOOTH_ADAPTER_API_SET_POWERED "setPowered"
69 #define BLUETOOTH_ADAPTER_API_SET_VISIBLE "setVisible"
70 #define BLUETOOTH_ADAPTER_API_DISCOVER_DEVICES "discoverDevices"
71 #define BLUETOOTH_ADAPTER_API_STOP_DISCOVERY "stopDiscovery"
72 #define BLUETOOTH_ADAPTER_API_GET_KNOWN_DEVICES "getKnownDevices"
73 #define BLUETOOTH_ADAPTER_API_GET_DEVICE "getDevice"
74 #define BLUETOOTH_ADAPTER_API_CREATE_BONDING "createBonding"
75 #define BLUETOOTH_ADAPTER_API_DESTROY_BONDING "destroyBonding"
76 #define BLUETOOTH_ADAPTER_API_REGISTER_RFCOMMSERVICE_BY_UUID "registerRFCOMMServiceByUUID"
77 #define BLUETOOTH_ADAPTER_API_GET_BLUETOOTH_PROFILE_HANDLER "getBluetoothProfileHandler"
78 #define BLUETOOTH_ADAPTER_API_SET_CHANGE_LISTENER "setChangeListener"
79 #define BLUETOOTH_ADAPTER_API_UNSET_CHANGE_LISTENER "unsetChangeListener"
80 #define BLUETOOTH_DEVICE_API_CONNECT_TO_SERVICE_BY_UUID "connectToServiceByUUID"
81 #define BLUETOOTH_SOCKET_API_WRITE_DATA "writeData"
82 #define BLUETOOTH_SOCKET_API_READ_DATA "readData"
83 #define BLUETOOTH_SOCKET_API_CLOSE "close"
84 #define BLUETOOTH_CLASS_API_HAS_SERVICE "hasService"
85 #define BLUETOOTH_SERVICE_HANDLER_API_UNREGISTER "unregister"
86 #define BLUETOOTH_HEALTH_PROFILE_HANDLER_API_REGISTER_SINK_APPLICATION "registerSinkApplication"
87 #define BLUETOOTH_HEALTH_APPLICATION_API_UNREGISTER "healthUnregister"
88 #define BLUETOOTH_HEALTH_PROFILE_HANDLER_API_CONNECT_TO_SOURCE "connectToSource"
89 #define BLUETOOTH_HEALTH_CHANNEL_API_SEND_DATA "sendData"
90 #define BLUETOOTH_HEALTH_CHANNEL_API_SET_LISTENER "setListener"
91 #define BLUETOOTH_HEALTH_CHANNEL_API_UNSET_LISTENER "unsetListener"
92 #define BLUETOOTH_HEALTH_CHANNEL_API_CLOSE "healthClose"
93
94
95 DECLARE_FUNCTION_GETTER(Bluetooth);
96
97 #define BLUETOOTH_CHECK_ACCESS(functionName) \
98     aceCheckAccess<AceFunctionGetter, DefaultArgsVerifier<> >( \
99     getBluetoothFunctionData, \
100     functionName)
101
102 }
103 }
104
105 #endif // _BLUETOOTH_PLUGIN_CONFIG_H_