phoneapp/phoneuistates/src/cphonesingleandalerting.cpp
changeset 56 5bcb308bd24d
parent 46 bc5a64e5bc3c
child 65 2a5d4ab426d3
equal deleted inserted replaced
46:bc5a64e5bc3c 56:5bcb308bd24d
   191         // Keep Phone in the foreground
   191         // Keep Phone in the foreground
   192         TPhoneCmdParamBoolean booleanParam;
   192         TPhoneCmdParamBoolean booleanParam;
   193         booleanParam.SetBoolean( EFalse );
   193         booleanParam.SetBoolean( EFalse );
   194         iViewCommandHandle->ExecuteCommandL( 
   194         iViewCommandHandle->ExecuteCommandL( 
   195             EPhoneViewSetNeedToSendToBackgroundStatus, &booleanParam );
   195             EPhoneViewSetNeedToSendToBackgroundStatus, &booleanParam );
   196         
       
   197         // Close menu bar, if it is displayed
       
   198         iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose );
       
   199 
   196 
   200         CPhoneState::BeginUiUpdateLC();
   197         CPhoneState::BeginUiUpdateLC();
   201             
   198             
   202         // Show bubble
   199         // Show bubble
   203         TPhoneCmdParamCallHeaderData callHeaderParam;
   200         TPhoneCmdParamCallHeaderData callHeaderParam;
   245     BeginUiUpdateLC();
   242     BeginUiUpdateLC();
   246     
   243     
   247     // Remove call 
   244     // Remove call 
   248     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId );
   245     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId );
   249 
   246 
   250     // Close menu bar, if it is displayed
       
   251     iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose );
       
   252 
       
   253     if ( !TopAppIsDisplayedL() )
   247     if ( !TopAppIsDisplayedL() )
   254         {
   248         {
   255         // Continue displaying current app but set up the 
   249         // Continue displaying current app but set up the 
   256         // idle screen in the background
   250         // idle screen in the background
   257         SetupIdleScreenInBackgroundL();
   251         SetupIdleScreenInBackgroundL();
   281 
   275 
   282     EndUiUpdate();
   276     EndUiUpdate();
   283     }
   277     }
   284 
   278 
   285 // -----------------------------------------------------------
   279 // -----------------------------------------------------------
   286 // CPhoneSingleAndAlerting::OpenMenuBarL
       
   287 // -----------------------------------------------------------
       
   288 //
       
   289 void CPhoneSingleAndAlerting::OpenMenuBarL()
       
   290     {
       
   291     __LOGMETHODSTARTEND( EPhoneUIStates, 
       
   292         "CPhoneSingleAndAlerting::OpenMenuBarL()");
       
   293     TInt resourceId;
       
   294 
       
   295     if ( IsNumberEntryVisibleL() )
       
   296         {
       
   297         resourceId = EPhoneAlertingAndHeldCallMenuBarWithNumberEntry;
       
   298         }
       
   299     else
       
   300         {
       
   301         resourceId = EPhoneAlertingAndHeldCallMenuBar;
       
   302         }
       
   303 
       
   304     TPhoneCmdParamInteger integerParam;
       
   305     integerParam.SetInteger( 
       
   306         CPhoneMainResourceResolver::Instance()->
       
   307         ResolveResourceID( resourceId ) );
       
   308     iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarOpen, 
       
   309         &integerParam );
       
   310     }
       
   311 
       
   312 // -----------------------------------------------------------
       
   313 // CPhoneSingleAndAlerting::UpdateInCallCbaL
   280 // CPhoneSingleAndAlerting::UpdateInCallCbaL
   314 // -----------------------------------------------------------
   281 // -----------------------------------------------------------
   315 //
   282 //
   316 void CPhoneSingleAndAlerting::UpdateInCallCbaL()
   283 void CPhoneSingleAndAlerting::UpdateInCallCbaL()
   317     {
   284     {