56
|
1 |
/*
|
|
2 |
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: This file contains all the resources for the BTUI.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#include <data_caging_paths_strings.hrh>
|
|
20 |
|
|
21 |
// RESOURCE IDENTIFIER
|
|
22 |
|
|
23 |
NAME BVIE // 4 letter ID
|
|
24 |
|
|
25 |
// INCLUDES
|
|
26 |
#include <eikon.rh>
|
|
27 |
#include "btui.hrh" // Enums for these resources
|
|
28 |
#include <btui.loc> // Localisation file
|
|
29 |
#include <btui.mbg> // Icon indexes created by abld
|
|
30 |
#include "eikon.rsg"
|
|
31 |
#include <avkon.rsg>
|
|
32 |
#include <avkon.rh>
|
|
33 |
#include <avkon.mbg>
|
|
34 |
#include <avkon.loc>
|
|
35 |
#include <appinfo.rh>
|
|
36 |
|
|
37 |
// MACROS
|
|
38 |
|
|
39 |
// RESOURCE DEFINITIONS
|
|
40 |
|
|
41 |
RESOURCE RSS_SIGNATURE { }
|
|
42 |
|
|
43 |
RESOURCE TBUF { buf=""; }
|
|
44 |
|
|
45 |
//----------------------------------------------------
|
|
46 |
//
|
|
47 |
// Hotkeys for BTUI
|
|
48 |
//
|
|
49 |
//----------------------------------------------------
|
|
50 |
//
|
|
51 |
RESOURCE HOTKEYS r_btui_hotkeys
|
|
52 |
{
|
|
53 |
control=
|
|
54 |
{
|
|
55 |
HOTKEY { command=EAknCmdExit; key='e'; }
|
|
56 |
};
|
|
57 |
}
|
|
58 |
|
|
59 |
// == MAIN VIEW ==============================================================
|
|
60 |
|
|
61 |
RESOURCE CBA r_btui_softkeys_options_back__change
|
|
62 |
{
|
|
63 |
buttons =
|
|
64 |
{
|
|
65 |
CBA_BUTTON
|
|
66 |
{
|
|
67 |
id = EAknSoftkeyOptions;
|
|
68 |
txt = text_softkey_option;
|
|
69 |
},
|
|
70 |
CBA_BUTTON
|
|
71 |
{
|
|
72 |
id = EAknSoftkeyBack;
|
|
73 |
txt = text_softkey_back;
|
|
74 |
},
|
|
75 |
CBA_BUTTON
|
|
76 |
{
|
|
77 |
id = EBTUICmdMSK ;
|
|
78 |
txt = qtn_msk_change;
|
|
79 |
}
|
|
80 |
|
|
81 |
};
|
|
82 |
}
|
|
83 |
|
|
84 |
|
|
85 |
|
|
86 |
|
|
87 |
//----------------------------------------------------
|
|
88 |
//
|
|
89 |
// The main view of the BTUI application
|
|
90 |
//
|
|
91 |
//----------------------------------------------------
|
|
92 |
//
|
|
93 |
RESOURCE AVKON_VIEW r_btui_main_view
|
|
94 |
{
|
|
95 |
hotkeys = r_btui_hotkeys;
|
|
96 |
menubar = r_btui_menubar_main_view;
|
|
97 |
cba = r_btui_softkeys_options_exit__change;
|
|
98 |
}
|
|
99 |
|
|
100 |
//----------------------------------------------------
|
|
101 |
//
|
|
102 |
// The main view's menu bar
|
|
103 |
//
|
|
104 |
//----------------------------------------------------
|
|
105 |
//
|
|
106 |
RESOURCE MENU_BAR r_btui_menubar_main_view
|
|
107 |
{
|
|
108 |
titles =
|
|
109 |
{
|
|
110 |
MENU_TITLE { menu_pane = r_btui_app_menu; txt=""; },
|
|
111 |
MENU_TITLE { menu_pane = r_btui_main_view_menu; txt=""; }
|
|
112 |
};
|
|
113 |
}
|
|
114 |
|
|
115 |
//----------------------------------------------------
|
|
116 |
//
|
|
117 |
// The main view options
|
|
118 |
//
|
|
119 |
//----------------------------------------------------
|
|
120 |
//
|
|
121 |
RESOURCE MENU_PANE r_btui_main_view_menu
|
|
122 |
{
|
|
123 |
items =
|
|
124 |
{
|
|
125 |
MENU_ITEM { command = EBTUICmdChangePowerStateMenu; txt = qtn_bt_change_value; },
|
|
126 |
MENU_ITEM { command = EBTUICmdChangeVisibilityMenu; txt = qtn_bt_change_value; },
|
|
127 |
MENU_ITEM { command = EBTUICmdChangeBTNameMenu; txt = qtn_bt_change_value; }
|
|
128 |
#ifdef __BT_SAP
|
|
129 |
,
|
|
130 |
MENU_ITEM { command = EBTUICmdChangeSapStateMenu; txt = qtn_bt_change_value; }
|
|
131 |
#endif
|
|
132 |
};
|
|
133 |
}
|
|
134 |
|
|
135 |
//----------------------------------------------------
|
|
136 |
//
|
|
137 |
// Editor for entering all settings
|
|
138 |
//
|
|
139 |
//----------------------------------------------------
|
|
140 |
//
|
|
141 |
RESOURCE LISTBOX r_bt_setting_editor
|
|
142 |
{
|
|
143 |
flags = EEikListBoxMultipleSelection;
|
|
144 |
}
|
|
145 |
|
|
146 |
//----------------------------------------------------
|
|
147 |
//
|
|
148 |
// The input dialog for entering power mode
|
|
149 |
//
|
|
150 |
//----------------------------------------------------
|
|
151 |
//
|
|
152 |
RESOURCE AVKON_SETTING_PAGE r_bt_power_setting_page
|
|
153 |
{
|
|
154 |
label = qtn_bt_sett_module;
|
|
155 |
hint_text = " ";
|
|
156 |
softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK;
|
|
157 |
type = EAknSetListBox;
|
|
158 |
editor_resource_id = r_bt_setting_editor;
|
|
159 |
}
|
|
160 |
|
|
161 |
//----------------------------------------------------
|
|
162 |
//
|
|
163 |
// Bluetooth power modes
|
|
164 |
//
|
|
165 |
//----------------------------------------------------
|
|
166 |
//
|
|
167 |
RESOURCE ARRAY r_bt_power_modes
|
|
168 |
{
|
|
169 |
items =
|
|
170 |
{
|
|
171 |
LBUF { txt = qtn_bt_sett_on; },
|
|
172 |
LBUF { txt = qtn_bt_sett_off; }
|
|
173 |
};
|
|
174 |
}
|
|
175 |
|
|
176 |
//----------------------------------------------------
|
|
177 |
//
|
|
178 |
// The input dialog for bluetooth visibility setting
|
|
179 |
//
|
|
180 |
//----------------------------------------------------
|
|
181 |
//
|
|
182 |
RESOURCE AVKON_SETTING_PAGE r_bt_visibility_setting_page
|
|
183 |
{
|
|
184 |
label = qtn_bt_sett_phone_visibility;
|
|
185 |
hint_text = " ";
|
|
186 |
softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK;
|
|
187 |
type = EAknSetListBox;
|
|
188 |
editor_resource_id = r_bt_setting_editor;
|
|
189 |
}
|
|
190 |
|
|
191 |
//----------------------------------------------------
|
|
192 |
//
|
|
193 |
// Bluetooth visibility modes
|
|
194 |
//
|
|
195 |
//----------------------------------------------------
|
|
196 |
//
|
|
197 |
RESOURCE ARRAY r_bt_visibility_modes
|
|
198 |
{
|
|
199 |
items =
|
|
200 |
{
|
|
201 |
LBUF { txt = qtn_bt_det_sett_general; },
|
|
202 |
LBUF { txt = qtn_bt_set_visibility_time; },
|
|
203 |
LBUF { txt = qtn_bt_hidden; }
|
|
204 |
};
|
|
205 |
}
|
|
206 |
|
|
207 |
//----------------------------------------------------
|
|
208 |
//
|
|
209 |
// The input dialog for bluetooth local name setting
|
|
210 |
//
|
|
211 |
//----------------------------------------------------
|
|
212 |
//
|
|
213 |
RESOURCE AVKON_SETTING_PAGE r_bt_name_setting_page
|
|
214 |
{
|
|
215 |
label = qtn_bt_sett_bt_name;
|
|
216 |
type = EEikCtEdwin;
|
|
217 |
softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK;
|
|
218 |
editor_resource_id = r_bt_name_setting_editor;
|
|
219 |
}
|
|
220 |
|
|
221 |
//----------------------------------------------------
|
|
222 |
//
|
|
223 |
// Editor for entering BT's local name
|
|
224 |
//
|
|
225 |
//----------------------------------------------------
|
|
226 |
//
|
|
227 |
RESOURCE EDWIN r_bt_name_setting_editor
|
|
228 |
{
|
|
229 |
lines = 0; // Expanding to multiple rows
|
|
230 |
maxlength = KBTUIMaxNameLength;
|
|
231 |
flags = EEikEdwinNoLineOrParaBreaks;
|
|
232 |
}
|
|
233 |
|
|
234 |
|
|
235 |
// === PAIRED DEVICES VIEW ===================================================
|
|
236 |
|
|
237 |
//----------------------------------------------------
|
|
238 |
//
|
|
239 |
// This view shows all paired Bluetooth devices.
|
|
240 |
//
|
|
241 |
//----------------------------------------------------
|
|
242 |
//
|
|
243 |
RESOURCE AVKON_VIEW r_btui_other_devices_view
|
|
244 |
{
|
|
245 |
hotkeys = r_btui_hotkeys;
|
|
246 |
menubar = r_btui_menubar_other_devices_view;
|
|
247 |
cba = r_btui_softkeys_options_exit__conoptions;
|
|
248 |
}
|
|
249 |
|
|
250 |
|
|
251 |
RESOURCE CBA r_btui_softkeys_options_exit__conoptions
|
|
252 |
{
|
|
253 |
buttons =
|
|
254 |
{
|
|
255 |
CBA_BUTTON
|
|
256 |
{
|
|
257 |
id = EAknSoftkeyOptions;
|
|
258 |
txt = text_softkey_option;
|
|
259 |
},
|
|
260 |
CBA_BUTTON
|
|
261 |
{
|
|
262 |
id = EAknSoftkeyExit;
|
|
263 |
txt = text_softkey_exit;
|
|
264 |
},
|
|
265 |
CBA_BUTTON
|
|
266 |
{
|
|
267 |
id = EAknSoftkeyContextOptions;//EAknSoftkeyOptions;
|
|
268 |
txt = text_softkey_option;
|
|
269 |
}
|
|
270 |
|
|
271 |
};
|
|
272 |
}
|
|
273 |
|
|
274 |
RESOURCE AVKON_VIEW r_btui_other_devices_view_gs
|
|
275 |
{
|
|
276 |
hotkeys = r_btui_hotkeys;
|
|
277 |
menubar = r_btui_menubar_other_devices_view;
|
|
278 |
cba = r_btui_softkeys_options_back__conoptions;
|
|
279 |
}
|
|
280 |
// menubar_context = r_btui_menubar_other_devices_view__context;
|
|
281 |
// this is defined in CBTUIOtherDevicesView::DoActivate, since I did not
|
|
282 |
// find a way to do this by resources
|
|
283 |
|
|
284 |
RESOURCE CBA r_btui_softkeys_options_back__conoptions
|
|
285 |
{
|
|
286 |
buttons =
|
|
287 |
{
|
|
288 |
CBA_BUTTON
|
|
289 |
{
|
|
290 |
id = EAknSoftkeyOptions;
|
|
291 |
txt = text_softkey_option;
|
|
292 |
},
|
|
293 |
CBA_BUTTON
|
|
294 |
{
|
|
295 |
id = EAknSoftkeyBack;
|
|
296 |
txt = text_softkey_back;
|
|
297 |
},
|
|
298 |
CBA_BUTTON
|
|
299 |
{
|
|
300 |
id = EAknSoftkeyContextOptions;//EAknSoftkeyOptions;
|
|
301 |
txt = text_softkey_option;
|
|
302 |
}
|
|
303 |
|
|
304 |
};
|
|
305 |
}
|
|
306 |
|
|
307 |
//----------------------------------------------------
|
|
308 |
//
|
|
309 |
// The menubar for other paired devices view
|
|
310 |
//
|
|
311 |
//----------------------------------------------------
|
|
312 |
//
|
|
313 |
RESOURCE MENU_BAR r_btui_menubar_other_devices_view
|
|
314 |
{
|
|
315 |
titles =
|
|
316 |
{
|
|
317 |
MENU_TITLE { menu_pane = r_btui_app_menu; txt = ""; },
|
|
318 |
MENU_TITLE { menu_pane = r_btui_other_devices_view_menu; txt = ""; }
|
|
319 |
};
|
|
320 |
}
|
|
321 |
|
|
322 |
|
|
323 |
RESOURCE MENU_BAR r_btui_menubar_other_devices_view_context
|
|
324 |
{
|
|
325 |
titles =
|
|
326 |
{
|
|
327 |
MENU_TITLE { menu_pane = r_btui_other_devices_view_menu_context; txt = ""; }
|
|
328 |
};
|
|
329 |
}
|
|
330 |
|
|
331 |
//----------------------------------------------------
|
|
332 |
//
|
|
333 |
// The other devices view options
|
|
334 |
//
|
|
335 |
//----------------------------------------------------
|
|
336 |
//
|
|
337 |
RESOURCE MENU_PANE r_btui_other_devices_view_menu
|
|
338 |
{
|
|
339 |
items =
|
|
340 |
{
|
|
341 |
MENU_ITEM { command = EBTUICmdNewPairedDevice; txt = qtn_bt_new_paired_device; },
|
|
342 |
MENU_ITEM { command = EBTUICmdConnect; txt = qtn_bt_gen_connect; flags = EEikMenuItemSpecific; },
|
|
343 |
MENU_ITEM { command = EBTUICmdConnectAudio; txt = qtn_bt_connect; flags = EEikMenuItemSpecific;},
|
|
344 |
MENU_ITEM { command = EBTUICmdDisconnect; txt = qtn_bt_disconnect; flags = EEikMenuItemSpecific;},
|
|
345 |
MENU_ITEM { command = EBTUICmdGiveNickname; txt = qtn_bt_give_nickname; flags = EEikMenuItemSpecific;},
|
|
346 |
MENU_ITEM { command = EBTUICmdSetTrusted; txt = qtn_bt_set_as_trusted; flags = EEikMenuItemSpecific;},
|
|
347 |
MENU_ITEM { command = EBTUICmdSetUnTrusted; txt = qtn_bt_set_as_untrusted; flags = EEikMenuItemSpecific;},
|
|
348 |
MENU_ITEM { command = EBTUICmdSetBlocked; txt = qtn_bt_block; flags = EEikMenuItemSpecific; },
|
|
349 |
MENU_ITEM { command = EBTUICmdDelete; txt = qtn_bt_delete; flags = EEikMenuItemSpecific; },
|
|
350 |
MENU_ITEM { command = EBTUICmdSettings; txt = qtn_bt_settings; flags = EEikMenuItemSpecific;},
|
|
351 |
MENU_ITEM { command = EBTUICmdDeleteAll; txt = qtn_bt_delete_all; }
|
|
352 |
};
|
|
353 |
}
|
|
354 |
|
|
355 |
RESOURCE MENU_PANE r_btui_other_devices_view_menu_context
|
|
356 |
{
|
|
357 |
items =
|
|
358 |
{
|
|
359 |
MENU_ITEM { command = EBTUICmdNewPairedDevice; txt = qtn_bt_new_paired_device; },
|
|
360 |
MENU_ITEM { command = EBTUICmdConnect; txt = qtn_bt_gen_connect; },
|
|
361 |
MENU_ITEM { command = EBTUICmdConnectAudio; txt = qtn_bt_connect; },
|
|
362 |
MENU_ITEM { command = EBTUICmdDisconnect; txt = qtn_bt_disconnect; },
|
|
363 |
MENU_ITEM { command = EBTUICmdGiveNickname; txt = qtn_bt_give_nickname; },
|
|
364 |
MENU_ITEM { command = EBTUICmdSetTrusted; txt = qtn_bt_set_as_trusted; },
|
|
365 |
MENU_ITEM { command = EBTUICmdSetUnTrusted; txt = qtn_bt_set_as_untrusted; },
|
|
366 |
MENU_ITEM { command = EBTUICmdSetBlocked; txt = qtn_bt_block; },
|
|
367 |
MENU_ITEM { command = EBTUICmdDelete; txt = qtn_bt_delete; },
|
|
368 |
MENU_ITEM { command = EBTUICmdSettings; txt = qtn_bt_settings; }
|
|
369 |
};
|
|
370 |
}
|
|
371 |
|
|
372 |
|
|
373 |
// == APPLICATION ============================================================
|
|
374 |
|
|
375 |
//----------------------------------------------------
|
|
376 |
//
|
|
377 |
// The BTUI application level menu
|
|
378 |
// Common for all views
|
|
379 |
//
|
|
380 |
//----------------------------------------------------
|
|
381 |
//
|
|
382 |
RESOURCE MENU_PANE r_btui_app_menu
|
|
383 |
{
|
|
384 |
items =
|
|
385 |
{
|
|
386 |
#ifdef __SERIES60_HELP
|
|
387 |
MENU_ITEM { command = EAknCmdHelp; txt = qtn_options_help; },
|
|
388 |
#endif
|
|
389 |
MENU_ITEM { command = EAknCmdExit; txt = qtn_options_exit; }
|
|
390 |
};
|
|
391 |
}
|
|
392 |
|
|
393 |
|
|
394 |
|
|
395 |
// === QUERIES ===============================================================
|
|
396 |
|
|
397 |
//----------------------------------------------------
|
|
398 |
// Data query "Enter Bluetooth name for your phone"
|
|
399 |
//----------------------------------------------------
|
|
400 |
//
|
|
401 |
RESOURCE DIALOG r_bt_enter_local_name_query
|
|
402 |
{
|
|
403 |
flags = EGeneralQueryFlags;
|
|
404 |
buttons = R_AVKON_SOFTKEYS_OK_EMPTY__OK;
|
|
405 |
items =
|
|
406 |
{
|
|
407 |
DLG_LINE
|
|
408 |
{
|
|
409 |
type = EAknCtQuery;
|
|
410 |
id = EGeneralQuery;
|
|
411 |
control = AVKON_DATA_QUERY
|
|
412 |
{
|
|
413 |
layout = EDataLayout;
|
|
414 |
label = qtn_enter_bt_name;
|
|
415 |
control = EDWIN
|
|
416 |
{
|
|
417 |
flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable | EEikEdwinNoLineOrParaBreaks;
|
|
418 |
maxlength = KBTUIMaxNameLength;
|
|
419 |
};
|
|
420 |
};
|
|
421 |
}
|
|
422 |
};
|
|
423 |
}
|
|
424 |
|
|
425 |
//----------------------------------------------------
|
|
426 |
// Confirmation query "You have active Bluetooth
|
|
427 |
// connections on. Switch off anyway?"
|
|
428 |
//----------------------------------------------------
|
|
429 |
//
|
|
430 |
RESOURCE DIALOG r_bt_switch_off_anyway_query
|
|
431 |
{
|
|
432 |
flags = EGeneralQueryFlags;
|
|
433 |
buttons = R_AVKON_SOFTKEYS_YES_NO__YES;
|
|
434 |
items =
|
|
435 |
{
|
|
436 |
DLG_LINE
|
|
437 |
{
|
|
438 |
type = EAknCtQuery;
|
|
439 |
id = EGeneralQuery;
|
|
440 |
control = AVKON_CONFIRMATION_QUERY
|
|
441 |
{
|
|
442 |
layout = EConfirmationLayout;
|
|
443 |
label = qtn_bt_switch_off_anyway;
|
|
444 |
animation = R_QGN_NOTE_QUERY_ANIM;
|
|
445 |
};
|
|
446 |
}
|
|
447 |
};
|
|
448 |
}
|
|
449 |
|
|
450 |
//----------------------------------------------------
|
|
451 |
// Confirmation query "Bluetooth is currently off.
|
|
452 |
// Do you want to switch it on?"
|
|
453 |
//----------------------------------------------------
|
|
454 |
//
|
|
455 |
RESOURCE DIALOG r_bt_is_off_query
|
|
456 |
{
|
|
457 |
flags = EGeneralQueryFlags;
|
|
458 |
buttons = R_AVKON_SOFTKEYS_YES_NO__YES;
|
|
459 |
items =
|
|
460 |
{
|
|
461 |
DLG_LINE
|
|
462 |
{
|
|
463 |
type = EAknCtQuery;
|
|
464 |
id = EGeneralQuery;
|
|
465 |
control = AVKON_CONFIRMATION_QUERY
|
|
466 |
{
|
|
467 |
layout = EConfirmationLayout;
|
|
468 |
label = qtn_bt_is_off;
|
|
469 |
animation = R_QGN_NOTE_QUERY_ANIM;
|
|
470 |
};
|
|
471 |
}
|
|
472 |
};
|
|
473 |
}
|
|
474 |
|
|
475 |
//----------------------------------------------------
|
|
476 |
// Confirmation query "Do you want to activate bluetooth in off-line mode?"
|
|
477 |
//----------------------------------------------------
|
|
478 |
//
|
|
479 |
RESOURCE DIALOG r_bt_activate_in_offline_query
|
|
480 |
{
|
|
481 |
flags = EGeneralQueryFlags;
|
|
482 |
buttons = R_AVKON_SOFTKEYS_YES_NO__YES;
|
|
483 |
items =
|
|
484 |
{
|
|
485 |
DLG_LINE
|
|
486 |
{
|
|
487 |
type = EAknCtQuery;
|
|
488 |
id = EGeneralQuery;
|
|
489 |
control = AVKON_CONFIRMATION_QUERY
|
|
490 |
{
|
|
491 |
layout = EConfirmationQueryLayout;
|
|
492 |
label = qtn_bt_activate_in_offline;
|
|
493 |
animation = R_QGN_NOTE_QUERY_ANIM;
|
|
494 |
};
|
|
495 |
}
|
|
496 |
};
|
|
497 |
}
|
|
498 |
|
|
499 |
//----------------------------------------------------
|
|
500 |
// Confirmation query "Cancel pairing with: %U"
|
|
501 |
//----------------------------------------------------
|
|
502 |
//
|
|
503 |
RESOURCE DIALOG r_bt_warn_erase_query
|
|
504 |
{
|
|
505 |
flags = EGeneralQueryFlags;
|
|
506 |
buttons = R_AVKON_SOFTKEYS_YES_NO__YES;
|
|
507 |
items =
|
|
508 |
{
|
|
509 |
DLG_LINE
|
|
510 |
{
|
|
511 |
type = EAknCtQuery;
|
|
512 |
id = EGeneralQuery;
|
|
513 |
control = AVKON_CONFIRMATION_QUERY
|
|
514 |
{
|
|
515 |
layout = EConfirmationLayout;
|
|
516 |
animation = R_QGN_NOTE_QUERY_ANIM;
|
|
517 |
};
|
|
518 |
}
|
|
519 |
};
|
|
520 |
}
|
|
521 |
|
|
522 |
RESOURCE TBUF r_bt_warn_erase { buf = qtn_bt_warn_erase; }
|
|
523 |
RESOURCE TBUF r_bt_warn_erase_connected { buf = qtn_bt_warn_erase_connected; }
|
|
524 |
|
|
525 |
//----------------------------------------------------
|
|
526 |
// Confirmation query "Cancel all pairings"
|
|
527 |
//----------------------------------------------------
|
|
528 |
//
|
|
529 |
RESOURCE DIALOG r_bt_warn_erase_all_query
|
|
530 |
{
|
|
531 |
flags = EGeneralQueryFlags;
|
|
532 |
buttons = R_AVKON_SOFTKEYS_YES_NO__YES;
|
|
533 |
items =
|
|
534 |
{
|
|
535 |
DLG_LINE
|
|
536 |
{
|
|
537 |
type = EAknCtQuery;
|
|
538 |
id = EGeneralQuery;
|
|
539 |
control = AVKON_CONFIRMATION_QUERY
|
|
540 |
{
|
|
541 |
layout = EConfirmationLayout;
|
|
542 |
label = qtn_bt_warn_erase_all;
|
|
543 |
animation = R_QGN_NOTE_QUERY_ANIM;
|
|
544 |
};
|
|
545 |
}
|
|
546 |
};
|
|
547 |
}
|
|
548 |
|
|
549 |
//----------------------------------------------------
|
|
550 |
// Confirmation query "Delete all pairings? Some devices may be disconnected."
|
|
551 |
//----------------------------------------------------
|
|
552 |
//
|
|
553 |
RESOURCE DIALOG r_bt_warn_erase_all_connected_query
|
|
554 |
{
|
|
555 |
flags = EGeneralQueryFlags;
|
|
556 |
buttons = R_AVKON_SOFTKEYS_YES_NO__YES;
|
|
557 |
items =
|
|
558 |
{
|
|
559 |
DLG_LINE
|
|
560 |
{
|
|
561 |
type = EAknCtQuery;
|
|
562 |
id = EGeneralQuery;
|
|
563 |
control = AVKON_CONFIRMATION_QUERY
|
|
564 |
{
|
|
565 |
layout = EConfirmationLayout;
|
|
566 |
label = qtn_bt_warn_erase_all_connected;
|
|
567 |
animation = R_QGN_NOTE_QUERY_ANIM;
|
|
568 |
};
|
|
569 |
}
|
|
570 |
};
|
|
571 |
}
|
|
572 |
|
|
573 |
//----------------------------------------------------
|
|
574 |
// Data query "Enter alias"
|
|
575 |
//----------------------------------------------------
|
|
576 |
//
|
|
577 |
RESOURCE DIALOG r_bt_enter_nickname_query
|
|
578 |
{
|
|
579 |
flags = EGeneralQueryFlags;
|
|
580 |
buttons = R_AVKON_SOFTKEYS_OK_CANCEL__OK;
|
|
581 |
items =
|
|
582 |
{
|
|
583 |
DLG_LINE
|
|
584 |
{
|
|
585 |
type = EAknCtQuery;
|
|
586 |
id = EGeneralQuery;
|
|
587 |
control = AVKON_DATA_QUERY
|
|
588 |
{
|
|
589 |
layout = EDataLayout;
|
|
590 |
label = qtn_bt_enter_nickname;
|
|
591 |
control = EDWIN
|
|
592 |
{
|
|
593 |
flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
|
|
594 |
maxlength = KBTUIMaxAliasLength;
|
|
595 |
};
|
|
596 |
};
|
|
597 |
}
|
|
598 |
};
|
|
599 |
}
|
|
600 |
|
|
601 |
//----------------------------------------------------
|
|
602 |
// Confirmation query "Set this device as trusted"
|
|
603 |
//----------------------------------------------------
|
|
604 |
//
|
|
605 |
RESOURCE DIALOG r_bt_set_trusted_query
|
|
606 |
{
|
|
607 |
flags = EGeneralQueryFlags;
|
|
608 |
buttons = R_AVKON_SOFTKEYS_YES_NO__YES;
|
|
609 |
items =
|
|
610 |
{
|
|
611 |
DLG_LINE
|
|
612 |
{
|
|
613 |
type = EAknCtQuery;
|
|
614 |
id = EGeneralQuery;
|
|
615 |
control = AVKON_CONFIRMATION_QUERY
|
|
616 |
{
|
|
617 |
layout = EConfirmationLayout;
|
|
618 |
label = qtn_bt_conf_aut;
|
|
619 |
animation = R_QGN_NOTE_QUERY_ANIM;
|
|
620 |
};
|
|
621 |
}
|
|
622 |
};
|
|
623 |
}
|
|
624 |
|
|
625 |
RESOURCE TBUF r_bt_set_as_trusted_prompt { buf = qtn_bt_conf_aut; }
|
|
626 |
|
|
627 |
//----------------------------------------------------
|
|
628 |
// Confirmation query "Disconnect from: %U"
|
|
629 |
//----------------------------------------------------
|
|
630 |
//
|
|
631 |
RESOURCE DIALOG r_bt_disconnect_from_query
|
|
632 |
{
|
|
633 |
flags = EGeneralQueryFlags;
|
|
634 |
buttons = R_AVKON_SOFTKEYS_YES_NO__YES;
|
|
635 |
items =
|
|
636 |
{
|
|
637 |
DLG_LINE
|
|
638 |
{
|
|
639 |
type = EAknCtQuery;
|
|
640 |
id = EGeneralQuery;
|
|
641 |
control = AVKON_CONFIRMATION_QUERY
|
|
642 |
{
|
|
643 |
layout = EConfirmationLayout;
|
|
644 |
animation = R_QGN_NOTE_QUERY_ANIM;
|
|
645 |
};
|
|
646 |
}
|
|
647 |
};
|
|
648 |
}
|
|
649 |
|
|
650 |
RESOURCE TBUF r_bt_disconnect_from { buf = qtn_bt_disconn_from; }
|
|
651 |
|
|
652 |
|
|
653 |
// === NOTES =================================================================
|
|
654 |
|
|
655 |
//----------------------------------------------------
|
|
656 |
// Information note "Phone is visible to other
|
|
657 |
// Bluetooth devices."
|
|
658 |
//----------------------------------------------------
|
|
659 |
//
|
|
660 |
RESOURCE DIALOG r_bt_phone_visib_to_oth_note
|
|
661 |
{
|
|
662 |
flags = EAknInformationNoteFlags;
|
|
663 |
buttons = R_AVKON_SOFTKEYS_EMPTY;
|
|
664 |
items =
|
|
665 |
{
|
|
666 |
DLG_LINE
|
|
667 |
{
|
|
668 |
type = EAknCtNote;
|
|
669 |
id = EBTUIPhoneVisibleToOthers;
|
|
670 |
control = AVKON_NOTE
|
|
671 |
{
|
|
672 |
layout = EGeneralLayout;
|
|
673 |
singular_label = qtn_bt_phone_visib_to_oth;
|
|
674 |
animation = R_QGN_NOTE_INFO_ANIM;
|
|
675 |
};
|
|
676 |
}
|
|
677 |
};
|
|
678 |
}
|
|
679 |
|
|
680 |
//----------------------------------------------------
|
|
681 |
// Information note "Phone is hidden from others"
|
|
682 |
//----------------------------------------------------
|
|
683 |
//
|
|
684 |
RESOURCE DIALOG r_bt_hidden_from_others
|
|
685 |
{
|
|
686 |
flags = EAknInformationNoteFlags;
|
|
687 |
buttons = R_AVKON_SOFTKEYS_EMPTY;
|
|
688 |
items =
|
|
689 |
{
|
|
690 |
DLG_LINE
|
|
691 |
{
|
|
692 |
type = EAknCtNote;
|
|
693 |
id = EBTUIHiddenFromOthersNote;
|
|
694 |
control = AVKON_NOTE
|
|
695 |
{
|
|
696 |
layout = EGeneralLayout;
|
|
697 |
singular_label = qtn_bt_hidden_from_others;
|
|
698 |
animation = R_QGN_NOTE_INFO_ANIM;
|
|
699 |
};
|
|
700 |
}
|
|
701 |
};
|
|
702 |
}
|
|
703 |
|
|
704 |
//----------------------------------------------------
|
|
705 |
// Error note "Alias exists in Paired devices list."
|
|
706 |
//----------------------------------------------------
|
|
707 |
//
|
|
708 |
RESOURCE DIALOG r_bt_name_exists_note
|
|
709 |
{
|
|
710 |
flags = EAknErrorNoteFlags | EEikDialogFlagWait;
|
|
711 |
buttons = R_AVKON_SOFTKEYS_EMPTY;
|
|
712 |
items =
|
|
713 |
{
|
|
714 |
DLG_LINE
|
|
715 |
{
|
|
716 |
type = EAknCtNote;
|
|
717 |
id = EBTUINameAlreadyExists;
|
|
718 |
control = AVKON_NOTE
|
|
719 |
{
|
|
720 |
layout = EGeneralLayout;
|
|
721 |
singular_label = qtn_bt_name_exists;
|
|
722 |
animation = R_QGN_NOTE_ERROR_ANIM;
|
|
723 |
};
|
|
724 |
}
|
|
725 |
};
|
|
726 |
}
|
|
727 |
|
|
728 |
//----------------------------------------------------
|
|
729 |
// Error note "Invalid name entered, try again."
|
|
730 |
//----------------------------------------------------
|
|
731 |
//
|
|
732 |
RESOURCE DIALOG r_bt_invalid_local_name_note
|
|
733 |
{
|
|
734 |
//removed
|
|
735 |
//Leave the name here to keep binary compatibility
|
|
736 |
}
|
|
737 |
|
|
738 |
//----------------------------------------------------
|
|
739 |
// Confirmation note "Device set as untrusted."
|
|
740 |
//----------------------------------------------------
|
|
741 |
//
|
|
742 |
RESOURCE DIALOG r_bt_device_untrusted_note
|
|
743 |
{
|
|
744 |
flags = EAknConfirmationNoteFlags;
|
|
745 |
buttons = R_AVKON_SOFTKEYS_EMPTY;
|
|
746 |
items =
|
|
747 |
{
|
|
748 |
DLG_LINE
|
|
749 |
{
|
|
750 |
type = EAknCtNote;
|
|
751 |
id = EBTUIDeviceSetAsUntrusted;
|
|
752 |
control = AVKON_NOTE
|
|
753 |
{
|
|
754 |
layout = EGeneralLayout;
|
|
755 |
singular_label = qtn_bt_dev_set_as_untrust;
|
|
756 |
animation = R_QGN_NOTE_OK_ANIM;
|
|
757 |
};
|
|
758 |
}
|
|
759 |
};
|
|
760 |
}
|
|
761 |
|
|
762 |
//----------------------------------------------------
|
|
763 |
// Wait note "Waiting for response from %U"
|
|
764 |
//----------------------------------------------------
|
|
765 |
//
|
|
766 |
RESOURCE DIALOG r_bt_waiting
|
|
767 |
{
|
|
768 |
flags = EAknWaitNoteFlags;
|
|
769 |
buttons = R_AVKON_SOFTKEYS_EMPTY;
|
|
770 |
items =
|
|
771 |
{
|
|
772 |
DLG_LINE
|
|
773 |
{
|
|
774 |
type = EAknCtNote;
|
|
775 |
id = EBTUIWaitingForPairing;
|
|
776 |
control = AVKON_NOTE
|
|
777 |
{
|
|
778 |
layout = EWaitLayout;
|
|
779 |
singular_label = qtn_bt_waiting;
|
|
780 |
animation = R_QGN_GRAF_WAIT_BAR_ANIM;
|
|
781 |
};
|
|
782 |
}
|
|
783 |
};
|
|
784 |
}
|
|
785 |
|
|
786 |
RESOURCE TBUF r_bt_waiting_prompt { buf = qtn_bt_waiting; }
|
|
787 |
|
|
788 |
//----------------------------------------------------
|
|
789 |
// Error note "Cannot execute Bluetooth operation
|
|
790 |
// successfully!"
|
|
791 |
//----------------------------------------------------
|
|
792 |
//
|
|
793 |
RESOURCE DIALOG r_bt_general_error_note
|
|
794 |
{
|
|
795 |
flags = EAknErrorNoteFlags | EEikDialogFlagWait;
|
|
796 |
buttons = R_AVKON_SOFTKEYS_EMPTY;
|
|
797 |
items =
|
|
798 |
{
|
|
799 |
DLG_LINE
|
|
800 |
{
|
|
801 |
type = EAknCtNote;
|
|
802 |
id = EBTUIGeneralError;
|
|
803 |
control = AVKON_NOTE
|
|
804 |
{
|
|
805 |
layout = EGeneralLayout;
|
|
806 |
singular_label = qtn_bt_general_error;
|
|
807 |
animation = R_QGN_NOTE_ERROR_ANIM;
|
|
808 |
};
|
|
809 |
}
|
|
810 |
};
|
|
811 |
}
|
|
812 |
|
|
813 |
|
|
814 |
//----------------------------------------------------
|
|
815 |
// Wait note "Connecting to %U"
|
|
816 |
//----------------------------------------------------
|
|
817 |
//
|
|
818 |
RESOURCE DIALOG r_bt_connecting_to_wait_note
|
|
819 |
{
|
|
820 |
flags = EAknWaitNoteFlags;
|
|
821 |
buttons = R_AVKON_SOFTKEYS_CANCEL;
|
|
822 |
items =
|
|
823 |
{
|
|
824 |
DLG_LINE
|
|
825 |
{
|
|
826 |
type = EAknCtNote;
|
|
827 |
id = EBTUIConnectingTo;
|
|
828 |
control = AVKON_NOTE
|
|
829 |
{
|
|
830 |
layout = EWaitLayout;
|
|
831 |
animation = R_QGN_GRAF_WAIT_BAR_ANIM;
|
|
832 |
};
|
|
833 |
}
|
|
834 |
};
|
|
835 |
}
|
|
836 |
|
|
837 |
RESOURCE TBUF r_bt_connecting_to { buf = qtn_bt_wait_connecting_to;}
|
|
838 |
|
|
839 |
//----------------------------------------------------
|
|
840 |
// Information note "Disconnect wired accessory"
|
|
841 |
//----------------------------------------------------
|
|
842 |
//
|
|
843 |
RESOURCE DIALOG r_bt_disconnect_wired_note
|
|
844 |
{
|
|
845 |
flags = EAknInformationNoteFlags;
|
|
846 |
buttons = R_AVKON_SOFTKEYS_EMPTY;
|
|
847 |
items =
|
|
848 |
{
|
|
849 |
DLG_LINE
|
|
850 |
{
|
|
851 |
type = EAknCtNote;
|
|
852 |
id = EBTUIDisconnectWired;
|
|
853 |
control = AVKON_NOTE
|
|
854 |
{
|
|
855 |
layout = EGeneralLayout;
|
|
856 |
singular_label = qtn_bt_disconnect_wired;
|
|
857 |
animation = R_QGN_NOTE_INFO_ANIM;
|
|
858 |
};
|
|
859 |
}
|
|
860 |
};
|
|
861 |
}
|
|
862 |
|
|
863 |
//----------------------------------------------------
|
|
864 |
// Information note "Cannot establish Bluetooth connection"
|
|
865 |
//----------------------------------------------------
|
|
866 |
//
|
|
867 |
RESOURCE DIALOG r_bt_not_incall_note
|
|
868 |
{
|
|
869 |
flags = EAknInformationNoteFlags;
|
|
870 |
buttons = R_AVKON_SOFTKEYS_EMPTY;
|
|
871 |
items =
|
|
872 |
{
|
|
873 |
DLG_LINE
|
|
874 |
{
|
|
875 |
type = EAknCtNote;
|
|
876 |
id = EBTUINotIncall;
|
|
877 |
control = AVKON_NOTE
|
|
878 |
{
|
|
879 |
layout = EGeneralLayout;
|
|
880 |
singular_label = qtn_bt_not_incall;
|
|
881 |
animation = R_QGN_NOTE_INFO_ANIM;
|
|
882 |
};
|
|
883 |
}
|
|
884 |
};
|
|
885 |
}
|
|
886 |
|
|
887 |
//----------------------------------------------------
|
|
888 |
// Information note "Disconnect %U first"
|
|
889 |
//----------------------------------------------------
|
|
890 |
//
|
|
891 |
RESOURCE TBUF r_bt_disconnect_first_prompt { buf = qtn_bt_disconnect_first; }
|
|
892 |
|
|
893 |
//----------------------------------------------------
|
|
894 |
// Information note "Maximum amount of Bluetooth conn..."
|
|
895 |
//----------------------------------------------------
|
|
896 |
//
|
|
897 |
RESOURCE DIALOG r_bt_busy
|
|
898 |
{
|
|
899 |
flags = EAknInformationNoteFlags;
|
|
900 |
buttons = R_AVKON_SOFTKEYS_EMPTY;
|
|
901 |
items =
|
|
902 |
{
|
|
903 |
DLG_LINE
|
|
904 |
{
|
|
905 |
type = EAknCtNote;
|
|
906 |
id = EBTUIBtBusy;
|
|
907 |
control = AVKON_NOTE
|
|
908 |
{
|
|
909 |
layout = EGeneralLayout;
|
|
910 |
singular_label = qtn_bt_busy;
|
|
911 |
animation = R_QGN_NOTE_INFO_ANIM;
|
|
912 |
};
|
|
913 |
}
|
|
914 |
};
|
|
915 |
}
|
|
916 |
|
|
917 |
//----------------------------------------------------
|
|
918 |
// Information note "Bluetooth can't activated in off-line mode"
|
|
919 |
//----------------------------------------------------
|
|
920 |
//
|
|
921 |
RESOURCE TBUF r_bt_offline_disabled { buf = qtn_bt_offline_disabled; }
|
|
922 |
|
|
923 |
//----------------------------------------------------
|
|
924 |
// Default value for "My Bluetooth name"
|
|
925 |
//----------------------------------------------------
|
|
926 |
//
|
|
927 |
RESOURCE TBUF r_bt_default_local_name { buf = qtn_bt_default_local_name; }
|
|
928 |
|
|
929 |
|
|
930 |
// === GLOBAL QUERIES AND NOTES ==============================================
|
|
931 |
|
|
932 |
//----------------------------------------------------
|
|
933 |
// Global Information note "Audio routed to BT handsfree"
|
|
934 |
//----------------------------------------------------
|
|
935 |
//
|
|
936 |
RESOURCE TBUF r_bt_audios_accessory_prompt { buf = qtn_bt_audio_accessory; }
|
|
937 |
|
|
938 |
//----------------------------------------------------
|
|
939 |
// Global Information note "Connected to %U"
|
|
940 |
//----------------------------------------------------
|
|
941 |
//
|
|
942 |
RESOURCE TBUF r_bt_conf_connected_prompt { buf = qtn_bt_conf_connected; }
|
|
943 |
|
|
944 |
//----------------------------------------------------
|
|
945 |
// Global Information note "Disconnected from %U"
|
|
946 |
//----------------------------------------------------
|
|
947 |
//
|
|
948 |
RESOURCE TBUF r_bt_conf_disconnected_prompt { buf = qtn_bt_conf_disconnected; }
|
|
949 |
|
|
950 |
//----------------------------------------------------
|
|
951 |
// Global Information note "Cannot establish Bluetooth connection"
|
|
952 |
//----------------------------------------------------
|
|
953 |
//
|
|
954 |
RESOURCE TBUF r_bt_device_not_avail_note { buf = qtn_bt_device_not_avail; }
|
|
955 |
|
|
956 |
//----------------------------------------------------
|
|
957 |
// Global Information note "Hands-Free Profile not supported by %U"
|
|
958 |
//----------------------------------------------------
|
|
959 |
//
|
|
960 |
RESOURCE TBUF r_bt_hfp_not_supported { buf = qtn_bt_hfp_not_supported; }
|
|
961 |
|
|
962 |
//----------------------------------------------------
|
|
963 |
// Global Information note "Unsupported device: %U"
|
|
964 |
//----------------------------------------------------
|
|
965 |
//
|
|
966 |
RESOURCE TBUF r_bt_device_not_supported { buf = qtn_bt_device_not_supported; }
|
|
967 |
|
|
968 |
// ===========================================================================
|
|
969 |
|
|
970 |
//----------------------------------------------------
|
|
971 |
// Titles for views
|
|
972 |
//----------------------------------------------------
|
|
973 |
//
|
|
974 |
RESOURCE TBUF r_bt_title_bluetooth { buf = qtn_bt_title_bluetooth; }
|
|
975 |
RESOURCE TBUF r_bt_title_paired_dev { buf = qtn_bt_title_paired_dev; }
|
|
976 |
|
|
977 |
//----------------------------------------------------
|
|
978 |
// Empty list text
|
|
979 |
//----------------------------------------------------
|
|
980 |
//
|
|
981 |
RESOURCE TBUF r_bt_no_paired_devices { buf = qtn_bt_no_paired_devices; }
|
|
982 |
|
|
983 |
//----------------------------------------------------
|
|
984 |
// Popup commands for paired devices view when
|
|
985 |
// there are no devices
|
|
986 |
//----------------------------------------------------
|
|
987 |
//
|
|
988 |
RESOURCE ARRAY r_bt_no_paired_devices_popup_commands
|
|
989 |
{
|
|
990 |
items = {
|
|
991 |
LBUF { txt = qtn_bt_new_paired_device; }
|
|
992 |
};
|
|
993 |
}
|
|
994 |
|
|
995 |
//----------------------------------------------------
|
|
996 |
// Standard popup commands for paired devices view
|
|
997 |
//----------------------------------------------------
|
|
998 |
//
|
|
999 |
RESOURCE ARRAY r_bt_paired_devices_popup_commands
|
|
1000 |
{
|
|
1001 |
items = {
|
|
1002 |
LBUF { txt = qtn_bt_give_nickname; },
|
|
1003 |
LBUF { txt = qtn_bt_delete; }
|
|
1004 |
};
|
|
1005 |
}
|
|
1006 |
|
|
1007 |
//----------------------------------------------------
|
|
1008 |
// Optional popup commands for paired devices view
|
|
1009 |
//----------------------------------------------------
|
|
1010 |
//
|
|
1011 |
RESOURCE TBUF r_bt_set_untrusted_command { buf = qtn_bt_set_as_untrusted; }
|
|
1012 |
|
|
1013 |
RESOURCE TBUF r_bt_set_trusted_command { buf = qtn_bt_set_as_trusted; }
|
|
1014 |
|
|
1015 |
RESOURCE TBUF r_bt_connect_command { buf = qtn_bt_connect; }
|
|
1016 |
|
|
1017 |
RESOURCE TBUF r_bt_disconnect_command { buf = qtn_bt_disconnect; }
|
|
1018 |
|
|
1019 |
|
|
1020 |
//----------------------------------------------------
|
|
1021 |
// Format/label strings for main view
|
|
1022 |
// There is also TBTUIMainViewSettingFormatStrings enum
|
|
1023 |
// in the BTUI.hrh which must reflect EXACTLY this resource !
|
|
1024 |
//----------------------------------------------------
|
|
1025 |
//
|
|
1026 |
RESOURCE ARRAY r_bt_label_strings
|
|
1027 |
{
|
|
1028 |
items = {
|
|
1029 |
LBUF { txt=" \t"qtn_bt_sett_module"\t\t"qtn_bt_sett_on; },
|
|
1030 |
LBUF { txt=" \t"qtn_bt_sett_module"\t\t"qtn_bt_sett_off; },
|
|
1031 |
LBUF { txt=" \t"qtn_bt_sett_phone_visibility"\t\t"qtn_bt_det_sett_general; },
|
|
1032 |
LBUF { txt=" \t"qtn_bt_sett_phone_visibility"\t\t"qtn_bt_hidden; },
|
|
1033 |
|
|
1034 |
//temp visible mode
|
|
1035 |
LBUF { txt=" \t"qtn_bt_sett_phone_visibility"\t\t" qtn_bt_temp_visible; },
|
|
1036 |
|
|
1037 |
LBUF { txt=" \t"qtn_bt_sett_bt_name"\t\t"; }
|
|
1038 |
#ifdef __BT_SAP
|
|
1039 |
,
|
|
1040 |
LBUF { txt=" \t"qtn_bt_sap"\t\t"qtn_bt_sap_enabled; },
|
|
1041 |
LBUF { txt=" \t"qtn_bt_sap"\t\t"qtn_bt_sap_disabled; }
|
|
1042 |
#endif
|
|
1043 |
};
|
|
1044 |
}
|
|
1045 |
|
|
1046 |
|
|
1047 |
#ifdef __BT_SAP
|
|
1048 |
//----------------------------------------------------
|
|
1049 |
//
|
|
1050 |
// The input dialog for SIM access profile setting
|
|
1051 |
//
|
|
1052 |
//----------------------------------------------------
|
|
1053 |
//
|
|
1054 |
RESOURCE AVKON_SETTING_PAGE r_bt_sap_setting_page
|
|
1055 |
{
|
|
1056 |
label = qtn_bt_sap;
|
|
1057 |
hint_text = " ";
|
|
1058 |
softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK;
|
|
1059 |
type = EAknSetListBox;
|
|
1060 |
editor_resource_id = r_bt_setting_editor;
|
|
1061 |
}
|
|
1062 |
|
|
1063 |
//----------------------------------------------------
|
|
1064 |
//
|
|
1065 |
// Bluetooth sap modes
|
|
1066 |
//
|
|
1067 |
//----------------------------------------------------
|
|
1068 |
//
|
|
1069 |
RESOURCE ARRAY r_bt_sap_modes
|
|
1070 |
{
|
|
1071 |
items =
|
|
1072 |
{
|
|
1073 |
LBUF { txt = qtn_bt_sap_enabled; },
|
|
1074 |
LBUF { txt = qtn_bt_sap_disabled; }
|
|
1075 |
};
|
|
1076 |
}
|
|
1077 |
|
|
1078 |
//----------------------------------------------------
|
|
1079 |
// Information Note "Enabling SIM Access Profile
|
|
1080 |
// connection Bluetooth must be ON"
|
|
1081 |
//----------------------------------------------------
|
|
1082 |
//
|
|
1083 |
RESOURCE DIALOG r_bt_sap_enable_note
|
|
1084 |
{
|
|
1085 |
flags = EAknInformationNoteFlags;
|
|
1086 |
buttons = R_AVKON_SOFTKEYS_OK_EMPTY__OK;
|
|
1087 |
items =
|
|
1088 |
{
|
|
1089 |
DLG_LINE
|
|
1090 |
{
|
|
1091 |
type = EAknCtNote;
|
|
1092 |
id = EBTUIBtSapEnableNote;
|
|
1093 |
control = AVKON_NOTE
|
|
1094 |
{
|
|
1095 |
layout = EGeneralLayout;
|
|
1096 |
singular_label = qtn_bt_sap_enable_info;
|
|
1097 |
animation = R_QGN_NOTE_INFO_ANIM;
|
|
1098 |
};
|
|
1099 |
}
|
|
1100 |
};
|
|
1101 |
}
|
|
1102 |
#endif //__BT_SAP
|
|
1103 |
|
|
1104 |
// Visibility TIMEOUT
|
|
1105 |
//----------------------------------------------------
|
|
1106 |
//
|
|
1107 |
// r_setting_visibility_time_slider
|
|
1108 |
// visibility timeout setting slider
|
|
1109 |
//
|
|
1110 |
//----------------------------------------------------
|
|
1111 |
//
|
|
1112 |
RESOURCE SLIDER r_setting_visibility_time_slider
|
|
1113 |
{
|
|
1114 |
layout = EAknSettingsItemSliderLayout;
|
|
1115 |
minvalue = 1;
|
|
1116 |
maxvalue = 60;
|
|
1117 |
step = 1;
|
|
1118 |
valuetype = EAknSliderValueBareFigure;
|
|
1119 |
singular_valuelabel = qtn_bt_slider_singular;
|
|
1120 |
|
|
1121 |
minlabel = qtn_bt_slider_min;
|
|
1122 |
maxlabel = qtn_bt_slider_max;
|
|
1123 |
valuelabel = qtn_bt_slider_plural;
|
|
1124 |
}
|
|
1125 |
|
|
1126 |
//----------------------------------------------------
|
|
1127 |
//
|
|
1128 |
// r_visibility_time_setting_page
|
|
1129 |
// visibility timeout setting page.
|
|
1130 |
//
|
|
1131 |
//----------------------------------------------------
|
|
1132 |
//
|
|
1133 |
RESOURCE AVKON_SETTING_PAGE r_visibility_time_setting_page
|
|
1134 |
{
|
|
1135 |
number = EAknSettingPageNoOrdinalDisplayed;
|
|
1136 |
label = qtn_bt_slider_visibility_time;
|
|
1137 |
type = EAknCtSlider;
|
|
1138 |
softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK;
|
|
1139 |
editor_resource_id = r_setting_visibility_time_slider;
|
|
1140 |
}
|
|
1141 |
|
|
1142 |
|
|
1143 |
//----------------------------------------------------
|
|
1144 |
// r_gs_btui_view_caption
|
|
1145 |
//
|
|
1146 |
// Btui view caption for GS plugin
|
|
1147 |
//----------------------------------------------------
|
|
1148 |
//
|
|
1149 |
RESOURCE TBUF r_gs_btui_view_caption
|
|
1150 |
{
|
|
1151 |
buf = qtn_set_folder_bluetooth;
|
|
1152 |
}
|
|
1153 |
|
|
1154 |
//----------------------------------------------------
|
|
1155 |
//
|
|
1156 |
// The main view of the BTUI as GS plugin
|
|
1157 |
//
|
|
1158 |
//----------------------------------------------------
|
|
1159 |
//
|
|
1160 |
RESOURCE AVKON_VIEW r_btui_main_view_gs_plugin
|
|
1161 |
{
|
|
1162 |
hotkeys = r_btui_hotkeys;
|
|
1163 |
menubar = r_btui_menubar_main_view;
|
|
1164 |
cba = r_btui_softkeys_options_back__change;
|
|
1165 |
}
|
|
1166 |
|
|
1167 |
RESOURCE CBA r_btui_softkeys_options_exit__change
|
|
1168 |
{
|
|
1169 |
buttons =
|
|
1170 |
{
|
|
1171 |
CBA_BUTTON
|
|
1172 |
{
|
|
1173 |
id = EAknSoftkeyOptions;
|
|
1174 |
txt = text_softkey_option;
|
|
1175 |
},
|
|
1176 |
CBA_BUTTON
|
|
1177 |
{
|
|
1178 |
id = EAknSoftkeyExit;
|
|
1179 |
txt = text_softkey_exit;
|
|
1180 |
},
|
|
1181 |
CBA_BUTTON
|
|
1182 |
{
|
|
1183 |
id = EBTUICmdMSK ;
|
|
1184 |
txt = qtn_msk_change;
|
|
1185 |
}
|
|
1186 |
|
|
1187 |
};
|
|
1188 |
}
|
|
1189 |
|
|
1190 |
//----------------------------------------------------
|
|
1191 |
// Audio connection confirmation query
|
|
1192 |
//----------------------------------------------------
|
|
1193 |
//
|
|
1194 |
RESOURCE DIALOG r_bt_connect_query
|
|
1195 |
{
|
|
1196 |
flags = EGeneralQueryFlags;
|
|
1197 |
buttons = R_AVKON_SOFTKEYS_YES_NO__YES;
|
|
1198 |
items =
|
|
1199 |
{
|
|
1200 |
DLG_LINE
|
|
1201 |
{
|
|
1202 |
type = EAknCtQuery;
|
|
1203 |
id = EGeneralQuery;
|
|
1204 |
control = AVKON_CONFIRMATION_QUERY
|
|
1205 |
{
|
|
1206 |
layout = EConfirmationLayout;
|
|
1207 |
animation = R_QGN_NOTE_QUERY_ANIM;
|
|
1208 |
};
|
|
1209 |
}
|
|
1210 |
};
|
|
1211 |
}
|
|
1212 |
|
|
1213 |
// === BLOCKED DEVICES VIEW ===================================================
|
|
1214 |
|
|
1215 |
//----------------------------------------------------
|
|
1216 |
//
|
|
1217 |
// This view shows all blocked Bluetooth devices.(for GS)
|
|
1218 |
//
|
|
1219 |
//----------------------------------------------------
|
|
1220 |
//
|
|
1221 |
RESOURCE AVKON_VIEW r_btui_block_devices_view_gs
|
|
1222 |
{
|
|
1223 |
hotkeys = r_btui_hotkeys;
|
|
1224 |
menubar = r_btui_menubar_block_devices_view;
|
|
1225 |
cba = r_btui_softkeys_options_back__unblock ;
|
|
1226 |
}
|
|
1227 |
|
|
1228 |
//----------------------------------------------------
|
|
1229 |
//
|
|
1230 |
// The menubar buttons for blocked devices view
|
|
1231 |
// MSK is dimmed when needed.
|
|
1232 |
//
|
|
1233 |
//----------------------------------------------------
|
|
1234 |
//
|
|
1235 |
|
|
1236 |
|
|
1237 |
RESOURCE CBA r_btui_softkeys_options_back__unblock
|
|
1238 |
{
|
|
1239 |
buttons =
|
|
1240 |
{
|
|
1241 |
CBA_BUTTON
|
|
1242 |
{
|
|
1243 |
id = EAknSoftkeyOptions;
|
|
1244 |
txt = text_softkey_option;
|
|
1245 |
},
|
|
1246 |
CBA_BUTTON
|
|
1247 |
{
|
|
1248 |
id = EAknSoftkeyBack;
|
|
1249 |
txt = text_softkey_back;
|
|
1250 |
},
|
|
1251 |
CBA_BUTTON
|
|
1252 |
{
|
|
1253 |
id = EBTUICmdUnblock ;
|
|
1254 |
txt = qtn_msk_delete ;
|
|
1255 |
}
|
|
1256 |
|
|
1257 |
};
|
|
1258 |
}
|
|
1259 |
|
|
1260 |
//----------------------------------------------------
|
|
1261 |
//
|
|
1262 |
// This view shows all blocked Bluetooth devices.(bt application)
|
|
1263 |
//
|
|
1264 |
//----------------------------------------------------
|
|
1265 |
//
|
|
1266 |
RESOURCE AVKON_VIEW r_btui_block_devices_view
|
|
1267 |
{
|
|
1268 |
hotkeys = r_btui_hotkeys;
|
|
1269 |
menubar = r_btui_menubar_block_devices_view;
|
|
1270 |
cba = r_btui_softkeys_options_exit__unblock ;
|
|
1271 |
}
|
|
1272 |
|
|
1273 |
//----------------------------------------------------
|
|
1274 |
//
|
|
1275 |
// The menubar buttons for blocked devices view
|
|
1276 |
// MSK is dimmed when needed.
|
|
1277 |
//
|
|
1278 |
//----------------------------------------------------
|
|
1279 |
//
|
|
1280 |
|
|
1281 |
|
|
1282 |
RESOURCE CBA r_btui_softkeys_options_exit__unblock
|
|
1283 |
{
|
|
1284 |
buttons =
|
|
1285 |
{
|
|
1286 |
CBA_BUTTON
|
|
1287 |
{
|
|
1288 |
id = EAknSoftkeyOptions;
|
|
1289 |
txt = text_softkey_option;
|
|
1290 |
},
|
|
1291 |
CBA_BUTTON
|
|
1292 |
{
|
|
1293 |
id = EAknSoftkeyExit;
|
|
1294 |
txt = text_softkey_exit;
|
|
1295 |
},
|
|
1296 |
CBA_BUTTON
|
|
1297 |
{
|
|
1298 |
id = EBTUICmdUnblock ;
|
|
1299 |
txt = qtn_msk_delete ;
|
|
1300 |
}
|
|
1301 |
|
|
1302 |
};
|
|
1303 |
}
|
|
1304 |
|
|
1305 |
//----------------------------------------------------
|
|
1306 |
//
|
|
1307 |
// The menubar for other blocked devices view
|
|
1308 |
//
|
|
1309 |
//----------------------------------------------------
|
|
1310 |
//
|
|
1311 |
RESOURCE MENU_BAR r_btui_menubar_block_devices_view
|
|
1312 |
{
|
|
1313 |
titles =
|
|
1314 |
{
|
|
1315 |
MENU_TITLE { menu_pane = r_btui_app_menu; txt = ""; },
|
|
1316 |
MENU_TITLE { menu_pane = r_btui_block_devices_view_menu; txt = ""; }
|
|
1317 |
};
|
|
1318 |
}
|
|
1319 |
|
|
1320 |
|
|
1321 |
//----------------------------------------------------
|
|
1322 |
//
|
|
1323 |
// The blocked devices view options
|
|
1324 |
//
|
|
1325 |
//----------------------------------------------------
|
|
1326 |
//
|
|
1327 |
RESOURCE MENU_PANE r_btui_block_devices_view_menu
|
|
1328 |
{
|
|
1329 |
items =
|
|
1330 |
{
|
|
1331 |
MENU_ITEM { command = EBTUICmdUnblock; txt = qtn_bt_delete; flags = EEikMenuItemSpecific;},
|
|
1332 |
MENU_ITEM { command = EBTUICmdUnblockAll; txt = qtn_bt_delete_all; }
|
|
1333 |
};
|
|
1334 |
}
|
|
1335 |
|
|
1336 |
//-----------------------------------------------
|
|
1337 |
//Title for blocked device view
|
|
1338 |
//------------------------------------------------
|
|
1339 |
//
|
|
1340 |
RESOURCE TBUF r_bt_title_blocked_dev { buf = qtn_bt_title_blocked_devices; }
|
|
1341 |
// empty listy
|
|
1342 |
RESOURCE TBUF r_bt_no_blocked_devices { buf = qtn_bt_no_blocked_devices; }
|
|
1343 |
// Information note "Disconnect %0U device and %1U device first"
|
|
1344 |
//----------------------------------------------------
|
|
1345 |
//
|
|
1346 |
RESOURCE TBUF r_bt_disconnect_first_stereo_prompt { buf = qtn_bt_disconnect_first_stereo; }
|
|
1347 |
|
|
1348 |
|
|
1349 |
RESOURCE TBUF r_bt_warn_erase_blocked
|
|
1350 |
{
|
|
1351 |
buf=qtn_bt_warn_erase_blocked;
|
|
1352 |
}
|
|
1353 |
RESOURCE TBUF r_bt_warn_erase_all_blocked
|
|
1354 |
{
|
|
1355 |
buf=qtn_bt_warn_erase_all_blocked;
|
|
1356 |
}
|
|
1357 |
|
|
1358 |
RESOURCE DIALOG r_bt_generic_query
|
|
1359 |
{
|
|
1360 |
flags = EGeneralQueryFlags;
|
|
1361 |
buttons = R_AVKON_SOFTKEYS_YES_NO__YES;
|
|
1362 |
items =
|
|
1363 |
{
|
|
1364 |
DLG_LINE
|
|
1365 |
{
|
|
1366 |
type = EAknCtQuery;
|
|
1367 |
id = EGeneralQuery;
|
|
1368 |
control = AVKON_CONFIRMATION_QUERY
|
|
1369 |
{
|
|
1370 |
layout = EConfirmationQueryLayout;
|
|
1371 |
animation = R_QGN_NOTE_QUERY_ANIM;
|
|
1372 |
};
|
|
1373 |
}
|
|
1374 |
};
|
|
1375 |
}
|
|
1376 |
|
|
1377 |
RESOURCE TBUF r_bt_option_block_device_header
|
|
1378 |
{
|
|
1379 |
buf=qtn_bt_block_device_header ;
|
|
1380 |
}
|
|
1381 |
RESOURCE TBUF r_bt_option_block_paired_device_help
|
|
1382 |
{
|
|
1383 |
buf= qtn_bt_block_paired_device "\n\n" qtn_bt_block_device_link;
|
|
1384 |
}
|
|
1385 |
|
|
1386 |
RESOURCE TBUF r_bt_option_block_paired_device_nohelp
|
|
1387 |
{
|
|
1388 |
buf=qtn_bt_block_paired_device;
|
|
1389 |
}
|
|
1390 |
|
|
1391 |
RESOURCE TBUF r_bt_option_block_connected_paired_devices_help
|
|
1392 |
{
|
|
1393 |
buf= qtn_bt_block_connected_paired_devices "\n\n" qtn_bt_block_device_link;
|
|
1394 |
}
|
|
1395 |
|
|
1396 |
RESOURCE TBUF r_bt_option_block_connected_paired_devices_nohelp
|
|
1397 |
{
|
|
1398 |
buf= qtn_bt_block_connected_paired_devices ;
|
|
1399 |
}
|
|
1400 |
RESOURCE TBUF r_bt_block_device_link
|
|
1401 |
{
|
|
1402 |
buf=qtn_bt_block_device_link;
|
|
1403 |
}
|
|
1404 |
|
|
1405 |
RESOURCE DIALOG r_bt_message_query
|
|
1406 |
{
|
|
1407 |
flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow;
|
|
1408 |
buttons = R_AVKON_SOFTKEYS_YES_NO__YES;
|
|
1409 |
items=
|
|
1410 |
{
|
|
1411 |
DLG_LINE
|
|
1412 |
{
|
|
1413 |
type = EAknCtPopupHeadingPane;
|
|
1414 |
id = EAknMessageQueryHeaderId;
|
|
1415 |
control = AVKON_HEADING
|
|
1416 |
{
|
|
1417 |
label = header_not_defined;
|
|
1418 |
};
|
|
1419 |
},
|
|
1420 |
DLG_LINE
|
|
1421 |
{
|
|
1422 |
type = EAknCtMessageQuery;
|
|
1423 |
id = EAknMessageQueryContentId;
|
|
1424 |
control = AVKON_MESSAGE_QUERY
|
|
1425 |
{
|
|
1426 |
};
|
|
1427 |
}
|
|
1428 |
};
|
|
1429 |
}
|
|
1430 |
|
|
1431 |
RESOURCE TBUF r_cp_detail_bt_off { buf= qtn_cp_detail_bt_off; }
|
|
1432 |
RESOURCE TBUF r_cp_detail_bt_on_shown { buf= qtn_cp_detail_bt_on_shown; }
|
|
1433 |
RESOURCE TBUF r_cp_detail_bt_on_hidden { buf= qtn_cp_detail_bt_on_hidden; }
|
|
1434 |
RESOURCE TBUF r_cp_detail_bt_conn_shown { buf= qtn_cp_detail_bt_conn_shown; }
|
|
1435 |
RESOURCE TBUF r_cp_detail_bt_conn_hidden { buf= qtn_cp_detail_bt_conn_hidden; }
|
|
1436 |
|
|
1437 |
RESOURCE TBUF r_bt_ssp_incorrect_passcode { buf = qtn_bt_simple_incorrect_passcode;}
|
|
1438 |
RESOURCE TBUF r_bt_ssp_passcode_retry { buf = qtn_bt_simple_passcode_retry; }
|
|
1439 |
|
|
1440 |
// End of File
|