author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 14 Sep 2010 20:54:53 +0300 | |
branch | RCL_3 |
changeset 68 | 9da50d567e3c |
parent 63 | f4a778e096c2 |
child 85 | 38bb213f60ba |
permissions | -rw-r--r-- |
63 | 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 |
|
68
9da50d567e3c
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
35 |
cascade = AIW_INTELLIGENT_CASCADE_ID; //No submenu if only one item in it |
9da50d567e3c
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
36 |
flags = EEikMenuItemSpecific; // Click-To-Call EEikMenuItemSpecificListQuery; |
63 | 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 |
flags = EEikMenuItemSpecific; |
|
184 |
} |
|
185 |
}; |
|
186 |
} |
|
187 |
||
188 |
||
189 |
/** |
|
190 |
* For CallUI AIW (voice, video, voip calls) |
|
191 |
*/ |
|
192 |
RESOURCE AIW_INTEREST r_logs_callui_interest |
|
193 |
{ |
|
194 |
items= |
|
195 |
{ |
|
196 |
// This application is interested in calling from menu. |
|
197 |
AIW_CRITERIA_ITEM |
|
198 |
{ |
|
199 |
id = KAiwCmdCall; //serviceCmd used here also as ID |
|
200 |
//id = KLogsCallUiAiwId; //Menu item's command id |
|
201 |
serviceCmd = KAiwCmdCall; //AiwCommon.hrh |
|
202 |
serviceClass = KAiwClassMenu; |
|
203 |
contentType = "*"; |
|
204 |
defaultProvider = 0x101F868E; |
|
205 |
maxProviders = 1; |
|
206 |
} |
|
207 |
}; |
|
208 |
} |
|
209 |
||
210 |
||
211 |
/** |
|
212 |
* For PoC AIW (PoC calls) |
|
213 |
*/ |
|
214 |
RESOURCE AIW_INTEREST r_logs_poc_interest |
|
215 |
{ |
|
216 |
items= |
|
217 |
{ |
|
218 |
AIW_CRITERIA_ITEM |
|
219 |
{ |
|
220 |
id = KAiwCmdPoC; //serviceCmd used here also as ID |
|
221 |
//id = KLogsPoCUiAiwId; //Menu item's command id (used for binding the criteria item to the placeholder) |
|
222 |
serviceCmd = KAiwCmdPoC; //AIW service command ID for this criteria (AiwCommon.hrh) |
|
223 |
contentType = "*"; |
|
224 |
serviceClass = KAiwClassMenu; |
|
225 |
defaultProvider = KS60PoCAiwProviderImplUid; //AiwPoCParameters.hrh |
|
226 |
maxProviders = 1; |
|
227 |
} |
|
228 |
}; |
|
229 |
} |
|
230 |
||
231 |
||
232 |
/** |
|
233 |
* For Save-to-phonebook AIW |
|
234 |
*/ |
|
235 |
RESOURCE AIW_INTEREST r_logs_savetopbk_interest |
|
236 |
{ |
|
237 |
items= |
|
238 |
{ |
|
239 |
AIW_CRITERIA_ITEM |
|
240 |
{ |
|
241 |
id = KAiwCmdAssign; //serviceCmd used here also as ID |
|
242 |
serviceCmd = KAiwCmdAssign; |
|
243 |
contentType = EGenericParamContactItemStr; |
|
244 |
serviceClass = KAiwClassMenu; |
|
245 |
maxProviders = 1; |
|
246 |
} |
|
247 |
}; |
|
248 |
} |
|
249 |
||
250 |
||
251 |
/** |
|
252 |
* For CBA |
|
253 |
*/ |
|
254 |
RESOURCE CBA r_common_options_back_context |
|
255 |
{ |
|
256 |
buttons = |
|
257 |
{ |
|
258 |
CBA_BUTTON {id=EAknSoftkeyOptions; txt = text_softkey_option;}, |
|
259 |
CBA_BUTTON {id=EAknSoftkeyBack; txt = text_softkey_back; }, |
|
260 |
CBA_BUTTON {id=EAknSoftkeyContextOptions; txt = text_softkey_option;} |
|
261 |
}; |
|
262 |
} |
|
263 |
||
264 |
RESOURCE CBA r_common_options_back_open |
|
265 |
{ |
|
266 |
buttons = |
|
267 |
{ |
|
268 |
CBA_BUTTON {id=EAknSoftkeyOptions; txt = text_softkey_option;}, |
|
269 |
CBA_BUTTON {id=EAknSoftkeyBack; txt = text_softkey_back; }, |
|
270 |
CBA_BUTTON {id=ELogsCmdMenuOpen; txt = qtn_msk_open;} |
|
271 |
}; |
|
272 |
} |
|
273 |
||
274 |
RESOURCE CBA r_common_options_exit_open |
|
275 |
{ |
|
276 |
buttons = |
|
277 |
{ |
|
278 |
CBA_BUTTON {id=EAknSoftkeyOptions; txt = text_softkey_option;}, |
|
279 |
CBA_BUTTON {id=EAknSoftkeyExit; txt = text_softkey_exit; }, |
|
280 |
CBA_BUTTON {id=ELogsCmdMenuOpen; txt = qtn_msk_open;} //R_QTN_MSK_OPEN;} |
|
281 |
}; |
|
282 |
} |
|
283 |
||
284 |
//For Logs event list view |
|
285 |
RESOURCE CBA r_common_options_exit_view |
|
286 |
{ |
|
287 |
buttons = |
|
288 |
{ |
|
289 |
CBA_BUTTON {id=EAknSoftkeyOptions; txt = text_softkey_option;}, |
|
290 |
CBA_BUTTON {id=EAknSoftkeyExit; txt = text_softkey_exit; }, |
|
291 |
CBA_BUTTON {id=ELogsCmdMenuDetails; txt = qtn_msk_view;} //qtn_logs_cmd_view ;} |
|
292 |
}; |
|
293 |
} |
|
294 |
||
295 |
//For Logs settings view |
|
296 |
RESOURCE CBA r_common_options_back_change |
|
297 |
{ |
|
298 |
buttons = |
|
299 |
{ |
|
300 |
CBA_BUTTON {id=EAknSoftkeyOptions; txt = text_softkey_option;}, |
|
301 |
CBA_BUTTON {id=EAknSoftkeyBack; txt = text_softkey_back; }, |
|
302 |
CBA_BUTTON {id=ELogsCmdChange; txt = qtn_msk_change;} |
|
303 |
}; |
|
304 |
} |
|
305 |
||
306 |
// Common toolbar resource |
|
307 |
RESOURCE AVKON_TOOLBAR r_common_toolbar |
|
308 |
{ |
|
309 |
flags = KAknToolbarWithoutCba|KAknToolbarFixed; |
|
310 |
items = |
|
311 |
{ |
|
312 |
TBAR_CTRL |
|
313 |
{ |
|
314 |
type = EAknCtButton; |
|
315 |
id = ELogsCmdSendKeyCall; |
|
316 |
||
317 |
control = AVKON_BUTTON |
|
318 |
{ |
|
319 |
flags = KAknButtonSizeFitText; //| KAknButtonReportOnLongPress; |
|
320 |
states = |
|
321 |
{ |
|
322 |
AVKON_BUTTON_STATE |
|
323 |
{ |
|
324 |
//txt = "Voice"; //Icon should always be visible instead of this |
|
325 |
helptxt = qtn_logs_tb_call; |
|
326 |
bmpfile = "z:\\Resource\\apps\\logs.mif"; |
|
327 |
bmpid = EMbmLogsQgn_indi_tb_call; |
|
328 |
bmpmask = EMbmLogsQgn_indi_tb_call_mask; |
|
329 |
extension = r_toolbar_call_button_state_extension; |
|
330 |
} |
|
331 |
}; |
|
332 |
}; |
|
333 |
}, |
|
334 |
TBAR_CTRL |
|
335 |
{ |
|
336 |
type = EAknCtButton; |
|
337 |
id = ELogsCmdToolBarSendUi; |
|
338 |
control = AVKON_BUTTON |
|
339 |
{ |
|
340 |
flags = KAknButtonSizeFitText; |
|
341 |
states = |
|
342 |
{ |
|
343 |
AVKON_BUTTON_STATE |
|
344 |
{ |
|
345 |
//txt = "Send"; //Icon should always be visible instead of this |
|
346 |
helptxt = qtn_logs_tb_msg; |
|
347 |
bmpfile = "z:\\Resource\\apps\\logs.mif"; |
|
348 |
bmpid = EMbmLogsQgn_indi_tb_mce; |
|
349 |
bmpmask = EMbmLogsQgn_indi_tb_mce_mask; |
|
350 |
extension = r_toolbar_write_button_state_extension; |
|
351 |
} |
|
352 |
}; |
|
353 |
}; |
|
354 |
}, |
|
355 |
TBAR_CTRL |
|
356 |
{ |
|
357 |
type = EAknCtButton; |
|
358 |
id = ELogsCmdStartPhonebook; |
|
359 |
control = AVKON_BUTTON |
|
360 |
{ |
|
361 |
flags = KAknButtonSizeFitText; |
|
362 |
states = |
|
363 |
{ |
|
364 |
AVKON_BUTTON_STATE |
|
365 |
{ |
|
366 |
// txt = "Pbk"; //Icon should always be visible instead of this |
|
367 |
helptxt = qtn_logs_tb_pb; |
|
368 |
bmpfile = "z:\\Resource\\apps\\logs.mif"; |
|
369 |
bmpid = EMbmLogsQgn_indi_tb_pb; |
|
370 |
bmpmask = EMbmLogsQgn_indi_tb_pb_mask; |
|
371 |
extension = r_toolbar_pbk_button_state_extension; |
|
372 |
} |
|
373 |
}; |
|
374 |
}; |
|
375 |
} |
|
376 |
}; |
|
377 |
} |
|
378 |
||
379 |
RESOURCE AVKON_BUTTON_STATE_EXTENSION r_toolbar_call_button_state_extension |
|
380 |
{ |
|
381 |
bmbSkinIdMajor= EAknsMajorGeneric; |
|
382 |
bmbSkinIdMinor= EAknsMinorGenericQgnIndiTbCall; |
|
383 |
} |
|
384 |
||
385 |
RESOURCE AVKON_BUTTON_STATE_EXTENSION r_toolbar_write_button_state_extension |
|
386 |
{ |
|
387 |
bmbSkinIdMajor= EAknsMajorGeneric; |
|
388 |
bmbSkinIdMinor= EAknsMinorGenericQgnIndiTbMce; |
|
389 |
} |
|
390 |
||
391 |
RESOURCE AVKON_BUTTON_STATE_EXTENSION r_toolbar_pbk_button_state_extension |
|
392 |
{ |
|
393 |
bmbSkinIdMajor= EAknsMajorGeneric; |
|
394 |
bmbSkinIdMinor= EAknsMinorGenericQgnIndiTbPb; |
|
395 |
} |
|
396 |
||
397 |
/** |
|
398 |
* Common Information note with ok-button |
|
399 |
*/ |
|
400 |
RESOURCE DIALOG r_my_address_query |
|
401 |
{ |
|
402 |
flags = EAknInformationNoteFlags; |
|
403 |
buttons = R_AVKON_SOFTKEYS_OK_EMPTY; |
|
404 |
items= |
|
405 |
{ |
|
406 |
DLG_LINE |
|
407 |
{ |
|
408 |
type = EAknCtNote; |
|
409 |
id = EGeneralNote; |
|
410 |
control= AVKON_NOTE |
|
411 |
{ |
|
412 |
layout = ETextualNotificationLayout; |
|
413 |
singular_label = ""; |
|
414 |
}; |
|
415 |
} |
|
416 |
}; |
|
417 |
} |
|
418 |
||
419 |
||
420 |
||
421 |
||
422 |
// End of File |