phoneapp/phoneuistates/src/cphonegsmincall.cpp
changeset 56 5bcb308bd24d
parent 45 6b911d05207e
child 72 c76a0b1755b9
equal deleted inserted replaced
46:bc5a64e5bc3c 56:5bcb308bd24d
   229 
   229 
   230     MPEEngineInfo* EngineInfo = CPhoneState::iStateMachine->PhoneEngineInfo();
   230     MPEEngineInfo* EngineInfo = CPhoneState::iStateMachine->PhoneEngineInfo();
   231     
   231     
   232     TPhoneCmdParamGlobalNote globalNoteParam;
   232     TPhoneCmdParamGlobalNote globalNoteParam;
   233     globalNoteParam.SetText(  EngineInfo->RemoteColpNumber( aCallId ) ); 
   233     globalNoteParam.SetText(  EngineInfo->RemoteColpNumber( aCallId ) ); 
   234     globalNoteParam.SetType( EAknGlobalInformationNote );
   234     globalNoteParam.SetType( EPhoneNotificationDialog );
   235     globalNoteParam.SetTextResourceId( 
   235     globalNoteParam.SetTextResourceId( 
   236             CPhoneMainResourceResolver::Instance()->
   236             CPhoneMainResourceResolver::Instance()->
   237 	        ResolveResourceID( EPhoneColpConnected ) );
   237 	        ResolveResourceID( EPhoneColpConnected ) );
   238     globalNoteParam.SetTone( EAvkonSIDInformationTone );
       
   239     globalNoteParam.SetNotificationDialog( ETrue );
   238     globalNoteParam.SetNotificationDialog( ETrue );
   240 	        
   239 	        
   241     iViewCommandHandle->ExecuteCommandL( 
   240     iViewCommandHandle->ExecuteCommandL( 
   242             EPhoneViewShowGlobalNote, &globalNoteParam );
   241             EPhoneViewShowGlobalNote, &globalNoteParam );
   243     
   242     
   248 // -----------------------------------------------------------
   247 // -----------------------------------------------------------
   249 //
   248 //
   250 void CPhoneGsmInCall::BringIncomingToForegroundL()
   249 void CPhoneGsmInCall::BringIncomingToForegroundL()
   251     {
   250     {
   252     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneGsmInCall::BringIncomingToForegroundL( ) ");
   251     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneGsmInCall::BringIncomingToForegroundL( ) ");
   253 
       
   254     // Close menu bar, if it is displayed
       
   255     iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose );
       
   256 
   252 
   257     // Remove any phone dialogs if they are displayed
   253     // Remove any phone dialogs if they are displayed
   258     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemovePhoneDialogs );
   254     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemovePhoneDialogs );
   259 
   255 
   260     // Capture keys when there is an incoming call
   256     // Capture keys when there is an incoming call
   287 void CPhoneGsmInCall::AllowShowingOfWaitingCallHeaderL( 
   283 void CPhoneGsmInCall::AllowShowingOfWaitingCallHeaderL( 
   288     TPhoneCmdParamBoolean& aCommandParam )
   284     TPhoneCmdParamBoolean& aCommandParam )
   289     {
   285     {
   290     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneGsmInCall::AllowShowingOfWaitingCallHeaderL() ");
   286     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneGsmInCall::AllowShowingOfWaitingCallHeaderL() ");
   291 
   287 
   292     iViewCommandHandle->ExecuteCommandL( 
   288     if ( aCommandParam.Boolean() && IsNumberEntryUsedL() )
   293         EPhoneViewAllowWaitingCallHeader, 
       
   294         &aCommandParam );
       
   295     
       
   296     // Non-touch :Hide number entry if it exists on 
       
   297     // Touch : an internal operation ongoing 
       
   298     // -> do not hide dialer
       
   299     if ( !iOnScreenDialer )
       
   300         {   
       
   301         SetNumberEntryVisibilityL(EFalse);
       
   302         }
       
   303     // If param is true and number entry is open only then
       
   304     // hide number entry.
       
   305     else if ( aCommandParam.Boolean() && IsNumberEntryUsedL() )
       
   306         {
   289         {
   307         SetNumberEntryVisibilityL(EFalse);
   290         SetNumberEntryVisibilityL(EFalse);
   308         }
   291         }
   309     }
   292     }
   310 
   293 
   313 // -----------------------------------------------------------
   296 // -----------------------------------------------------------
   314 //
   297 //
   315 EXPORT_C void CPhoneGsmInCall::HandlePhoneForegroundEventL()
   298 EXPORT_C void CPhoneGsmInCall::HandlePhoneForegroundEventL()
   316     {
   299     {
   317     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneGsmInCall::HandlePhoneForegroundEventL( ) ");
   300     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneGsmInCall::HandlePhoneForegroundEventL( ) ");
   318     if ( iOnScreenDialer && IsNumberEntryUsedL() )
       
   319         {
       
   320         // If numberentry is used then we need to call EPhoneViewSetDialerControlVisible 
       
   321         // to ensure that numberentry/dialler is drawn to UI.
       
   322         TPhoneViewResponseId respond = 
       
   323             iViewCommandHandle->HandleCommandL( EPhoneViewSetDialerControlVisible );
       
   324                 
       
   325         if ( respond && IsNumberEntryVisibleL() )
       
   326             {
       
   327             // Set Number Entry CBA
       
   328             iCbaManager->SetCbaL( EPhoneNumberAcqCBA );
       
   329             }
       
   330         }
       
   331      }
   301      }
   332 
   302 
   333 // -----------------------------------------------------------
   303 // -----------------------------------------------------------
   334 // CPhoneGsmInCall::HandleHoldNoteL
   304 // CPhoneGsmInCall::HandleHoldNoteL
   335 // -----------------------------------------------------------
   305 // -----------------------------------------------------------
   372         delete tmp;
   342         delete tmp;
   373         tmp = NULL;  
   343         tmp = NULL;  
   374         }
   344         }
   375          
   345          
   376     globalNoteParam.SetText( holdText ); 
   346     globalNoteParam.SetText( holdText ); 
   377     globalNoteParam.SetType( EAknGlobalConfirmationNote );
   347     globalNoteParam.SetType( EPhoneMessageBoxInformation );
   378     globalNoteParam.SetTone( EAvkonSIDInformationTone );
       
   379         
   348         
   380     iViewCommandHandle->ExecuteCommandL( 
   349     iViewCommandHandle->ExecuteCommandL( 
   381             EPhoneViewShowGlobalNote, &globalNoteParam ); 
   350             EPhoneViewShowGlobalNote, &globalNoteParam ); 
   382     }
   351     }
   383 
   352