|
1 /* |
|
2 * Copyright (c) 2007 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: Resource file for DiagUSBCableTestPlugin |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // RESOURCE IDENTIFIER |
|
21 NAME DGUC // 4 letter ID // this has to be unique for each plugin |
|
22 |
|
23 // INCLUDES |
|
24 #include <avkon.loc> |
|
25 #include <avkon.mbg> |
|
26 #include <avkon.rsg> |
|
27 #include <avkon.rh> |
|
28 #include <AvkonIcons.hrh> |
|
29 #include <bldvariant.hrh> |
|
30 #include <data_caging_paths_strings.hrh> |
|
31 #include <eikcore.rsg> |
|
32 #include <eikon.rsg> |
|
33 #include <uikon.rh> |
|
34 #include <eikon.rh> |
|
35 |
|
36 #include <diagplugincommon.loc> |
|
37 |
|
38 #include "diagusbcabletestplugin.hrh" |
|
39 #include <diagusbcabletestplugin.loc> |
|
40 |
|
41 // CONSTANTS |
|
42 #define BMPFILE_NAME "\\resource\\apps\\avkon2.mbm" |
|
43 |
|
44 |
|
45 // RESOURCE DEFINITIONS |
|
46 |
|
47 RESOURCE RSS_SIGNATURE |
|
48 { |
|
49 } |
|
50 |
|
51 RESOURCE TBUF |
|
52 { |
|
53 buf="DGUC"; |
|
54 } |
|
55 |
|
56 |
|
57 // --------------------------------------------------------------------------- |
|
58 // r_diag_usb_cable_test_heading_pane |
|
59 // |
|
60 // The plugin name in the header of the dialog that is |
|
61 // shown when starting test execution. |
|
62 // --------------------------------------------------------------------------- |
|
63 // |
|
64 RESOURCE TBUF r_diag_usb_cable_test_heading_pane |
|
65 { |
|
66 buf = qtn_diag_msg_title_usb_cable; |
|
67 } |
|
68 |
|
69 |
|
70 |
|
71 // --------------------------------------------------------------------------- |
|
72 // r_diag_usb_cable_test_popup_info_pane |
|
73 // --------------------------------------------------------------------------- |
|
74 // |
|
75 RESOURCE TBUF r_diag_usb_cable_test_popup_info_pane |
|
76 { |
|
77 buf = qtn_diag_conf_test_failed_usb_cable; |
|
78 } |
|
79 |
|
80 |
|
81 // --------------------------------------------------------------------------- |
|
82 // r_diag_usb_cable_test_title_pane |
|
83 // The title pane shown when USB cable test is running |
|
84 // --------------------------------------------------------------------------- |
|
85 // |
|
86 RESOURCE TBUF r_diag_usb_cable_test_title_pane |
|
87 { |
|
88 buf = qtn_diag_title_test_usb_cable; |
|
89 } |
|
90 |
|
91 // ADO & Platformization Changes |
|
92 //------------------------------------------------------------------------------ |
|
93 // r_cba_connect_and_press_ok_single_execution |
|
94 // |
|
95 // Command Button Array for query dialog |
|
96 // "Connect your USB cable. Press OK when ready." in case of single plugin execution |
|
97 //------------------------------------------------------------------------------ |
|
98 // |
|
99 |
|
100 RESOURCE CBA r_diag_usb_softkeys_cancel__ok |
|
101 { |
|
102 buttons = |
|
103 { |
|
104 CBA_BUTTON { id = EUsbTestConnectUSBOK; |
|
105 txt = text_softkey_ok; } , |
|
106 |
|
107 CBA_BUTTON { id = EUsbTestConnectUSBCancel; |
|
108 txt = text_softkey_cancel; } |
|
109 }; |
|
110 } |
|
111 |
|
112 |
|
113 // ADO & Platformization Changes |
|
114 //------------------------------------------------------------------------------ |
|
115 // r_cba_connect_and_press_ok_single_execution |
|
116 // |
|
117 // Command Button Array for query dialog |
|
118 // "Connect your USB cable. Press OK when ready." in case of single plugin execution |
|
119 //------------------------------------------------------------------------------ |
|
120 // |
|
121 |
|
122 RESOURCE CBA r_diag_usb_softkeys_skip__ok |
|
123 { |
|
124 buttons = |
|
125 { |
|
126 CBA_BUTTON { id = EUsbTestConnectUSBOK; |
|
127 txt = text_softkey_ok; } , |
|
128 |
|
129 CBA_BUTTON { id = EUsbTestConnectUSBSkip; |
|
130 txt = qtn_diag_softk_skip; } |
|
131 }; |
|
132 } |
|
133 |
|
134 |
|
135 |
|
136 |
|
137 |
|
138 // ADO & Platformization Changes |
|
139 // --------------------------------------------------------------------------- |
|
140 // r_messagequery_title |
|
141 // The dialog shown when the plugin begins execution. |
|
142 // --------------------------------------------------------------------------- |
|
143 // |
|
144 RESOURCE DIALOG r_messagequery_title |
|
145 { |
|
146 flags = EGeneralQueryFlags | |
|
147 EEikDialogFlagNoBorder | |
|
148 EEikDialogFlagNoTitleBar; |
|
149 |
|
150 //buttons = r_diag_usb_softkeys_cancel__ok; |
|
151 buttons = r_diag_usb_softkeys_skip__ok; // ADO & Platformization Changes |
|
152 |
|
153 items= |
|
154 { |
|
155 DLG_LINE |
|
156 { |
|
157 type = EAknCtPopupHeadingPane; |
|
158 id = EAknMessageQueryHeaderId; |
|
159 control = AVKON_HEADING |
|
160 { |
|
161 label = qtn_diag_msg_title_usb_cable; |
|
162 headinglayout = R_AVKON_WML_SIGN_QUERY_HEADING_PANE; |
|
163 }; |
|
164 }, |
|
165 DLG_LINE |
|
166 { |
|
167 type = EAknCtMessageQuery; |
|
168 id = EAknMessageQueryContentId; |
|
169 control = AVKON_MESSAGE_QUERY |
|
170 { |
|
171 message = qtn_diag_msg_info_usb_cable; |
|
172 }; |
|
173 } |
|
174 }; |
|
175 } |
|
176 |
|
177 |
|
178 |
|
179 // --------------------------------------------------------------------------- |
|
180 // r_diag_usb_cable_test_single_graphic |
|
181 // Plugin name in the suite view listbox. |
|
182 // --------------------------------------------------------------------------- |
|
183 // |
|
184 RESOURCE TBUF r_diag_usb_cable_test_single_graphic |
|
185 { |
|
186 buf = qtn_diag_lst_test_usb_cable; |
|
187 } |
|
188 |
|
189 //---------------------------------------------------- |
|
190 // r_diag_usb_cable_test_single |
|
191 // |
|
192 // Plugin's name in results view |
|
193 //---------------------------------------------------- |
|
194 // |
|
195 RESOURCE TBUF r_diag_usb_cable_test_single |
|
196 { |
|
197 buf = qtn_diag_lst_usb_cable; |
|
198 } |
|
199 |
|
200 |
|
201 //------------------------------------------------------------------------------ |
|
202 // r_cba_connect_and_press_ok |
|
203 // |
|
204 // Command Button Array for query dialog "Connect your USB cable. Press OK when ready." |
|
205 //------------------------------------------------------------------------------ |
|
206 // |
|
207 RESOURCE CBA r_cba_connect_and_press_ok |
|
208 { |
|
209 buttons = |
|
210 { |
|
211 CBA_BUTTON { id = EUsbTestConnectUSBSkip; |
|
212 txt = qtn_diag_softk_skip; }, |
|
213 |
|
214 CBA_BUTTON { id = EUsbTestConnectUSBCancel; |
|
215 txt = text_softkey_cancel; } , |
|
216 |
|
217 CBA_BUTTON { id = EAknSoftkeyOk; |
|
218 txt = text_softkey_ok; } |
|
219 }; |
|
220 } |
|
221 //------------------------------------------------------------------------------ |
|
222 // r_cba_connect_and_press_ok_single_execution |
|
223 // |
|
224 // Command Button Array for query dialog |
|
225 // "Connect your USB cable. Press OK when ready." in case of single plugin execution |
|
226 //------------------------------------------------------------------------------ |
|
227 // |
|
228 RESOURCE CBA r_cba_single_execution |
|
229 { |
|
230 buttons = |
|
231 { |
|
232 CBA_BUTTON { id = EAknSoftkeyOk; |
|
233 txt = text_softkey_ok; } , |
|
234 |
|
235 CBA_BUTTON { id = EUsbTestConnectUSBCancel; |
|
236 txt = text_softkey_cancel; } |
|
237 }; |
|
238 } |
|
239 |
|
240 |
|
241 //------------------------------------------------------------------------------ |
|
242 // r_cba_connect_and_press_ok_single_execution |
|
243 // |
|
244 // Command Button Array for query dialog |
|
245 // "Connect your USB cable. Press OK when ready." in case of single plugin execution |
|
246 //------------------------------------------------------------------------------ |
|
247 // |
|
248 RESOURCE CBA r_cba_group_execution |
|
249 { |
|
250 buttons = |
|
251 { |
|
252 CBA_BUTTON { id = EAknSoftkeyOk; |
|
253 txt = text_softkey_ok; } , |
|
254 |
|
255 CBA_BUTTON { id = EUsbTestConnectUSBSkip; |
|
256 txt = qtn_diag_softk_skip; } |
|
257 }; |
|
258 } |
|
259 |
|
260 |
|
261 // ----------------------------------------------------------------------------- |
|
262 // |
|
263 // r_diag_usb_cable_test_connect_and_press_ok |
|
264 // query dialog for "Connect your USB cable. Press OK when ready." |
|
265 // |
|
266 // ----------------------------------------------------------------------------- |
|
267 // |
|
268 RESOURCE DIALOG r_diag_usb_cable_test_connect_and_press_ok |
|
269 { |
|
270 flags = EGeneralQueryFlags; |
|
271 buttons = r_cba_single_execution; |
|
272 items = |
|
273 { |
|
274 DLG_LINE |
|
275 { |
|
276 type = EAknCtQuery; |
|
277 id = EGeneralQuery; |
|
278 control = AVKON_CONFIRMATION_QUERY |
|
279 { |
|
280 layout = EConfirmationQueryLayout; |
|
281 label = qtn_diag_conf_usb_connect; |
|
282 bmpfile = BMPFILE_NAME; |
|
283 //bmpid = EMbmAvkonQgn_prop_usb; // set correct bmp id when available |
|
284 //bmpmask = EMbmAvkonQgn_prop_usb_mask; // set correct bmp id when available |
|
285 bmpid = EMbmAvkonQgn_note_info; |
|
286 bmpmask = EMbmAvkonQgn_note_info_mask; |
|
287 }; |
|
288 } |
|
289 }; |
|
290 } |
|
291 |
|
292 |
|
293 |
|
294 //------------------------------------------------------------------------------ |
|
295 // r_cba_usb_cable_test_no_cable_detected |
|
296 // |
|
297 // Command Button Array for query dialog |
|
298 // "No cable detected. Press OK to continue tests or press Back to retry this test." |
|
299 //------------------------------------------------------------------------------ |
|
300 // |
|
301 RESOURCE CBA r_cba_usb_cable_test_no_cable_detected |
|
302 { |
|
303 buttons = |
|
304 { |
|
305 CBA_BUTTON { id = EAknSoftkeyOk; |
|
306 txt = text_softkey_ok; }, |
|
307 |
|
308 CBA_BUTTON { id = EUsbTestConnectUSBBack; |
|
309 txt = text_softkey_back; } , |
|
310 |
|
311 CBA_BUTTON { id = EAknSoftkeyOk; |
|
312 txt = text_softkey_ok; } |
|
313 }; |
|
314 } |
|
315 |
|
316 //------------------------------------------------------------------------------ |
|
317 // r_diag_cable_test_cba_ok_dot_empty |
|
318 // |
|
319 // Command Button Array for query dialog "Please remove all cable." |
|
320 //------------------------------------------------------------------------------ |
|
321 // |
|
322 RESOURCE CBA r_diag_cable_test_cba_ok_dot_empty |
|
323 { |
|
324 buttons = |
|
325 { |
|
326 CBA_BUTTON { id = EAknSoftkeyOk; |
|
327 txt = text_softkey_ok; }, |
|
328 CBA_BUTTON { }, |
|
329 |
|
330 CBA_BUTTON { id = EAknSoftkeyOk; } |
|
331 }; |
|
332 } |
|
333 |
|
334 |
|
335 // --------------------------------------------------------------------------- |
|
336 // |
|
337 // r_diag_usb_cable_test_no_cable_detected |
|
338 // query dialog for "USB data cable not detected. Press OK to continue or |
|
339 // press Back to retry this test." |
|
340 // |
|
341 // --------------------------------------------------------------------------- |
|
342 // |
|
343 RESOURCE DIALOG r_diag_usb_cable_test_no_cable_detected |
|
344 { |
|
345 flags = EGeneralQueryFlags; |
|
346 buttons = R_AVKON_SOFTKEYS_YES_NO__YES; |
|
347 items = |
|
348 { |
|
349 DLG_LINE |
|
350 { |
|
351 type = EAknCtPopupHeadingPane; |
|
352 id = EAknMessageQueryHeaderId; |
|
353 control = AVKON_HEADING |
|
354 { |
|
355 label = qtn_diag_err_title_no_usb; |
|
356 headinglayout = 0; |
|
357 }; |
|
358 }, |
|
359 |
|
360 DLG_LINE |
|
361 { |
|
362 type = EAknCtMessageQuery; |
|
363 id = EAknMessageQueryContentId; |
|
364 control = AVKON_MESSAGE_QUERY |
|
365 { |
|
366 message = qtn_diag_err_no_usb; |
|
367 }; |
|
368 } |
|
369 }; |
|
370 } |
|
371 |
|
372 //------------------------------------------------------------------------------ |
|
373 // |
|
374 // r_diag_cable_test_remove_all_cables |
|
375 // query dialog for "Please remove all cables" |
|
376 // |
|
377 //------------------------------------------------------------------------------ |
|
378 // |
|
379 RESOURCE DIALOG r_diag_cable_test_remove_all_cables |
|
380 { |
|
381 flags = EGeneralQueryFlags; |
|
382 buttons = r_diag_cable_test_cba_ok_dot_empty; |
|
383 |
|
384 items = |
|
385 { |
|
386 DLG_LINE |
|
387 { |
|
388 type = EAknCtQuery; |
|
389 id = EGeneralQuery; |
|
390 control = AVKON_CONFIRMATION_QUERY |
|
391 { |
|
392 layout = EConfirmationQueryLayout; |
|
393 label = qtn_diag_msg_remove_all_cables; |
|
394 bmpfile = BMPFILE_NAME; |
|
395 bmpid = EMbmAvkonQgn_note_info; |
|
396 bmpmask = EMbmAvkonQgn_note_info_mask; |
|
397 }; |
|
398 } |
|
399 }; |
|
400 } |
|
401 |
|
402 //End of File |