phoneapp/phoneuistates/src/cphoneincoming.cpp
branchRCL_3
changeset 4 24062c24fe38
parent 3 8871b09be73b
child 5 2a26698d78ba
equal deleted inserted replaced
3:8871b09be73b 4:24062c24fe38
   273         "CPhoneIncoming::DisplayIncomingCallL()");
   273         "CPhoneIncoming::DisplayIncomingCallL()");
   274  
   274  
   275     // Close menu bar, if it is displayed
   275     // Close menu bar, if it is displayed
   276     iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose );
   276     iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose );
   277 
   277 
   278     // Cannot delete active note, e.g. New call query, 
   278     // Remove any phone dialogs if they are displayed
   279     // but show waiting note with or without caller name
   279     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemovePhoneDialogs );
   280     if ( IsAnyQueryActiveL() || 
       
   281         ( aCommandParam.Boolean() && iOnScreenDialer ) )
       
   282         {
       
   283         CallWaitingNoteL( aCallId );        
       
   284         }
       
   285     else
       
   286         {
       
   287         // Remove any phone dialogs if they are displayed
       
   288         iViewCommandHandle->ExecuteCommandL( EPhoneViewRemovePhoneDialogs );
       
   289         }
       
   290     
   280     
   291     // Indicate that the Phone needs to be sent to the background if
   281     // Indicate that the Phone needs to be sent to the background if
   292     // an application other than the top application is in the foreground
   282     // an application other than the top application is in the foreground
   293     TPhoneCmdParamBoolean booleanParam;
   283     TPhoneCmdParamBoolean booleanParam;
   294     booleanParam.SetBoolean( !TopAppIsDisplayedL() );
   284     booleanParam.SetBoolean( !TopAppIsDisplayedL() );
   295     iViewCommandHandle->ExecuteCommandL( 
   285     iViewCommandHandle->ExecuteCommandL( 
   296         EPhoneViewSetNeedToSendToBackgroundStatus,
   286             EPhoneViewSetNeedToReturnToForegroundAppStatus,
   297         &booleanParam );
   287         &booleanParam );
   298 
   288 
   299     // Bring Phone app in the foreground
   289     // Bring Phone app in the foreground
   300     TPhoneCmdParamInteger uidParam;
   290     TPhoneCmdParamInteger uidParam;
   301     uidParam.SetInteger( KUidPhoneApplication.iUid );
   291     uidParam.SetInteger( KUidPhoneApplication.iUid );