author | hgs |
Mon, 04 Oct 2010 16:06:10 +0300 | |
changeset 76 | cfea66083b62 |
parent 74 | d1c62c765e48 |
child 78 | baacf668fe89 |
permissions | -rw-r--r-- |
37 | 1 |
/* |
2 |
* Copyright (c) 2005-2009 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: Implementation of CPhoneStateInCall class. |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
// INCLUDES |
|
20 |
#include <featmgr.h> |
|
21 |
#include <StringLoader.h> |
|
22 |
#include <PSVariables.h> |
|
23 |
#include <hwrmdomainpskeys.h> |
|
24 |
#include <mpeengineinfo.h> |
|
25 |
#include <videotelcontrolmediatorapi.h> |
|
26 |
#include <MediatorDomainUIDs.h> |
|
27 |
#include <bldvariant.hrh> |
|
28 |
||
29 |
#include "cphonestateincall.h" |
|
30 |
#include "tphonecmdparamboolean.h" |
|
31 |
#include "tphonecmdparaminteger.h" |
|
32 |
#include "tphonecmdparamstring.h" |
|
33 |
#include "tphonecmdparamnote.h" |
|
34 |
#include "tphonecmdparamquery.h" |
|
35 |
#include "tphonecmdparamcallstatedata.h" |
|
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
36 |
#include "tphonecmdparamkeycapture.h" |
37 | 37 |
#include "tphonecmdparamsfidata.h" |
38 |
#include "mphonestatemachine.h" |
|
39 |
#include "phonestatedefinitions.h" |
|
40 |
#include "phoneviewcommanddefinitions.h" |
|
41 |
#include "phoneui.hrh" |
|
42 |
#include "phonerssbase.h" |
|
43 |
#include "cphonemainresourceresolver.h" |
|
44 |
#include "phonelogger.h" |
|
45 |
#include "phoneui.pan" |
|
46 |
#include "cphonepubsubproxy.h" |
|
47 |
#include "cphonedtmfwaitchartimer.h" |
|
48 |
#include "tphonecmdparamcallheaderdata.h" |
|
49 |
#include "cphonemediatorfactory.h" |
|
50 |
#include "cphonemediatorsender.h" |
|
51 |
#include "cphoneterminateallconnectionscommand.h" |
|
52 |
#include "mphonecustomization.h" |
|
53 |
||
54 |
// ================= MEMBER FUNCTIONS ======================= |
|
55 |
||
56 |
// C++ default constructor can NOT contain any code, that |
|
57 |
// might leave. |
|
58 |
// |
|
59 |
EXPORT_C CPhoneStateInCall::CPhoneStateInCall( |
|
60 |
MPhoneStateMachine* aStateMachine, |
|
61 |
MPhoneViewCommandHandle* aViewCommandHandle, |
|
62 |
MPhoneCustomization* aCustomization ) : |
|
63 |
CPhoneState( aStateMachine, aViewCommandHandle, aCustomization ), |
|
64 |
iDtmfWaitCharTimer( NULL ) |
|
65 |
{ |
|
66 |
} |
|
67 |
||
68 |
// ----------------------------------------------------------- |
|
69 |
// CPhoneStateInCall::~CPhoneStateInCall() |
|
70 |
// Destructor |
|
71 |
// (other items were commented in a header). |
|
72 |
// ----------------------------------------------------------- |
|
73 |
// |
|
74 |
EXPORT_C CPhoneStateInCall::~CPhoneStateInCall() |
|
75 |
{ |
|
76 |
if( iDtmfWaitCharTimer ) |
|
77 |
{ |
|
65 | 78 |
delete iDtmfWaitCharTimer; |
37 | 79 |
} |
80 |
} |
|
81 |
||
82 |
// ----------------------------------------------------------- |
|
83 |
// CPhoneStateInCall::ConstructL() |
|
84 |
// Constructor |
|
85 |
// (other items were commented in a header). |
|
86 |
// ----------------------------------------------------------- |
|
87 |
// |
|
88 |
EXPORT_C void CPhoneStateInCall::ConstructL() |
|
89 |
{ |
|
90 |
__ASSERT_DEBUG( iStateMachine->PhoneEngineInfo(), |
|
91 |
Panic( EPhoneCtrlInvariant ) ); |
|
92 |
CPhoneState::BaseConstructL(); |
|
93 |
} |
|
94 |
||
95 |
// ----------------------------------------------------------- |
|
96 |
// CPhoneStateInCall::NewL() |
|
97 |
// Constructor |
|
98 |
// (other items were commented in a header). |
|
99 |
// ----------------------------------------------------------- |
|
100 |
// |
|
101 |
CPhoneStateInCall* CPhoneStateInCall::NewL( |
|
102 |
MPhoneStateMachine* aStateMachine, |
|
103 |
MPhoneViewCommandHandle* aViewCommandHandle, |
|
104 |
MPhoneCustomization* aPhoneCustomization ) |
|
105 |
{ |
|
106 |
CPhoneStateInCall* self = new (ELeave) CPhoneStateInCall( |
|
107 |
aStateMachine, aViewCommandHandle, aPhoneCustomization ); |
|
108 |
||
109 |
CleanupStack::PushL( self ); |
|
110 |
self->ConstructL(); |
|
111 |
CleanupStack::Pop( self ); |
|
112 |
||
113 |
return self; |
|
114 |
} |
|
115 |
||
116 |
// ----------------------------------------------------------- |
|
117 |
// CPhoneStateInCall::HandleKeyMessageL |
|
118 |
// ----------------------------------------------------------- |
|
119 |
// |
|
120 |
EXPORT_C void CPhoneStateInCall::HandleKeyMessageL( |
|
121 |
TPhoneKeyEventMessages aMessage, |
|
122 |
TKeyCode aCode ) |
|
123 |
{ |
|
124 |
__LOGMETHODSTARTEND(EPhoneControl, |
|
125 |
"CPhoneStateInCall::HandleKeyMessageL()" ); |
|
126 |
switch ( aCode ) |
|
127 |
{ |
|
65 | 128 |
case EKeyNo: // end-key |
37 | 129 |
HandleEndKeyPressL( aMessage ); |
130 |
break; |
|
131 |
||
65 | 132 |
case EKeyDevice6: // Voice key |
37 | 133 |
HandleVoiceKeyPressL( aMessage ); |
134 |
break; |
|
135 |
||
136 |
#ifdef RD_INTELLIGENT_TEXT_INPUT |
|
137 |
case EKeyEnter: |
|
74 | 138 |
if ( iNumberEntryManager->IsNumberEntryVisibleL() ) |
37 | 139 |
{ |
140 |
HandleCommandL( EPhoneCmdOptions ); |
|
141 |
} |
|
142 |
break; |
|
143 |
#endif |
|
144 |
default: |
|
145 |
break; |
|
146 |
} |
|
147 |
} |
|
148 |
||
149 |
// ----------------------------------------------------------- |
|
150 |
// CPhoneStateInCall::HandleNumberEntryClearedL() |
|
151 |
// ----------------------------------------------------------- |
|
152 |
// |
|
153 |
EXPORT_C void CPhoneStateInCall::HandleNumberEntryClearedL() |
|
154 |
{ |
|
155 |
__LOGMETHODSTARTEND(EPhoneControl, |
|
156 |
"CPhoneStateInCall::HandleNumberEntryClearedL()" ); |
|
157 |
// Update single call CBA when number entry is cleared |
|
74 | 158 |
UpdateUiCommands(); |
37 | 159 |
} |
160 |
||
161 |
// ----------------------------------------------------------- |
|
162 |
// CPhoneStateInCall::HandlePhoneEngineMessageL |
|
163 |
// ----------------------------------------------------------- |
|
164 |
// |
|
165 |
EXPORT_C void CPhoneStateInCall::HandlePhoneEngineMessageL( |
|
166 |
const TInt aMessage, |
|
167 |
TInt aCallId ) |
|
168 |
{ |
|
169 |
__LOGMETHODSTARTEND(EPhoneControl, |
|
170 |
"CPhoneStateInCall::HandlePhoneEngineMessageL()" ); |
|
171 |
switch ( aMessage ) |
|
172 |
{ |
|
173 |
case MEngineMonitor::EPEMessageIdle: |
|
174 |
HandleIdleL( aCallId ); |
|
175 |
break; |
|
176 |
||
177 |
case MEngineMonitor::EPEMessageAudioMuteChanged: |
|
178 |
HandleAudioMuteChangedL(); |
|
179 |
break; |
|
180 |
||
181 |
case MEngineMonitor::EPEMessageAudioOutputChanged: |
|
182 |
HandleAudioOutputChangedL(); |
|
183 |
break; |
|
184 |
||
185 |
case MEngineMonitor::EPEMessageSendingDTMF: |
|
186 |
case MEngineMonitor::EPEMessageContinuingDTMFSending: |
|
187 |
HandleSendingDTMFL(); |
|
188 |
break; |
|
189 |
||
190 |
case MEngineMonitor::EPEMessageStoppedDTMF: |
|
191 |
HandleStoppedDTMFL(); |
|
192 |
break; |
|
193 |
||
194 |
case MEngineMonitor::EPEMessageSentDTMF: |
|
195 |
case MEngineMonitor::EPEMessageDTMFSendingAborted: |
|
196 |
CancelDTMFSendingL(); |
|
197 |
break; |
|
198 |
||
199 |
case MEngineMonitor::EPEMessageAudioVolumeChanged: |
|
200 |
HandleAudioVolumeChangedL(); |
|
201 |
break; |
|
202 |
||
203 |
case MEngineMonitor::EPEMessageDisconnecting: |
|
204 |
CancelDTMFSendingL(); |
|
205 |
CPhoneState::HandlePhoneEngineMessageL( aMessage, aCallId ); |
|
206 |
break; |
|
207 |
||
208 |
case MEngineMonitor::EPEMessageInValidEmergencyNumber: |
|
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
209 |
SendGlobalErrorNoteL( EPhoneNoteTextNotAllowed, ETrue ); |
37 | 210 |
break; |
211 |
||
212 |
case MEngineMonitor::EPEMessageValidEmergencyNumber: |
|
213 |
DialVoiceCallL(); |
|
65 | 214 |
break; |
37 | 215 |
|
216 |
case MEngineMonitor::EPEMessageRemotePartyInfoChanged: |
|
76 | 217 |
UpdateCallHeader( aCallId ); |
37 | 218 |
break; |
219 |
||
220 |
default: |
|
221 |
CPhoneState::HandlePhoneEngineMessageL( aMessage, aCallId ); |
|
222 |
break; |
|
223 |
} |
|
224 |
} |
|
225 |
||
226 |
// ----------------------------------------------------------- |
|
227 |
// CPhoneStateInCall::HandleIdleL |
|
228 |
// ----------------------------------------------------------- |
|
229 |
// |
|
230 |
EXPORT_C void CPhoneStateInCall::HandleIdleL( TInt aCallId ) |
|
231 |
{ |
|
65 | 232 |
__LOGMETHODSTARTEND(EPhoneControl, "CPhoneStateInCall::HandleIdleL()" ); |
37 | 233 |
__ASSERT_DEBUG( aCallId >= 0, Panic( EPhoneCtrlParameterNotInitialized ) ); |
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
234 |
TBool showDialer( EFalse ); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
235 |
HBufC *phoneNumber = HBufC::NewLC( KPhoneNumberEntryBufferSize ); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
236 |
TPtr ptr( phoneNumber->Des() ); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
237 |
TPhoneCmdParamString stringParam; |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
238 |
stringParam.SetString( &ptr ); |
74 | 239 |
|
65 | 240 |
|
37 | 241 |
BeginUiUpdateLC(); |
242 |
SetDefaultFlagsL(); |
|
74 | 243 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId ); |
244 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewHideToolbar ); |
|
245 |
if ( iNumberEntryManager->IsNumberEntryUsedL() ) |
|
37 | 246 |
{ |
50 | 247 |
iViewCommandHandle->ExecuteCommand( |
248 |
EPhoneViewGetNumberFromEntry, |
|
249 |
&stringParam ); |
|
250 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveNumberEntry ); |
|
251 |
showDialer = ETrue; |
|
37 | 252 |
} |
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
253 |
|
74 | 254 |
if ( IsAutoLockOn() || !showDialer ) |
65 | 255 |
{ |
74 | 256 |
RemoveDialogsAndSendPhoneToBackgroundL(); |
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
257 |
} |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
258 |
else if ( showDialer ) |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
259 |
{ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
260 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewLaunchLogs, &stringParam ); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
261 |
} |
37 | 262 |
|
65 | 263 |
DeleteTouchPaneButtons(); |
37 | 264 |
EndUiUpdate(); |
265 |
DisplayCallTerminationNoteL(); |
|
266 |
||
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
267 |
TPhoneCmdParamKeyCapture captureParam; |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
268 |
captureParam.SetKeyCode( EKeyNo ); |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
269 |
iViewCommandHandle->ExecuteCommand( EPhoneViewStopCapturingKey, &captureParam ); |
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
270 |
CleanupStack::PopAndDestroy( phoneNumber ); |
37 | 271 |
iStateMachine->ChangeState( EPhoneStateIdle ); |
272 |
} |
|
273 |
||
274 |
// ----------------------------------------------------------- |
|
275 |
// CPhoneStateInCall::HandleAudioMuteChangedL |
|
276 |
// ----------------------------------------------------------- |
|
277 |
// |
|
278 |
void CPhoneStateInCall::HandleAudioMuteChangedL() |
|
279 |
{ |
|
280 |
__LOGMETHODSTARTEND(EPhoneControl, |
|
281 |
"CPhoneStateInCall::HandleAudioMuteChangedL()" ); |
|
282 |
CPhoneState::HandleAudioMuteChangedL(); |
|
74 | 283 |
UpdateUiCommands(); |
37 | 284 |
} |
285 |
||
286 |
// ----------------------------------------------------------- |
|
287 |
// CPhoneStateInCall::HandleAudioOutputChangedL |
|
288 |
// ----------------------------------------------------------- |
|
289 |
// |
|
290 |
void CPhoneStateInCall::HandleAudioOutputChangedL() |
|
291 |
{ |
|
292 |
__LOGMETHODSTARTEND(EPhoneControl, |
|
293 |
"CPhoneStateInCall::HandleAudioOutputChangedL()" ); |
|
74 | 294 |
CPhoneState::HandleAudioOutputChangedL(); |
295 |
UpdateUiCommands(); |
|
37 | 296 |
} |
297 |
||
298 |
// ----------------------------------------------------------- |
|
299 |
// CPhoneStateInCall::HandleAudioVolumeChangedL |
|
300 |
// ----------------------------------------------------------- |
|
301 |
// |
|
302 |
void CPhoneStateInCall::HandleAudioVolumeChangedL() |
|
303 |
{ |
|
304 |
__LOGMETHODSTARTEND(EPhoneControl, |
|
305 |
"CPhoneStateInCall::HandleAudioVolumeChangedL()" ); |
|
306 |
TInt audioVolume = iStateMachine->PhoneEngineInfo()->AudioVolume(); |
|
307 |
TPhoneCmdParamInteger volumeParam; |
|
308 |
volumeParam.SetInteger( audioVolume ); |
|
309 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewSetNaviPaneAudioVolume, |
|
310 |
&volumeParam ); |
|
311 |
} |
|
312 |
||
313 |
// ----------------------------------------------------------- |
|
314 |
// CPhoneStateInCall::HandleSendingDTMFL |
|
315 |
// ----------------------------------------------------------- |
|
316 |
// |
|
317 |
void CPhoneStateInCall::HandleSendingDTMFL() |
|
318 |
{ |
|
319 |
__LOGMETHODSTARTEND(EPhoneControl, |
|
320 |
"CPhoneStateInCall::HandleSendingDTMFL()" ); |
|
321 |
TPhoneCmdParamNote noteParam; |
|
322 |
noteParam.SetType( EPhoneNoteDtmfSending ); |
|
323 |
noteParam.SetResourceId( CPhoneMainResourceResolver::Instance()-> |
|
324 |
ResolveResourceID( EPhoneSendingDtmfWaitNote ) ); |
|
65 | 325 |
|
37 | 326 |
// Show the "Sending..." Wait Note, and pre-populate it |
327 |
// with the PhoneEngine's current DTMF String. |
|
328 |
// Set the text for the wait-note. |
|
329 |
TPEDtmfString dtmfString = iStateMachine->PhoneEngineInfo()->DtmfString(); |
|
330 |
HBufC* noteText = StringLoader::LoadLC( |
|
331 |
CPhoneMainResourceResolver::Instance()-> |
|
332 |
ResolveResourceID( EPhoneSendingDtmfWaitNoteText ), |
|
333 |
dtmfString ); |
|
334 |
noteParam.SetText( *noteText ); |
|
335 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewShowNote, ¬eParam ); |
|
336 |
CleanupStack::PopAndDestroy( noteText ); |
|
337 |
} |
|
338 |
||
339 |
// ----------------------------------------------------------- |
|
340 |
// CPhoneStateInCall::HandleStoppedDTMFL |
|
341 |
// ----------------------------------------------------------- |
|
342 |
// |
|
343 |
void CPhoneStateInCall::HandleStoppedDTMFL() |
|
344 |
{ |
|
345 |
__LOGMETHODSTARTEND(EPhoneControl, |
|
346 |
"CPhoneStateInCall::HandleStoppedDTMFL()" ); |
|
347 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveNote ); |
|
348 |
// Fetch the remaining (unparsed) portion of the DTMF String |
|
349 |
// from PhoneEngine |
|
350 |
TPEDtmfString dtmfString = iStateMachine->PhoneEngineInfo()->DtmfString(); |
|
351 |
||
352 |
if ( dtmfString.Length() ) |
|
353 |
{ |
|
354 |
// Show the DTMF Wait Character confirmation query |
|
355 |
TPhoneCmdParamQuery queryParam; |
|
356 |
queryParam.SetQueryType( EPhoneQueryDialog ); |
|
357 |
queryParam.SetQueryResourceId( |
|
358 |
CPhoneMainResourceResolver::Instance()->ResolveResourceID( |
|
359 |
EPhoneDtmfWaitCharacterConfirmationQuery ) ); |
|
360 |
||
361 |
// Append the PhoneEngine's current DTMF String to the query's prompt |
|
362 |
HBufC* queryPrompt = StringLoader::LoadLC( |
|
363 |
CPhoneMainResourceResolver::Instance()->ResolveResourceID( |
|
364 |
EPhoneDtmfWaitCharacterConfirmationQueryText ), |
|
365 |
dtmfString ); |
|
366 |
queryParam.SetQueryPrompt( *queryPrompt ); |
|
367 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewShowQuery, |
|
368 |
&queryParam ); |
|
369 |
CleanupStack::PopAndDestroy( queryPrompt ); |
|
370 |
} |
|
371 |
else |
|
372 |
{ |
|
373 |
// Stop the asynchronous sending operation the |
|
374 |
// PhoneEngine may be performing. |
|
375 |
iStateMachine->SendPhoneEngineMessage( |
|
376 |
MPEPhoneModel::EPEMessageStopDTMFSending ); |
|
377 |
||
378 |
// Prompt for more characters by showing DTMF query with empty string |
|
379 |
HBufC* emptyString = HBufC::NewLC( KPhoneNumberEntryBufferSize ); |
|
380 |
TPtr ptr( emptyString->Des() ); |
|
381 |
ShowDtmfTextQueryL( |
|
382 |
CPhoneMainResourceResolver::Instance()-> |
|
383 |
ResolveResourceID( EPhoneDtmfNumberQuery ), |
|
384 |
CPhoneMainResourceResolver::Instance()-> |
|
385 |
ResolveResourceID( EPhoneSendDtmfEmptyEditBoxCBA ), |
|
386 |
CPhoneMainResourceResolver::Instance()-> |
|
387 |
ResolveResourceID( EPhoneSendDtmfNormalEditBoxCBA ), |
|
388 |
&ptr ); |
|
389 |
CleanupStack::PopAndDestroy( emptyString ); |
|
390 |
} |
|
391 |
} |
|
392 |
||
393 |
// ----------------------------------------------------------- |
|
394 |
// CPhoneStateInCall::CancelDTMFSendingL |
|
395 |
// ----------------------------------------------------------- |
|
396 |
// |
|
397 |
void CPhoneStateInCall::CancelDTMFSendingL() |
|
398 |
{ |
|
399 |
__LOGMETHODSTARTEND(EPhoneControl, |
|
400 |
"CPhoneStateInCall::CancelDTMFSendingL()" ); |
|
401 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveDtmfNote ); |
|
402 |
} |
|
403 |
||
404 |
// ----------------------------------------------------------- |
|
405 |
// CPhoneStateInCall::HandleCommandL |
|
406 |
// ----------------------------------------------------------- |
|
407 |
// |
|
408 |
EXPORT_C TBool CPhoneStateInCall::HandleCommandL( TInt aCommand ) |
|
409 |
{ |
|
65 | 410 |
__LOGMETHODSTARTEND( EPhoneControl, "CPhoneStateInCall::HandleCommandL()" ); |
37 | 411 |
__PHONELOG1 ( EBasic, EPhoneControl, |
412 |
"CPhoneStateInCall::HandleCommandL() - aCommand = %d ", aCommand ); |
|
413 |
TBool commandStatus = ETrue; |
|
414 |
switch( aCommand ) |
|
415 |
{ |
|
416 |
case EPhoneInCallCmdDialer: |
|
417 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewOpenDialer ); |
|
418 |
break; |
|
419 |
||
420 |
case EPhoneDtmfDialerCancel: |
|
421 |
{ |
|
422 |
// Activate DTMF list query when cancel is pressed. |
|
423 |
// Forwards command to the framework |
|
424 |
HandleCommandL( EPhoneInCallCmdDtmfListQuery ); |
|
425 |
} |
|
426 |
break; |
|
427 |
||
428 |
case EPhoneInCallCmdEndThisActiveCall: |
|
429 |
CPhoneState::DisconnectCallL(); |
|
430 |
break; |
|
431 |
||
432 |
case EPhoneCallComingCmdReject: // fall through |
|
433 |
case EPhoneInCallCmdReject: |
|
434 |
iStateMachine->SendPhoneEngineMessage( |
|
435 |
MPEPhoneModel::EPEMessageReject ); |
|
436 |
break; |
|
437 |
||
438 |
case EPhoneInCallCmdMute: // fall through |
|
439 |
case EPhoneInCallCmdUnmute: |
|
440 |
iStateMachine->PhoneEngineInfo()->SetAudioMuteCommand( |
|
441 |
( aCommand == EPhoneInCallCmdMute ) ); |
|
442 |
iStateMachine->SendPhoneEngineMessage( |
|
443 |
MPEPhoneModel::EPEMessageSetAudioMute ); |
|
444 |
break; |
|
65 | 445 |
|
37 | 446 |
//DTMF list query - dialog |
447 |
case EPhoneInCallCmdDtmfListQuery: |
|
448 |
LaunchDtmfListQueryL(); |
|
449 |
break; |
|
450 |
||
451 |
// DTMF entry - Ok |
|
452 |
case EPhoneCmdDtmfOk: |
|
453 |
SendDtmfL(); |
|
454 |
break; |
|
455 |
||
456 |
// DTMF sending - Cancel |
|
457 |
case EPhoneInCallCmdCancelSendingDtmfString: |
|
458 |
// Stop the asynchronous sending operation the |
|
459 |
// PhoneEngine may be performing. |
|
460 |
iStateMachine->SendPhoneEngineMessage( |
|
461 |
MPEPhoneModel::EPEMessageStopDTMFSending ); |
|
462 |
// Remove DTMF sending from screen |
|
463 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveNote ); |
|
464 |
break; |
|
465 |
||
466 |
// DTMF wait - Ok |
|
467 |
case EPhoneInCallCmdContinueSendingDtmfString: |
|
468 |
// Continue sending the DTMF string |
|
469 |
if( !iDtmfWaitCharTimer ) |
|
470 |
{ |
|
471 |
iDtmfWaitCharTimer = CPhoneDtmfWaitCharTimer::NewL( |
|
472 |
iStateMachine ); |
|
473 |
} |
|
474 |
iDtmfWaitCharTimer->ButtonPressedL(); |
|
475 |
break; |
|
476 |
||
477 |
case EPhoneNumberAcqCmdCall: |
|
478 |
case EPhoneNumberAcqCmdSendCommand: |
|
479 |
if ( IsVideoCallActiveL() ) |
|
480 |
{ |
|
481 |
// Get the number entry contents |
|
482 |
HBufC *phoneNumber = HBufC::NewLC( KPhoneNumberEntryBufferSize ); |
|
483 |
TPtr ptr( phoneNumber->Des() ); |
|
484 |
TPhoneCmdParamString stringParam; |
|
485 |
stringParam.SetString( &ptr ); |
|
486 |
iViewCommandHandle->ExecuteCommand( |
|
487 |
EPhoneViewGetNumberFromEntry, |
|
488 |
&stringParam ); |
|
489 |
iStateMachine->PhoneEngineInfo()->SetPhoneNumber( ptr ); |
|
490 |
||
491 |
if ( iStateMachine->PhoneEngineInfo()->PhoneNumberIsServiceCode() || |
|
492 |
phoneNumber->Des().Length() < KPhoneValidPhoneNumberLength ) |
|
493 |
{ |
|
494 |
// Send a manual control sequence by providing number |
|
495 |
// information with dial command |
|
74 | 496 |
iNumberEntryManager->CallFromNumberEntryL(); |
37 | 497 |
} |
498 |
else |
|
499 |
{ |
|
500 |
iStateMachine->SendPhoneEngineMessage( |
|
501 |
MPEPhoneModel::EPEMessageCheckEmergencyNumber ); |
|
502 |
} |
|
65 | 503 |
CleanupStack::PopAndDestroy( phoneNumber ); |
37 | 504 |
} |
505 |
else |
|
506 |
{ |
|
74 | 507 |
iNumberEntryManager->CallFromNumberEntryL(); |
37 | 508 |
} |
509 |
break; |
|
510 |
||
511 |
case EPhoneCmdEnd: |
|
512 |
CPhoneState::DisconnectCallL(); |
|
513 |
break; |
|
514 |
||
515 |
// 'End all calls' from menu |
|
516 |
case EPhoneInCallCmdEndAllCalls: |
|
517 |
iStateMachine->SendPhoneEngineMessage( |
|
518 |
MPEPhoneModel::EPEMessageReleaseAll ); |
|
519 |
break; |
|
520 |
||
521 |
case EPhoneInCallCmdEndThisOutgoingCall: |
|
522 |
DisconnectOutgoingCallL(); |
|
523 |
break; |
|
524 |
||
525 |
case EPhoneInCallCmdGoToIdle: |
|
65 | 526 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewBringIdleToForeground ); |
527 |
break; |
|
37 | 528 |
|
529 |
case EPhoneNumberAcqCmdVideoCall: |
|
530 |
{// Create normal voice call, if number is emergency number. |
|
531 |
// Get the number entry contents |
|
74 | 532 |
HBufC* phoneNumber = iNumberEntryManager->PhoneNumberFromEntryLC(); |
37 | 533 |
iStateMachine->PhoneEngineInfo()->SetPhoneNumber( *phoneNumber ); |
534 |
iStateMachine->SendPhoneEngineMessage( |
|
535 |
MPEPhoneModel::EPEMessageCheckEmergencyNumber ); |
|
536 |
CleanupStack::PopAndDestroy( phoneNumber );} |
|
537 |
break; |
|
538 |
||
539 |
case EPhoneViewOpenCallHandling: |
|
74 | 540 |
if ( iNumberEntryManager->IsNumberEntryUsedL() ) |
37 | 541 |
{ |
542 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveNumberEntry ); |
|
543 |
HandleNumberEntryClearedL(); |
|
544 |
} |
|
65 | 545 |
commandStatus = CPhoneState::HandleCommandL( aCommand ); |
37 | 546 |
break; |
65 | 547 |
|
548 |
case EPhoneInCallCmdNewCall: |
|
549 |
case EPhoneInCallCmdDtmfManualQuery: |
|
550 |
case EPhoneDtmfDialerExit: |
|
551 |
case EPhoneCmdOptions: |
|
552 |
break; |
|
37 | 553 |
|
554 |
default: |
|
555 |
commandStatus = CPhoneState::HandleCommandL( aCommand ); |
|
556 |
break; |
|
557 |
} |
|
558 |
return commandStatus; |
|
559 |
} |
|
560 |
||
561 |
// ----------------------------------------------------------- |
|
562 |
// CPhoneStateInCall::CallFetchedNumberL |
|
563 |
// ----------------------------------------------------------- |
|
564 |
// |
|
565 |
EXPORT_C void CPhoneStateInCall::CallFetchedNumberL( |
|
566 |
const TDesC& aFetchedNumber ) |
|
567 |
{ |
|
568 |
__LOGMETHODSTARTEND(EPhoneControl, |
|
569 |
"CPhoneStateInCall::CallFetchedNumberL()" ); |
|
570 |
__ASSERT_DEBUG( iStateMachine->PhoneEngineInfo(), |
|
65 | 571 |
Panic( EPhoneCtrlInvariant ) ); |
37 | 572 |
// Store the phone number |
573 |
iStateMachine->PhoneEngineInfo()->SetPhoneNumber( aFetchedNumber ); |
|
574 |
DialVoiceCallL(); |
|
575 |
} |
|
576 |
||
577 |
// ----------------------------------------------------------- |
|
578 |
// CPhoneStateInCall::SendDtmfL |
|
579 |
// ----------------------------------------------------------- |
|
580 |
// |
|
581 |
void CPhoneStateInCall::SendDtmfL() |
|
582 |
{ |
|
583 |
__LOGMETHODSTARTEND(EPhoneControl, |
|
584 |
"CPhoneStateInCall::SendDtmfL()" ); |
|
585 |
__ASSERT_DEBUG( iStateMachine->PhoneEngineInfo(), |
|
586 |
Panic( EPhoneCtrlInvariant ) ); |
|
587 |
// First get the DTMF sequence from dialog |
|
588 |
TPhoneCmdParamString dtmfSequence; |
|
589 |
HBufC *content = HBufC::NewLC( KPEDtmfMaxLength ); |
|
590 |
TPtr ptr( content->Des() ); |
|
591 |
dtmfSequence.SetString( &ptr ); |
|
65 | 592 |
iViewCommandHandle->ExecuteCommand( |
593 |
EPhoneViewGetNumberFromEntry, |
|
594 |
&dtmfSequence ); |
|
37 | 595 |
|
596 |
// Send the DTMF |
|
597 |
if ( ptr.Length() ) |
|
598 |
{ |
|
599 |
iStateMachine->PhoneEngineInfo()->SetDtmfStringCommand( ptr ); |
|
600 |
iStateMachine->SendPhoneEngineMessage( |
|
65 | 601 |
MPEPhoneModel::EPEMessageSendDTMF ); |
37 | 602 |
} |
603 |
CleanupStack::PopAndDestroy( content ); |
|
604 |
} |
|
605 |
||
606 |
// ----------------------------------------------------------- |
|
607 |
// CPhoneStateInCall::LaunchDtmfListQueryL |
|
608 |
// ----------------------------------------------------------- |
|
609 |
// |
|
610 |
void CPhoneStateInCall::LaunchDtmfListQueryL() |
|
611 |
{ |
|
612 |
__LOGMETHODSTARTEND(EPhoneControl, |
|
65 | 613 |
"CPhoneStateInCall::LaunchDtmfListQueryL()" ); |
614 |
||
37 | 615 |
TPhoneCmdParamCallStateData callStateData; |
616 |
callStateData.SetCallState( EPEStateConnected ); |
|
617 |
iViewCommandHandle->HandleCommandL( |
|
618 |
EPhoneViewGetCallIdByState, &callStateData ); |
|
619 |
||
620 |
if ( callStateData.CallId() == KErrNotFound ) |
|
621 |
{ |
|
622 |
callStateData.SetCallState( EPEStateConnecting ); |
|
623 |
iViewCommandHandle->HandleCommandL( |
|
624 |
EPhoneViewGetCallIdByState, &callStateData ); |
|
625 |
} |
|
626 |
||
627 |
if ( callStateData.CallId() > KErrNotFound ) |
|
628 |
{ |
|
65 | 629 |
//Get Array of DTMF strings from PhoneEngine |
37 | 630 |
const CDesCArray& dtmfArray = |
631 |
iStateMachine->PhoneEngineInfo()-> |
|
65 | 632 |
RemotePredefinedDtmfStrings( callStateData.CallId() ); |
37 | 633 |
TInt itemCount = dtmfArray.Count(); |
634 |
if ( itemCount ) |
|
635 |
{ |
|
65 | 636 |
TPhoneCmdParamString stringParam; |
37 | 637 |
//Go through the array and send each dtmf string |
638 |
//to view. |
|
639 |
for ( TInt i=0; i<itemCount; i++ ) |
|
640 |
{ |
|
641 |
TPtrC16 ptrC16 = dtmfArray.MdcaPoint( i ); |
|
642 |
HBufC* string = ptrC16.AllocL(); |
|
643 |
CleanupStack::PushL( string ); |
|
644 |
TPtr ptr( string->Des() ); |
|
645 |
||
646 |
stringParam.SetString( &ptr ); |
|
647 |
iViewCommandHandle->ExecuteCommandL( |
|
648 |
EPhoneViewSetListQueryString, |
|
65 | 649 |
&stringParam ); |
37 | 650 |
CleanupStack::PopAndDestroy( string ); |
651 |
string = NULL; |
|
65 | 652 |
} |
37 | 653 |
} |
654 |
} |
|
655 |
else |
|
656 |
{ |
|
657 |
__PHONELOG( EOnlyFatal, EPhoneControl, |
|
65 | 658 |
"CPhoneStateInCall::LaunchDtmfListQueryL() No found valid call id" ); |
659 |
} |
|
37 | 660 |
// if there is a connected call only then open DtmfListQuery. |
661 |
if ( IsAnyConnectedCalls() ) |
|
662 |
{ |
|
663 |
TPhoneCmdParamQuery queryDialogParam; |
|
664 |
queryDialogParam.SetQueryType( EPhoneDtmfListQueryDialog ); |
|
665 |
queryDialogParam.SetQueryResourceId( |
|
666 |
CPhoneMainResourceResolver::Instance()-> |
|
65 | 667 |
ResolveResourceID( EPhoneDtmfNumberListQuery ) ); |
37 | 668 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewShowQuery, |
669 |
&queryDialogParam ); |
|
670 |
} |
|
50 | 671 |
} |
37 | 672 |
|
673 |
// --------------------------------------------------------- |
|
674 |
// CPhoneStateInCall::IsVideoCallActiveL |
|
675 |
// --------------------------------------------------------- |
|
676 |
// |
|
677 |
EXPORT_C TBool CPhoneStateInCall::IsVideoCallActiveL() |
|
678 |
{ |
|
679 |
__LOGMETHODSTARTEND(EPhoneControl, |
|
680 |
"CPhoneStateInCall::IsVideoCallActive()" ); |
|
681 |
TBool retVal = EFalse; |
|
682 |
TPhoneCmdParamCallStateData callStateData; |
|
683 |
callStateData.SetCallState( EPEStateConnected ); |
|
684 |
iViewCommandHandle->HandleCommandL( |
|
685 |
EPhoneViewGetCallIdByState, &callStateData ); |
|
686 |
if ( callStateData.CallId() > KErrNotFound ) |
|
687 |
{ |
|
688 |
retVal = IsVideoCall( callStateData.CallId() ); |
|
689 |
} |
|
690 |
return retVal; |
|
691 |
} |
|
692 |
||
693 |
// --------------------------------------------------------- |
|
694 |
// CPhoneStateInCall::IsVideoCallRingingL |
|
695 |
// --------------------------------------------------------- |
|
696 |
// |
|
697 |
||
698 |
EXPORT_C TBool CPhoneStateInCall::IsVideoCallRingingL() |
|
699 |
{ |
|
700 |
__LOGMETHODSTARTEND(EPhoneControl, |
|
701 |
"CPhoneStateInCall::IsVideoCallRingingL()" ); |
|
702 |
TBool retVal = EFalse; |
|
703 |
TPhoneCmdParamCallStateData callStateData; |
|
704 |
callStateData.SetCallState( EPEStateRinging ); |
|
705 |
iViewCommandHandle->HandleCommandL( |
|
706 |
EPhoneViewGetCallIdByState, &callStateData ); |
|
707 |
if ( callStateData.CallId() > KErrNotFound ) |
|
708 |
{ |
|
709 |
retVal = IsVideoCall( callStateData.CallId() ); |
|
710 |
} |
|
711 |
return retVal; |
|
712 |
} |
|
713 |
||
714 |
// --------------------------------------------------------- |
|
715 |
// CPhoneStateInCall::GetRingingCallL |
|
716 |
// --------------------------------------------------------- |
|
717 |
// |
|
718 |
||
719 |
EXPORT_C TInt CPhoneStateInCall::GetRingingCallL() |
|
720 |
{ |
|
721 |
__LOGMETHODSTARTEND(EPhoneControl, |
|
722 |
"CPhoneStateInCall::GetRingingCallL()" ); |
|
723 |
TPhoneCmdParamCallStateData callStateData; |
|
724 |
callStateData.SetCallState( EPEStateRinging ); |
|
725 |
iViewCommandHandle->HandleCommandL( |
|
726 |
EPhoneViewGetCallIdByState, &callStateData ); |
|
727 |
return callStateData.CallId(); |
|
728 |
} |
|
729 |
||
730 |
// ----------------------------------------------------------- |
|
731 |
// CPhoneStateInCall::DisconnectOutgoingCallL |
|
732 |
// ----------------------------------------------------------- |
|
733 |
// |
|
734 |
EXPORT_C void CPhoneStateInCall::DisconnectOutgoingCallL() |
|
735 |
{ |
|
736 |
__LOGMETHODSTARTEND(EPhoneControl, |
|
737 |
"CPhoneStateInCall::DisconnectOutgoingCallL()"); |
|
738 |
TPhoneCmdParamCallStateData callStateData; |
|
739 |
callStateData.SetCallState( EPEStateConnecting ); |
|
740 |
iViewCommandHandle->HandleCommandL( |
|
741 |
EPhoneViewGetCallIdByState, &callStateData ); |
|
742 |
if( callStateData.CallId() == KErrNotFound ) |
|
743 |
{ |
|
744 |
// No connecting call, find the dialing call |
|
745 |
callStateData.SetCallState( EPEStateDialing ); |
|
746 |
iViewCommandHandle->HandleCommandL( |
|
747 |
EPhoneViewGetCallIdByState, &callStateData ); |
|
748 |
||
749 |
if( callStateData.CallId() == KErrNotFound ) |
|
750 |
{ |
|
751 |
// No dialing call, find the disconnectinging call |
|
752 |
callStateData.SetCallState( EPEStateDisconnecting ); |
|
753 |
iViewCommandHandle->HandleCommandL( |
|
754 |
EPhoneViewGetCallIdByState, &callStateData ); |
|
755 |
} |
|
756 |
else |
|
757 |
{ |
|
74 | 758 |
iNumberEntryManager->SetVisibilityIfNumberEntryUsedL(ETrue); |
37 | 759 |
} |
760 |
} |
|
761 |
||
762 |
if( callStateData.CallId() > KErrNotFound ) |
|
763 |
{ |
|
764 |
iStateMachine->SetCallId( callStateData.CallId() ); |
|
765 |
iStateMachine->SendPhoneEngineMessage( |
|
766 |
MPEPhoneModel::EPEMessageRelease ); |
|
767 |
} |
|
768 |
else |
|
769 |
{ |
|
770 |
__PHONELOG( EOnlyFatal, EPhoneControl, |
|
771 |
"CPhoneStateInCall::DisconnectOutgoingCallL() has negative call id!" ); |
|
772 |
__ASSERT_DEBUG( EFalse, Panic( EPhoneCtrlIndexOutOfBounds ) ); |
|
773 |
} |
|
774 |
} |
|
775 |
||
776 |
// ----------------------------------------------------------------------------- |
|
777 |
// CPhoneStateInCall::HandleEndKeyPressL |
|
778 |
// ----------------------------------------------------------------------------- |
|
779 |
// |
|
780 |
void CPhoneStateInCall::HandleEndKeyPressL( TPhoneKeyEventMessages aMessage ) |
|
781 |
{ |
|
65 | 782 |
__LOGMETHODSTARTEND(EPhoneControl, "CPhoneStateInCall::HandleEndKeyPressL()"); |
37 | 783 |
if ( aMessage == EPhoneKeyLongPress ) |
784 |
{ |
|
785 |
TPhoneCmdParamCallStateData callStateData; |
|
786 |
callStateData.SetCallState( EPEStateConnected ); |
|
787 |
iViewCommandHandle->HandleCommandL( |
|
788 |
EPhoneViewGetCallIdByState, &callStateData ); |
|
789 |
||
790 |
if( IsVideoCall( callStateData.CallId() ) ) |
|
791 |
{ |
|
792 |
// Video call can be released only after we get response to VT Shutdown Command |
|
793 |
CPhoneMediatorFactory::Instance()->Sender()->IssueCommand( |
|
794 |
KMediatorVideoTelephonyDomain, |
|
795 |
KCatPhoneToVideotelCommands, |
|
796 |
EVtCmdReleaseDataport, |
|
797 |
TVersion( KPhoneToVideotelCmdVersionMajor, |
|
798 |
KPhoneToVideotelCmdVersionMinor, |
|
799 |
KPhoneToVideotelCmdVersionBuild ), |
|
800 |
KNullDesC8, |
|
801 |
CPhoneTerminateAllConnectionsCommand::NewL( *iStateMachine ) ); |
|
802 |
} |
|
803 |
else |
|
804 |
{ |
|
805 |
iStateMachine->SendPhoneEngineMessage( |
|
806 |
MPEPhoneModel::EPEMessageTerminateAllConnections ); |
|
74 | 807 |
iNumberEntryManager->ClearNumberEntryContentCacheIfContentStored(); |
37 | 808 |
} |
809 |
||
74 | 810 |
if ( iNumberEntryManager->IsNumberEntryUsedL() ) |
37 | 811 |
{ |
50 | 812 |
iViewCommandHandle->ExecuteCommandL( |
813 |
EPhoneViewRemoveNumberEntry ); |
|
814 |
// Do state-specific operation when number entry is cleared |
|
65 | 815 |
HandleNumberEntryClearedL(); |
37 | 816 |
} |
817 |
} |
|
818 |
else |
|
50 | 819 |
{ |
37 | 820 |
// handle short end key |
65 | 821 |
CPhoneState::DisconnectCallL(); |
37 | 822 |
} |
823 |
} |
|
824 |
||
825 |
// ----------------------------------------------------------------------------- |
|
826 |
// CPhoneStateInCall::HandleVoiceKeyPressL |
|
827 |
// ----------------------------------------------------------------------------- |
|
828 |
// |
|
829 |
void CPhoneStateInCall::HandleVoiceKeyPressL( TPhoneKeyEventMessages aMessage ) |
|
830 |
{ |
|
831 |
__LOGMETHODSTARTEND(EPhoneControl, |
|
832 |
"CPhoneStateInCall::HandleVoiceKeyPressL()"); |
|
833 |
if ( aMessage == EPhoneKeyShortPress ) |
|
834 |
{ |
|
65 | 835 |
const TBool handsfreeMode = iStateMachine-> |
836 |
PhoneEngineInfo()->AudioOutput() == EPELoudspeaker; |
|
37 | 837 |
SetHandsfreeModeL( !handsfreeMode ); |
838 |
} |
|
839 |
else // aMessage == EPhoneKeyLongPress |
|
840 |
{ |
|
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
841 |
SendGlobalInfoNoteL( EPhoneCallInProgress, ETrue ); |
65 | 842 |
} |
37 | 843 |
} |
844 |
||
845 |
// ----------------------------------------------------------- |
|
846 |
// CPhoneStateInCall::ShowDtmfTextQueryL |
|
847 |
// ----------------------------------------------------------- |
|
848 |
// |
|
849 |
void CPhoneStateInCall::ShowDtmfTextQueryL( |
|
850 |
TInt aDialogResourceId, |
|
851 |
TInt aDefaultCbaResourceId, |
|
852 |
TInt aContentCbaResourceId, |
|
853 |
TDes* aDataText, |
|
854 |
TBool aSendKeyEnabled ) |
|
855 |
{ |
|
856 |
__LOGMETHODSTARTEND(EPhoneControl, |
|
857 |
"CPhoneStateInCall::ShowDtmfTextQueryL()"); |
|
858 |
__ASSERT_DEBUG( aDialogResourceId && |
|
859 |
aDefaultCbaResourceId && |
|
860 |
aContentCbaResourceId && |
|
861 |
aDataText, |
|
862 |
Panic( EPhoneCtrlParameterNotInitialized ) ); |
|
863 |
TPhoneCmdParamQuery queryDialogParam; |
|
864 |
queryDialogParam.SetQueryType( EPhoneDtmfTextQuery ); |
|
865 |
queryDialogParam.SetQueryResourceId( aDialogResourceId ); |
|
866 |
queryDialogParam.SetDefaultCba( aDefaultCbaResourceId ); |
|
867 |
queryDialogParam.SetContentCba( aContentCbaResourceId ); |
|
868 |
queryDialogParam.SetDataText( aDataText ); |
|
869 |
queryDialogParam.SetSendKeyEnabled( aSendKeyEnabled ); |
|
870 |
||
871 |
iViewCommandHandle->ExecuteCommandL( EPhoneViewShowQuery, |
|
65 | 872 |
&queryDialogParam ); |
37 | 873 |
} |
874 |
||
875 |
// End of File |