phoneapp/phoneuistates/src/cphonesingleandcallsetupandwaiting.cpp
branchRCL_3
changeset 4 24062c24fe38
parent 3 8871b09be73b
child 23 40a3f856b14d
equal deleted inserted replaced
3:8871b09be73b 4:24062c24fe38
   266 
   266 
   267     return commandStatus;
   267     return commandStatus;
   268     }
   268     }
   269 
   269 
   270 // -----------------------------------------------------------
   270 // -----------------------------------------------------------
       
   271 // CPhoneSingleAndCallSetupAndWaiting::HandleErrorL
       
   272 // -----------------------------------------------------------
       
   273 //
       
   274 EXPORT_C void CPhoneSingleAndCallSetupAndWaiting::HandleErrorL( 
       
   275         const TPEErrorInfo& aErrorInfo )
       
   276     {
       
   277     __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndCallSetupAndWaiting::HandleErrorL()");
       
   278     
       
   279     if( aErrorInfo.iErrorCode == ECCPErrorCCUserAlertingNoAnswer )
       
   280         {
       
   281         // Should not shown "No Answer" note
       
   282         __PHONELOG1( EBasic, EPhoneUIStates,
       
   283        "PhoneUIStates: CPhoneSingleAndCallSetupAndWaiting::HandleErrorL - aErrorInfo.iErrorCode =%d ",
       
   284             aErrorInfo.iErrorCode);
       
   285         }
       
   286     else
       
   287         {
       
   288         CPhoneState::HandleErrorL( aErrorInfo );
       
   289         }
       
   290     }
       
   291 
       
   292 // -----------------------------------------------------------
   271 // CPhoneSingleAndCallSetupAndWaiting::OpenMenuBarL
   293 // CPhoneSingleAndCallSetupAndWaiting::OpenMenuBarL
   272 // -----------------------------------------------------------
   294 // -----------------------------------------------------------
   273 //
   295 //
   274 void CPhoneSingleAndCallSetupAndWaiting::OpenMenuBarL()
   296 void CPhoneSingleAndCallSetupAndWaiting::OpenMenuBarL()
   275     {
   297     {
   433 //
   455 //
   434 void CPhoneSingleAndCallSetupAndWaiting::HandleConnectedL( TInt aCallId )
   456 void CPhoneSingleAndCallSetupAndWaiting::HandleConnectedL( TInt aCallId )
   435     {
   457     {
   436     __LOGMETHODSTARTEND( EPhoneUIStates, 
   458     __LOGMETHODSTARTEND( EPhoneUIStates, 
   437         "CPhoneSingleAndCallSetupAndWaiting::HandleConnectedL()");
   459         "CPhoneSingleAndCallSetupAndWaiting::HandleConnectedL()");
   438     // Keep Phone in the foreground
   460   
   439     TPhoneCmdParamBoolean booleanParam;
       
   440     booleanParam.SetBoolean( EFalse );
       
   441     iViewCommandHandle->ExecuteCommandL( 
       
   442         EPhoneViewSetNeedToSendToBackgroundStatus, &booleanParam );
       
   443     
       
   444     // Close menu bar, if it is displayed
   461     // Close menu bar, if it is displayed
   445     iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose );
   462     iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose );
   446 
   463 
   447     // Show bubble
   464     // Show bubble
   448     TPhoneCmdParamCallHeaderData callHeaderParam;
   465     TPhoneCmdParamCallHeaderData callHeaderParam;