phoneapp/phoneuistates/src/cphonecallsetup.cpp
branchRCL_3
changeset 61 41a7f70b3818
parent 58 40a3f856b14d
child 62 5266b1f337bd
--- a/phoneapp/phoneuistates/src/cphonecallsetup.cpp	Thu Aug 19 09:54:27 2010 +0300
+++ b/phoneapp/phoneuistates/src/cphonecallsetup.cpp	Tue Aug 31 15:14:29 2010 +0300
@@ -18,7 +18,6 @@
 
 // INCLUDES
 #include <MediatorDomainUIDs.h>
-#include <videotelcontrolmediatorapi.h>
 #include "cphonecallsetup.h"
 #include "mphonestatemachine.h"
 #include "tphonecmdparamboolean.h"
@@ -31,7 +30,6 @@
 #include "cphonegeneralgsmmessageshandler.h"
 #include "cphonemediatorfactory.h"
 #include "cphonemediatorsender.h"
-#include "mphonesecuritymodeobserver.h"
 
 // ================= MEMBER FUNCTIONS =======================
 
@@ -104,15 +102,7 @@
             HandleConnectingL( aCallId );
             break;
 
-        case MEngineMonitor::EPEMessageShowVersion:
-            {
-            if ( iStateMachine->SecurityMode()->IsSecurityMode() )
-                {
-                // Do nothing if security mode is enabled.
-                return;
-                }
-            }
-        // Fall through
+        // fall through.    
         case MEngineMonitor::EPEMessageIssuingSSRequest:
         case MEngineMonitor::EPEMessageCallBarred:
         case MEngineMonitor::EPEMessageIssuedSSRequest:
@@ -157,18 +147,24 @@
     // set when the CDMA network receives the call, not (like in GSM) when
     // when the remote party receives the call. So, in CDMA, the user
     // should still be able to cancel the MO call before the call is connected.
-    __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneCallSetup::HandleConnectingL()");
+    __LOGMETHODSTARTEND( EPhoneUIStates, 
+        "CPhoneCallSetup::HandleConnectingL()");
+    
     BeginUiUpdateLC();
     UpdateRemoteInfoDataL ( aCallId );
     
-    SetNeedToReturnToForegroundAppStatusL( EFalse );
-    
     // Re-enable global notes
     TPhoneCmdParamBoolean globalNotifierParam;
     globalNotifierParam.SetBoolean( EFalse );
     iViewCommandHandle->ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled,
         &globalNotifierParam );
 
+    // Home screen to foreground after call
+    TPhoneCmdParamBoolean booleanParam;
+    booleanParam.SetBoolean( ETrue );
+    iViewCommandHandle->ExecuteCommand( EPhoneViewHsToForegroundAfterCall,
+        &booleanParam );
+    
     // Stop capturing keys
     CaptureKeysDuringCallNotificationL( EFalse );
     
@@ -177,19 +173,13 @@
     iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId, 
         &callHeaderParam );
 
-    // Remove the number entry if it isn't DTMF dialer
-    if ( !iOnScreenDialer ||
-         !IsNumberEntryVisibleL() ||
-         !IsDTMFEditorVisibleL() )
-        {
-        iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveNumberEntry );
-        }
-
     SetToolbarButtonLoudspeakerEnabled();
 
     EndUiUpdate();
     
+    // Go to alerting state
     UpdateCbaL( EPhoneCallHandlingInCallCBA );
+
     iStateMachine->ChangeState( EPhoneStateAlerting );
     }