256 case MEngineMonitor::EPEMessageConnected: |
256 case MEngineMonitor::EPEMessageConnected: |
257 HandleConnectedL( aCallId ); |
257 HandleConnectedL( aCallId ); |
258 break; |
258 break; |
259 |
259 |
260 case MEngineMonitor::EPEMessageDisconnecting: |
260 case MEngineMonitor::EPEMessageDisconnecting: |
261 iCallDisconnected = ETrue; |
|
262 CPhoneState::HandlePhoneEngineMessageL( aMessage, aCallId ); |
261 CPhoneState::HandlePhoneEngineMessageL( aMessage, aCallId ); |
263 break; |
262 break; |
264 |
263 |
265 case MEngineMonitor::EPEMessageInValidEmergencyNumber: |
264 case MEngineMonitor::EPEMessageInValidEmergencyNumber: |
266 AnswerCallL(); |
265 AnswerCallL(); |
290 HandleAudioAvailableOutputChangedL(); |
289 HandleAudioAvailableOutputChangedL(); |
291 // Do not update CBA's. |
290 // Do not update CBA's. |
292 break; |
291 break; |
293 |
292 |
294 case MEngineMonitor::EPEMessageRemotePartyInfoChanged: |
293 case MEngineMonitor::EPEMessageRemotePartyInfoChanged: |
295 if(!iCallDisconnected) |
294 UpdateCallHeader( aCallId ); |
296 { |
|
297 UpdateRemoteInfoDataAndLabelL( aCallId ); |
|
298 } |
|
299 break; |
295 break; |
300 |
296 |
301 default: |
297 default: |
302 CPhoneState::HandlePhoneEngineMessageL( aMessage, aCallId ); |
298 CPhoneState::HandlePhoneEngineMessageL( aMessage, aCallId ); |
303 break; |
299 break; |
304 } |
300 } |
305 } |
|
306 |
|
307 // ----------------------------------------------------------- |
|
308 // CPhoneStateIncoming::UpdateRemoteInfoDataAndLabelL |
|
309 // ----------------------------------------------------------- |
|
310 // |
|
311 void CPhoneStateIncoming::UpdateRemoteInfoDataAndLabelL( |
|
312 TInt aCallId ) |
|
313 { |
|
314 __LOGMETHODSTARTEND(EPhoneControl, |
|
315 "CPhoneStateIncoming::UpdateRemoteInfoDataAndLabelL ()" ); |
|
316 iViewCommandHandle->ExecuteCommandL( |
|
317 EPhoneViewUpdateCallHeaderRemoteInfoDataAndLabel, |
|
318 aCallId ); |
|
319 } |
301 } |
320 |
302 |
321 // ----------------------------------------------------------- |
303 // ----------------------------------------------------------- |
322 // CPhoneStateIncoming::HandleConnectedL |
304 // CPhoneStateIncoming::HandleConnectedL |
323 // ----------------------------------------------------------- |
305 // ----------------------------------------------------------- |
328 "CPhoneStateIncoming::HandleConnectedL ()" ); |
310 "CPhoneStateIncoming::HandleConnectedL ()" ); |
329 TPhoneCmdParamBoolean globalNotifierParam; |
311 TPhoneCmdParamBoolean globalNotifierParam; |
330 globalNotifierParam.SetBoolean( EFalse ); |
312 globalNotifierParam.SetBoolean( EFalse ); |
331 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled, |
313 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled, |
332 &globalNotifierParam ); |
314 &globalNotifierParam ); |
333 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetEikonNotifiersDisabled, |
|
334 &globalNotifierParam ); |
|
335 |
315 |
336 iViewCommandHandle->ExecuteCommandL( EPhoneViewStopRingTone ); |
316 iViewCommandHandle->ExecuteCommandL( EPhoneViewStopRingTone ); |
337 |
317 |
338 BeginUiUpdateLC(); |
318 BeginUiUpdateLC(); |
339 UpdateSingleActiveCallL( aCallId ); |
319 UpdateSingleActiveCallL( aCallId ); |
367 BeginUiUpdateLC(); |
347 BeginUiUpdateLC(); |
368 |
348 |
369 iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId ); |
349 iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId ); |
370 iViewCommandHandle->ExecuteCommandL( EPhoneViewStopRingTone ); |
350 iViewCommandHandle->ExecuteCommandL( EPhoneViewStopRingTone ); |
371 |
351 |
372 TPhoneCmdParamBoolean globalNotifierParam; |
|
373 globalNotifierParam.SetBoolean( EFalse ); |
|
374 iViewCommandHandle->ExecuteCommandL( |
|
375 EPhoneViewSetEikonNotifiersDisabled, |
|
376 &globalNotifierParam ); |
|
377 SetDefaultFlagsL(); |
352 SetDefaultFlagsL(); |
378 |
353 |
379 if ( !iNumberEntryManager->SetVisibilityIfNumberEntryUsedL( ETrue ) ) |
354 if ( !iNumberEntryManager->SetVisibilityIfNumberEntryUsedL( ETrue ) ) |
380 { |
355 { |
381 RemoveDialogsAndSendPhoneToBackgroundL(); |
356 RemoveDialogsAndSendPhoneToBackgroundL(); |
497 else |
472 else |
498 { |
473 { |
499 iStateMachine->SendPhoneEngineMessage( MPEPhoneModel::EPEMessageRelease ); |
474 iStateMachine->SendPhoneEngineMessage( MPEPhoneModel::EPEMessageRelease ); |
500 } |
475 } |
501 ShowDisconnectingL( iRingingCallId ); |
476 ShowDisconnectingL( iRingingCallId ); |
502 |
|
503 iCallDisconnected = ETrue; |
|
504 } |
477 } |
505 |
478 |
506 // ----------------------------------------------------------- |
479 // ----------------------------------------------------------- |
507 // CPhoneStateIncoming::OpenSoftRejectMessageEditorL |
480 // CPhoneStateIncoming::OpenSoftRejectMessageEditorL |
508 // ----------------------------------------------------------- |
481 // ----------------------------------------------------------- |
515 iStateMachine->SendPhoneEngineMessage( |
488 iStateMachine->SendPhoneEngineMessage( |
516 MPEPhoneModel::EPEMessageStopTonePlay ); |
489 MPEPhoneModel::EPEMessageStopTonePlay ); |
517 |
490 |
518 iUiCommandManager->SetSoftRejectStatus( EFalse ); |
491 iUiCommandManager->SetSoftRejectStatus( EFalse ); |
519 |
492 |
520 // Re-enable global notes. Otherwise message editor is not opened. |
|
521 TPhoneCmdParamBoolean globalNotifierParam; |
|
522 globalNotifierParam.SetBoolean( EFalse ); |
|
523 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetEikonNotifiersDisabled, |
|
524 &globalNotifierParam ); |
|
525 |
|
526 UpdateUiCommands(); |
493 UpdateUiCommands(); |
527 |
494 |
528 TPhoneCmdParamSfiData sfiDataParam; |
495 TPhoneCmdParamSfiData sfiDataParam; |
529 if ( iStateMachine->PhoneEngineInfo()->RemoteName( iRingingCallId ).Length() ) |
496 if ( iStateMachine->PhoneEngineInfo()->RemoteName( iRingingCallId ).Length() ) |
530 { |
497 { |