|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDES |
|
20 #include "LogsConstants.hrh" |
|
21 #include <AiwCommon.rh> |
|
22 #include <AiwGenericParam.hrh> |
|
23 #include <AiwPoCParameters.hrh> |
|
24 #include <aknsconstants.hrh> |
|
25 |
|
26 |
|
27 RESOURCE MENU_PANE r_common_callui_submenu |
|
28 { |
|
29 items = |
|
30 { |
|
31 MENU_ITEM |
|
32 { |
|
33 command = KAiwCmdCall; //Same ID as in interest. |
|
34 txt = ""; //AIW plugin will override the text set here |
|
35 cascade = AIW_CASCADE_ID; //as a fix to ASAA-6VYJ2H always show a submenu |
|
36 flags = EEikMenuItemSpecificListQuery; |
|
37 } |
|
38 }; |
|
39 } |
|
40 |
|
41 |
|
42 RESOURCE MENU_PANE r_common_poc_submenu |
|
43 { |
|
44 items = |
|
45 { |
|
46 MENU_ITEM |
|
47 { |
|
48 command = KAiwCmdPoC; //Same ID as in interest. |
|
49 txt = "Ptt aiw"; //AIW plugin will override the text set here. |
|
50 cascade = AIW_CASCADE_ID; |
|
51 flags = EEikMenuItemSpecific; |
|
52 } |
|
53 }; |
|
54 } |
|
55 |
|
56 |
|
57 RESOURCE MENU_PANE r_common_savetopbk_submenu |
|
58 { |
|
59 items= |
|
60 { |
|
61 //NEW impl |
|
62 MENU_ITEM //Add to contacts |
|
63 { |
|
64 command = KAiwCmdAssign; |
|
65 txt = "Pbk2 aiw"; //AIW plugin will override the text set here. |
|
66 cascade = AIW_INTELLIGENT_CASCADE_ID; |
|
67 flags = EEikMenuItemSpecificListQuery; |
|
68 } |
|
69 }; |
|
70 } |
|
71 |
|
72 |
|
73 RESOURCE MENU_PANE r_common_send_message_submenu |
|
74 { |
|
75 items= |
|
76 { |
|
77 MENU_ITEM |
|
78 { |
|
79 command = ELogsCmdMenuSendUi; |
|
80 txt = "<placeholder for SendUI>"; |
|
81 flags = EEikMenuItemSpecific; |
|
82 } |
|
83 }; |
|
84 } |
|
85 |
|
86 RESOURCE MENU_PANE r_common_menu_open_phonebook |
|
87 { |
|
88 items= |
|
89 { |
|
90 MENU_ITEM //Open phonebook |
|
91 { |
|
92 command = ELogsCmdStartPhonebook; |
|
93 txt = qtn_logs_opt_open_phonebook; |
|
94 } |
|
95 }; |
|
96 } |
|
97 |
|
98 |
|
99 RESOURCE MENU_PANE r_common_event_menu_edit_calls |
|
100 { |
|
101 items = |
|
102 { |
|
103 MENU_ITEM //Edit and copy phone number |
|
104 { |
|
105 cascade=r_common_edit_number_submenu; |
|
106 command=ELogsCmdMenuNumberSubMenu; |
|
107 txt=qtn_stm_om_use_no; |
|
108 flags = EEikMenuItemSpecificListQuery; |
|
109 }, |
|
110 MENU_ITEM //Edit and copy poc address |
|
111 { |
|
112 cascade=r_common_edit_poc_address_submenu; |
|
113 command=ELogsCmdMenuPocAddressSubMenu; |
|
114 txt=qtn_poc_use_address; |
|
115 flags = EEikMenuItemSpecificListQuery; |
|
116 }, |
|
117 MENU_ITEM //Edit and copy voip address |
|
118 { |
|
119 cascade=r_common_edit_voip_address_submenu; |
|
120 command=ELogsCmdMenuVoipAddressSubMenu; |
|
121 txt=qtn_voip_use_address; |
|
122 flags = EEikMenuItemSpecificListQuery; |
|
123 } |
|
124 }; |
|
125 } |
|
126 |
|
127 |
|
128 RESOURCE MENU_PANE r_common_event_menu_delete_events |
|
129 { |
|
130 items = |
|
131 { |
|
132 |
|
133 MENU_ITEM //Delete |
|
134 { |
|
135 command = ELogsCmdMenuDelete; |
|
136 txt = qtn_stm_om_delete; |
|
137 flags = EEikMenuItemSpecific; |
|
138 }, |
|
139 MENU_ITEM //Clear list |
|
140 { |
|
141 command = ELogsCmdMenuDeleteAll; |
|
142 txt = qtn_stm_om_delete_all; |
|
143 } |
|
144 }; |
|
145 } |
|
146 |
|
147 |
|
148 RESOURCE MENU_PANE r_common_edit_number_submenu //Edit and copy phone number |
|
149 { |
|
150 items= |
|
151 { |
|
152 MENU_ITEM { command=ELogsCmdMenuPrependNumber; txt=qtn_logs_opt_use_prepend; }, |
|
153 MENU_ITEM { command=ELogsCmdMenuCopyNumber; txt=qtn_logs_opt_use_copy; } |
|
154 }; |
|
155 } |
|
156 |
|
157 RESOURCE MENU_PANE r_common_edit_poc_address_submenu //Edit and copy poc address |
|
158 { |
|
159 items= |
|
160 { |
|
161 MENU_ITEM { command=ELogsCmdMenuPrependAddress; txt=qtn_logs_opt_use_prepend; }, |
|
162 MENU_ITEM { command=ELogsCmdMenuCopyAddress; txt=qtn_logs_opt_use_copy; } |
|
163 }; |
|
164 } |
|
165 |
|
166 RESOURCE MENU_PANE r_common_edit_voip_address_submenu //Edit and copy voip address |
|
167 { |
|
168 items= |
|
169 { |
|
170 MENU_ITEM { command=ELogsCmdMenuPrependAddress; txt=qtn_logs_opt_use_prepend; }, |
|
171 MENU_ITEM { command=ELogsCmdMenuCopyAddress; txt=qtn_logs_opt_use_copy; } |
|
172 }; |
|
173 } |
|
174 |
|
175 RESOURCE MENU_PANE r_common_show_my_address_menu //Select key popup menu |
|
176 { |
|
177 items = |
|
178 { |
|
179 MENU_ITEM |
|
180 { |
|
181 command = ELogsCmdShowMyAddress; //Show user's voip address |
|
182 txt = qtn_voip_show_my_address; |
|
183 } |
|
184 }; |
|
185 } |
|
186 |
|
187 |
|
188 /** |
|
189 * For CallUI AIW (voice, video, voip calls) |
|
190 */ |
|
191 RESOURCE AIW_INTEREST r_logs_callui_interest |
|
192 { |
|
193 items= |
|
194 { |
|
195 // This application is interested in calling from menu. |
|
196 AIW_CRITERIA_ITEM |
|
197 { |
|
198 id = KAiwCmdCall; //serviceCmd used here also as ID |
|
199 //id = KLogsCallUiAiwId; //Menu item's command id |
|
200 serviceCmd = KAiwCmdCall; //AiwCommon.hrh |
|
201 serviceClass = KAiwClassMenu; |
|
202 contentType = "*"; |
|
203 defaultProvider = 0x101F868E; |
|
204 maxProviders = 1; |
|
205 } |
|
206 }; |
|
207 } |
|
208 |
|
209 |
|
210 /** |
|
211 * For PoC AIW (PoC calls) |
|
212 */ |
|
213 RESOURCE AIW_INTEREST r_logs_poc_interest |
|
214 { |
|
215 items= |
|
216 { |
|
217 AIW_CRITERIA_ITEM |
|
218 { |
|
219 id = KAiwCmdPoC; //serviceCmd used here also as ID |
|
220 //id = KLogsPoCUiAiwId; //Menu item's command id (used for binding the criteria item to the placeholder) |
|
221 serviceCmd = KAiwCmdPoC; //AIW service command ID for this criteria (AiwCommon.hrh) |
|
222 contentType = "*"; |
|
223 serviceClass = KAiwClassMenu; |
|
224 defaultProvider = KS60PoCAiwProviderImplUid; //AiwPoCParameters.hrh |
|
225 maxProviders = 1; |
|
226 } |
|
227 }; |
|
228 } |
|
229 |
|
230 |
|
231 /** |
|
232 * For Save-to-phonebook AIW |
|
233 */ |
|
234 RESOURCE AIW_INTEREST r_logs_savetopbk_interest |
|
235 { |
|
236 items= |
|
237 { |
|
238 AIW_CRITERIA_ITEM |
|
239 { |
|
240 id = KAiwCmdAssign; //serviceCmd used here also as ID |
|
241 serviceCmd = KAiwCmdAssign; |
|
242 contentType = EGenericParamContactItemStr; |
|
243 serviceClass = KAiwClassMenu; |
|
244 maxProviders = 1; |
|
245 } |
|
246 }; |
|
247 } |
|
248 |
|
249 |
|
250 /** |
|
251 * For CBA |
|
252 */ |
|
253 RESOURCE CBA r_common_options_back_context |
|
254 { |
|
255 buttons = |
|
256 { |
|
257 CBA_BUTTON {id=EAknSoftkeyOptions; txt = text_softkey_option;}, |
|
258 CBA_BUTTON {id=EAknSoftkeyBack; txt = text_softkey_back; }, |
|
259 CBA_BUTTON {id=EAknSoftkeyContextOptions; txt = text_softkey_option;} |
|
260 }; |
|
261 } |
|
262 |
|
263 RESOURCE CBA r_common_options_back_open |
|
264 { |
|
265 buttons = |
|
266 { |
|
267 CBA_BUTTON {id=EAknSoftkeyOptions; txt = text_softkey_option;}, |
|
268 CBA_BUTTON {id=EAknSoftkeyBack; txt = text_softkey_back; }, |
|
269 CBA_BUTTON {id=ELogsCmdMenuOpen; txt = qtn_msk_open;} |
|
270 }; |
|
271 } |
|
272 |
|
273 RESOURCE CBA r_common_options_exit_open |
|
274 { |
|
275 buttons = |
|
276 { |
|
277 CBA_BUTTON {id=EAknSoftkeyOptions; txt = text_softkey_option;}, |
|
278 CBA_BUTTON {id=EAknSoftkeyExit; txt = text_softkey_exit; }, |
|
279 CBA_BUTTON {id=ELogsCmdMenuOpen; txt = qtn_msk_open;} //R_QTN_MSK_OPEN;} |
|
280 }; |
|
281 } |
|
282 |
|
283 //For Logs event list view |
|
284 RESOURCE CBA r_common_options_exit_view |
|
285 { |
|
286 buttons = |
|
287 { |
|
288 CBA_BUTTON {id=EAknSoftkeyOptions; txt = text_softkey_option;}, |
|
289 CBA_BUTTON {id=EAknSoftkeyExit; txt = text_softkey_exit; }, |
|
290 CBA_BUTTON {id=ELogsCmdMenuDetails; txt = qtn_msk_view;} //qtn_logs_cmd_view ;} |
|
291 }; |
|
292 } |
|
293 |
|
294 //For Logs settings view |
|
295 RESOURCE CBA r_common_options_back_change |
|
296 { |
|
297 buttons = |
|
298 { |
|
299 CBA_BUTTON {id=EAknSoftkeyOptions; txt = text_softkey_option;}, |
|
300 CBA_BUTTON {id=EAknSoftkeyBack; txt = text_softkey_back; }, |
|
301 CBA_BUTTON {id=ELogsCmdChange; txt = qtn_msk_change;} |
|
302 }; |
|
303 } |
|
304 |
|
305 // Common toolbar resource |
|
306 RESOURCE AVKON_TOOLBAR r_common_toolbar |
|
307 { |
|
308 flags = KAknToolbarWithoutCba|KAknToolbarFixed; |
|
309 items = |
|
310 { |
|
311 TBAR_CTRL |
|
312 { |
|
313 type = EAknCtButton; |
|
314 id = ELogsCmdSendKeyCall; |
|
315 |
|
316 control = AVKON_BUTTON |
|
317 { |
|
318 flags = KAknButtonSizeFitText; //| KAknButtonReportOnLongPress; |
|
319 states = |
|
320 { |
|
321 AVKON_BUTTON_STATE |
|
322 { |
|
323 //txt = "Voice"; //Icon should always be visible instead of this |
|
324 helptxt = qtn_logs_tb_call; |
|
325 bmpfile = "z:\\Resource\\apps\\logs.mif"; |
|
326 bmpid = EMbmLogsQgn_indi_tb_call; |
|
327 bmpmask = EMbmLogsQgn_indi_tb_call_mask; |
|
328 extension = r_toolbar_call_button_state_extension; |
|
329 } |
|
330 }; |
|
331 }; |
|
332 }, |
|
333 TBAR_CTRL |
|
334 { |
|
335 type = EAknCtButton; |
|
336 id = ELogsCmdToolBarSendUi; |
|
337 control = AVKON_BUTTON |
|
338 { |
|
339 flags = KAknButtonSizeFitText; |
|
340 states = |
|
341 { |
|
342 AVKON_BUTTON_STATE |
|
343 { |
|
344 //txt = "Send"; //Icon should always be visible instead of this |
|
345 helptxt = qtn_logs_tb_msg; |
|
346 bmpfile = "z:\\Resource\\apps\\logs.mif"; |
|
347 bmpid = EMbmLogsQgn_indi_tb_mce; |
|
348 bmpmask = EMbmLogsQgn_indi_tb_mce_mask; |
|
349 extension = r_toolbar_write_button_state_extension; |
|
350 } |
|
351 }; |
|
352 }; |
|
353 }, |
|
354 TBAR_CTRL |
|
355 { |
|
356 type = EAknCtButton; |
|
357 id = ELogsCmdStartPhonebook; |
|
358 control = AVKON_BUTTON |
|
359 { |
|
360 flags = KAknButtonSizeFitText; |
|
361 states = |
|
362 { |
|
363 AVKON_BUTTON_STATE |
|
364 { |
|
365 // txt = "Pbk"; //Icon should always be visible instead of this |
|
366 helptxt = qtn_logs_tb_pb; |
|
367 bmpfile = "z:\\Resource\\apps\\logs.mif"; |
|
368 bmpid = EMbmLogsQgn_indi_tb_pb; |
|
369 bmpmask = EMbmLogsQgn_indi_tb_pb_mask; |
|
370 extension = r_toolbar_pbk_button_state_extension; |
|
371 } |
|
372 }; |
|
373 }; |
|
374 } |
|
375 }; |
|
376 } |
|
377 |
|
378 RESOURCE AVKON_BUTTON_STATE_EXTENSION r_toolbar_call_button_state_extension |
|
379 { |
|
380 bmbSkinIdMajor= EAknsMajorGeneric; |
|
381 bmbSkinIdMinor= EAknsMinorGenericQgnIndiTbCall; |
|
382 } |
|
383 |
|
384 RESOURCE AVKON_BUTTON_STATE_EXTENSION r_toolbar_write_button_state_extension |
|
385 { |
|
386 bmbSkinIdMajor= EAknsMajorGeneric; |
|
387 bmbSkinIdMinor= EAknsMinorGenericQgnIndiTbMce; |
|
388 } |
|
389 |
|
390 RESOURCE AVKON_BUTTON_STATE_EXTENSION r_toolbar_pbk_button_state_extension |
|
391 { |
|
392 bmbSkinIdMajor= EAknsMajorGeneric; |
|
393 bmbSkinIdMinor= EAknsMinorGenericQgnIndiTbPb; |
|
394 } |
|
395 |
|
396 /** |
|
397 * Common Information note with ok-button |
|
398 */ |
|
399 RESOURCE DIALOG r_my_address_query |
|
400 { |
|
401 flags = EAknInformationNoteFlags; |
|
402 buttons = R_AVKON_SOFTKEYS_OK_EMPTY; |
|
403 items= |
|
404 { |
|
405 DLG_LINE |
|
406 { |
|
407 type = EAknCtNote; |
|
408 id = EGeneralNote; |
|
409 control= AVKON_NOTE |
|
410 { |
|
411 layout = ETextualNotificationLayout; |
|
412 singular_label = ""; |
|
413 }; |
|
414 } |
|
415 }; |
|
416 } |
|
417 |
|
418 |
|
419 |
|
420 |
|
421 // End of File |