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