15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #include <QStringList> |
18 #include <QStringList> |
19 #include <msatuiadapter.h> |
19 #include <msatuiadapter.h> |
|
20 |
20 #include "satappeventprovider.h" |
21 #include "satappeventprovider.h" |
|
22 #include "satappplaytoneprovider.h" |
21 #include "csatuiobserver.h" |
23 #include "csatuiobserver.h" |
22 #include "tflogger.h" |
24 #include "tflogger.h" |
23 |
25 |
24 // ---------------------------------------------------------------------------- |
26 // ---------------------------------------------------------------------------- |
25 // SatAppEventProvider::SatAppEventProvider |
27 // SatAppEventProvider::SatAppEventProvider |
26 // (other items were commented in a header). |
28 // (other items were commented in a header). |
27 // ---------------------------------------------------------------------------- |
29 // ---------------------------------------------------------------------------- |
28 // |
30 // |
29 SatAppEventProvider::SatAppEventProvider(QObject *parent) : |
31 SatAppEventProvider::SatAppEventProvider(QObject *parent) : |
30 QObject(parent), mObs(NULL) |
32 QObject(parent), mObs(NULL), mPlayTone(NULL) |
31 { |
33 { |
32 TFLOGSTRING("SATAPP: SatAppEventProvider::SatAppEventProvider call") |
34 TFLOGSTRING("SATAPP: SatAppEventProvider::SatAppEventProvider call") |
33 TRAPD(err, mObs = CSatUiObserver::NewL()) |
35 TRAPD(err, mObs = CSatUiObserver::NewL(); |
34 TFLOGSTRING2("SATAPP: SatAppEventProvider::SatAppEventProvider \ |
36 mObs->ConnectRSatSessionL(); |
35 new CSatUiObserver err=%d", err) |
37 ); |
36 |
38 if ( KErrNone != err ) { |
37 if (KErrNone != err) { |
|
38 CloseSatUI(); |
39 CloseSatUI(); |
39 } else { |
40 } else { |
40 mObs->SetImplementer(this); |
41 mObs->SetImplementer(this); |
41 TFLOGSTRING("SATAPP: SatAppEventProvider::SatAppEventProvider") |
42 TFLOGSTRING("SATAPP: SatAppEventProvider::SatAppEventProvider \ |
42 } |
43 SetImplementer") |
|
44 mPlayTone = new SatAppPlayToneProvider(this); |
|
45 } |
|
46 |
43 TFLOGSTRING("SATAPP: SatAppEventProvider::SatAppEventProvider exit") |
47 TFLOGSTRING("SATAPP: SatAppEventProvider::SatAppEventProvider exit") |
44 } |
48 } |
45 |
49 |
46 // ---------------------------------------------------------------------------- |
50 // ---------------------------------------------------------------------------- |
47 // SatAppEventProvider::~SatAppEventProvider |
51 // SatAppEventProvider::~SatAppEventProvider |
48 // Sets a pointer to CSatUiViewAppUi object. |
52 // Sets a pointer to SATAPP: SatAppEventProvider object. |
49 // (other items were commented in a header). |
53 // (other items were commented in a header). |
50 // ---------------------------------------------------------------------------- |
54 // ---------------------------------------------------------------------------- |
51 // |
55 // |
52 SatAppEventProvider::~SatAppEventProvider() |
56 SatAppEventProvider::~SatAppEventProvider() |
53 { |
57 { |
54 TFLOGSTRING("SATAPP: SatAppEventProvider::~SatAppEventProvider call") |
58 TFLOGSTRING("SATAPP: SatAppEventProvider::~SatAppEventProvider call") |
55 delete mObs; |
59 if (mObs){ |
56 mObs = NULL; |
60 mObs->DisconnectRSatSession(); |
|
61 delete mObs; |
|
62 mObs = NULL; |
|
63 } |
|
64 if (mPlayTone) { |
|
65 delete mPlayTone; |
|
66 mPlayTone = NULL; |
|
67 TFLOGSTRING("SATAPP: SatAppEventProvider::~SatAppEventProvider delete\ |
|
68 mPlayTone") |
|
69 } |
57 TFLOGSTRING("SATAPP: SatAppEventProvider::~SatAppEventProvider exit") |
70 TFLOGSTRING("SATAPP: SatAppEventProvider::~SatAppEventProvider exit") |
58 } |
71 } |
59 |
72 |
60 // ---------------------------------------------------------------------------- |
73 // ---------------------------------------------------------------------------- |
61 // SatAppEventProvider::SetUpMenuL |
74 // SatAppEventProvider::SetUpMenuL |
65 TSatUiResponse SatAppEventProvider::SetUpMenuL( |
78 TSatUiResponse SatAppEventProvider::SetUpMenuL( |
66 const TDesC &aText, |
79 const TDesC &aText, |
67 const MDesCArray &aMenuItems, |
80 const MDesCArray &aMenuItems, |
68 const CArrayFixFlat<TSatAction> */*aMenuItemNextActions*/, |
81 const CArrayFixFlat<TSatAction> */*aMenuItemNextActions*/, |
69 const CFbsBitmap */*aIconBitmap*/, |
82 const CFbsBitmap */*aIconBitmap*/, |
70 //const CAknIconArray */*aItemIconsArray*/, |
|
71 const TBool aSelfExplanatoryItems, |
83 const TBool aSelfExplanatoryItems, |
72 const TBool aHelpIsAvailable) |
84 const TBool aHelpIsAvailable) |
73 { |
85 { |
74 TFLOGSTRING("SATAPP: SatAppEventProvider::SetUpMenuL call") |
86 TFLOGSTRING("SATAPP: SatAppEventProvider::SetUpMenuL call") |
75 |
87 |
76 TSatUiResponse response(ESatSuccess); |
88 TSatUiResponse response(ESatSuccess); |
77 QString title; |
89 QString title; |
78 if (aText.Length() > 0) { |
90 if (aText.Length() > 0) { |
79 title = QString::fromUtf16 (aText.Ptr(), aText.Length()); |
91 title = QString::fromUtf16 (aText.Ptr(), aText.Length()); |
80 TFLOGSTRING2("SATAPP: SatAppEventProvider::SetUpMenuL Title=%s", |
92 TFLOGSTRING2("SATAPP: SatAppEventProvider::SetUpMenuL Title=%S", |
81 title.utf16()) |
93 &aText) |
82 } |
94 } |
83 |
95 |
84 QStringList *menuList = new QStringList(); |
96 QStringList *menuList = new QStringList(); |
85 TFLOGSTRING("SATAPP: SatAppEventProvider::SetUpMenuL List") |
97 TFLOGSTRING("SATAPP: SatAppEventProvider::SetUpMenuL List") |
86 |
98 |
87 //Add Item |
99 //Add Item |
88 if(menuList) { |
100 if(menuList) { |
89 for (int i=0 ; i<aMenuItems.MdcaCount() ; i++) { |
101 for (int i=0 ; i<aMenuItems.MdcaCount() ; i++) { |
90 QString item=QString::fromUtf16(aMenuItems.MdcaPoint(i).Ptr(), |
102 QString item=QString::fromUtf16(aMenuItems.MdcaPoint(i).Ptr(), |
91 aMenuItems.MdcaPoint(i).Length()); |
103 aMenuItems.MdcaPoint(i).Length()); |
92 menuList->append(item); |
104 menuList->append(item); |
93 } |
105 } |
94 |
106 |
95 TFLOGSTRING("SATAPP: SatAppEventProvider::SetUpMenuL add item") |
107 TFLOGSTRING("SATAPP: SatAppEventProvider::SetUpMenuL add item") |
96 |
108 |
97 emit setUpMenuEvent( |
109 emit setUpMenuEvent( |
98 response, |
110 response, |
99 title, |
111 title, |
100 *menuList, |
112 *menuList, |
101 //const CArrayFixFlat<TSatAction> *aMenuItemNextActions, |
|
102 //const HbIcon &aIcon, |
|
103 //const CArrayFixFlat<TInt> *aMenuIcons, |
|
104 aSelfExplanatoryItems, |
113 aSelfExplanatoryItems, |
105 aHelpIsAvailable); |
114 aHelpIsAvailable); |
106 |
115 |
107 delete menuList; |
116 delete menuList; |
108 } |
117 } |
109 TFLOGSTRING("SATAPP: SatAppEventProvider::SetUpMenuL exit") |
118 TFLOGSTRING("SATAPP: SatAppEventProvider::SetUpMenuL exit") |
110 |
119 |
111 return response; |
120 return response; |
112 } |
121 } |
113 |
122 |
114 // ---------------------------------------------------------------------------- |
123 // ---------------------------------------------------------------------------- |
115 // SatAppEventProvider::SetUpMenuL |
124 // SatAppEventProvider::SetUpMenuL |
116 // (other items were commented in a header). |
125 // (other items were commented in a header). |
117 // ---------------------------------------------------------------------------- |
126 // ---------------------------------------------------------------------------- |
121 const MDesCArray &aMenuItems, |
130 const MDesCArray &aMenuItems, |
122 const CArrayFixFlat<TSatAction> */*aMenuItemNextActions*/, |
131 const CArrayFixFlat<TSatAction> */*aMenuItemNextActions*/, |
123 const TInt aDefaultItem, |
132 const TInt aDefaultItem, |
124 TUint8 &aSelection, |
133 TUint8 &aSelection, |
125 const CFbsBitmap */*aIconBitmap*/, |
134 const CFbsBitmap */*aIconBitmap*/, |
126 //const CAknIconArray */*aItemsIconArray*/, |
|
127 const TBool aSelfExplanatoryItems, |
135 const TBool aSelfExplanatoryItems, |
128 const TBool aHelpIsAvailable) |
136 const TBool aHelpIsAvailable) |
129 { |
137 { |
130 TFLOGSTRING("SATAPP: SatAppEventProvider::SelectItemL call") |
138 TFLOGSTRING("SATAPP: SatAppEventProvider::SelectItemL call") |
131 |
139 |
132 TSatUiResponse response(ESatSuccess); |
140 TSatUiResponse response(ESatSuccess); |
133 aSelection = 0; |
141 aSelection = 0; |
134 QString title; |
142 QString title; |
135 if (aText.Length() > 0) { |
143 if (aText.Length() > 0) { |
136 title=QString::fromUtf16(aText.Ptr(), aText.Length()); |
144 title=QString::fromUtf16(aText.Ptr(), aText.Length()); |
137 TFLOGSTRING2("SATAPP: SatAppEventProvider::SelectItemL Title=%s", |
145 TFLOGSTRING2("SATAPP: SatAppEventProvider::SelectItemL Title=%S", |
138 title.utf16()) |
146 &aText) |
139 } |
147 } |
140 |
148 |
141 QStringList *menuList = new QStringList(); |
149 QStringList *menuList = new QStringList(); |
142 //Add Item |
150 //Add Item |
143 if(menuList) { |
151 if(menuList) { |
144 for (int i=0 ; i<aMenuItems.MdcaCount() ; i++) { |
152 for (int i=0 ; i<aMenuItems.MdcaCount() ; i++) { |
145 QString item=QString::fromUtf16(aMenuItems.MdcaPoint(i).Ptr(), |
153 QString item=QString::fromUtf16(aMenuItems.MdcaPoint(i).Ptr(), |
146 aMenuItems.MdcaPoint(i).Length()); |
154 aMenuItems.MdcaPoint(i).Length()); |
147 menuList->append(item); |
155 menuList->append(item); |
148 } |
156 } |
149 TFLOGSTRING("SATAPP: SatAppEventProvider::SelectItemL add item") |
157 TFLOGSTRING("SATAPP: SatAppEventProvider::SelectItemL add item") |
150 |
158 |
151 emit selectItemEvent( |
159 emit selectItemEvent( |
152 response, |
160 response, |
153 title, |
161 title, |
154 *menuList, |
162 *menuList, |
155 aDefaultItem, |
163 aDefaultItem, |
156 aSelection, |
164 aSelection, |
157 //const CArrayFixFlat<TSatAction> *aMenuItemNextActions, |
|
158 //const HbIcon &aIcon, |
|
159 //const CArrayFixFlat<TInt> *aMenuIcons, |
|
160 aSelfExplanatoryItems, |
165 aSelfExplanatoryItems, |
161 aHelpIsAvailable); |
166 aHelpIsAvailable); |
162 |
167 |
163 delete menuList; |
168 delete menuList; |
164 } |
169 } |
187 // SatAppEventProvider::MenuSelection |
192 // SatAppEventProvider::MenuSelection |
188 // (other items were commented in a header). |
193 // (other items were commented in a header). |
189 // ---------------------------------------------------------------------------- |
194 // ---------------------------------------------------------------------------- |
190 // |
195 // |
191 void SatAppEventProvider::menuSelection(int aMenuItem, bool aHelpRequested) |
196 void SatAppEventProvider::menuSelection(int aMenuItem, bool aHelpRequested) |
192 { |
197 { |
193 TFLOGSTRING2("SATAPP: SatAppEventProvider::MenuSelection call\ |
198 TFLOGSTRING2("SATAPP: SatAppEventProvider::MenuSelection call\ |
194 aMenuItem=%d", aMenuItem) |
199 aMenuItem=%d", aMenuItem) |
195 if(mObs && mObs->Adapter()) { |
200 if(mObs && mObs->Adapter()) { |
196 mObs->Adapter()->MenuSelection(aMenuItem, aHelpRequested); |
201 mObs->Adapter()->MenuSelection(aMenuItem, aHelpRequested); |
197 } |
202 } |
198 |
203 |
199 TFLOGSTRING("SATAPP: SatAppEventProvider::MenuSelection exit") |
204 TFLOGSTRING("SATAPP: SatAppEventProvider::MenuSelection exit") |
200 } |
205 } |
201 |
206 |
202 // ---------------------------------------------------------------------------- |
207 // ---------------------------------------------------------------------------- |
203 // SatAppEventProvider::DisplayTextL |
208 // SatAppEventProvider::DisplayTextL |
204 // (other items were commented in a header). |
209 // (other items were commented in a header). |
205 // ---------------------------------------------------------------------------- |
210 // ---------------------------------------------------------------------------- |
218 TSatUiResponse response(ESatSuccess); |
223 TSatUiResponse response(ESatSuccess); |
219 QString title; |
224 QString title; |
220 if (aText.Length() > 0) { |
225 if (aText.Length() > 0) { |
221 title=QString::fromUtf16(aText.Ptr(), aText.Length()); |
226 title=QString::fromUtf16(aText.Ptr(), aText.Length()); |
222 TFLOGSTRING2("SATAPP: SatAppEventProvider::DisplayTextL \ |
227 TFLOGSTRING2("SATAPP: SatAppEventProvider::DisplayTextL \ |
223 Title=%s", title.utf16()) |
228 Title=%S", &aText) |
224 } |
229 } |
225 |
230 |
226 QString appName; |
231 QString appName; |
227 if (aSimApplicationName.Length() > 0) { |
232 if (aSimApplicationName.Length() > 0) { |
228 appName=QString::fromUtf16(aSimApplicationName.Ptr(), |
233 appName=QString::fromUtf16(aSimApplicationName.Ptr(), |
229 aSimApplicationName.Length()); |
234 aSimApplicationName.Length()); |
230 TFLOGSTRING2("SATAPP: SatAppEventProvider::DisplayTextL \ |
235 TFLOGSTRING2("SATAPP: SatAppEventProvider::DisplayTextL \ |
231 appName=%s", appName.utf16()) |
236 appName=%S", &aSimApplicationName) |
232 } |
237 } |
233 |
238 |
234 int timeInterval = aDuration.Int(); |
239 int timeInterval = aDuration.Int(); |
235 TFLOGSTRING2("SATAPP: SatAppEventProvider::DisplayTextL: \ |
240 TFLOGSTRING2("SATAPP: SatAppEventProvider::DisplayTextL: \ |
236 timeInterval=%d", timeInterval) |
241 timeInterval=%d", timeInterval) |
237 |
242 |
274 |
279 |
275 QString title; |
280 QString title; |
276 if (aText.Length() > 0) { |
281 if (aText.Length() > 0) { |
277 title=QString::fromUtf16(aText.Ptr(), aText.Length()); |
282 title=QString::fromUtf16(aText.Ptr(), aText.Length()); |
278 TFLOGSTRING2("SATAPP: SatAppEventProvider::GetInputL \ |
283 TFLOGSTRING2("SATAPP: SatAppEventProvider::GetInputL \ |
279 Title=%s", title.utf16()) |
284 Title=%S", &aText) |
280 } |
285 } |
281 |
286 |
282 QString inputText; |
287 QString inputText; |
283 if (aInput.Length() > 0) { |
288 if (aInput.Length() > 0) { |
284 inputText = QString::fromUtf16(aInput.Ptr(), aInput.Length()); |
289 inputText = QString::fromUtf16(aInput.Ptr(), aInput.Length()); |
285 TFLOGSTRING2("SATAPP: SatAppEventProvider::GetInputL \ |
290 TFLOGSTRING2("SATAPP: SatAppEventProvider::GetInputL \ |
286 inputText=%s", inputText.utf16()) |
291 inputText=%S", &aInput) |
287 } |
292 } |
288 bool isSelfExplanatory = aSelfExplanatory; |
293 bool isSelfExplanatory = aSelfExplanatory; |
289 unsigned int duration = aDuration; |
294 unsigned int duration = aDuration; |
290 //QPixmap *iconBitmapGetInput = QPixmap::fromSymbianCFbsBitmap(CFbsBitmap *aIconBitmapGetInput); |
295 |
291 if (aGetInkey) { |
296 if (aGetInkey) { |
292 //Get Inkey |
297 //Get Inkey |
293 emit getInkeyEvent( |
298 emit getInkeyEvent( |
294 response, |
299 response, |
295 title, |
300 title, |
296 aCharacterSet, |
301 aCharacterSet, |
297 inputText, |
302 inputText, |
298 //iconBitmapGetInput, |
|
299 isSelfExplanatory, |
303 isSelfExplanatory, |
300 duration); |
304 duration); |
301 TFLOGSTRING("SATAPP: SatAppEventProvider::GetInputL: GetInkey") |
305 TFLOGSTRING("SATAPP: SatAppEventProvider::GetInputL: GetInkey") |
302 aInput.Copy(reinterpret_cast<const TUint16*>(inputText.utf16()), inputText.length()); |
306 aInput.Copy(reinterpret_cast<const TUint16*>(inputText.utf16()), inputText.length()); |
303 } else { |
307 } else { |
311 aCharacterSet, |
315 aCharacterSet, |
312 inputText, |
316 inputText, |
313 minLength, |
317 minLength, |
314 maxLength, |
318 maxLength, |
315 hideInput, |
319 hideInput, |
316 //iconBitmapGetInput, |
|
317 isSelfExplanatory, |
320 isSelfExplanatory, |
318 duration); |
321 duration); |
319 int length = inputText.length(); |
322 int length = inputText.length(); |
320 if (length > maxLength) { |
323 if (length > maxLength) { |
321 length = maxLength; |
324 length = maxLength; |
322 } |
325 } |
323 TFLOGSTRING("SATAPP: SatAppEventProvider::GetInputL: GetInput") |
|
324 TFLOGSTRING2( "SATAPP: SatAppEventProvider::GetInputL:GetInput \ |
|
325 text=%s", inputText.utf16() ) |
|
326 aInput.Copy(reinterpret_cast<const TUint16*>(inputText.utf16()), length); |
326 aInput.Copy(reinterpret_cast<const TUint16*>(inputText.utf16()), length); |
327 TFLOGSTRING2("SATAPP: SatAppEventProvider::GetInputL aInput=%S", &aInput) |
327 TFLOGSTRING2("SATAPP: SatAppEventProvider::GetInputL aInput=%S", &aInput) |
328 } |
328 } |
329 TFLOGSTRING("SATAPP: SatAppEventProvider::GetInputL exit") |
329 TFLOGSTRING("SATAPP: SatAppEventProvider::GetInputL exit") |
330 return response; |
330 return response; |
331 } |
331 } |
332 |
332 |
333 // ---------------------------------------------------------------------------- |
333 // ---------------------------------------------------------------------------- |
|
334 // SatAppEventProvider::CallControlL |
|
335 // (other items were commented in a header). |
|
336 // ---------------------------------------------------------------------------- |
|
337 // |
|
338 TSatUiResponse SatAppEventProvider::CallControlL( |
|
339 const TDesC &aText, |
|
340 const TSatAlphaIdStatus aAlphaIdStatus) |
|
341 { |
|
342 TFLOGSTRING("SATAPP: SatAppEventProvider::CallControlL call") |
|
343 QString text; |
|
344 if (aText.Length() > 0) { |
|
345 text=QString::fromUtf16(aText.Ptr(), aText.Length()); |
|
346 TFLOGSTRING2("SATAPP: SatAppEventProvider::CallControlL \ |
|
347 aText=%S", &aText) |
|
348 } |
|
349 emit callControlEvent(text, aAlphaIdStatus); |
|
350 TFLOGSTRING("SATAPP: SatAppEventProvider::CallControlL exit") |
|
351 return ESatSuccess; |
|
352 } |
|
353 |
|
354 // ---------------------------------------------------------------------------- |
|
355 // SatAppEventProvider::MoSmControlL |
|
356 // (other items were commented in a header). |
|
357 // ---------------------------------------------------------------------------- |
|
358 // |
|
359 TSatUiResponse SatAppEventProvider::MoSmControlL( |
|
360 const TDesC &aText, |
|
361 const TSatAlphaIdStatus aAlphaIdStatus) |
|
362 { |
|
363 TFLOGSTRING("SATAPP: SatAppEventProvider::MoSmControlL call") |
|
364 QString text; |
|
365 if (aText.Length() > 0) { |
|
366 text=QString::fromUtf16(aText.Ptr(), aText.Length()); |
|
367 TFLOGSTRING2("SATAPP: SatAppEventProvider::MoSmControlL \ |
|
368 aText=%S", &aText) |
|
369 } |
|
370 emit moSmControlEvent(text, aAlphaIdStatus); |
|
371 TFLOGSTRING("SATAPP: SatAppEventProvider::MoSmControlL exit") |
|
372 return ESatSuccess; |
|
373 } |
|
374 |
|
375 // ---------------------------------------------------------------------------- |
334 // SatAppEventProvider::GetYesNoL |
376 // SatAppEventProvider::GetYesNoL |
335 // (other items were commented in a header). |
377 // (other items were commented in a header). |
336 // ---------------------------------------------------------------------------- |
378 // ---------------------------------------------------------------------------- |
337 // |
379 // |
338 TSatUiResponse SatAppEventProvider::GetYesNoL( |
380 TSatUiResponse SatAppEventProvider::GetYesNoL( |
446 TFLOGSTRING("SATAPP: SatAppEventProvider::ConfirmSetUpCallL call") |
488 TFLOGSTRING("SATAPP: SatAppEventProvider::ConfirmSetUpCallL call") |
447 QString text; |
489 QString text; |
448 if (aText.Length() > 0) { |
490 if (aText.Length() > 0) { |
449 text = QString::fromUtf16 (aText.Ptr(), aText.Length()); |
491 text = QString::fromUtf16 (aText.Ptr(), aText.Length()); |
450 TFLOGSTRING2("SATAPP: SatAppEventProvider::ConfirmSetUpCallL \ |
492 TFLOGSTRING2("SATAPP: SatAppEventProvider::ConfirmSetUpCallL \ |
451 text=%s", text.utf16()) |
493 text=%S", &aText) |
452 } |
494 } |
453 |
495 |
454 QString title; |
496 QString title; |
455 if (aText.Length() > 0) { |
497 if (aSimAppName.Length() > 0) { |
456 title = QString::fromUtf16 (aSimAppName.Ptr(), aSimAppName.Length()); |
498 title = QString::fromUtf16 (aSimAppName.Ptr(), aSimAppName.Length()); |
457 TFLOGSTRING2("SATAPP: SatAppEventProvider::ConfirmSetUpCallL \ |
499 TFLOGSTRING2("SATAPP: SatAppEventProvider::ConfirmSetUpCallL \ |
458 Title=%s", title.utf16()) |
500 Title=%S", &aSimAppName) |
459 } |
501 } |
460 bool actionAccepted = aActionAccepted; |
502 bool actionAccepted = aActionAccepted; |
461 |
503 |
462 emit showSetUpCallConfirmEvent( |
504 emit showSetUpCallConfirmEvent( |
463 text, |
505 text, |
464 title, |
506 title, |
465 actionAccepted); |
507 actionAccepted); |
466 TFLOGSTRING("SATAPP: SatAppEventProvider::ConfirmSetUpCallL exit") |
508 aActionAccepted = actionAccepted; |
|
509 TFLOGSTRING2("SATAPP: SatAppEventProvider::ConfirmSetUpCallL aActionAccepted %d \ |
|
510 exit", aActionAccepted) |
467 } |
511 } |
468 |
512 |
469 // ---------------------------------------------------------------------------- |
513 // ---------------------------------------------------------------------------- |
470 // SatAppEventProvider::ShowDtmfWaitNoteL |
514 // SatAppEventProvider::ShowDtmfWaitNoteL |
471 // (other items were commented in a header). |
515 // (other items were commented in a header). |
526 emit stopShowWaitNoteEvent(); |
577 emit stopShowWaitNoteEvent(); |
527 TFLOGSTRING("SATAPP: SatAppEventProvider::StopShowWaitNote exit") |
578 TFLOGSTRING("SATAPP: SatAppEventProvider::StopShowWaitNote exit") |
528 } |
579 } |
529 |
580 |
530 //----------------------------------------------------------------------------- |
581 //----------------------------------------------------------------------------- |
531 // SatAppEventProvider::userCancelDtmfResponse |
582 // SatAppEventProvider::userCancelResponse |
532 // (other items were commented in a header). |
583 // (other items were commented in a header). |
533 // ---------------------------------------------------------------------------- |
584 // ---------------------------------------------------------------------------- |
534 // |
585 // |
535 void SatAppEventProvider::userCancelDtmfResponse() |
586 void SatAppEventProvider::userCancelResponse() |
536 { |
587 { |
537 TFLOGSTRING("SATAPP: SatAppEventProvider::userCancelDtmfResponse call") |
588 TFLOGSTRING("SATAPP: SatAppEventProvider::userCancelResponse call") |
538 mObs->Adapter()->SessionTerminated( ESessionCancel ); |
589 mObs->Adapter()->SessionTerminated( ESessionCancel ); |
539 TFLOGSTRING("SATAPP: SatAppEventProvider::userCancelDtmfResponse exit") |
590 TFLOGSTRING("SATAPP: SatAppEventProvider::userCancelResponse exit") |
540 } |
591 } |
541 |
592 |
542 //End of file |
593 //----------------------------------------------------------------------------- |
|
594 // SatAppEventProvider::ShowSsWaitNoteL |
|
595 // (other items were commented in a header). |
|
596 // ---------------------------------------------------------------------------- |
|
597 // |
|
598 void SatAppEventProvider::ShowSsWaitNoteL( |
|
599 const TDesC &aText, |
|
600 const CFbsBitmap* /*aIconBitmap*/, |
|
601 const TBool aSelfExplanatoryIcon ) |
|
602 { |
|
603 TFLOGSTRING("SATAPP: SatAppEventProvider::ShowSsWaitNoteL call") |
|
604 QString title; |
|
605 if (aText.Length() > 0) { |
|
606 title = QString::fromUtf16 (aText.Ptr(), aText.Length()); |
|
607 TFLOGSTRING2("SATAPP: SatAppEventProvider::ShowSsWaitNoteL \ |
|
608 Title=%S", &aText) |
|
609 } |
|
610 bool selfExplanatoryIcon = aSelfExplanatoryIcon; |
|
611 |
|
612 emit showSsWaitNoteEvent( |
|
613 title, |
|
614 selfExplanatoryIcon); |
|
615 TFLOGSTRING("SATAPP: SatAppEventProvider::ShowSsWaitNoteL exit") |
|
616 } |
|
617 |
|
618 //----------------------------------------------------------------------------- |
|
619 // SatAppEventProvider::ShowWaitNoteWithoutDelayL |
|
620 // (other items were commented in a header). |
|
621 // ---------------------------------------------------------------------------- |
|
622 // |
|
623 void SatAppEventProvider::ShowWaitNoteWithoutDelayL() |
|
624 { |
|
625 TFLOGSTRING("SATAPP: SatAppEventProvider::ShowWaitNoteWithoutDelayL call") |
|
626 emit showWaitNoteWithoutDelayEvent(); |
|
627 TFLOGSTRING("SATAPP: SatAppEventProvider::ShowWaitNoteWithoutDelayL exit") |
|
628 } |
|
629 |
|
630 //----------------------------------------------------------------------------- |
|
631 // SatAppEventProvider::showSsErrorNoteEvent |
|
632 // (other items were commented in a header). |
|
633 // ---------------------------------------------------------------------------- |
|
634 // |
|
635 void SatAppEventProvider::ShowSsErrorNoteL() |
|
636 { |
|
637 TFLOGSTRING("SATAPP: SatAppEventProvider::showSsErrorNoteEvent call") |
|
638 emit showSsErrorNoteEvent(); |
|
639 TFLOGSTRING("SATAPP: SatAppEventProvider::showSsErrorNoteEvent exit") |
|
640 } |
|
641 |
|
642 //----------------------------------------------------------------------------- |
|
643 // SatAppEventProvider::ShowBIPNoteL |
|
644 // (other items were commented in a header). |
|
645 // ---------------------------------------------------------------------------- |
|
646 // |
|
647 void SatAppEventProvider::ShowBIPNoteL( TInt aCommand, const TDesC &aText, |
|
648 const CFbsBitmap* /*aIconBitmap*/, const TBool /*aSelfExplanatory*/) |
|
649 { |
|
650 TFLOGSTRING("SATAPP: SatAppEventProvider::ShowBIPNoteL call") |
|
651 int cmdType = aCommand; |
|
652 QString title; |
|
653 if (aText.Length() > 0) { |
|
654 title=QString::fromUtf16(aText.Ptr(), aText.Length()); |
|
655 TFLOGSTRING2("SATAPP: SatAppEventProvider::ShowBIPNoteL \ |
|
656 Title=%S", &aText) |
|
657 } |
|
658 emit showBIPNoteEvent(cmdType, title); |
|
659 TFLOGSTRING("SATAPP: SatAppEventProvider::ShowBIPNoteL exit") |
|
660 } |
|
661 |
|
662 //----------------------------------------------------------------------------- |
|
663 // SatAppEventProvider::ConfirmOpenChannelL |
|
664 // (other items were commented in a header). |
|
665 // ---------------------------------------------------------------------------- |
|
666 // |
|
667 TSatUiResponse SatAppEventProvider::ConfirmOpenChannelL( |
|
668 const TDesC &aText, |
|
669 TBool &aActionAccepted, |
|
670 const CFbsBitmap* /*aIconBitmapOpenChannel*/, |
|
671 const TBool /*aSelfExplanatory*/ ) |
|
672 { |
|
673 TFLOGSTRING("SATAPP: SatAppEventProvider::ConfirmOpenChannelL call") |
|
674 TSatUiResponse response( ESatSuccess ); |
|
675 |
|
676 QString title; |
|
677 if (aText.Length() > 0) { |
|
678 title=QString::fromUtf16(aText.Ptr(), aText.Length()); |
|
679 TFLOGSTRING2("SATAPP: SatAppEventProvider::ConfirmOpenChannelL \ |
|
680 Title=%S", &aText) |
|
681 } |
|
682 bool actionAccepted = aActionAccepted; |
|
683 emit showOpenChannelConfirmEvent(title, actionAccepted); |
|
684 aActionAccepted = actionAccepted; |
|
685 TFLOGSTRING2( "SATAPP: SatAppEventProvider::ConfirmOpenChannelL exit\ |
|
686 response: %d", response) |
|
687 return response; |
|
688 } |
|
689 |
|
690 //----------------------------------------------------------------------------- |
|
691 // SatAppEventProvider::PlayStandardToneL |
|
692 // (other items were commented in a header). |
|
693 // ---------------------------------------------------------------------------- |
|
694 // |
|
695 TSatUiResponse SatAppEventProvider::PlayStandardToneL( const TDesC& aText, |
|
696 const TDesC8& aSequence, |
|
697 TTimeIntervalMicroSeconds aDuration, |
|
698 const CFbsBitmap* aIconBitmap, |
|
699 const TBool aSelfExplanatory ) |
|
700 { |
|
701 TFLOGSTRING("SATAPP: SatAppEventProvider::PlayStandardToneL call") |
|
702 TSatUiResponse response = mPlayTone->PlayStandardToneL( |
|
703 aText, aSequence, aDuration, aIconBitmap, aSelfExplanatory); |
|
704 TFLOGSTRING2("SATAPP: SatAppEventProvider::PlayStandardToneL \ |
|
705 response= %d exit", response) |
|
706 return response; |
|
707 } |
|
708 |
|
709 //----------------------------------------------------------------------------- |
|
710 // SatAppEventProvider::PlayUserSelectedToneL |
|
711 // (other items were commented in a header). |
|
712 // ---------------------------------------------------------------------------- |
|
713 // |
|
714 TSatUiResponse SatAppEventProvider::PlayUserSelectedToneL( |
|
715 const TDesC &aText, |
|
716 TTimeIntervalMicroSeconds aDuration, |
|
717 TSatTone aTone, |
|
718 const CFbsBitmap* aIconBitmap, |
|
719 const TBool aSelfExplanatory ) |
|
720 { |
|
721 TFLOGSTRING("SatAppEventProvider::PlayUserSelectedToneL calling") |
|
722 TSatUiResponse response = mPlayTone->PlayUserSelectedToneL( |
|
723 aText, aDuration, aTone, aIconBitmap, aSelfExplanatory); |
|
724 TFLOGSTRING2( "SatAppEventProvider::PlayUserSelectedToneL response= %d \ |
|
725 exit", response) |
|
726 return response; |
|
727 } |
|
728 |
|
729 //End of file |