phoneapp/phoneuistates/src/cphoneemergency.cpp
branchRCL_3
changeset 23 40a3f856b14d
parent 22 94dc1107e8b2
child 24 41a7f70b3818
equal deleted inserted replaced
22:94dc1107e8b2 23:40a3f856b14d
   330     // because PE messages are processed asynchronously.
   330     // because PE messages are processed asynchronously.
   331     __LOGMETHODSTARTEND(EPhoneUIStates, "CPhoneEmergency::HandleDialingL() ");
   331     __LOGMETHODSTARTEND(EPhoneUIStates, "CPhoneEmergency::HandleDialingL() ");
   332 
   332 
   333     if ( aCallId == KPEEmergencyCallId )
   333     if ( aCallId == KPEEmergencyCallId )
   334         {
   334         {
   335         if ( !IsSimOk() )
   335         if ( !IsSimOk() || IsSimStateNotPresentWithSecurityModeEnabled() )
   336             {
   336             {
   337             TPhoneCmdParamBoolean visibleMode;
   337             TPhoneCmdParamBoolean visibleMode;
   338             visibleMode.SetBoolean( ETrue );
   338             visibleMode.SetBoolean( ETrue );
   339             iViewCommandHandle->ExecuteCommandL( EPhoneViewSetStatusPaneVisible, &visibleMode );
   339             iViewCommandHandle->ExecuteCommandL( EPhoneViewSetStatusPaneVisible, &visibleMode );
   340             }
   340             }
   360         // Capture keys when the phone is dialling
   360         // Capture keys when the phone is dialling
   361         CaptureKeysDuringCallNotificationL( ETrue );
   361         CaptureKeysDuringCallNotificationL( ETrue );
   362 
   362 
   363         // Indicate that the Phone needs to be sent to the background if
   363         // Indicate that the Phone needs to be sent to the background if
   364         // an application other than the top application is in the foreground
   364         // an application other than the top application is in the foreground
   365         TPhoneCmdParamBoolean booleanParam;
   365         SetNeedToReturnToForegroundAppStatusL( !TopAppIsDisplayedL() );
   366         booleanParam.SetBoolean( !TopAppIsDisplayedL() );
   366         
   367         iViewCommandHandle->ExecuteCommandL(
       
   368                 EPhoneViewSetNeedToReturnToForegroundAppStatus,
       
   369             &booleanParam );
       
   370 
       
   371         // Bring Phone app in the foreground
   367         // Bring Phone app in the foreground
   372         TPhoneCmdParamInteger uidParam;
   368         TPhoneCmdParamInteger uidParam;
   373         uidParam.SetInteger( KUidPhoneApplication.iUid );
   369         uidParam.SetInteger( KUidPhoneApplication.iUid );
   374         iViewCommandHandle->ExecuteCommandL( EPhoneViewBringAppToForeground,
   370         iViewCommandHandle->ExecuteCommandL( EPhoneViewBringAppToForeground,
   375             &uidParam );
   371             &uidParam );