equal
deleted
inserted
replaced
370 aCallId ); |
370 aCallId ); |
371 |
371 |
372 if( iSingleCallId == aCallId ) |
372 if( iSingleCallId == aCallId ) |
373 { |
373 { |
374 // Idle message came for active call |
374 // Idle message came for active call |
375 TransitionHandlerL().BeginUiUpdateLC(); |
375 BeginUiUpdateLC(); |
376 |
376 |
377 // Remove call |
377 // Remove call |
378 iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId ); |
378 iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId ); |
379 |
379 |
380 // Get waiting callId |
380 // Get waiting callId |
421 UpdateSilenceButtonDimming(); |
421 UpdateSilenceButtonDimming(); |
422 |
422 |
423 // Play ringtone |
423 // Play ringtone |
424 SetRingingTonePlaybackL( callStateData.CallId() ); |
424 SetRingingTonePlaybackL( callStateData.CallId() ); |
425 } |
425 } |
426 TransitionHandlerL().EndUiUpdate(); |
426 EndUiUpdate(); |
427 SetToolbarDimming( ETrue ); |
427 SetToolbarDimming( ETrue ); |
428 |
428 |
429 iStateMachine->ChangeState( EPhoneStateIncoming ); |
429 iStateMachine->ChangeState( EPhoneStateIncoming ); |
430 } |
430 } |
431 else |
431 else |
432 { |
432 { |
433 TransitionHandlerL().BeginUiUpdateLC(); |
433 BeginUiUpdateLC(); |
434 |
434 |
435 // Remove call |
435 // Remove call |
436 iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId ); |
436 iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId ); |
437 // Idle message came for waiting call |
437 // Idle message came for waiting call |
438 if ( IsNumberEntryUsedL() ) |
438 if ( IsNumberEntryUsedL() ) |
459 { |
459 { |
460 // Return phone to the background if send to background is needed. |
460 // Return phone to the background if send to background is needed. |
461 iViewCommandHandle->ExecuteCommandL( EPhoneViewSendToBackground ); |
461 iViewCommandHandle->ExecuteCommandL( EPhoneViewSendToBackground ); |
462 } |
462 } |
463 } |
463 } |
464 |
|
465 if ( IsVideoCall( iSingleCallId ) ) |
|
466 { |
|
467 TPhoneCmdParamInteger uidParam; |
|
468 uidParam.SetInteger( KVtUiAppUidValue.iUid ); |
|
469 |
|
470 // Set video Phone as the top application |
|
471 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetTopApplication, |
|
472 &uidParam ); |
|
473 } |
|
474 |
|
475 SetTouchPaneButtons( EPhoneIncallButtons ); |
464 SetTouchPaneButtons( EPhoneIncallButtons ); |
476 TransitionHandlerL().EndUiUpdate(); |
465 EndUiUpdate(); |
477 // CBA updates in above if-else conditions |
466 // CBA updates in above if-else conditions |
478 iStateMachine->ChangeState( EPhoneStateSingle ); |
467 iStateMachine->ChangeState( EPhoneStateSingle ); |
479 } |
468 } |
480 } |
469 } |
481 |
470 |
581 // |
570 // |
582 void CPhoneSingleAndWaiting::MakeStateTransitionToTwoSinglesL( TInt aCallId ) |
571 void CPhoneSingleAndWaiting::MakeStateTransitionToTwoSinglesL( TInt aCallId ) |
583 { |
572 { |
584 __LOGMETHODSTARTEND( EPhoneUIStates, |
573 __LOGMETHODSTARTEND( EPhoneUIStates, |
585 "CPhoneSingleAndWaiting::MakeStateTransitionToTwoSinglesL() "); |
574 "CPhoneSingleAndWaiting::MakeStateTransitionToTwoSinglesL() "); |
586 TransitionHandlerL().BeginUiUpdateLC(); |
575 BeginUiUpdateLC(); |
587 UpdateRemoteInfoDataL ( aCallId ); |
576 UpdateRemoteInfoDataL ( aCallId ); |
588 // Show bubble |
577 // Show bubble |
589 TPhoneCmdParamCallHeaderData callHeaderParam; |
578 TPhoneCmdParamCallHeaderData callHeaderParam; |
590 callHeaderParam.SetCallState( EPEStateConnected ); |
579 callHeaderParam.SetCallState( EPEStateConnected ); |
591 iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId, |
580 iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId, |
616 // Set Two singles state softkeys |
605 // Set Two singles state softkeys |
617 UpdateCbaL( EPhoneCallHandlingNewCallSwapCBA ); |
606 UpdateCbaL( EPhoneCallHandlingNewCallSwapCBA ); |
618 } |
607 } |
619 |
608 |
620 SetTouchPaneButtons( EPhoneTwoSinglesButtons ); |
609 SetTouchPaneButtons( EPhoneTwoSinglesButtons ); |
621 TransitionHandlerL().EndUiUpdate(); |
610 EndUiUpdate(); |
622 // CBA updates in above if-else conditions |
611 // CBA updates in above if-else conditions |
623 iStateMachine->ChangeState( EPhoneStateTwoSingles ); |
612 iStateMachine->ChangeState( EPhoneStateTwoSingles ); |
624 } |
613 } |
625 |
614 |
626 // --------------------------------------------------------- |
615 // --------------------------------------------------------- |
709 |
698 |
710 // ----------------------------------------------------------- |
699 // ----------------------------------------------------------- |
711 // CPhoneSingleAndWaiting::HandleDisconnectingL |
700 // CPhoneSingleAndWaiting::HandleDisconnectingL |
712 // ----------------------------------------------------------- |
701 // ----------------------------------------------------------- |
713 // |
702 // |
714 void CPhoneSingleAndWaiting::HandleDisconnectingL( TInt /*aCallId*/ ) |
703 void CPhoneSingleAndWaiting::HandleDisconnectingL( TInt aCallId ) |
715 { |
704 { |
716 __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndWaiting::HandleDisconnectingL( ) "); |
705 __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndWaiting::HandleDisconnectingL( ) "); |
717 } |
706 } |
718 |
707 |
719 // End of File |
708 // End of File |