124 case MEngineMonitor::EPEMessageIdle: |
124 case MEngineMonitor::EPEMessageIdle: |
125 HandleIdleL( aCallId ); |
125 HandleIdleL( aCallId ); |
126 break; |
126 break; |
127 |
127 |
128 case MEngineMonitor::EPEMessageHeld: |
128 case MEngineMonitor::EPEMessageHeld: |
129 UpdateBubbleAndUICommandsL( aCallId ); |
129 UpdateCallHeaderAndUiCommandsL( aCallId ); |
130 break; |
130 break; |
131 |
131 |
132 case MEngineMonitor::EPEMessageConnected: |
132 case MEngineMonitor::EPEMessageConnected: |
133 HandleConnectedL( aCallId ); |
133 HandleConnectedL( aCallId ); |
134 break; |
134 break; |
297 callStateData.CallId() ); |
297 callStateData.CallId() ); |
298 |
298 |
299 // Display ringing bubble |
299 // Display ringing bubble |
300 if ( callStateData.CallId() > KErrNotFound ) |
300 if ( callStateData.CallId() > KErrNotFound ) |
301 { |
301 { |
302 iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, |
302 UpdateCallHeaderAndUiCommandsL( callStateData.CallId() ); |
303 callStateData.CallId() ); |
|
304 |
303 |
305 if ( iNumberEntryManager->IsNumberEntryVisibleL() ) |
304 if ( iNumberEntryManager->IsNumberEntryVisibleL() ) |
306 { |
305 { |
307 iNumberEntryManager->SetNumberEntryVisibilityL(EFalse); |
306 iNumberEntryManager->SetNumberEntryVisibilityL(EFalse); |
308 } |
307 } |
309 |
308 |
310 SetRingingTonePlaybackL( callStateData.CallId() ); |
309 SetRingingTonePlaybackL( callStateData.CallId() ); |
311 UpdateUiCommands(); |
|
312 BringIncomingToForegroundL(); |
310 BringIncomingToForegroundL(); |
313 } |
311 } |
314 SetBackButtonActive(EFalse); |
312 SetBackButtonActive(EFalse); |
315 EndUiUpdate(); |
313 EndUiUpdate(); |
316 iStateMachine->ChangeState( EPhoneStateIncoming ); |
314 iStateMachine->ChangeState( EPhoneStateIncoming ); |
348 |
346 |
349 if ( iSingleCallId == aCallId ) |
347 if ( iSingleCallId == aCallId ) |
350 { |
348 { |
351 // Connected message came for the hold call, we still |
349 // Connected message came for the hold call, we still |
352 // have the waiting call also |
350 // have the waiting call also |
353 UpdateBubbleAndUICommandsL( aCallId ); |
351 UpdateCallHeaderAndUiCommandsL( aCallId ); |
354 } |
352 } |
355 else |
353 else |
356 { |
354 { |
357 // Connected message came for waiting call |
355 // Connected message came for waiting call |
358 MakeStateTransitionToTwoSinglesL( aCallId ); |
356 MakeStateTransitionToTwoSinglesL( aCallId ); |
365 // |
363 // |
366 void CPhoneSingleAndWaiting::HandleUnholdL( TInt aCallId ) |
364 void CPhoneSingleAndWaiting::HandleUnholdL( TInt aCallId ) |
367 { |
365 { |
368 __LOGMETHODSTARTEND( EPhoneUIStates, |
366 __LOGMETHODSTARTEND( EPhoneUIStates, |
369 "CPhoneSingleAndWaiting::HandleUnholdL() "); |
367 "CPhoneSingleAndWaiting::HandleUnholdL() "); |
370 iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId ); |
368 UpdateCallHeaderAndUiCommandsL( aCallId ); |
371 |
|
372 UpdateUiCommands(); |
|
373 } |
369 } |
374 |
370 |
375 // ----------------------------------------------------------- |
371 // ----------------------------------------------------------- |
376 // CPhoneSingleAndWaiting::MakeStateTransitionToTwoSinglesL |
372 // CPhoneSingleAndWaiting::MakeStateTransitionToTwoSinglesL |
377 // ----------------------------------------------------------- |
373 // ----------------------------------------------------------- |
378 // |
374 // |
379 void CPhoneSingleAndWaiting::MakeStateTransitionToTwoSinglesL( TInt aCallId ) |
375 void CPhoneSingleAndWaiting::MakeStateTransitionToTwoSinglesL( TInt aCallId ) |
380 { |
376 { |
381 __LOGMETHODSTARTEND( EPhoneUIStates, |
377 __LOGMETHODSTARTEND( EPhoneUIStates, |
382 "CPhoneSingleAndWaiting::MakeStateTransitionToTwoSinglesL() "); |
378 "CPhoneSingleAndWaiting::MakeStateTransitionToTwoSinglesL() "); |
|
379 UpdateCallHeaderAndUiCommandsL( aCallId ); |
383 |
380 |
384 BeginUiUpdateLC(); |
|
385 |
|
386 UpdateRemoteInfoDataL ( aCallId ); |
|
387 |
|
388 iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId ); |
|
389 |
|
390 if ( iNumberEntryManager->IsNumberEntryUsedL() ) |
381 if ( iNumberEntryManager->IsNumberEntryUsedL() ) |
391 { |
382 { |
392 iNumberEntryManager->SetNumberEntryVisibilityL(ETrue); |
383 iNumberEntryManager->SetNumberEntryVisibilityL(ETrue); |
393 } |
384 } |
394 |
385 |
395 UpdateUiCommands(); |
|
396 EndUiUpdate(); |
|
397 iStateMachine->ChangeState( EPhoneStateTwoSingles ); |
386 iStateMachine->ChangeState( EPhoneStateTwoSingles ); |
398 } |
387 } |
399 |
388 |
400 // ----------------------------------------------------------- |
389 // ----------------------------------------------------------- |
401 // CPhoneSingleAndWaiting::HandleDialingL |
390 // CPhoneSingleAndWaiting::HandleDialingL |
436 void CPhoneSingleAndWaiting::HandleDisconnectingL( TInt /*aCallId*/ ) |
425 void CPhoneSingleAndWaiting::HandleDisconnectingL( TInt /*aCallId*/ ) |
437 { |
426 { |
438 __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndWaiting::HandleDisconnectingL( ) "); |
427 __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndWaiting::HandleDisconnectingL( ) "); |
439 } |
428 } |
440 |
429 |
441 // ----------------------------------------------------------- |
|
442 // CPhoneSingleAndWaiting::UpdateUiControlsL |
|
443 // ----------------------------------------------------------- |
|
444 // |
|
445 void CPhoneSingleAndWaiting::UpdateUiControlsL() |
|
446 { |
|
447 __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndWaiting::UpdateUiControlsL( ) "); |
|
448 UpdateUiCommands(); |
|
449 } |
|
450 |
|
451 // ----------------------------------------------------------- |
|
452 // Updates bubble and ui commands |
|
453 // ----------------------------------------------------------- |
|
454 // |
|
455 void CPhoneSingleAndWaiting::UpdateBubbleAndUICommandsL( |
|
456 TInt aCallId ) |
|
457 { |
|
458 __LOGMETHODSTARTEND( EPhoneUIStates, |
|
459 "CPhoneSingleAndWaiting::UpdateBubbleAndUICommandsL() "); |
|
460 iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId ); |
|
461 |
|
462 UpdateUiCommands(); |
|
463 } |
|
464 |
|
465 // End of File |
430 // End of File |