phoneapp/phoneuistates/src/cphonesingleandwaiting.cpp
changeset 76 cfea66083b62
parent 74 d1c62c765e48
child 78 baacf668fe89
--- a/phoneapp/phoneuistates/src/cphonesingleandwaiting.cpp	Fri Sep 17 17:09:12 2010 +0300
+++ b/phoneapp/phoneuistates/src/cphonesingleandwaiting.cpp	Mon Oct 04 16:06:10 2010 +0300
@@ -126,7 +126,7 @@
             break;
 
         case MEngineMonitor::EPEMessageHeld:
-            UpdateBubbleAndUICommandsL( aCallId );
+            UpdateCallHeaderAndUiCommandsL( aCallId );
             break;
 
         case MEngineMonitor::EPEMessageConnected:
@@ -197,7 +197,7 @@
             break;
 
         case EPhoneCmdUpdateUiControls:
-            UpdateUiControlsL();
+            UpdateUiCommands();
             break;
 
         default:
@@ -299,8 +299,7 @@
         // Display ringing bubble
         if ( callStateData.CallId() > KErrNotFound )
             {           
-            iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble,
-                callStateData.CallId() );
+            UpdateCallHeaderAndUiCommandsL( callStateData.CallId() );
 
             if ( iNumberEntryManager->IsNumberEntryVisibleL() )
                 {
@@ -308,7 +307,6 @@
                 }
             
             SetRingingTonePlaybackL( callStateData.CallId() );
-            UpdateUiCommands();
             BringIncomingToForegroundL();
             }
         SetBackButtonActive(EFalse);
@@ -350,7 +348,7 @@
         {
         // Connected message came for the hold call, we still
         // have the waiting call also
-        UpdateBubbleAndUICommandsL( aCallId );
+        UpdateCallHeaderAndUiCommandsL( aCallId );
         }
     else
         {
@@ -367,9 +365,7 @@
     {
     __LOGMETHODSTARTEND( EPhoneUIStates,
         "CPhoneSingleAndWaiting::HandleUnholdL() ");
-    iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId );
-
-    UpdateUiCommands(); 
+    UpdateCallHeaderAndUiCommandsL( aCallId );
     }
 
 // -----------------------------------------------------------
@@ -380,20 +376,13 @@
     {
     __LOGMETHODSTARTEND( EPhoneUIStates,
         "CPhoneSingleAndWaiting::MakeStateTransitionToTwoSinglesL() ");
+    UpdateCallHeaderAndUiCommandsL( aCallId );
     
-    BeginUiUpdateLC();
-
-    UpdateRemoteInfoDataL ( aCallId );
-    
-    iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId );
-
     if ( iNumberEntryManager->IsNumberEntryUsedL() )
         {
         iNumberEntryManager->SetNumberEntryVisibilityL(ETrue);
         }
 
-    UpdateUiCommands();
-    EndUiUpdate();
     iStateMachine->ChangeState( EPhoneStateTwoSingles );
     }
 
@@ -438,28 +427,4 @@
     __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndWaiting::HandleDisconnectingL( ) ");
     }
 
-// -----------------------------------------------------------
-// CPhoneSingleAndWaiting::UpdateUiControlsL
-// -----------------------------------------------------------
-//
-void CPhoneSingleAndWaiting::UpdateUiControlsL()
-    {
-    __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndWaiting::UpdateUiControlsL( ) ");
-    UpdateUiCommands();
-    }
-
-// -----------------------------------------------------------
-// Updates bubble and ui commands
-// -----------------------------------------------------------
-//
-void CPhoneSingleAndWaiting::UpdateBubbleAndUICommandsL( 
-    TInt aCallId )
-    {
-    __LOGMETHODSTARTEND( EPhoneUIStates,
-        "CPhoneSingleAndWaiting::UpdateBubbleAndUICommandsL() ");
-    iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId );
-
-    UpdateUiCommands(); 
-    }
-
 // End of File