Tizen 2.1 base
[apps/native/ug-bluetooth-efl.git] / include / bt-type-define.h
1 /*
2  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Flora License, Version 1.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *   http://floralicense.org/license/
9  *
10  * Unless required by applicable law or agreed to in writing,
11  * software distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef __BT_TYPE_DEFINE_H__
18 #define __BT_TYPE_DEFINE_H__
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24
25 #include <glib.h>
26
27
28 /**************************************************
29 *                             Constant Value
30 ***************************************************/
31
32 #define BT_GLOBALIZATION_STR_LENGTH 256
33 #define BT_MAX_CHARS_IN_FTP_TITLE 12
34 #define BT_MAX_MENU_NAME_LEN 64
35 #define BT_MAX_SERVICE_LIST 9
36 #define BT_DEVICE_NAME_LENGTH_MAX 100 /* UX guideline */
37 #define BT_ADDRESS_LENGTH_MAX 6
38 #define BT_ADDRESS_STR_LEN 18
39 #define BT_FILE_NAME_LEN_MAX 255
40 #define BT_IMG_PATH_MAX 256
41 #define BT_HTML_EXTRA_TAG_LENGTH 20
42 #define BT_SERVICE_NAME_LENGTH 30
43 #define BT_SERVICE_CONTENT_LENGTH 256
44 #define BT_PHONE_NUM_LEN 50
45 #define BT_EXTRA_STR_LEN 10
46 #define BT_BUFFER_LEN 256
47 #define BT_TIMEOUT_MAX 3600
48 #define BT_MAX_TIMEOUT_ITEMS 5
49 #define BT_GLOBALIZATION_TEXT_LENGTH \
50         (BT_GLOBALIZATION_STR_LENGTH+BT_EXTRA_STR_LEN)
51 #define BT_DISCONNECT_TEXT_LENGTH \
52                 ((2*BT_GLOBALIZATION_STR_LENGTH)+BT_DEVICE_NAME_LENGTH_MAX)
53 #define BT_SERVICE_TEXT_LENGTH \
54         (BT_SERVICE_CONTENT_LENGTH+BT_HTML_EXTRA_TAG_LENGTH)* \
55         BT_MAX_SERVICE_LIST
56 #define BT_UG_SYSPOPUP_TIMEOUT_FOR_MULTIPLE_POPUPS 200
57
58 /* Timeout Value */
59 #define BT_SEARCH_SERVICE_TIMEOUT 5
60 #define BT_SELECTED_TIMEOUT 5
61 #define BT_DELETED_TIMEOUT 2
62
63 /* Define Error type */
64 #define BT_UG_FAIL -1
65 #define BT_UG_ERROR_NONE 0
66
67 #define BT_TWO_MINUTES 120
68 #define BT_FIVE_MINUTES 300
69 #define BT_ONE_HOUR 3600
70 #define BT_ZERO 0
71 #define BT_ALWAYS_ON -1
72
73 #define BT_RESULT_STR_MAX 256
74
75 #define BT_GENLIST_FONT_32_INC 32
76
77 /**************************************************
78 *                              String define
79 ***************************************************/
80
81 #define BT_SET_FONT_SIZE \
82 "<font=SLP:style=Medium><font_size=%d>%s</font_size></font>"
83
84 #define BT_SET_FONT_SIZE_COLOR \
85 "<font=SLP:style=Medium><font_size=%d><color=%s>%s</color></font_size></font>"
86
87 /* GENLIST_TEXT_COLOR_LIST_SUB_TEXT_SETTINGS 42 137 194 255 */
88 #define BT_GENLIST_SUBTEXT_COLOR "#2A89C2FF"
89
90 #define BT_RESULT_SUCCESS "success"
91 #define BT_RESULT_FAIL "fail"
92
93 #define BT_DEFAULT_PHONE_NAME "Fraser"
94
95 #define BT_SYSPOPUP_REQUEST_NAME "app-confirm-request"
96 #define BT_SYSPOPUP_TWO_BUTTON_TYPE "twobtn"
97 #define BT_SYSPOPUP_ONE_BUTTON_TYPE "onebtn"
98
99 #define BT_VCONF_VISIBLE_TIME "file/private/libug-setting-bluetooth-efl/visibility_time"
100
101 /**************************************************
102 *                                  Enum type
103 ***************************************************/
104
105 typedef enum {
106         BT_CONNECTION_REQ,
107         BT_PAIRING_REQ,
108         BT_NONE_REQ,
109 } bt_confirm_req_t;
110
111 /* Visible timout value (sec)*/
112 typedef enum {
113         BT_2MIN = 120,
114         BT_5MIN = 300,
115         BT_1HOUR = 3600,
116         BT_NO_TIMEOUT = 0,
117 } bt_visible_time_t;
118
119 typedef enum {
120         BT_SEARCH_ALL_DEVICE = 0,
121         BT_SEARCH_PHONE,
122         BT_SEARCH_HEADSET,
123         BT_SEARCH_PC,
124         BT_SEARCH_HID,
125 } bt_search_option_t;
126
127 typedef enum {
128         BT_CONNECT_MENU = 1,
129         BT_SEND_MENU,
130         BT_RENAME_MENU,
131         BT_DELETE_MENU,
132         BT_SERVICE_LIST_MENU,
133 } bt_menu_index_t;
134
135 typedef enum {
136         BT_PAIRED_DEVICE_DISABLE,
137         BT_PAIRED_DEVICE_ENABLE,
138 } bt_app_paired_device_status_t;
139
140 typedef enum {
141         BT_STATUS_OFF         = 0x0000,
142         BT_STATUS_ON          = 0x0001,
143         BT_STATUS_BT_VISIBLE  = 0x0002,
144         BT_STATUS_TRANSFER    = 0x0004,
145 } bt_status_t;
146
147 typedef enum {
148         BT_LAUNCH_NORMAL = 0x00,
149         BT_LAUNCH_SEND_FILE = 0x01,
150         BT_LAUNCH_PRINT_IMAGE = 0x02,
151         BT_LAUNCH_CONNECT_HEADSET = 0x03,
152         BT_LAUNCH_USE_NFC = 0x04,
153         BT_LAUNCH_PICK = 0x05,
154         BT_LAUNCH_VISIBILITY = 0x06,
155 } bt_launch_mode_t;
156
157 typedef enum {
158         BT_CONTROL_BAR_DISABLE,
159         BT_CONTROL_BAR_ENABLE,
160 } bt_control_bar_status_t;
161
162 typedef enum {
163         BT_NOCONTENT_HIDE,
164         BT_NOCONTNET_SHOW,
165 } bt_nocontent_mode_t;
166
167 typedef enum {
168         BT_STORE_BOOLEAN,
169         BT_STORE_INT,
170         BT_STORE_STRING,
171 } bt_store_type_t;
172
173 typedef enum {
174         BT_ROTATE_PORTRAIT = 0,
175         BT_ROTATE_LANDSCAPE,
176         BT_ROTATE_PORTRAIT_UPSIDEDOWN,
177         BT_ROTATE_LANDSCAPE_UPSIDEDOWN,
178 } bt_rotate_mode_t;
179
180 typedef enum {
181         BT_ACTIVATED = 0,
182         BT_ACTIVATING,
183         BT_DEACTIVATED,
184         BT_DEACTIVATING,
185         BT_SEARCHING,
186         BT_PAIRING
187 } bt_oper_t;
188
189 typedef enum {
190         BT_UG_CREATE = 0,
191         BT_UG_START,
192         BT_UG_PAUSE,
193         BT_UG_RESUME,
194         BT_UG_DESTORY
195 } bt_ug_status_t;
196
197
198 typedef enum {
199         BT_IDLE = 0,
200         BT_DEV_PAIRING,
201         BT_CONNECTING,
202         BT_DISCONNECTING,
203         BT_SERVICE_SEARCHING
204 } bt_dev_status_t;
205
206 typedef enum {
207         BT_RUN_STATUS_NO_CHANGE = 0x00, /* No Change BT status*/
208         BT_RUN_STATUS_ACTIVATE = 0x01,  /* BT Activate*/
209         BT_RUN_STATUS_DEACTIVATE = 0x02,        /* BT Deactivate*/
210         BT_RUN_STATUS_SEARCH_TEST = 0x03,       /* BT Search Test*/
211         BT_RUN_STATUS_TERMINATE = 0x04, /* BT Terminate*/
212         BT_RUN_STATUS_MAX = 0x05,               /* Max val*/
213 } bt_run_status_t;
214
215 typedef enum {
216         BT_ON_CURRENTVIEW = 0x00,       /* Run BT on current view*/
217         BT_ON_FOREGROUND = 0x01,        /* Run BT on foreground*/
218         BT_ON_BACKGROUND = 0x02,        /* Run BT on background*/
219 } bt_on_t;
220
221 typedef enum {
222         BT_HEADSET_CONNECTED = 0x01,
223         BT_STEREO_HEADSET_CONNECTED = 0x02,
224         BT_HID_CONNECTED = 0x04,
225         BT_NETWORK_CONNECTED = 0x08,
226 } bt_connected_mask_t;
227
228 /**
229  * This enum indicates  Device states.
230  */
231
232 typedef enum {
233         BT_DEVICE_NONE,        /** < None*/
234         BT_DEVICE_PAIRED,     /** < Device Paired*/
235         BT_DEVICE_CONNECTED/** <Device Connected*/
236 } bt_device_state_t;
237
238 typedef enum {
239         BT_ITEM_NO_TYPE,
240         BT_ITEM_TOP,
241         BT_ITEM_CENTER,
242         BT_ITEM_BOTTOM,
243 } bt_item_type_t;
244
245 typedef enum {
246         BT_DEVICE_MAJOR_MASK_MISC = 0x00,
247         BT_DEVICE_MAJOR_MASK_COMPUTER = 0x0001,
248         BT_DEVICE_MAJOR_MASK_PHONE = 0x0002,
249         BT_DEVICE_MAJOR_MASK_LAN_ACCESS_POINT = 0x0004,
250         BT_DEVICE_MAJOR_MASK_AUDIO = 0x0008,
251         BT_DEVICE_MAJOR_MASK_PERIPHERAL = 0x0010,
252         BT_DEVICE_MAJOR_MASK_IMAGING = 0x0020,
253         BT_DEVICE_MAJOR_MASK_WEARABLE = 0x0040,
254         BT_DEVICE_MAJOR_MASK_TOY = 0x0080,
255         BT_DEVICE_MAJOR_MASK_HEALTH = 0x0100,
256 } bt_device_major_mask_t;
257
258
259 /**
260  * This enum indicates Service class Type.
261  */
262 typedef enum {
263         BT_SC_NONE = 0,
264         BT_SC_RES_SERVICE_MASK = 0x00000001,
265         BT_SC_SPP_SERVICE_MASK = 0x00000002,
266         BT_SC_DUN_SERVICE_MASK = 0x00000004,
267         BT_SC_FAX_SERVICE_MASK = 0x00000008,
268         BT_SC_LAP_SERVICE_MASK = 0x00000010,
269         BT_SC_HSP_SERVICE_MASK = 0x00000020,
270         BT_SC_HFP_SERVICE_MASK = 0x00000040,
271         BT_SC_OPP_SERVICE_MASK = 0x00000080,
272         BT_SC_FTP_SERVICE_MASK = 0x00000100,
273         BT_SC_CTP_SERVICE_MASK = 0x00000200,
274         BT_SC_ICP_SERVICE_MASK = 0x00000400,
275         BT_SC_SYNC_SERVICE_MASK = 0x00000800,
276         BT_SC_BPP_SERVICE_MASK = 0x00001000,
277         BT_SC_BIP_SERVICE_MASK = 0x00002000,
278         BT_SC_PANU_SERVICE_MASK = 0x00004000,
279         BT_SC_NAP_SERVICE_MASK = 0x00008000,
280         BT_SC_GN_SERVICE_MASK = 0x00010000,
281         BT_SC_SAP_SERVICE_MASK = 0x00020000,
282         BT_SC_A2DP_SERVICE_MASK = 0x00040000,
283         BT_SC_AVRCP_SERVICE_MASK = 0x00080000,
284         BT_SC_PBAP_SERVICE_MASK = 0x00100000,
285         BT_SC_HID_SERVICE_MASK = 0x00200000,
286         BT_SC_ALL_SERVICE_MASK = 0x00FFFFFF,
287         BT_SC_MAX
288 } bt_service_class_t;
289
290 /*
291  * Major device class (part of Class of Device)
292  */
293 typedef enum {
294         BT_MAJOR_DEV_CLS_MISC = 0x00,/**<miscellaneous */
295         BT_MAJOR_DEV_CLS_COMPUTER = 0x01, /**<Computer */
296         BT_MAJOR_DEV_CLS_PHONE = 0x02, /**<Phone */
297         BT_MAJOR_DEV_CLS_LAN_ACCESS_POINT = 0x03,/**<LAN access point */
298         BT_MAJOR_DEV_CLS_AUDIO = 0x04,/**<AudioDevice */
299         BT_MAJOR_DEV_CLS_PERIPHERAL = 0x05,/**<Peripheral Device  */
300         BT_MAJOR_DEV_CLS_IMAGING = 0x06,/**<Imaging Device */
301         BT_MAJOR_DEV_CLS_WEARABLE = 0x07,/**<Wearable Device */
302         BT_MAJOR_DEV_CLS_TOY = 0x08,/**<Toy Device */
303         BT_MAJOR_DEV_CLS_HEALTH = 0x09,/**<Health Device */
304         BT_MAJOR_DEV_CLS_UNCLASSIFIED = 0x1F/**<Unclassified device  */
305 } bt_major_class_t;
306
307 /*
308  * Minoor device class (part of Class of Device)
309  */
310 typedef enum {
311         BTAPP_MIN_DEV_CLS_UNCLASSIFIED = 0x00,
312         BTAPP_MIN_DEV_CLS_DESKTOP_WORKSTATION = 0x04,
313         BTAPP_MIN_DEV_CLS_SERVER_CLASS_COMPUTER = 0x08,
314         BTAPP_MIN_DEV_CLS_LAPTOP = 0x0C,
315         BTAPP_MIN_DEV_CLS_HANDHELD_PC_OR_PDA = 0x10,
316         BTAPP_MIN_DEV_CLS_PALM_SIZED_PC_OR_PDA = 0x14,
317         BTAPP_MIN_DEV_CLS_WEARABLE_COMPUTER = 0x18,
318
319         BTAPP_MIN_DEV_CLS_CELLULAR = 0x04,
320         BTAPP_MIN_DEV_CLS_CORDLESS = 0x08,
321         BTAPP_MIN_DEV_CLS_SMART_PHONE = 0x0C,
322         BTAPP_MIN_DEV_CLS_WIRED_MODEM_OR_VOICE_GATEWAY = 0x10,
323         BTAPP_MIN_DEV_CLS_COMMON_ISDN_ACCESS = 0x14,
324         BTAPP_MIN_DEV_CLS_SIM_CARD_READER = 0x18,
325         BTAPP_MID_DEV_CLS_PRINTER = 0x80,
326
327         BTAPP_MIN_DEV_CLS_FULLY_AVAILABLE = 0x04,
328         BTAPP_MIN_DEV_CLS_1_TO_17_PERCENT_UTILIZED = 0x20,
329         BTAPP_MIN_DEV_CLS_17_TO_33_PERCENT_UTILIZED = 0x40,
330         BTAPP_MIN_DEV_CLS_33_TO_50_PERCENT_UTILIZED = 0x60,
331         BTAPP_MIN_DEV_CLS_50_to_67_PERCENT_UTILIZED = 0x80,
332         BTAPP_MIN_DEV_CLS_67_TO_83_PERCENT_UTILIZED = 0xA0,
333         BTAPP_MIN_DEV_CLS_83_TO_99_PERCENT_UTILIZED = 0xC0,
334         BTAPP_MIN_DEV_CLS_NO_SERVICE_AVAILABLE = 0xE0,
335
336         BTAPP_MIN_DEV_CLS_HEADSET_PROFILE = 0x04,
337         BTAPP_MIN_DEV_CLS_HANDSFREE = 0x08,
338         BTAPP_MIN_DEV_CLS_MICROPHONE = 0x10,
339         BTAPP_MIN_DEV_CLS_LOUD_SPEAKER = 0x14,
340         BTAPP_MIN_DEV_CLS_HEADPHONES = 0x18,
341         BTAPP_MIN_DEV_CLS_PORTABLE_AUDIO = 0x1C,
342         BTAPP_MIN_DEV_CLS_CAR_AUDIO = 0x20,
343         BTAPP_MIN_DEV_CLS_SET_TOP_BOX = 0x24,
344         BTAPP_MIN_DEV_CLS_HIFI_AUDIO_DEVICE = 0x28,
345         BTAPP_MIN_DEV_CLS_VCR = 0x2C,
346         BTAPP_MIN_DEV_CLS_VIDEO_CAMERA = 0x30,
347         BTAPP_MIN_DEV_CLS_CAM_CORDER = 0x34,
348         BTAPP_MIN_DEV_CLS_VIDEO_MONITOR = 0x38,
349         BTAPP_MIN_DEV_CLS_VIDEO_DISPLAY_AND_LOUD_SPEAKER = 0x3C,
350         BTAPP_MIN_DEV_CLS_VIDEO_CONFERENCING = 0x40,
351         BTAPP_MIN_DEV_CLS_GAMING_OR_TOY = 0x48,
352
353         BTAPP_MIN_DEV_CLS_KEY_BOARD = 0x40,
354         BTAPP_MIN_DEV_CLS_POINTING_DEVICE = 0x80,
355         BTAPP_MIN_DEV_CLS_COMBO_KEYBOARD_OR_POINTING_DEVICE = 0xC0,
356
357         BTAPP_MIN_DEV_CLS_JOYSTICK = 0x04,
358         BTAPP_MIN_DEV_CLS_GAME_PAD = 0x08,
359         BTAPP_MIN_DEV_CLS_REMOTE_CONTROL = 0x0C,
360         BTAPP_MIN_DEV_CLS_SENSING_DEVICE = 0x10,
361         BTAPP_MIN_DEV_CLS_DIGITIZER_TABLET = 0x14,
362         BTAPP_MIN_DEV_CLS_CARD_READER = 0x18,
363
364         BTAPP_MIN_DEV_CLS_DISPLAY = 0x10,
365         BTAPP_MIN_DEV_CLS_CAMERA = 0x20,
366         BTAPP_MIN_DEV_CLS_SCANNER = 0x40,
367         BTAPP_MIN_DEV_CLS_PRINTER = 0x80,
368
369         BTAPP_MIN_DEV_CLS_WRIST_WATCH = 0x04,
370         BTAPP_MIN_DEV_CLS_PAGER = 0x08,
371         BTAPP_MIN_DEV_CLS_JACKET = 0x0C,
372         BTAPP_MIN_DEV_CLS_HELMET = 0x10,
373         BTAPP_MIN_DEV_CLS_GLASSES = 0x14,
374
375         BTAPP_MIN_DEV_CLS_ROBOT = 0x04,
376         BTAPP_MIN_DEV_CLS_VEHICLE = 0x08,
377         BTAPP_MIN_DEV_CLS_DOLL_OR_ACTION = 0x0C,
378         BTAPP_MIN_DEV_CLS_CONTROLLER = 0x10,
379         BTAPP_MIN_DEV_CLS_GAME = 0x14,
380
381         BTAPP_MIN_DEV_CLS_BLOOD_PRESSURE_MONITOR = 0x04,
382         BTAPP_MIN_DEV_CLS_THERMOMETER = 0x08,
383         BTAPP_MIN_DEV_CLS_WEIGHING_SCALE = 0x0C,
384         BTAPP_MIN_DEV_CLS_GLUCOSE_METER = 0x10,
385         BTAPP_MIN_DEV_CLS_PULSE_OXIMETER = 0x14,
386         BTAPP_MIN_DEV_CLS_HEART_OR_PULSE_RATE_MONITOR = 0x18,
387         BTAPP_MIN_DEV_CLS_MEDICAL_DATA_DISPLAY = 0x1C,
388 } bt_minor_class_t;
389
390
391 /*
392  * Service class part of class of device returned from device discovery
393  */
394
395 /**
396   * This enum indicates  Service calls part  of device returned from device discovery.
397   */
398 typedef enum {
399         BT_COD_SC_ALL = 0x000000, /**< ALL*/
400         BT_COD_SC_LIMITED_DISCOVERABLE_MODE = 0x002000,
401         BT_COD_SC_POSITIONING = 0x010000,/**< POSITIONING*/
402         BT_COD_SC_NETWORKING = 0x020000,/**< NETWORKING*/
403         BT_COD_SC_RENDERING = 0x040000,/**< RENDERING*/
404         BT_COD_SC_CAPTURING = 0x080000,/**< CAPTURING*/
405         BT_COD_SC_OBJECT_TRANSFER = 0x100000,/**< OBJECT_TRANSFER*/
406         BT_COD_SC_AUDIO = 0x200000,/**< AUDIO*/
407         BT_COD_SC_TELEPHONY = 0x400000,/**< TELEPHONY*/
408         BT_COD_SC_INFORMATION = 0x800000,/**< INFORMATION*/
409         BT_COD_SC_UNKNOWN = 0x1FF000/**< UNKNOWN */
410 } bt_cod_service_class_t;
411
412 typedef enum {
413         BT_SPP_PROFILE_UUID = ((unsigned short)0x1101),                 /**<SPP*/
414         BT_LAP_PROFILE_UUID = ((unsigned short)0x1102),                 /**<LAP*/
415         BT_DUN_PROFILE_UUID = ((unsigned short)0x1103),                 /**<DUN*/
416         BT_OBEX_IR_MC_SYNC_SERVICE_UUID = ((unsigned short)0x1104),     /**<OBEX IR MC SYNC*/
417         BT_OBEX_OBJECT_PUSH_SERVICE_UUID = ((unsigned short)0x1105),    /**<OPP*/
418         BT_OBEX_FILE_TRANSFER_UUID = ((unsigned short)0x1106),          /**<FTP*/
419         BT_IRMC_SYNC_COMMAND_UUID = ((unsigned short)0x1107),           /**<IRMC SYNC COMMAND*/
420         BT_HS_PROFILE_UUID = ((unsigned short)0x1108),                  /**<HS*/
421         BT_CTP_PROFILE_UUID = ((unsigned short)0x1109),                 /**<CTP*/
422         BT_AUDIO_SOURCE_UUID = ((unsigned short)0x110A),                        /**<AUDIO SOURCE*/
423         BT_AUDIO_SINK_UUID = ((unsigned short)0x110B),                  /**<AUDIO SINK*/
424         BT_AV_REMOTE_CONTROL_TARGET_UUID = ((unsigned short)0x110C),    /**<AV REMOTE CONTROL
425                                                                                 TARGET*/
426         BT_ADVANCED_AUDIO_PROFILE_UUID = ((unsigned short)0x110D),      /**<A2DP*/
427         BT_AV_REMOTE_CONTROL_UUID = ((unsigned short)0x110E),           /**<AV REMOTE CONTROL UUID*/
428         BT_AV_REMOTE_CONTROL_CONTROLLER_UUID = ((unsigned short)0x110F),        /**<AV REMOTE CONTROLLER UUID*/
429         BT_ICP_PROFILE_UUID = ((unsigned short)0x1110),                 /**<ICP*/
430         BT_FAX_PROFILE_UUID = ((unsigned short)0x1111),                 /**<FAX*/
431         BT_HEADSET_AG_SERVICE_UUID = ((unsigned short)0x1112),          /**<HS AG */
432         BT_PAN_PANU_PROFILE_UUID = ((unsigned short)0x1115),            /**<PAN*/
433         BT_PAN_NAP_PROFILE_UUID = ((unsigned short)0x1116),             /**<PAN*/
434         BT_PAN_GN_PROFILE_UUID = ((unsigned short)0x1117),              /**<PAN*/
435         BT_DIRECT_PRINTING = ((unsigned short)0x1118),
436         BT_OBEX_BPPS_PROFILE_UUID = ((unsigned short)0x1118),           /**<OBEX BPPS*/ /* Will be removed */
437         BT_REFERENCE_PRINTING = ((unsigned short)0x1119),
438         BT_OBEX_IMAGING_UUID = ((unsigned short)0x111A),                        /**<OBEX_IMAGING*/
439         BT_OBEX_IMAGING_RESPONDER_UUID = ((unsigned short)0x111B),      /**<OBEX_IMAGING
440                                                                                 RESPONDER*/
441         BT_IMAGING_AUTOMATIC_ARCHIVE_UUID = ((unsigned short)0x111C),   /**<IMAGING AUTOMATIC ARCHIVE*/
442         BT_IMAGING_REFERENCED_OBJECTS_UUID = ((unsigned short)0x111D),  /**<IMAGING REFERENCED OBJECTS*/
443         BT_HF_PROFILE_UUID = ((unsigned short)0x111E),                  /**<HF*/
444         BT_HFG_PROFILE_UUID = ((unsigned short)0x111F),                 /**<HFG*/
445         BT_DIRECT_PRINTING_REFERENCE_OBJ_UUID = ((unsigned short)0x1120),
446                                                                         /**<DIRECT PRINTING*/
447         BT_REFLECTED_UI = ((unsigned short)0x1121),             /**<REFLECTED UI*/
448         BT_BASIC_PRINTING = ((unsigned short)0x1122),           /**<BASIC PRINTING*/
449         BT_PRINTING_STATUS = ((unsigned short)0x1123),          /**<PRINTING  STATUS*/
450         BT_OBEX_PRINTING_STATUS_UUID = ((unsigned short)0x1123),        /**<OBEX PRINTING STATUS*/ /* Will be removed */
451         BT_HID_PROFILE_UUID = ((unsigned short)0x1124),         /**<HID*/
452         BT_HCR_PROFILE_UUID = ((unsigned short)0x1125),         /**<HCRP*/
453         BT_HCR_PRINT_UUID = ((unsigned short)0x1126),           /**<HCR PRINT*/
454         BT_HCR_SCAN_UUID = ((unsigned short)0x1127),            /**<HCR SCAN*/
455         BT_SIM_ACCESS_PROFILE_UUID = ((unsigned short)0x112D),  /**<SIM ACCESS PROFILE*/
456         BT_PBAP_PCE_UUID = ((unsigned short)0x112E),            /**<PBAP - PCE*/
457         BT_PBAP_PSE_UUID = ((unsigned short)0x112F),            /**<OBEX PBA*/
458         BT_OBEX_PBA_PROFILE_UUID = ((unsigned short)0x112F),    /**<OBEX PBA*/ /* Will be removed */
459         BT_OBEX_PBAP_UUID = ((unsigned short)0x1130),           /**<OBEX PBA*/
460         BT_HEADSET_HS_UUID = ((unsigned short)0x1131),          /**<HEADSET HS*/
461         BT_MESSAGE_ACCESS_SERVER_UUID = ((unsigned short)0x1132),/**<MESSAGE ACCESS SERVER*/
462         BT_MESSAGE_NOTIFICATION_SERVER_UUID = ((unsigned short)0x1133),/**<MESSAGE NOTIFICATION SERVER*/
463         BT_MESSAGE_ACCESS_PROFILE_UUID = ((unsigned short)0x1134),/**<MESSAGE ACCESS PROFILE*/
464         BT_PNP_INFORMATION_UUID = ((unsigned short)0x1200),     /**<PNP*/
465         BT_GENERIC_NETWORKING_UUID = ((unsigned short)0x1201),  /**<GENERIC NETWORKING*/
466         BT_GENERIC_FILE_TRANSFER_UUID = ((unsigned short)0x1202),/**<GENERIC FILE TRANSFER*/
467         BT_GENERIC_AUDIO_UUID = ((unsigned short)0x1203),       /**<GENERIC AUDIO*/
468         BT_GENERIC_TELEPHONY_UUID = ((unsigned short)0x1204),   /**<GENERIC TELEPHONY*/
469         BT_VIDEO_SOURCE_UUID = ((unsigned short)0x1303),        /**<VEDIO SOURCE*/
470         BT_VIDEO_SINK_UUID = ((unsigned short)0x1304),          /**<VEDIO SINK*/
471         BT_VIDEO_DISTRIBUTION_UUID = ((unsigned short)0x1305),  /**<VEDIO DISTRIBUTION*/
472         BT_HDP_UUID = ((unsigned short)0x1400),                 /**<HDP*/
473         BT_HDP_SOURCE_UUID = ((unsigned short)0x1401),          /**<HDP SOURCE*/
474         BT_HDP_SINK_UUID = ((unsigned short)0x1402),            /**<HDP SINK*/
475         BT_OBEX_SYNCML_TRANSFER_UUID = ((unsigned short)0x0000) /**<OBEX_SYNC*/ /* Will be removed */
476 } bluetooth_service_uuid_list_t;
477
478
479 /**************************************************
480 *                             Struct define
481 ***************************************************/
482
483 typedef struct {
484         unsigned char bd_addr[BT_ADDRESS_LENGTH_MAX];
485         char addr_str[BT_ADDRESS_STR_LEN + 1];
486         char name[BT_DEVICE_NAME_LENGTH_MAX + 1];/**<  Device Name */
487         bt_service_class_t service_list;  /**< type of service */
488         bt_major_class_t major_class; /**< major class of the device */
489         bt_minor_class_t minor_class; /**< minor class of the device */
490         int authorized;    /**< authorized ? */
491         bt_cod_service_class_t service_class; /**< service class of device */
492         int rssi;        /**< Received signal strength indicator */
493         int connected_mask;
494         int status;
495         int item_type;
496         int uuid_count;
497         char **uuids;
498         void *layout;
499         void *entry;
500         void *genlist_item;
501         void *net_profile;
502         gboolean is_bonded;
503         gboolean call_checked;
504         gboolean media_checked;
505         gboolean hid_checked;
506         gboolean network_checked;
507         void *ugd;
508 } bt_dev_t;
509
510 typedef struct {
511         unsigned char bd_addr[BT_ADDRESS_LENGTH_MAX];
512 } bt_address_t;
513
514
515 /**************************************************
516 *                              Callback type
517 ***************************************************/
518
519 typedef void (*bt_app_back_cb)(void *, void *, void *);
520
521
522 #ifdef __cplusplus
523 }
524 #endif
525
526 #endif /* __BT_TYPE_DEFINE_H__ */