phoneapp/phoneuistates/src/cphonesingleandcallsetup.cpp
branchRCL_3
changeset 23 40a3f856b14d
parent 9 91c2fb4b78df
child 24 41a7f70b3818
equal deleted inserted replaced
22:94dc1107e8b2 23:40a3f856b14d
   289 // -----------------------------------------------------------
   289 // -----------------------------------------------------------
   290 //
   290 //
   291 void CPhoneSingleAndCallSetup::HandleIdleL( TInt aCallId )
   291 void CPhoneSingleAndCallSetup::HandleIdleL( TInt aCallId )
   292     {
   292     {
   293     __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndCallSetup::HandleIdleL()");
   293     __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndCallSetup::HandleIdleL()");
   294     
       
   295     BeginUiUpdateLC();
   294     BeginUiUpdateLC();
   296  
       
   297     // Remove call 
       
   298     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId );
   295     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId );
   299 
       
   300     // Close menu bar, if it is displayed
       
   301     iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose );
   296     iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose );
   302 
       
   303     // Find out do we have single or outgoing call left
   297     // Find out do we have single or outgoing call left
   304     TPhoneCmdParamInteger activeCallCount;
   298     TPhoneCmdParamInteger activeCallCount;
   305     iViewCommandHandle->ExecuteCommandL(
   299     iViewCommandHandle->ExecuteCommandL(
   306         EPhoneViewGetCountOfActiveCalls, &activeCallCount );
   300             EPhoneViewGetCountOfActiveCalls, &activeCallCount );
   307         
       
   308     if( activeCallCount.Integer() )
   301     if( activeCallCount.Integer() )
   309         {
   302         {
   310         CheckIfRestoreNEContentAfterDtmfDialer();
   303         CheckIfRestoreNEContentAfterDtmfDialer();
   311  
       
   312         if ( IsNumberEntryUsedL() )
   304         if ( IsNumberEntryUsedL() )
   313             {
   305             {
   314             // Show the number entry if it exists
   306             // Show the number entry if it exists
   315             SetNumberEntryVisibilityL(ETrue);
   307             SetNumberEntryVisibilityL(ETrue);
   316 	        }
   308             }
   317 	    else
   309         else
   318     	    {
   310             {
   319     	    // Set incall CBAs
   311             // Set incall CBAs
   320     	    UpdateCbaL( EPhoneCallHandlingInCallCBA );    
   312             UpdateCbaL( EPhoneCallHandlingInCallCBA );    
   321     	    }
   313             }
   322 	        
       
   323         SetTouchPaneButtons( EPhoneIncallButtons );    
   314         SetTouchPaneButtons( EPhoneIncallButtons );    
   324         // UnCapture keys callsetup fails
   315         // UnCapture keys callsetup fails
   325         CaptureKeysDuringCallNotificationL( EFalse );
   316         CaptureKeysDuringCallNotificationL( EFalse );
   326         // Setup call was terminated
   317         // Setup call was terminated
   327         iStateMachine->ChangeState( EPhoneStateSingle );            
   318         iStateMachine->ChangeState( EPhoneStateSingle );
   328         }
   319         }
   329     else
   320     else
   330         {
   321         {
   331     	// Display call termination note, if necessary
   322         // Display call termination note, if necessary
   332     	DisplayCallTerminationNoteL();
   323         DisplayCallTerminationNoteL();
   333 
       
   334         // Single call was terminated
   324         // Single call was terminated
   335         SetTouchPaneButtons( EPhoneCallSetupButtons );
   325         SetTouchPaneButtons( EPhoneCallSetupButtons );
   336         SetToolbarDimming( ETrue );
   326         SetToolbarDimming( ETrue );
   337 		SetToolbarButtonLoudspeakerEnabled();
   327         SetToolbarButtonLoudspeakerEnabled();
   338         // Update call setup CBAs
   328         // Update call setup CBAs
   339         UpdateCbaL( EPhoneCallHandlingCallSetupCBA );
   329         UpdateCbaL( EPhoneCallHandlingCallSetupCBA );
   340         iStateMachine->ChangeState( EPhoneStateCallSetup );            
   330         iStateMachine->ChangeState( EPhoneStateCallSetup );
   341         }
   331         }
   342         
       
   343     EndUiUpdate();
   332     EndUiUpdate();
   344     }
   333     }
   345 
   334 
   346 // -----------------------------------------------------------
   335 // -----------------------------------------------------------
   347 // CPhoneSingleAndCallSetup::HandleCommandL
   336 // CPhoneSingleAndCallSetup::HandleCommandL