phoneapp/phoneuistates/src/cphoneconferenceandsingleandwaiting.cpp
branchRCL_3
changeset 14 24062c24fe38
parent 9 8871b09be73b
child 15 2a26698d78ba
equal deleted inserted replaced
9:8871b09be73b 14:24062c24fe38
   202     __LOGMETHODSTARTEND( EPhoneUIStates, 
   202     __LOGMETHODSTARTEND( EPhoneUIStates, 
   203         "CPhoneConferenceAndSingleAndWaiting::HandleIdleL()");
   203         "CPhoneConferenceAndSingleAndWaiting::HandleIdleL()");
   204         
   204         
   205     // Effect is shown when dialer exist.
   205     // Effect is shown when dialer exist.
   206     TBool effectStarted ( EFalse );
   206     TBool effectStarted ( EFalse );
   207     if ( !NeedToSendToBackgroundL() )
   207     if ( !NeedToReturnToForegroundAppL() )
   208         {
   208         {
   209         BeginTransEffectLC( ENumberEntryOpen );
   209         BeginTransEffectLC( ENumberEntryOpen );
   210         effectStarted = ETrue; 
   210         effectStarted = ETrue; 
   211         }
   211         }
   212          
   212          
   328         iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose );       
   328         iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose );       
   329         }
   329         }
   330 
   330 
   331     if ( IsNumberEntryUsedL() )
   331     if ( IsNumberEntryUsedL() )
   332         {
   332         {
   333         if ( NeedToSendToBackgroundL() )
   333         if ( NeedToReturnToForegroundAppL() ) 
   334             {
   334             {
   335             // Return phone to the background if send to background is needed.
   335             // Return phone to the background if send to background is needed.
   336             iViewCommandHandle->ExecuteCommandL( EPhoneViewSendToBackground );
   336             iViewCommandHandle->ExecuteCommandL( EPhoneViewSendToBackground );
   337 
   337 
   338             iViewCommandHandle->ExecuteCommandL( EPhoneViewSetControlAndVisibility );
   338             iViewCommandHandle->ExecuteCommandL( EPhoneViewSetControlAndVisibility );
   346             }
   346             }
   347         }
   347         }
   348     else
   348     else
   349         {
   349         {
   350         UpdateCbaL( EPhoneCallHandlingNewCallSwapCBA );
   350         UpdateCbaL( EPhoneCallHandlingNewCallSwapCBA );
   351         // If numberentry is not open just check NeedToSendToBackgroundL and 
   351         // If numberentry is not open just check NeedToReturnToForegroundAppL and 
   352         // sendbackround if needed.
   352         // sendbackround if needed.
   353         if ( NeedToSendToBackgroundL() )
   353         if ( NeedToReturnToForegroundAppL() ) 
   354             {
   354             {
   355             // Return phone to the background if send to background is needed.
   355             // Return phone to the background if send to background is needed.
   356             iViewCommandHandle->ExecuteCommandL( EPhoneViewSendToBackground );
   356             iViewCommandHandle->ExecuteCommandL( EPhoneViewSendToBackground );
   357             }
   357             }
   358         }  
   358         }