|
1 /* |
|
2 * Copyright (c) 2010 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: dummyeventprovider.h |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef DUMMYEVENTPROVIDER_H |
|
19 #define DUMMYEVENTPROVIDER_H |
|
20 |
|
21 #include <QObject> |
|
22 #include <msatuiobserver.h> |
|
23 |
|
24 |
|
25 #include "msatuiactionimplementer.h" |
|
26 |
|
27 class CSatUiObserver; |
|
28 //class QPixmap; // For future icon support |
|
29 class DummyPlayToneProvider; |
|
30 |
|
31 class DummyEventProvider: public QObject, |
|
32 public MSatUiActionImplementer |
|
33 { |
|
34 Q_OBJECT |
|
35 |
|
36 public: |
|
37 |
|
38 /** |
|
39 * Constructor |
|
40 */ |
|
41 DummyEventProvider(QObject *parent = 0); |
|
42 |
|
43 /** |
|
44 * Distructor |
|
45 */ |
|
46 virtual ~DummyEventProvider(); |
|
47 |
|
48 signals: |
|
49 /** |
|
50 * Notification of the SAT Display Text command. |
|
51 * @param aRes, the User's response. |
|
52 * @param aText The text string to be displayed. |
|
53 * @param aSimApplicationName Sim Application name |
|
54 * @param aIcon the icon to show. |
|
55 * @param aRequestedIconDisplayed Informs if icon is not used. |
|
56 * @param aSustainedText Indicates is this text sustained ie. no timers |
|
57 * used if true. |
|
58 * @param aDuration Duration for showing the text |
|
59 * @param aWaitUserToClear Indication if user is needed to clear |
|
60 * message |
|
61 */ |
|
62 void displayTextEvent( |
|
63 TSatUiResponse &aRes, |
|
64 const QString &aText, |
|
65 const QString &aSimApplicationName, |
|
66 //const HbIcon &aIcon, |
|
67 bool &aRequestedIconDisplayed, |
|
68 const bool aSustainedText, |
|
69 const int aDuration, |
|
70 const bool aWaitUserToClear); |
|
71 |
|
72 /** |
|
73 * Notification of the SAT Get Input command. |
|
74 * @param aText The query text. |
|
75 * @param aCharacterSet The character range allowed. |
|
76 * @param aInput The input string. |
|
77 * @param aMaxLength The maximum length of the input allowed. |
|
78 * @param aMinLength The minimum length of the input allowed. |
|
79 * @param aHideInput A flag indicating if the input should be hidden. |
|
80 * @param aHelpIsAvailable indicates if help can be requested. |
|
81 * @param aIconId The id of icon. |
|
82 * @param aRequestedIconDisplayed Informs if icon is not used. |
|
83 * @return The response of the UI to this command. |
|
84 */ |
|
85 void getInputEvent( |
|
86 TSatUiResponse &aRes, |
|
87 const QString &aTitleText, |
|
88 const TSatCharacterSet aCharacterSet, |
|
89 QString &aInputText, |
|
90 const int aMinLength, |
|
91 const int aMaxLength, |
|
92 const bool aHideInput, |
|
93 //const QPixmap* /*aIconBitmapGetInput*/, |
|
94 const bool aSelfExplanatory, |
|
95 unsigned int &aDuration ); |
|
96 |
|
97 /** |
|
98 * Notification of the SAT Get Inkey command. |
|
99 * @param aText The query text. |
|
100 * @param aCharacterSet The character range allowed. |
|
101 * @param aInput The input string. |
|
102 * @param aHideInput A flag indicating if the input should be hidden. |
|
103 * @param aHelpIsAvailable indicates if help can be requested. |
|
104 * @param aIconId The id of icon. |
|
105 * @param aRequestedIconDisplayed Informs if icon is not used. |
|
106 */ |
|
107 void getInkeyEvent( |
|
108 TSatUiResponse &aRes, |
|
109 const QString &aTitleText, |
|
110 const TSatCharacterSet aCharacterSet, |
|
111 QString &aInputText, |
|
112 //const QPixmap* /*aIconBitmapGetInput*/, |
|
113 const bool aSelfExplanatory, |
|
114 unsigned int &aDuration ); |
|
115 |
|
116 /** |
|
117 * Notification of the SAT Get YesNo command. |
|
118 * @param aText The query text. |
|
119 * @param aCharacterSet The character range allowed. |
|
120 * @param aInput The input character. |
|
121 * @param aHelpIsAvailable indicates if help can be requested. |
|
122 * @param aIconId The id of icon. |
|
123 * @param aRequestedIconDisplayed Informs if icon is not used. |
|
124 * @param aDuration Duration for showing the dialog. |
|
125 * @param aImmediateDigitResponse Indication if Immediate digit response |
|
126 * is needed. |
|
127 * @return The response of the UI to this command. |
|
128 */ |
|
129 void getYesNoEvent( |
|
130 TSatUiResponse &aRes, |
|
131 const QString &aText, |
|
132 const TSatCharacterSet aCharacterSet, |
|
133 unsigned int &aInkey, |
|
134 //const TSatIconId &aIconId, |
|
135 const bool &aSelfExplanatory, |
|
136 unsigned int &aDuration, |
|
137 const bool aImmediateDigitResponse ); |
|
138 |
|
139 /** |
|
140 * Handles the SetUpMenu command. |
|
141 * @param aRes the out parameter. the result of the command. |
|
142 * @param aText The title text. |
|
143 * @param aMenuItems The array of menu item captions. |
|
144 * @param aMenuItemNextActions The array of menu item next action |
|
145 * indicator captions. |
|
146 * @param aIconBitmap The Context pane icon. |
|
147 * @param aItemsIconArray Array of item icons |
|
148 * @param aSelfExplanatoryItems A flag indicating if only icons are shown. |
|
149 * @param aHelpIsAvailable A flag indicating if SAT help is available. |
|
150 */ |
|
151 void setUpMenuEvent( |
|
152 TSatUiResponse &aRes, |
|
153 const QString &aText, |
|
154 const QStringList &aMenuItems, |
|
155 //const CArrayFixFlat<TSatAction>* aMenuItemNextActions, |
|
156 //const HbIcon &aIcon, |
|
157 //const CAknIconArray* aItemIconsArray, |
|
158 const bool aSelfExplanatoryItems, |
|
159 const bool aHelpIsAvailable); |
|
160 |
|
161 /** |
|
162 * Handles the SelectItem view. |
|
163 * @param aRes the out parameter. the result of the command. |
|
164 * @param aText The title text. |
|
165 * @param aMenuItems The array of menu items. |
|
166 * @param aMenuItemNextActions The array of next action indicators. |
|
167 * @param aDefaultItem The item in focus. |
|
168 * @param aSelection The item index selected by the user. |
|
169 * @param aIconBitmap The Context Pane icon. |
|
170 * @param aItemsIconArray Array of item icons |
|
171 * @param aSelfExplanatoryItems Flag indicating if only icons are shown. |
|
172 * @param aHelpIsAvailable A flag indicating if SAT help is available. |
|
173 * @return Information of the operation result. |
|
174 */ |
|
175 void selectItemEvent( |
|
176 TSatUiResponse &aRes, |
|
177 const QString &aText, |
|
178 const QStringList &aMenuItems, |
|
179 //const CArrayFixFlat<TSatAction>* aMenuItemNextActions, |
|
180 const int aDefaultItem, |
|
181 unsigned char &aSelection, |
|
182 //const HbIcon &aIcon, |
|
183 //const CAknIconArray* aItemsIconArray, |
|
184 const bool aSelfExplanatoryItems, |
|
185 const bool aHelpIsAvailable); |
|
186 |
|
187 /** |
|
188 * Shows the confirmation note about the SAT Send SMS, Send SS or |
|
189 * Send USSD command. |
|
190 * @param aText The text to be displayed. |
|
191 * @param aActionAccepted Indicates whether the command was accepted. |
|
192 * @param aType Type of the request (SMS, SS, USSD). |
|
193 * @return Information of the operation result. |
|
194 */ |
|
195 void confirmSendEvent( |
|
196 TSatUiResponse &aRes, |
|
197 const QString &aText, |
|
198 bool &aActionAccepted, |
|
199 int aType); |
|
200 |
|
201 /** |
|
202 * Shows the wait note about the Send SMS command. |
|
203 * @param aText The text to be displayed. |
|
204 * @param aIconBitmapSendSM Sending dialog icon. |
|
205 * @param aSelfExplanatoryIcon A flag indicating if only icon is shown. |
|
206 */ |
|
207 void showSmsWaitNoteEvent( |
|
208 const QString &aText, |
|
209 //const CFbsBitmap* aIconBitmapSendSM, |
|
210 const bool aSelfExplanatoryIcon |
|
211 ); |
|
212 |
|
213 /** |
|
214 * Shows the confirmation not about SetUpCall. |
|
215 * @param aText The text to be displayed. |
|
216 * @param aSimAppName The header to be displayed. |
|
217 * @param aActionAccepted Indicates whether the command was accepted. |
|
218 */ |
|
219 void showSetUpCallConfirmEvent( |
|
220 const QString &aText, |
|
221 const QString &aSimAppName, |
|
222 bool &aActionAccepted//, |
|
223 //const CFbsBitmap* aIconBitmap, |
|
224 //const TBool aSelfExplanatory |
|
225 ); |
|
226 |
|
227 /** |
|
228 * Shows the wait note about the Send DTMF command. |
|
229 * @param aText The text to be displayed. |
|
230 * @param aIconBitmapSendSM Sending dialog icon. |
|
231 */ |
|
232 void showDtmfWaitNoteEvent( |
|
233 TSatUiResponse &aRes, |
|
234 const QString &aText); |
|
235 |
|
236 |
|
237 /** |
|
238 * Shows the wait note about the Send Ss or Ussd command. |
|
239 * @param aText The text to be displayed. |
|
240 * @param aIconBitmapSendSM Sending dialog icon. |
|
241 * @param aSelfExplanatoryIcon A flag indicating if only icon is shown. |
|
242 */ |
|
243 void showSsWaitNoteEvent( |
|
244 const QString &aText, |
|
245 //const CFbsBitmap* aIconBitmapSendSM, |
|
246 const bool aSelfExplanatoryIcon |
|
247 ); |
|
248 |
|
249 /** |
|
250 * Shows the wait note about Open Channel |
|
251 * @param aText The text to be displayed. |
|
252 * @param aActionAccepted Indicates whether the command was accepted. |
|
253 */ |
|
254 void showOpenChannelConfirmEvent( |
|
255 const QString &aText, |
|
256 bool &aActionAccepted); |
|
257 |
|
258 |
|
259 /*! |
|
260 Removes Display Text Dialog from the screen. |
|
261 */ |
|
262 void clearScreenEvent(); |
|
263 |
|
264 /*! |
|
265 Close the sat ui |
|
266 */ |
|
267 void closeUiEvent(); |
|
268 |
|
269 /*! |
|
270 *Close wait note |
|
271 */ |
|
272 void stopShowWaitNoteEvent(); |
|
273 |
|
274 /*! |
|
275 *Show SsWaitNote without Delay |
|
276 */ |
|
277 void showWaitNoteWithoutDelayEvent(); |
|
278 |
|
279 /*! |
|
280 *ShowSsErrorNoteEvent |
|
281 */ |
|
282 void showSsErrorNoteEvent(); |
|
283 |
|
284 /*! |
|
285 * Show BIP related Note |
|
286 */ |
|
287 void showBIPNoteEvent(int aCommand, const QString &aText); |
|
288 |
|
289 public slots: |
|
290 /*! |
|
291 *User cancel response, Send DTMF, Send Data, Receive Data |
|
292 */ |
|
293 void userCancelResponse(); |
|
294 |
|
295 public: // from MSatUiActionImplementer and impletment by QT |
|
296 |
|
297 /** |
|
298 * Shows the wait note. |
|
299 */ |
|
300 virtual void ShowWaitNoteL() {}; |
|
301 |
|
302 /** |
|
303 * Shows the wait note without delay |
|
304 */ |
|
305 virtual void ShowWaitNoteWithoutDelayL(); |
|
306 |
|
307 /** |
|
308 * Removes the wait note from the screen. |
|
309 */ |
|
310 void StopShowWaitNote(); |
|
311 |
|
312 /** |
|
313 * Handles the SetUpMenu view. |
|
314 * @param aText The title text. |
|
315 * @param aMenuItems The array of menu item captions. |
|
316 * @param aMenuItemNextActions The array of menu item next action |
|
317 * indicator captions. |
|
318 * @param aIconBitmap The Context pane icon. |
|
319 * @param aItemsIconArray Array of item icons |
|
320 * @param aSelfExplanatoryItems Flag indicating if only icons are shown. |
|
321 * @param aHelpIsAvailable A flag indicating if SAT help is available. |
|
322 * @return Information of the operation result. |
|
323 */ |
|
324 virtual TSatUiResponse SetUpMenuL( |
|
325 const TDesC &aText, |
|
326 const MDesCArray &aMenuItems, |
|
327 const CArrayFixFlat<TSatAction>* aMenuItemNextActions, |
|
328 const CFbsBitmap* aIconBitmap, |
|
329 //const CAknIconArray* aItemIconsArray, |
|
330 const TBool aSelfExplanatoryItems, |
|
331 const TBool aHelpIsAvailable); |
|
332 |
|
333 /** |
|
334 * Handles the SelectItem view. |
|
335 * @param aText The title text. |
|
336 * @param aMenuItems The array of menu items. |
|
337 * @param aMenuItemNextActions The array of next action indicators. |
|
338 * @param aDefaultItem The item in focus. |
|
339 * @param aSelection The item index selected by the user. |
|
340 * @param aIconBitmap The Context Pane icon. |
|
341 * @param aItemsIconArray Array of item icons |
|
342 * @param aSelfExplanatoryItems Flag indicating if only icons are shown. |
|
343 * @param aHelpIsAvailable A flag indicating if SAT help is available. |
|
344 * @return Information of the operation result. |
|
345 */ |
|
346 virtual TSatUiResponse SelectItemL( const TDesC &aText, |
|
347 const MDesCArray &aMenuItems, |
|
348 const CArrayFixFlat<TSatAction>* aMenuItemNextActions, |
|
349 const TInt aDefaultItem, |
|
350 TUint8 &aSelection, |
|
351 const CFbsBitmap* aIconBitmap, |
|
352 //const CAknIconArray* aItemsIconArray, |
|
353 const TBool aSelfExplanatoryItems, |
|
354 const TBool aHelpIsAvailable ); |
|
355 |
|
356 public: // from MSatUiActionImplementer and impletment by Symbian |
|
357 |
|
358 /** |
|
359 * Returns CoeEnv. |
|
360 */ |
|
361 virtual CCoeEnv* CoeEnv() { return 0; }; |
|
362 |
|
363 /** |
|
364 * Handles the DisplayText operation. |
|
365 * @param aText Text to be shown. |
|
366 * @param aSimApplicationName Sim Application name |
|
367 * @param aIconBitmapDisplayText Icon for dialog |
|
368 * @param aSustainedText Indicates is this text sustained ie. no timers |
|
369 * used if ETrue. |
|
370 * @param aDuration Duration for showing the text |
|
371 * @param aWaitUserToClear Indication if user is needed to clear |
|
372 * message |
|
373 * @return Information of the operation result. |
|
374 */ |
|
375 virtual TSatUiResponse DisplayTextL( |
|
376 const TDesC &aText, |
|
377 const TDesC &aSimApplicationName, |
|
378 CFbsBitmap* aIconBitmapDisplayText, |
|
379 const TBool aSelfExplanatoryIcon, |
|
380 const TBool aSustainedText, |
|
381 const TTimeIntervalSeconds aDuration, |
|
382 const TBool aWaitUserToClear); |
|
383 |
|
384 /** |
|
385 * Removes Display Text Dialog from the screen. |
|
386 */ |
|
387 virtual void ClearScreen(); |
|
388 |
|
389 /** |
|
390 * Asks a Yes/No answer from the user. |
|
391 * @param aText A question to be shown. |
|
392 * @param aCharacterSet The character range allowed. |
|
393 * @param aInkey Character user feeds. |
|
394 * @param aIconBitmap Icon for query dialog. |
|
395 * @param aSelfExplanatory Flag indicating if icon is self-explanatory. |
|
396 * @param aDuration Duration for showing the dialog. |
|
397 * @param aImmediateDigitResponse Indication if Immediate digit response |
|
398 * is needed. |
|
399 * @return Information of the operation result. |
|
400 */ |
|
401 virtual TSatUiResponse GetYesNoL( |
|
402 const TDesC &aText, |
|
403 const TSatCharacterSet aCharacterSet, |
|
404 TChar &aInkey, |
|
405 const CFbsBitmap* /*aIconBitmap*/, |
|
406 const TBool aSelfExplanatory, |
|
407 TUint &aDuration, |
|
408 const TBool aImmediateDigitResponse); |
|
409 |
|
410 /** |
|
411 * Asks input from the user. |
|
412 * @param aText A question to be shown. |
|
413 * @param aCharacterSet The character range allowed. |
|
414 * @param aInput The input string. |
|
415 * @param aMinLength The minimum length of the input allowed. |
|
416 * @param aMaxLength The maximum length of the input allowed. |
|
417 * @param aHideInput A flag indicating if the input should be hidden. |
|
418 * @param aGetInkey A flag indicating if GetInkey command is used. |
|
419 * @param aIconBitmapGetInput Icon for query dialog. |
|
420 * @param aSelfExplanatory A flag indicating if icon is self-explanatory. |
|
421 * @param aDuration Duration for showing the dialog. |
|
422 * @return Information of the operation result. |
|
423 */ |
|
424 virtual TSatUiResponse GetInputL( |
|
425 const TDesC &aText, |
|
426 const TSatCharacterSet aCharacterSet, |
|
427 TDes &aInput, |
|
428 const TInt aMinLength, |
|
429 const TInt aMaxLength, |
|
430 const TBool aHideInput, |
|
431 const TBool aGetInkey, |
|
432 const CFbsBitmap* aIconBitmapGetInput, |
|
433 const TBool aSelfExplanatory, |
|
434 TUint &aDuration ); |
|
435 |
|
436 |
|
437 /** |
|
438 * Handles Standard Tone playing. |
|
439 * @param aText The text to be displayed. |
|
440 * @param aFileName The name of the file corresponding to the tone. |
|
441 * @param aDuration The duration of the tone to be played. |
|
442 * @param aIconBitmap The tone playing note icon |
|
443 * @param aSelfExplanatory Flag indicating if icon is self-explanatory. |
|
444 * @return Information of the operation result. |
|
445 */ |
|
446 virtual TSatUiResponse PlayStandardToneL( |
|
447 const TDesC &aText, |
|
448 const TDesC8 &aSequence, |
|
449 TTimeIntervalMicroSeconds aDuration, |
|
450 const CFbsBitmap* aIconBitmap, |
|
451 const TBool aSelfExplanatory ); |
|
452 |
|
453 /** |
|
454 * Shows the confirmation note about the SAT Send SMS, Send SS or |
|
455 * Send USSD command. |
|
456 * @param aText The text to be displayed. |
|
457 * @param aActionAccepted Indicates whether the command was accepted. |
|
458 * @param aType Type of the request (SMS, SS, USSD). |
|
459 * @return Information of the operation result. |
|
460 */ |
|
461 virtual TSatUiResponse ConfirmSendL( |
|
462 const TDesC &aText, |
|
463 TBool &aActionAccepted, |
|
464 TInt aType); |
|
465 |
|
466 /** |
|
467 * Shows the wait note about the Send SMS command. |
|
468 * @param aText The text to be displayed. |
|
469 * @param aIconBitmapSendSM Sending dialog icon. |
|
470 * @param aSelfExplanatoryIcon A flag indicating if only icon is shown. |
|
471 */ |
|
472 virtual void ShowSmsWaitNoteL( |
|
473 const TDesC &aText, |
|
474 const CFbsBitmap* aIconBitmapSendSM, |
|
475 const TBool aSelfExplanatoryIcon); |
|
476 |
|
477 /** |
|
478 * Shows the wait note about the Send SS command. |
|
479 * @param aText The text to be displayed. |
|
480 * @param aIconBitmap Sending dialog icon. |
|
481 * @param aSelfExplanatoryIcon A flag indicating if only icon is shown. |
|
482 */ |
|
483 virtual void ShowSsWaitNoteL( |
|
484 const TDesC &aText, |
|
485 const CFbsBitmap* /*aIconBitmap*/, |
|
486 const TBool aSelfExplanatoryIcon ); |
|
487 |
|
488 /** |
|
489 * Shows the confirmation note about the SAT Refresh command. |
|
490 * @param aActionAccepted Indicates whether the command was accepted. |
|
491 * @return Information of the operation result. |
|
492 */ |
|
493 virtual TSatUiResponse ConfirmRefreshL( |
|
494 TBool &/*aActionAccepted*/) |
|
495 { |
|
496 return ESatSuccess; |
|
497 }; |
|
498 |
|
499 /** |
|
500 * Notification of the SAT Call Control command. |
|
501 * @param aText The text string to be displayed. |
|
502 * @param aAlphaIdStatus Alpha Identifier status |
|
503 * @param aControlResult Call control general result |
|
504 * @return The response from the UI |
|
505 */ |
|
506 virtual TSatUiResponse CallControlL( |
|
507 const TDesC &/*aText*/, |
|
508 const TSatAlphaIdStatus /*aAlphaIdStatus*/ ) |
|
509 { |
|
510 return ESatSuccess; |
|
511 }; |
|
512 |
|
513 /** |
|
514 * Notification of the SAT Launch browser confirmation request |
|
515 * @param aText The text to be displayed. |
|
516 * @param aActionAccepted Indicates whether the command was accepted. |
|
517 * @param aIconBitmap The confirm note icon |
|
518 * @param aSelfExplanatory Flag indicating if icon is self-explanatory. |
|
519 */ |
|
520 virtual void ConfirmLaunchBrowserL( |
|
521 const TDesC &/*aText*/, |
|
522 TBool &/*aActionAccepted*/, |
|
523 const CFbsBitmap* /*aIconBitmap*/, |
|
524 const TBool /*aSelfExplanatory*/) {}; |
|
525 |
|
526 /** |
|
527 * Notification of the SAT Mo Sm Control command. |
|
528 * @param aText The text string to be displayed. |
|
529 * @param aAlphaIdStatus Alpha Identifier status |
|
530 * @param aControlResult Mo Sm control general result |
|
531 * @return The response from the UI |
|
532 */ |
|
533 virtual TSatUiResponse MoSmControlL( |
|
534 const TDesC &/*aText*/, |
|
535 const TSatAlphaIdStatus /*aAlphaIdStatus*/ ) |
|
536 { |
|
537 return ESatSuccess; |
|
538 }; |
|
539 |
|
540 /** |
|
541 * Shows the wait note while DTMF are being sent. |
|
542 * @param aText The text to be displayed. |
|
543 * @param aIconBitmap The confirm note icon |
|
544 * @param aSelfExplanatory Flag indicating if icon is self-explanatory. |
|
545 * @return Information on the operation result. |
|
546 */ |
|
547 virtual TSatUiResponse ShowDtmfWaitNoteL( |
|
548 const TDesC &aText, |
|
549 const CFbsBitmap* aIconBitmap, |
|
550 const TBool aSelfExplanatoryIcon ); |
|
551 |
|
552 /** |
|
553 * Dispatch iWait to action implementer. |
|
554 * @param aWait Timer. |
|
555 */ |
|
556 virtual void DispatchTimer(CActiveSchedulerWait &/*aWait*/) {}; |
|
557 |
|
558 /** |
|
559 * Get flag which is indicating if end key is pressed. |
|
560 * @return A Boolean flag which is indicating if end key is pressed. |
|
561 */ |
|
562 virtual TBool GetEndKey() |
|
563 { |
|
564 return EFalse; |
|
565 }; |
|
566 |
|
567 /** |
|
568 * Set a flag which is indicating if end key is pressed. |
|
569 * @param aValue Status of end key |
|
570 */ |
|
571 virtual void SetEndKey(TBool /*aValue*/) {}; |
|
572 |
|
573 /** |
|
574 * Set a flag which is indicating if proactive command is pending. |
|
575 * @param aValue Status of proactive command |
|
576 */ |
|
577 virtual void SetCommandPending(TBool /*aValue*/) {}; |
|
578 |
|
579 /** |
|
580 * Plays user selected tone. |
|
581 * @param aText The text to be displayed. |
|
582 * @param aDuration Play duration. |
|
583 * @param aTone Tone to be played. |
|
584 * @param aIconBitmap The tone playing note icon |
|
585 * @param aSelfExplanatory Flag indicating if icon is self-explanatory. |
|
586 * @return Information on the operation result. |
|
587 */ |
|
588 virtual TSatUiResponse PlayUserSelectedToneL( |
|
589 const TDesC &aText, |
|
590 TTimeIntervalMicroSeconds aDuration, |
|
591 TSatTone aTone, |
|
592 const CFbsBitmap* aIconBitmap, |
|
593 const TBool aSelfExplanatory ); |
|
594 |
|
595 /** |
|
596 * Confirm user permission for Open Channel. |
|
597 * @param aText The text to be displayed. |
|
598 * @param aActionAccepted Indicates whether the command was accepted. |
|
599 * @param aIconBitmapOpenChannel Icon for query dialog |
|
600 * @param aSelfExplanatory A flag indicating if icon is self-explanatory |
|
601 * @return Operation result |
|
602 */ |
|
603 virtual TSatUiResponse ConfirmOpenChannelL( |
|
604 const TDesC &aText, |
|
605 TBool &aActionAccepted, |
|
606 const CFbsBitmap* /*aIconBitmapOpenChannel*/, |
|
607 const TBool aSelfExplanatory ); |
|
608 |
|
609 /** |
|
610 * Shows the wait note while BIP packets are sent. |
|
611 * @param aCommand Command type. |
|
612 * @param aText The text to be displayed. |
|
613 * @param aIconBitmap Icon for query dialog |
|
614 * @param aSelfExplanatory A flag indicating if icon is self-explanatory |
|
615 */ |
|
616 virtual void ShowBIPNoteL( |
|
617 TInt aCommand, |
|
618 const TDesC &aText, |
|
619 const CFbsBitmap* /*aIconBitmap*/, |
|
620 const TBool /*aSelfExplanatory*/); |
|
621 |
|
622 /** |
|
623 * Confirm user permission for SetUpCall |
|
624 * @param aText The text to be displayed. |
|
625 * @param aSimAppName Header for th equery |
|
626 * @param aActionAccepted Indicates whether the command was accepted. |
|
627 * @param aIconBitmap Icon for query dialog |
|
628 * @param aSelfExplanatory A flag indicating if icon is self-explanatory |
|
629 */ |
|
630 virtual void ConfirmSetUpCallL( |
|
631 const TDesC &aText, |
|
632 const TDesC &aSimAppName, |
|
633 TBool &aActionAccepted, |
|
634 const CFbsBitmap* aIconBitmap, |
|
635 const TBool aSelfExplanatory); |
|
636 |
|
637 /** |
|
638 * Show note indicating SAT is not available. |
|
639 */ |
|
640 virtual void ShowNotAvailableNoteL() {}; |
|
641 |
|
642 /** |
|
643 * Show the Ss error note. |
|
644 */ |
|
645 virtual void ShowSsErrorNoteL(); |
|
646 |
|
647 /** |
|
648 * Start SatUi closing process. |
|
649 */ |
|
650 virtual void CloseSatUI(); |
|
651 |
|
652 |
|
653 public: // new method |
|
654 |
|
655 /** |
|
656 * Return current profile state. |
|
657 * @return current profile state. |
|
658 */ |
|
659 int profileState(); |
|
660 |
|
661 /** |
|
662 * Response to the Set Up Menu command. |
|
663 * @param aMenuItem The selected menu item. |
|
664 * @param aHelpRequested Indicates whether help was requested. |
|
665 */ |
|
666 void menuSelection( int aMenuItem, bool aHelpRequested ); |
|
667 |
|
668 protected: |
|
669 //Q_DISABLE_COPY( SatAppEventProvider ); |
|
670 |
|
671 private: // Data |
|
672 |
|
673 /** |
|
674 * The pointer to the sybmian class CSatUiObserver |
|
675 * which will access Sat Client API |
|
676 * own |
|
677 */ |
|
678 CSatUiObserver *mObs; |
|
679 |
|
680 /** |
|
681 * Own,PlayTone |
|
682 */ |
|
683 DummyPlayToneProvider *mPlayTone; |
|
684 |
|
685 }; |
|
686 |
|
687 #endif //DUMMYEVENTPROVIDER_H |