phoneapp/phoneuicontrol/src/cphonestateincoming.cpp
branchRCL_3
changeset 14 24062c24fe38
parent 0 5f000ab63145
child 15 2a26698d78ba
equal deleted inserted replaced
9:8871b09be73b 14:24062c24fe38
   378     iViewCommandHandle->ExecuteCommandL( EPhoneViewSetEikonNotifiersDisabled,
   378     iViewCommandHandle->ExecuteCommandL( EPhoneViewSetEikonNotifiersDisabled,
   379         &globalNotifierParam );
   379         &globalNotifierParam );
   380     // Stop tone playing, if necessary
   380     // Stop tone playing, if necessary
   381     iViewCommandHandle->ExecuteCommandL( EPhoneViewStopRingTone );
   381     iViewCommandHandle->ExecuteCommandL( EPhoneViewStopRingTone );
   382     
   382     
   383     if( IsVideoCall( aCallId ) && !IsAutoLockOn() )
       
   384         {
       
   385         // For keeping video call on top
       
   386         TPhoneCmdParamBoolean booleanParam;
       
   387         booleanParam.SetBoolean( EFalse );
       
   388         iViewCommandHandle->ExecuteCommandL(
       
   389             EPhoneViewSetNeedToSendToBackgroundStatus, &booleanParam );
       
   390         }
       
   391     
   383     
   392     BeginTransEffectLC( ENumberEntryOpen );
   384     BeginTransEffectLC( ENumberEntryOpen );
   393 
   385 
   394     if( FeatureManager::FeatureSupported( KFeatureIdFfTouchUnlockStroke ) 
   386     if( FeatureManager::FeatureSupported( KFeatureIdFfTouchUnlockStroke ) 
   395          && iStateMachine->PhoneStorage()->IsScreenLocked() )
   387          && iStateMachine->PhoneStorage()->IsScreenLocked() )
   483 
   475 
   484     SetDefaultFlagsL();
   476     SetDefaultFlagsL();
   485     
   477     
   486      if ( IsNumberEntryUsedL() )
   478      if ( IsNumberEntryUsedL() )
   487         {
   479         {
   488         if ( NeedToSendToBackgroundL() )
   480         if ( NeedToReturnToForegroundAppL() )
   489             {
   481             {
   490             // Return phone to the background if send to background is needed.
   482             // Return phone to the background if send to background is needed.
   491             iViewCommandHandle->ExecuteCommandL( EPhoneViewSendToBackground );
   483             iViewCommandHandle->ExecuteCommandL( EPhoneViewSendToBackground );
   492 
   484 
   493             iViewCommandHandle->ExecuteCommandL( EPhoneViewSetControlAndVisibility );
   485             iViewCommandHandle->ExecuteCommandL( EPhoneViewSetControlAndVisibility );
   499             {
   491             {
   500             // Show the number entry if it exists.
   492             // Show the number entry if it exists.
   501             SetNumberEntryVisibilityL(ETrue);
   493             SetNumberEntryVisibilityL(ETrue);
   502             }
   494             }
   503         }
   495         }
   504     else if ( NeedToSendToBackgroundL() ||
   496     else if ( NeedToReturnToForegroundAppL() ||
   505         SoftRejectMessageEditorIsDisplayedL() )
   497         SoftRejectMessageEditorIsDisplayedL() )
   506         {
   498         {
   507         // Continue displaying current app but set up the
   499         // Continue displaying current app but set up the
   508         // idle screen in the background
   500         // idle screen in the background
   509         SetupIdleScreenInBackgroundL();
   501         SetupIdleScreenInBackgroundL();