phoneapp/phoneuistates/src/cphoneconferenceandwaiting.cpp
branchRCL_3
changeset 4 24062c24fe38
parent 3 8871b09be73b
child 5 2a26698d78ba
equal deleted inserted replaced
3:8871b09be73b 4:24062c24fe38
   226     else if ( IsConferenceBubbleInSelectionMode() )
   226     else if ( IsConferenceBubbleInSelectionMode() )
   227         {
   227         {
   228         resourceId = EPhoneConfCallParticipantsMenubar;    
   228         resourceId = EPhoneConfCallParticipantsMenubar;    
   229         }        
   229         }        
   230     
   230     
       
   231     TPhoneCmdParamBoolean booleanParam;
       
   232     const TBool videoWaiting = IsVideoCallRingingL();
       
   233     booleanParam.SetBoolean( videoWaiting );
       
   234     iViewCommandHandle->ExecuteCommandL( EPhoneViewSetConferenceAndWaitingVideo,
       
   235         &booleanParam );
       
   236     
       
   237     
   231     TPhoneCmdParamInteger integerParam;
   238     TPhoneCmdParamInteger integerParam;
   232     integerParam.SetInteger( 
   239     integerParam.SetInteger( 
   233                 CPhoneMainResourceResolver::Instance()->
   240                 CPhoneMainResourceResolver::Instance()->
   234                 ResolveResourceID( resourceId ) );
   241                 ResolveResourceID( resourceId ) );
   235                 
   242                 
   288     // Reset blocked keys list
   295     // Reset blocked keys list
   289     iStateMachine->PhoneStorage()->ResetBlockedKeysList();
   296     iStateMachine->PhoneStorage()->ResetBlockedKeysList();
   290     
   297     
   291     // Effect is shown when dialer exist.
   298     // Effect is shown when dialer exist.
   292     TBool effectStarted ( EFalse );
   299     TBool effectStarted ( EFalse );
   293     if ( !NeedToSendToBackgroundL() )
   300     if ( !NeedToReturnToForegroundAppL() )
   294         {
   301         {
   295         BeginTransEffectLC( ENumberEntryOpen );
   302         BeginTransEffectLC( ENumberEntryOpen );
   296         effectStarted = ETrue; 
   303         effectStarted = ETrue; 
   297         }
   304         }
   298         
   305         
   312         &callHeaderParam );
   319         &callHeaderParam );
   313     
   320     
   314     
   321     
   315     if ( IsNumberEntryUsedL() )
   322     if ( IsNumberEntryUsedL() )
   316         {
   323         {
   317         if ( NeedToSendToBackgroundL() )
   324         if ( NeedToReturnToForegroundAppL() )
   318             {
   325             {
   319             // Return phone to the background if send to background is needed.
       
   320             iViewCommandHandle->ExecuteCommandL( EPhoneViewSendToBackground );
       
   321             
       
   322             iViewCommandHandle->ExecuteCommandL( EPhoneViewSetControlAndVisibility );
   326             iViewCommandHandle->ExecuteCommandL( EPhoneViewSetControlAndVisibility );
   323             
   327             
   324             UpdateCbaL( EPhoneCallHandlingInCallCBA );
   328             UpdateCbaL( EPhoneCallHandlingInCallCBA );
   325             }
   329             }
   326         else
       
   327             {
       
   328             // Show the number entry if it exists.
       
   329             SetNumberEntryVisibilityL(ETrue);
       
   330             }
       
   331         }
   330         }
   332     else
   331     else
   333         {
   332         {
   334         UpdateCbaL( EPhoneCallHandlingNewCallSwapCBA );
   333         UpdateCbaL( EPhoneCallHandlingNewCallSwapCBA );
   335         // If numberentry is not open just check NeedToSendToBackgroundL and 
       
   336         // sendbackround if needed.
       
   337         if ( NeedToSendToBackgroundL() )
       
   338             {
       
   339             // Return phone to the background if send to background is needed.
       
   340             iViewCommandHandle->ExecuteCommandL( EPhoneViewSendToBackground );
       
   341             }
       
   342         }
   334         }
   343     SetTouchPaneButtons( EPhoneConferenceAndSingleButtons );
   335     SetTouchPaneButtons( EPhoneConferenceAndSingleButtons );
   344     SetTouchPaneButtonDisabled( EPhoneInCallCmdPrivate );
   336     SetTouchPaneButtonDisabled( EPhoneInCallCmdPrivate );
   345     
   337     
   346     EndUiUpdate();
   338     EndUiUpdate();
   372     
   364     
   373     if( iRingingCallId == aCallId )
   365     if( iRingingCallId == aCallId )
   374         {
   366         {
   375         // Effect is shown when dialer exist.
   367         // Effect is shown when dialer exist.
   376         TBool effectStarted ( EFalse );
   368         TBool effectStarted ( EFalse );
   377         if ( !NeedToSendToBackgroundL() )
   369         if ( !NeedToReturnToForegroundAppL() )
   378             {
   370             {
   379             BeginTransEffectLC( ENumberEntryOpen );
   371             BeginTransEffectLC( ENumberEntryOpen );
   380             effectStarted = ETrue;
   372             effectStarted = ETrue;
   381             }
   373             }
   382         
   374         
   389         // Remove call 
   381         // Remove call 
   390         iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId );
   382         iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId );
   391             
   383             
   392         if ( IsNumberEntryUsedL() )
   384         if ( IsNumberEntryUsedL() )
   393             {
   385             {
   394             if ( NeedToSendToBackgroundL() )
   386             if ( NeedToReturnToForegroundAppL() ) 
   395                 {
   387                 {
   396                 // Return phone to the background if send to background is needed.
   388                 // Return phone to the background if menu application is needed to foreground.
   397                 iViewCommandHandle->ExecuteCommandL( EPhoneViewSendToBackground );
   389                 iViewCommandHandle->ExecuteCommandL( EPhoneViewSendToBackground );
   398  
   390  
   399                 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetControlAndVisibility );
   391                 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetControlAndVisibility );
   400                 
   392                 
   401                 UpdateCbaL( EPhoneCallHandlingInCallCBA );
   393                 UpdateCbaL( EPhoneCallHandlingInCallCBA );
   402                 }
   394                 }
   403             else
       
   404                 {
       
   405                 // Show the number entry if it exists.
       
   406                 SetNumberEntryVisibilityL(ETrue);
       
   407                 }
       
   408             }
   395             }
   409         else
   396         else
   410             {
   397             {
   411             UpdateCbaL( EPhoneCallHandlingInCallCBA );
   398             UpdateCbaL( EPhoneCallHandlingInCallCBA );
   412             // If numberentry is not open just check NeedToSendToBackgroundL and 
   399             // If numberentry is not open just check NeedToReturnToForegroundAppL and 
   413             // sendbackround if needed.
   400             // sendbackround if needed.
   414             if ( NeedToSendToBackgroundL() )
   401             if ( NeedToReturnToForegroundAppL() )
   415                 {
   402                 {
   416                 // Return phone to the background if send to background is needed.
   403                 // Return phone to the background if send to background is needed.
   417                 iViewCommandHandle->ExecuteCommandL( EPhoneViewSendToBackground );
   404                 iViewCommandHandle->ExecuteCommandL( EPhoneViewSendToBackground );
   418                 }
   405                 }
   419             }
   406             }