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