2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
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
9 // http://www.apache.org/licenses/LICENSE-2.0
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.
19 * @file FNetBtBluetoothTypes.h
20 * @brief This is the header file for the enumerations in the Bluetooth namespace.
22 * This header file contains the declarations and descriptions of the enumerations in the Bluetooth namespace.
24 #ifndef _FNET_BT_BLUETOOTH_TYPES_H_
25 #define _FNET_BT_BLUETOOTH_TYPES_H_
27 #include <FBaseTypes.h>
29 namespace Tizen { namespace Net { namespace Bluetooth
34 * @enum BluetoothDeviceStateType
35 * Defines the states of the local %Bluetooth device.
37 * @brief <i> [Deprecated] </i>
38 * @deprecated This enum type is deprecated because the on/off states and the discoverable mode are not orthogonal.
39 * All the methods that use this enum type are also deprecated. Instead of using this enum type, it is
40 * recommended to use BluetoothManager::IsActivated() and the enum
41 * Bluetooth::BluetoothDiscoverableMode.
45 enum BluetoothDeviceStateType
47 BT_DEVICE_STATE_OFF, /**< @if OSPDEPREC The OFF state @endif */
48 BT_DEVICE_STATE_DISCOVERABLE, /**< @if OSPDEPREC The DISCOVERABLE state @endif */
49 BT_DEVICE_STATE_NOT_DISCOVERABLE /**< @if OSPDEPREC The NOT DISCOVERABLE state @endif */
53 * @enum BluetoothDiscoverableMode
54 * Defines the discoverable mode of the local %Bluetooth device.
58 enum BluetoothDiscoverableMode
60 BT_DISC_MODE_NOT_DISCOVERABLE, /**< The mode NOT DISCOVERABLE by other devices */
61 BT_DISC_MODE_DISCOVERABLE, /**< The mode DISCOVERABLE by other devices */
62 BT_DISC_MODE_TIME_LIMITED_DISCOVERABLE /**< The mode DISCOVERABLE by other devices during a certain amount of time
63 * @if OSPCOMPAT @b Since: @b 2.0 @endif
68 * @enum BluetoothConnectionType
69 * Defines the %Bluetooth connection types.
73 enum BluetoothConnectionType
75 BT_CONNECTION_GENERIC, /**< The GENERIC CONNECTION
77 * @deprecated This enumeration field is deprecated. @n
80 BT_CONNECTION_SPP_ACCEPTOR, /**< The SPP ACCEPTOR CONNECTION */
81 BT_CONNECTION_SPP_INITIATOR, /**< The SPP INITIATOR CONNECTION */
82 BT_CONNECTION_OPP_SERVER, /**< The OPP SERVER CONNECTION */
83 BT_CONNECTION_OPP_CLIENT, /**< The OPP CLIENT CONNECTION */
88 * @enum BluetoothHealthDataChannelType
89 * Defines the transmission type of %BluetoothHealth data channel.
93 enum BluetoothHealthDataChannelType
95 BT_HEALTH_DATA_CHANNEL_NONE, /**< The any type of data channel */
96 BT_HEALTH_DATA_CHANNEL_RELIABLE, /**< The data channel type for transmitting data with the reliable manner of
97 * which the confidence in the exchange is at its highest (e.g. measurement
98 * and alert information)
100 BT_HEALTH_DATA_CHANNEL_STREAMING /**< The data channel type for transmitting data when the timeliness of the
101 * delivery of each frame is more important than the reliable delivery of
102 * every frame (e.g. an ECG waveform, where low latency is critical)
107 * @enum BluetoothServiceClassType
108 * Defines the service class type (part of the class of the device), returned from the device discovery.
112 enum BluetoothServiceClassType
114 BT_COD_SVC_LIMITED_DISCOVERABLE_MODE = 0x0020, /**< The LIMITED DISCOVERABLE MODE */
115 BT_COD_SVC_POSITIONING = 0x0100, /**< The POSITIONING service class type */
116 BT_COD_SVC_NETWORKING = 0x0200, /**< The NETWORKING service class type */
117 BT_COD_SVC_RENDERING = 0x0400, /**< The RENDERING service class type */
118 BT_COD_SVC_CAPTURING = 0x0800, /**< The CAPTURING service class type */
119 BT_COD_SVC_OBJECT_TRANSFER = 0x1000, /**< The OBJECT TRANSFER service class type */
120 BT_COD_SVC_AUDIO = 0x2000, /**< The AUDIO service class type */
121 BT_COD_SVC_TELEPHONY = 0x4000, /**< The TELEPHONY service class type */
122 BT_COD_SVC_INFORMATION = 0x8000, /**< The INFORMATION service class type */
123 BT_COD_SVC_ALL = 0x01FF, /**< The ALL services class type */
124 BT_COD_SVC_UNKNOWN = 0x0000 /**< The UNKNOWN service class type */
128 * @enum BluetoothMajorDeviceClassType
129 * Defines the major device class (part of the class of the device).
133 enum BluetoothMajorDeviceClassType
135 BT_COD_MAJ_DEV_CLS_MISC = 0x00, /**< The MISC major device class type */
136 BT_COD_MAJ_DEV_CLS_COMPUTER = 0x01, /**< The COMPUTER major device class type */
137 BT_COD_MAJ_DEV_CLS_PHONE = 0x02, /**< The PHONE major device class type */
138 BT_COD_MAJ_DEV_CLS_LAN_ACCESS_POINT = 0x03, /**< The LAN ACCESS POINT major device class type */
139 BT_COD_MAJ_DEV_CLS_AUDIO = 0x04, /**< The AUDIO major device class type */
140 BT_COD_MAJ_DEV_CLS_PERIPHERAL = 0x05, /**< The PERIPHERAL major device class type */
141 BT_COD_MAJ_DEV_CLS_IMAGING = 0x06, /**< The IMAGING major device class type */
142 BT_COD_MAJ_DEV_CLS_UNCLASSIFIED = 0x1F /**< The UNCLASSIFIED major device class type */
146 * @enum BluetoothMinorDeviceClassType
147 * Defines the minor device class (part of the class of the device).
151 enum BluetoothMinorDeviceClassType
153 BT_COD_MIN_DEV_CLS_UNCLASSIFIED = 0x00, /**< The UNCLASSIFIED minor device class type */
155 BT_COD_MIN_DEV_CLS_DESKTOP_WORKSTATION = 0x04, /**< The DESKTOP WORKSTATION minor device class type */
156 BT_COD_MIN_DEV_CLS_SERVER_CLASS_COMPUTER = 0x08, /**< The SERVER CLASS COMPUTER minor device class type */
157 BT_COD_MIN_DEV_CLS_LAPTOP = 0x0C, /**< The LAPTOP minor device class type */
158 BT_COD_MIN_DEV_CLS_HANDHELD_PC_OR_PDA = 0x10, /**< The HANDHELD PC OR PDA minor device class type */
159 BT_COD_MIN_DEV_CLS_PALM_SIZED_PC_OR_PDA = 0x14, /**< The PALM SIZED PC OR PDA minor device class type */
160 BT_COD_MIN_DEV_CLS_WEARABLE_COMPUTER = 0x18, /**< The WEARABLE COMPUTER minor device class type */
162 BT_COD_MIN_DEV_CLS_CELLULAR = 0x04, /**< The CELLULAR minor device class type */
163 BT_COD_MIN_DEV_CLS_CORDLESS = 0x08, /**< The CORDLESS minor device class type */
164 BT_COD_MIN_DEV_CLS_SMART_PHONE = 0x0C, /**< The SMART PHONE minor device class type */
165 BT_COD_MIN_DEV_CLS_WIRED_MODEM_OR_VOICE_GATEWAY = 0x10, /**< The WIRED MODEM OR VOICE GATEWAY minor device class type */
166 BT_COD_MIN_DEV_CLS_COMMON_ISDN_ACCESS = 0x14, /**< The COMMON ISDN ACCESS minor device class type */
168 BT_COD_MIN_DEV_CLS_FULLY_AVAILABLE = 0x04, /**< The FULLY AVAILABLE minor device class type */
169 BT_COD_MIN_DEV_CLS_1_TO_17_PERCENT_UTILIZED = 0x20, /**< The 1_TO_17_PERCENT_UTILIZED minor device class type */
170 BT_COD_MIN_DEV_CLS_17_TO_33_PERCENT_UTILIZED = 0x40, /**< The 17_TO_33_PERCENT_UTILIZED minor device class type */
171 BT_COD_MIN_DEV_CLS_33_TO_50_PERCENT_UTILIZED = 0x60, /**< The 33_TO_50_PERCENT_UTILIZED minor device class type */
172 BT_COD_MIN_DEV_CLS_50_to_67_PERCENT_UTILIZED = 0x80, /**< The 50_to_67_PERCENT_UTILIZED minor device class type */
173 BT_COD_MIN_DEV_CLS_67_TO_83_PERCENT_UTILIZED = 0xA0, /**< The 67_TO_83_PERCENT_UTILIZED minor device class type */
174 BT_COD_MIN_DEV_CLS_83_TO_99_PERCENT_UTILIZED = 0xC0, /**< The 83_TO_99_PERCENT_UTILIZED minor device class type */
175 BT_COD_MIN_DEV_CLS_NO_SERVICE_AVAILABLE = 0xE0, /**< The NO SERVICE AVAILABLE minor device class type */
177 BT_COD_MIN_DEV_CLS_HEADSET_PROFILE = 0x04, /**< The HEADSET PROFILE minor device class type */
178 BT_COD_MIN_DEV_CLS_HANDSFREE = 0x08, /**< The HANDSFREE minor device class type */
179 BT_COD_MIN_DEV_CLS_SIM_CARD_READER = 0x18, /**< The SIM CARD READER minor device class type */
184 * @enum BluetoothServiceType
185 * Defines the %Bluetooth service type.
189 enum BluetoothServiceType
191 BT_SVC_RES_SERVICE = 0x00000001, /**< The Reserved service type */
192 BT_SVC_SPP_SERVICE = 0x00000002, /**< The Serial port profile service type */
193 BT_SVC_DUN_SERVICE = 0x00000004, /**< The Dial-up networking profile service type */
194 BT_SVC_FAX_SERVICE = 0x00000008, /**< The Fax profile service type */
195 BT_SVC_LAP_SERVICE = 0x00000010, /**< The LAN access profile service type */
196 BT_SVC_HSP_SERVICE = 0x00000020, /**< The Headset profile service type */
197 BT_SVC_HFP_SERVICE = 0x00000040, /**< The Hands-free profile service type */
198 BT_SVC_OPP_SERVICE = 0x00000080, /**< The Object push service type */
199 BT_SVC_FTP_SERVICE = 0x00000100, /**< The File transfer service type */
200 BT_SVC_CTP_SERVICE = 0x00000200, /**< The Cordless Terminal service type */
201 BT_SVC_ICP_SERVICE = 0x00000400, /**< The Intercom Terminal service type */
202 BT_SVC_SYNC_SERVICE = 0x00000800, /**< The Synchronization service type */
203 BT_SVC_BPP_SERVICE = 0x00001000, /**< The Print server service type */
204 BT_SVC_BIP_SERVICE = 0x00002000, /**< The Basic Imaging service type */
205 BT_SVC_PANU_SERVICE = 0x00004000, /**< The PAN User service type */
206 BT_SVC_NAP_SERVICE = 0x00008000, /**< The PAN Network access point service type */
207 BT_SVC_GN_SERVICE = 0x00010000, /**< The PAN Group Ad-hoc networks service type */
208 BT_SVC_SAP_SERVICE = 0x00020000, /**< The SIM Access Profile service type */
209 BT_SVC_A2DP_SERVICE = 0x00040000, /**< An advanced audio distribution service type */
210 BT_SVC_AVRCP_SERVICE = 0x00080000, /**< An A/V remote control service type */
211 BT_SVC_HID_SERVICE = 0x00100000, /**< The HID profile service type */
212 BT_SVC_VDP_SERVICE = 0x00200000, /**< The VDP profile service type */
213 BT_SVC_PBAP_SERVICE = 0x00400000, /**< The PhoneBook Access service type */
214 BT_SVC_HSP_HS_SERVICE = 0x00800000, /**< The Headset service type */
215 BT_SVC_HFP_HS_SERVICE = 0x01000000, /**< The Hands-free Headset service type */
216 BT_SVC_HCRP_SERVICE = 0x02000000, /**< The Hardcopy cable replacement profile service type
217 * @if OSPCOMPAT @b Since: @b 2.0 @endif
219 BT_SVC_DID_SERVICE = 0x04000000, /**< The device identification profile service type
220 * @if OSPCOMPAT @b Since: @b 2.0 @endif
222 BT_SVC_HDP_SERVICE = 0x08000000, /**< The health device profile service type
223 * @if OSPCOMPAT @b Since: @b 2.0 @endif
225 BT_SVC_MAP_SERVICE = 0x10000000, /**< The message access profile service type
226 * @if OSPCOMPAT @b Since: @b 2.0 @endif
228 BT_SVC_ALL_SERVICE = 0x01FFFFFF, /**< The All-services-supported-by-BTA service type
230 * @deprecated This enumeration field is deprecated.
234 BT_SVC_NONE = 0 /**< The No service or unknown service type */
238 * The serial port profile UUID (00001101-0000-1000-8000-00805F9B34FB).
242 _OSP_EXPORT_ extern const byte BT_SVC_UUID_SPP[];
245 * The LAN access profile UUID (00001102-0000-1000-8000-00805F9B34FB).
249 _OSP_EXPORT_ extern const byte BT_SVC_UUID_LAP[];
252 * The dial-up networking profile UUID (00001103-0000-1000-8000-00805F9B34FB).
256 _OSP_EXPORT_ extern const byte BT_SVC_UUID_DUN[];
259 * The synchronization profile UUID (00001104-0000-1000-8000-00805F9B34FB).
263 _OSP_EXPORT_ extern const byte BT_SVC_UUID_SYNC[];
266 * The object push profile UUID (00001105-0000-1000-8000-00805F9B34FB).
270 _OSP_EXPORT_ extern const byte BT_SVC_UUID_OPP[];
273 * The file transfer profile UUID (00001106-0000-1000-8000-00805F9B34FB).
277 _OSP_EXPORT_ extern const byte BT_SVC_UUID_FTP[];
280 * The synchronization profile UUID (00001107-0000-1000-8000-00805F9B34FB).
284 _OSP_EXPORT_ extern const byte BT_SVC_UUID_SYNC_COMMAND[];
287 * The headset profile UUID (00001108-0000-1000-8000-00805F9B34FB).
291 _OSP_EXPORT_ extern const byte BT_SVC_UUID_HSP[];
294 * The cordless telephony profile UUID (00001109-0000-1000-8000-00805F9B34FB).
298 _OSP_EXPORT_ extern const byte BT_SVC_UUID_CTP[];
301 * The advanced audio distribution profile source UUID (0000110A-0000-1000-8000-00805F9B34FB).
305 _OSP_EXPORT_ extern const byte BT_SVC_UUID_A2DP_SOURCE[];
308 * The advanced audio distribution profile - sink UUID (0000110B-0000-1000-8000-00805F9B34FB).
312 _OSP_EXPORT_ extern const byte BT_SVC_UUID_A2DP_SINK[];
315 * The audio/video remote control profile - target UUID (0000110C-0000-1000-8000-00805F9B34FB).
319 _OSP_EXPORT_ extern const byte BT_SVC_UUID_AVRCP_TARGET[];
322 * The advanced audio distribution profile UUID (0000110D-0000-1000-8000-00805F9B34FB).
326 _OSP_EXPORT_ extern const byte BT_SVC_UUID_A2DP[];
329 * The audio/video remote control profile UUID (0000110E-0000-1000-8000-00805F9B34FB).
333 _OSP_EXPORT_ extern const byte BT_SVC_UUID_AVRCP[];
336 * The audio/video remote control profile - controller UUID (0000110F-0000-1000-8000-00805F9B34FB).
340 _OSP_EXPORT_ extern const byte BT_SVC_UUID_AVRCP_CONTROLLER[];
343 * The intercom profile UUID (00001110-0000-1000-8000-00805F9B34FB).
347 _OSP_EXPORT_ extern const byte BT_SVC_UUID_ICP[];
350 * The fax profile UUID (00001111-0000-1000-8000-00805F9B34FB).
354 _OSP_EXPORT_ extern const byte BT_SVC_UUID_FAX[];
357 * The headset profile audio gateway UUID (00001112-0000-1000-8000-00805F9B34FB).
361 _OSP_EXPORT_ extern const byte BT_SVC_UUID_HSP_AG[];
364 * The personal area networking profile - user UUID (00001115-0000-1000-8000-00805F9B34FB).
368 _OSP_EXPORT_ extern const byte BT_SVC_UUID_PAN_PANU[];
371 * The personal area networking profile - network access point UUID (00001116-0000-1000-8000-00805F9B34FB).
375 _OSP_EXPORT_ extern const byte BT_SVC_UUID_PAN_NAP[];
378 * The personal area networking profile - group ad-hoc networks UUID (00001117-0000-1000-8000-00805F9B34FB).
382 _OSP_EXPORT_ extern const byte BT_SVC_UUID_PAN_GN[];
385 * The basic printing profile - direct printing UUID (00001118-0000-1000-8000-00805F9B34FB).
389 _OSP_EXPORT_ extern const byte BT_SVC_UUID_BPP_DIRECT_PRINTING[];
392 * The basic printing profile - reference printing UUID (00001119-0000-1000-8000-00805F9B34FB).
396 _OSP_EXPORT_ extern const byte BT_SVC_UUID_BPP_REFERENCE_PRINTING[];
399 * The basic imaging profile UUID (0000111A-0000-1000-8000-00805F9B34FB).
403 _OSP_EXPORT_ extern const byte BT_SVC_UUID_BIP[];
406 * The basic imaging profile - imaging responder UUID (0000111B-0000-1000-8000-00805F9B34FB).
410 _OSP_EXPORT_ extern const byte BT_SVC_UUID_BIP_RESPONDER[];
413 * The basic imaging profile - imaging automatic archive UUID (0000111C-0000-1000-8000-00805F9B34FB).
417 _OSP_EXPORT_ extern const byte BT_SVC_UUID_BIP_AUTOMATIC_ARCHIVE[];
420 * The basic imaging profile - imaging referenced objects UUID (0000111D-0000-1000-8000-00805F9B34FB).
424 _OSP_EXPORT_ extern const byte BT_SVC_UUID_BIP_REFERENCED_OBJECTS[];
427 * The hands-free profile UUID (0000111E-0000-1000-8000-00805F9B34FB).
431 _OSP_EXPORT_ extern const byte BT_SVC_UUID_HFP[];
434 * The hands-free profile - audio gateway UUID (0000111F-0000-1000-8000-00805F9B34FB).
438 _OSP_EXPORT_ extern const byte BT_SVC_UUID_HFP_AG[];
441 * The basic printing profile - direct printing referenced objects UUID (00001120-0000-1000-8000-00805F9B34FB).
445 _OSP_EXPORT_ extern const byte BT_SVC_UUID_BPP_DIRECT_PRINTING_RO[];
448 * The basic printing profile - reflected UI UUID (00001121-0000-1000-8000-00805F9B34FB).
452 _OSP_EXPORT_ extern const byte BT_SVC_UUID_BPP_REFLECTED_UI[];
455 * The basic printing profile - basic printing UUID (00001122-0000-1000-8000-00805F9B34FB).
459 _OSP_EXPORT_ extern const byte BT_SVC_UUID_BPP_BASIC_PRINTING[];
462 * The basic printing profile - printing status UUID (00001123-0000-1000-8000-00805F9B34FB).
466 _OSP_EXPORT_ extern const byte BT_SVC_UUID_BPP_PRINTING_STATUS[];
469 * The human interface device profile UUID (00001124-0000-1000-8000-00805F9B34FB).
473 _OSP_EXPORT_ extern const byte BT_SVC_UUID_HID[];
476 * The hardcopy cable replacement profile UUID (00001125-0000-1000-8000-00805F9B34FB).
480 _OSP_EXPORT_ extern const byte BT_SVC_UUID_HCRP[];
483 * The hardcopy cable replacement profile - print UUID (00001126-0000-1000-8000-00805F9B34FB).
487 _OSP_EXPORT_ extern const byte BT_SVC_UUID_HCRP_PRINT[];
490 * The hardcopy cable replacement profile - scan UUID (00001127-0000-1000-8000-00805F9B34FB).
494 _OSP_EXPORT_ extern const byte BT_SVC_UUID_HCRP_SCAN[];
497 * The SIM access profile UUID (0000112D-0000-1000-8000-00805F9B34FB).
501 _OSP_EXPORT_ extern const byte BT_SVC_UUID_SAP[];
504 * The phone book access - client equipment UUID (0000112E-0000-1000-8000-00805F9B34FB).
508 _OSP_EXPORT_ extern const byte BT_SVC_UUID_PBAP_PCE[];
511 * The phone book access - server equipment UUID (0000112F-0000-1000-8000-00805F9B34FB).
515 _OSP_EXPORT_ extern const byte BT_SVC_UUID_PBAP_PSE[];
518 * The phone book access UUID (00001130-0000-1000-8000-00805F9B34FB).
522 _OSP_EXPORT_ extern const byte BT_SVC_UUID_PBAP[];
525 * The headset profile - headset UUID (00001131-0000-1000-8000-00805F9B34FB).
529 _OSP_EXPORT_ extern const byte BT_SVC_UUID_HSP_HS[];
532 * The message access profile - message access server UUID (00001132-0000-1000-8000-00805F9B34FB).
536 _OSP_EXPORT_ extern const byte BT_SVC_UUID_MAP_ACCESS_SERVER[];
539 * The message access profile - message notification server UUID (00001133-0000-1000-8000-00805F9B34FB).
543 _OSP_EXPORT_ extern const byte BT_SVC_UUID_MAP_NOTIFICATION_SERVER[];
546 * The message access profile - message access profile UUID (00001134-0000-1000-8000-00805F9B34FB).
550 _OSP_EXPORT_ extern const byte BT_SVC_UUID_MAP_ACCESS_PROFILE[];
553 * The device identification profile - PNP information UUID (00001200-0000-1000-8000-00805F9B34FB).
557 _OSP_EXPORT_ extern const byte BT_SVC_UUID_DID_PNP_INFORMATION[];
560 * The generic networking UUID (00001201-0000-1000-8000-00805F9B34FB).
564 _OSP_EXPORT_ extern const byte BT_SVC_UUID_GENERIC_NETWORKING[];
567 * The generic file transfer UUID (00001202-0000-1000-8000-00805F9B34FB).
571 _OSP_EXPORT_ extern const byte BT_SVC_UUID_GENERIC_FILE_TRANSFER[];
574 * The generic audio UUID (00001203-0000-1000-8000-00805F9B34FB).
578 _OSP_EXPORT_ extern const byte BT_SVC_UUID_GENERIC_AUDIO[];
581 * The generic telephony UUID. (00001204-0000-1000-8000-00805F9B34FB)
585 _OSP_EXPORT_ extern const byte BT_SVC_UUID_GENERIC_TELEPHONY[];
588 * The video distribution profile - source UUID (00001303-0000-1000-8000-00805F9B34FB).
592 _OSP_EXPORT_ extern const byte BT_SVC_UUID_VDP_SOURCE[];
595 * The video distribution profile - sink UUID (00001304-0000-1000-8000-00805F9B34FB).
599 _OSP_EXPORT_ extern const byte BT_SVC_UUID_VDP_SINK[];
602 * The video distribution profile - distribution UUID (00001305-0000-1000-8000-00805F9B34FB).
606 _OSP_EXPORT_ extern const byte BT_SVC_UUID_VDP_DISTRIBUTION[];
609 * The health device profile UUID (00001400-0000-1000-8000-00805F9B34FB).
613 _OSP_EXPORT_ extern const byte BT_SVC_UUID_HDP[];
616 * The health device profile - source UUID (00001401-0000-1000-8000-00805F9B34FB).
620 _OSP_EXPORT_ extern const byte BT_SVC_UUID_HDP_SOURCE[];
623 * The health device profile - sink UUID (00001402-0000-1000-8000-00805F9B34FB).
627 _OSP_EXPORT_ extern const byte BT_SVC_UUID_HDP_SINK[];
630 #endif // _FNET_BT_BLUETOOTH_TYPES_H_