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, /**< The OFF state */
48 BT_DEVICE_STATE_DISCOVERABLE, /**< The DISCOVERABLE state */
49 BT_DEVICE_STATE_NOT_DISCOVERABLE /**< The NOT DISCOVERABLE state*/
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
67 * @enum BluetoothConnectionType
68 * Defines the %Bluetooth connection types.
72 enum BluetoothConnectionType
74 BT_CONNECTION_GENERIC, /**< The GENERIC CONNECTION
76 * @deprecated This enumeration field is deprecated. @n
79 BT_CONNECTION_SPP_ACCEPTOR, /**< The SPP ACCEPTOR CONNECTION */
80 BT_CONNECTION_SPP_INITIATOR, /**< The SPP INITIATOR CONNECTION */
81 BT_CONNECTION_OPP_SERVER, /**< The OPP SERVER CONNECTION */
82 BT_CONNECTION_OPP_CLIENT, /**< The OPP CLIENT CONNECTION */
87 * @enum BluetoothHealthDataChannelType
88 * Defines the transmission type of %BluetoothHealth data channel.
92 enum BluetoothHealthDataChannelType
94 BT_HEALTH_DATA_CHANNEL_NONE, /**< The any type of data channel */
95 BT_HEALTH_DATA_CHANNEL_RELIABLE, /**< The data channel type for transmitting data with the reliable manner of
96 * which the confidence in the exchange is at its highest (e.g. measurement
97 * and alert information)
99 BT_HEALTH_DATA_CHANNEL_STREAMING /**< The data channel type for transmitting data when the timeliness of the
100 * delivery of each frame is more important than the reliable delivery of
101 * every frame (e.g. an ECG waveform, where low latency is critical)
106 * @enum BluetoothServiceClassType
107 * Defines the service class type (part of the class of the device), returned from the device discovery.
111 enum BluetoothServiceClassType
113 BT_COD_SVC_LIMITED_DISCOVERABLE_MODE = 0x0020, /**< The LIMITED DISCOVERABLE MODE */
114 BT_COD_SVC_POSITIONING = 0x0100, /**< The POSITIONING service class type */
115 BT_COD_SVC_NETWORKING = 0x0200, /**< The NETWORKING service class type */
116 BT_COD_SVC_RENDERING = 0x0400, /**< The RENDERING service class type */
117 BT_COD_SVC_CAPTURING = 0x0800, /**< The CAPTURING service class type */
118 BT_COD_SVC_OBJECT_TRANSFER = 0x1000, /**< The OBJECT TRANSFER service class type */
119 BT_COD_SVC_AUDIO = 0x2000, /**< The AUDIO service class type */
120 BT_COD_SVC_TELEPHONY = 0x4000, /**< The TELEPHONY service class type */
121 BT_COD_SVC_INFORMATION = 0x8000, /**< The INFORMATION service class type */
122 BT_COD_SVC_ALL = 0x01FF, /**< The ALL services class type */
123 BT_COD_SVC_UNKNOWN = 0x0000 /**< The UNKNOWN service class type */
127 * @enum BluetoothMajorDeviceClassType
128 * Defines the major device class (part of the class of the device).
132 enum BluetoothMajorDeviceClassType
134 BT_COD_MAJ_DEV_CLS_MISC = 0x00, /**< The MISC major device class type */
135 BT_COD_MAJ_DEV_CLS_COMPUTER = 0x01, /**< The COMPUTER major device class type */
136 BT_COD_MAJ_DEV_CLS_PHONE = 0x02, /**< The PHONE major device class type */
137 BT_COD_MAJ_DEV_CLS_LAN_ACCESS_POINT = 0x03, /**< The LAN ACCESS POINT major device class type */
138 BT_COD_MAJ_DEV_CLS_AUDIO = 0x04, /**< The AUDIO major device class type */
139 BT_COD_MAJ_DEV_CLS_PERIPHERAL = 0x05, /**< The PERIPHERAL major device class type */
140 BT_COD_MAJ_DEV_CLS_IMAGING = 0x06, /**< The IMAGING major device class type */
141 BT_COD_MAJ_DEV_CLS_UNCLASSIFIED = 0x1F /**< The UNCLASSIFIED major device class type */
145 * @enum BluetoothMinorDeviceClassType
146 * Defines the minor device class (part of the class of the device).
150 enum BluetoothMinorDeviceClassType
152 BT_COD_MIN_DEV_CLS_UNCLASSIFIED = 0x00, /**< The UNCLASSIFIED minor device class type */
154 BT_COD_MIN_DEV_CLS_DESKTOP_WORKSTATION = 0x04, /**< The DESKTOP WORKSTATION minor device class type */
155 BT_COD_MIN_DEV_CLS_SERVER_CLASS_COMPUTER = 0x08, /**< The SERVER CLASS COMPUTER minor device class type */
156 BT_COD_MIN_DEV_CLS_LAPTOP = 0x0C, /**< The LAPTOP minor device class type */
157 BT_COD_MIN_DEV_CLS_HANDHELD_PC_OR_PDA = 0x10, /**< The HANDHELD PC OR PDA minor device class type */
158 BT_COD_MIN_DEV_CLS_PALM_SIZED_PC_OR_PDA = 0x14, /**< The PALM SIZED PC OR PDA minor device class type */
159 BT_COD_MIN_DEV_CLS_WEARABLE_COMPUTER = 0x18, /**< The WEARABLE COMPUTER minor device class type */
161 BT_COD_MIN_DEV_CLS_CELLULAR = 0x04, /**< The CELLULAR minor device class type */
162 BT_COD_MIN_DEV_CLS_CORDLESS = 0x08, /**< The CORDLESS minor device class type */
163 BT_COD_MIN_DEV_CLS_SMART_PHONE = 0x0C, /**< The SMART PHONE minor device class type */
164 BT_COD_MIN_DEV_CLS_WIRED_MODEM_OR_VOICE_GATEWAY = 0x10, /**< The WIRED MODEM OR VOICE GATEWAY minor device class type */
165 BT_COD_MIN_DEV_CLS_COMMON_ISDN_ACCESS = 0x14, /**< The COMMON ISDN ACCESS minor device class type */
167 BT_COD_MIN_DEV_CLS_FULLY_AVAILABLE = 0x04, /**< The FULLY AVAILABLE minor device class type */
168 BT_COD_MIN_DEV_CLS_1_TO_17_PERCENT_UTILIZED = 0x20, /**< The 1_TO_17_PERCENT_UTILIZED minor device class type */
169 BT_COD_MIN_DEV_CLS_17_TO_33_PERCENT_UTILIZED = 0x40, /**< The 17_TO_33_PERCENT_UTILIZED minor device class type */
170 BT_COD_MIN_DEV_CLS_33_TO_50_PERCENT_UTILIZED = 0x60, /**< The 33_TO_50_PERCENT_UTILIZED minor device class type */
171 BT_COD_MIN_DEV_CLS_50_to_67_PERCENT_UTILIZED = 0x80, /**< The 50_to_67_PERCENT_UTILIZED minor device class type */
172 BT_COD_MIN_DEV_CLS_67_TO_83_PERCENT_UTILIZED = 0xA0, /**< The 67_TO_83_PERCENT_UTILIZED minor device class type */
173 BT_COD_MIN_DEV_CLS_83_TO_99_PERCENT_UTILIZED = 0xC0, /**< The 83_TO_99_PERCENT_UTILIZED minor device class type */
174 BT_COD_MIN_DEV_CLS_NO_SERVICE_AVAILABLE = 0xE0, /**< The NO SERVICE AVAILABLE minor device class type */
176 BT_COD_MIN_DEV_CLS_HEADSET_PROFILE = 0x04, /**< The HEADSET PROFILE minor device class type */
177 BT_COD_MIN_DEV_CLS_HANDSFREE = 0x08, /**< The HANDSFREE minor device class type */
178 BT_COD_MIN_DEV_CLS_SIM_CARD_READER = 0x18, /**< The SIM CARD READER minor device class type */
183 * @enum BluetoothServiceType
184 * Defines the %Bluetooth service type.
188 enum BluetoothServiceType
190 BT_SVC_RES_SERVICE = 0x00000001, /**< The Reserved service type */
191 BT_SVC_SPP_SERVICE = 0x00000002, /**< The Serial port profile service type */
192 BT_SVC_DUN_SERVICE = 0x00000004, /**< The Dial-up networking profile service type */
193 BT_SVC_FAX_SERVICE = 0x00000008, /**< The Fax profile service type */
194 BT_SVC_LAP_SERVICE = 0x00000010, /**< The LAN access profile service type */
195 BT_SVC_HSP_SERVICE = 0x00000020, /**< The Headset profile service type */
196 BT_SVC_HFP_SERVICE = 0x00000040, /**< The Hands-free profile service type */
197 BT_SVC_OPP_SERVICE = 0x00000080, /**< The Object push service type */
198 BT_SVC_FTP_SERVICE = 0x00000100, /**< The File transfer service type */
199 BT_SVC_CTP_SERVICE = 0x00000200, /**< The Cordless Terminal service type */
200 BT_SVC_ICP_SERVICE = 0x00000400, /**< The Intercom Terminal service type */
201 BT_SVC_SYNC_SERVICE = 0x00000800, /**< The Synchronization service type */
202 BT_SVC_BPP_SERVICE = 0x00001000, /**< The Print server service type */
203 BT_SVC_BIP_SERVICE = 0x00002000, /**< The Basic Imaging service type */
204 BT_SVC_PANU_SERVICE = 0x00004000, /**< The PAN User service type */
205 BT_SVC_NAP_SERVICE = 0x00008000, /**< The PAN Network access point service type */
206 BT_SVC_GN_SERVICE = 0x00010000, /**< The PAN Group Ad-hoc networks service type */
207 BT_SVC_SAP_SERVICE = 0x00020000, /**< The SIM Access Profile service type */
208 BT_SVC_A2DP_SERVICE = 0x00040000, /**< An advanced audio distribution service type */
209 BT_SVC_AVRCP_SERVICE = 0x00080000, /**< An A/V remote control service type */
210 BT_SVC_HID_SERVICE = 0x00100000, /**< The HID profile service type */
211 BT_SVC_VDP_SERVICE = 0x00200000, /**< The VDP profile service type */
212 BT_SVC_PBAP_SERVICE = 0x00400000, /**< The PhoneBook Access service type */
213 BT_SVC_HSP_HS_SERVICE = 0x00800000, /**< The Headset service type */
214 BT_SVC_HFP_HS_SERVICE = 0x01000000, /**< The Hands-free Headset service type */
215 BT_SVC_HCRP_SERVICE = 0x02000000, /**< The Hardcopy cable replacement profile service type */
216 BT_SVC_DID_SERVICE = 0x04000000, /**< The device identification profile service type */
217 BT_SVC_HDP_SERVICE = 0x08000000, /**< The health device profile service type */
218 BT_SVC_MAP_SERVICE = 0x10000000, /**< The message access profile service type */
219 BT_SVC_ALL_SERVICE = 0x01FFFFFF, /**< The All-services-supported-by-BTA service type
221 * @deprecated This enumeration field is deprecated.
225 BT_SVC_NONE = 0 /**< The No service or unknown service type */
229 * The serial port profile UUID (00001101-0000-1000-8000-00805F9B34FB).
233 _OSP_EXPORT_ extern const byte BT_SVC_UUID_SPP[];
236 * The LAN access profile UUID (00001102-0000-1000-8000-00805F9B34FB).
240 _OSP_EXPORT_ extern const byte BT_SVC_UUID_LAP[];
243 * The dial-up networking profile UUID (00001103-0000-1000-8000-00805F9B34FB).
247 _OSP_EXPORT_ extern const byte BT_SVC_UUID_DUN[];
250 * The synchronization profile UUID (00001104-0000-1000-8000-00805F9B34FB).
254 _OSP_EXPORT_ extern const byte BT_SVC_UUID_SYNC[];
257 * The object push profile UUID (00001105-0000-1000-8000-00805F9B34FB).
261 _OSP_EXPORT_ extern const byte BT_SVC_UUID_OPP[];
264 * The file transfer profile UUID (00001106-0000-1000-8000-00805F9B34FB).
268 _OSP_EXPORT_ extern const byte BT_SVC_UUID_FTP[];
271 * The synchronization profile UUID (00001107-0000-1000-8000-00805F9B34FB).
275 _OSP_EXPORT_ extern const byte BT_SVC_UUID_SYNC_COMMAND[];
278 * The headset profile UUID (00001108-0000-1000-8000-00805F9B34FB).
282 _OSP_EXPORT_ extern const byte BT_SVC_UUID_HSP[];
285 * The cordless telephony profile UUID (00001109-0000-1000-8000-00805F9B34FB).
289 _OSP_EXPORT_ extern const byte BT_SVC_UUID_CTP[];
292 * The advanced audio distribution profile source UUID (0000110A-0000-1000-8000-00805F9B34FB).
296 _OSP_EXPORT_ extern const byte BT_SVC_UUID_A2DP_SOURCE[];
299 * The advanced audio distribution profile - sink UUID (0000110B-0000-1000-8000-00805F9B34FB).
303 _OSP_EXPORT_ extern const byte BT_SVC_UUID_A2DP_SINK[];
306 * The audio/video remote control profile - target UUID (0000110C-0000-1000-8000-00805F9B34FB).
310 _OSP_EXPORT_ extern const byte BT_SVC_UUID_AVRCP_TARGET[];
313 * The advanced audio distribution profile UUID (0000110D-0000-1000-8000-00805F9B34FB).
317 _OSP_EXPORT_ extern const byte BT_SVC_UUID_A2DP[];
320 * The audio/video remote control profile UUID (0000110E-0000-1000-8000-00805F9B34FB).
324 _OSP_EXPORT_ extern const byte BT_SVC_UUID_AVRCP[];
327 * The audio/video remote control profile - controller UUID (0000110F-0000-1000-8000-00805F9B34FB).
331 _OSP_EXPORT_ extern const byte BT_SVC_UUID_AVRCP_CONTROLLER[];
334 * The intercom profile UUID (00001110-0000-1000-8000-00805F9B34FB).
338 _OSP_EXPORT_ extern const byte BT_SVC_UUID_ICP[];
341 * The fax profile UUID (00001111-0000-1000-8000-00805F9B34FB).
345 _OSP_EXPORT_ extern const byte BT_SVC_UUID_FAX[];
348 * The headset profile audio gateway UUID (00001112-0000-1000-8000-00805F9B34FB).
352 _OSP_EXPORT_ extern const byte BT_SVC_UUID_HSP_AG[];
355 * The personal area networking profile - user UUID (00001115-0000-1000-8000-00805F9B34FB).
359 _OSP_EXPORT_ extern const byte BT_SVC_UUID_PAN_PANU[];
362 * The personal area networking profile - network access point UUID (00001116-0000-1000-8000-00805F9B34FB).
366 _OSP_EXPORT_ extern const byte BT_SVC_UUID_PAN_NAP[];
369 * The personal area networking profile - group ad-hoc networks UUID (00001117-0000-1000-8000-00805F9B34FB).
373 _OSP_EXPORT_ extern const byte BT_SVC_UUID_PAN_GN[];
376 * The basic printing profile - direct printing UUID (00001118-0000-1000-8000-00805F9B34FB).
380 _OSP_EXPORT_ extern const byte BT_SVC_UUID_BPP_DIRECT_PRINTING[];
383 * The basic printing profile - reference printing UUID (00001119-0000-1000-8000-00805F9B34FB).
387 _OSP_EXPORT_ extern const byte BT_SVC_UUID_BPP_REFERENCE_PRINTING[];
390 * The basic imaging profile UUID (0000111A-0000-1000-8000-00805F9B34FB).
394 _OSP_EXPORT_ extern const byte BT_SVC_UUID_BIP[];
397 * The basic imaging profile - imaging responder UUID (0000111B-0000-1000-8000-00805F9B34FB).
401 _OSP_EXPORT_ extern const byte BT_SVC_UUID_BIP_RESPONDER[];
404 * The basic imaging profile - imaging automatic archive UUID (0000111C-0000-1000-8000-00805F9B34FB).
408 _OSP_EXPORT_ extern const byte BT_SVC_UUID_BIP_AUTOMATIC_ARCHIVE[];
411 * The basic imaging profile - imaging referenced objects UUID (0000111D-0000-1000-8000-00805F9B34FB).
415 _OSP_EXPORT_ extern const byte BT_SVC_UUID_BIP_REFERENCED_OBJECTS[];
418 * The hands-free profile UUID (0000111E-0000-1000-8000-00805F9B34FB).
422 _OSP_EXPORT_ extern const byte BT_SVC_UUID_HFP[];
425 * The hands-free profile - audio gateway UUID (0000111F-0000-1000-8000-00805F9B34FB).
429 _OSP_EXPORT_ extern const byte BT_SVC_UUID_HFP_AG[];
432 * The basic printing profile - direct printing referenced objects UUID (00001120-0000-1000-8000-00805F9B34FB).
436 _OSP_EXPORT_ extern const byte BT_SVC_UUID_BPP_DIRECT_PRINTING_RO[];
439 * The basic printing profile - reflected UI UUID (00001121-0000-1000-8000-00805F9B34FB).
443 _OSP_EXPORT_ extern const byte BT_SVC_UUID_BPP_REFLECTED_UI[];
446 * The basic printing profile - basic printing UUID (00001122-0000-1000-8000-00805F9B34FB).
450 _OSP_EXPORT_ extern const byte BT_SVC_UUID_BPP_BASIC_PRINTING[];
453 * The basic printing profile - printing status UUID (00001123-0000-1000-8000-00805F9B34FB).
457 _OSP_EXPORT_ extern const byte BT_SVC_UUID_BPP_PRINTING_STATUS[];
460 * The human interface device profile UUID (00001124-0000-1000-8000-00805F9B34FB).
464 _OSP_EXPORT_ extern const byte BT_SVC_UUID_HID[];
467 * The hardcopy cable replacement profile UUID (00001125-0000-1000-8000-00805F9B34FB).
471 _OSP_EXPORT_ extern const byte BT_SVC_UUID_HCRP[];
474 * The hardcopy cable replacement profile - print UUID (00001126-0000-1000-8000-00805F9B34FB).
478 _OSP_EXPORT_ extern const byte BT_SVC_UUID_HCRP_PRINT[];
481 * The hardcopy cable replacement profile - scan UUID (00001127-0000-1000-8000-00805F9B34FB).
485 _OSP_EXPORT_ extern const byte BT_SVC_UUID_HCRP_SCAN[];
488 * The SIM access profile UUID (0000112D-0000-1000-8000-00805F9B34FB).
492 _OSP_EXPORT_ extern const byte BT_SVC_UUID_SAP[];
495 * The phone book access - client equipment UUID (0000112E-0000-1000-8000-00805F9B34FB).
499 _OSP_EXPORT_ extern const byte BT_SVC_UUID_PBAP_PCE[];
502 * The phone book access - server equipment UUID (0000112F-0000-1000-8000-00805F9B34FB).
506 _OSP_EXPORT_ extern const byte BT_SVC_UUID_PBAP_PSE[];
509 * The phone book access UUID (00001130-0000-1000-8000-00805F9B34FB).
513 _OSP_EXPORT_ extern const byte BT_SVC_UUID_PBAP[];
516 * The headset profile - headset UUID (00001131-0000-1000-8000-00805F9B34FB).
520 _OSP_EXPORT_ extern const byte BT_SVC_UUID_HSP_HS[];
523 * The message access profile - message access server UUID (00001132-0000-1000-8000-00805F9B34FB).
527 _OSP_EXPORT_ extern const byte BT_SVC_UUID_MAP_ACCESS_SERVER[];
530 * The message access profile - message notification server UUID (00001133-0000-1000-8000-00805F9B34FB).
534 _OSP_EXPORT_ extern const byte BT_SVC_UUID_MAP_NOTIFICATION_SERVER[];
537 * The message access profile - message access profile UUID (00001134-0000-1000-8000-00805F9B34FB).
541 _OSP_EXPORT_ extern const byte BT_SVC_UUID_MAP_ACCESS_PROFILE[];
544 * The device identification profile - PNP information UUID (00001200-0000-1000-8000-00805F9B34FB).
548 _OSP_EXPORT_ extern const byte BT_SVC_UUID_DID_PNP_INFORMATION[];
551 * The generic networking UUID (00001201-0000-1000-8000-00805F9B34FB).
555 _OSP_EXPORT_ extern const byte BT_SVC_UUID_GENERIC_NETWORKING[];
558 * The generic file transfer UUID (00001202-0000-1000-8000-00805F9B34FB).
562 _OSP_EXPORT_ extern const byte BT_SVC_UUID_GENERIC_FILE_TRANSFER[];
565 * The generic audio UUID (00001203-0000-1000-8000-00805F9B34FB).
569 _OSP_EXPORT_ extern const byte BT_SVC_UUID_GENERIC_AUDIO[];
572 * The generic telephony UUID. (00001204-0000-1000-8000-00805F9B34FB)
576 _OSP_EXPORT_ extern const byte BT_SVC_UUID_GENERIC_TELEPHONY[];
579 * The video distribution profile - source UUID (00001303-0000-1000-8000-00805F9B34FB).
583 _OSP_EXPORT_ extern const byte BT_SVC_UUID_VDP_SOURCE[];
586 * The video distribution profile - sink UUID (00001304-0000-1000-8000-00805F9B34FB).
590 _OSP_EXPORT_ extern const byte BT_SVC_UUID_VDP_SINK[];
593 * The video distribution profile - distribution UUID (00001305-0000-1000-8000-00805F9B34FB).
597 _OSP_EXPORT_ extern const byte BT_SVC_UUID_VDP_DISTRIBUTION[];
600 * The health device profile UUID (00001400-0000-1000-8000-00805F9B34FB).
604 _OSP_EXPORT_ extern const byte BT_SVC_UUID_HDP[];
607 * The health device profile - source UUID (00001401-0000-1000-8000-00805F9B34FB).
611 _OSP_EXPORT_ extern const byte BT_SVC_UUID_HDP_SOURCE[];
614 * The health device profile - sink UUID (00001402-0000-1000-8000-00805F9B34FB).
618 _OSP_EXPORT_ extern const byte BT_SVC_UUID_HDP_SINK[];
621 #endif // _FNET_BT_BLUETOOTH_TYPES_H_