phoneapp/phoneuistates/src/cphoneconference.cpp
changeset 21 92ab7f8d0eab
parent 0 5f000ab63145
child 22 6bb1b21d2484
equal deleted inserted replaced
4:c84cf270c54f 21:92ab7f8d0eab
   258 // CPhoneConference::UpdateInCallCbaL
   258 // CPhoneConference::UpdateInCallCbaL
   259 // -----------------------------------------------------------
   259 // -----------------------------------------------------------
   260 //
   260 //
   261 void CPhoneConference::UpdateInCallCbaL()
   261 void CPhoneConference::UpdateInCallCbaL()
   262     {
   262     {
   263     if ( iViewCommandHandle->HandleCommandL( EPhoneViewIsConferenceInExpandedMode ) 
   263 // <-- QT PHONE START -->
   264         != EPhoneViewResponseSuccess )
   264     //if ( iViewCommandHandle->HandleCommandL( EPhoneViewIsConferenceInExpandedMode ) 
   265         {
   265     //    != EPhoneViewResponseSuccess )
   266         UpdateCbaL( EPhoneCallHandlingInCallCBA );
   266     //    {
   267         }    
   267     UpdateCbaL( EPhoneCallHandlingInCallCBA );
       
   268     //    }
       
   269 // <-- QT PHONE END -->    
   268     }
   270     }
   269 
   271 
   270 // -----------------------------------------------------------
   272 // -----------------------------------------------------------
   271 // CPhoneConference::OpenMenuBarL
   273 // CPhoneConference::OpenMenuBarL
   272 // -----------------------------------------------------------
   274 // -----------------------------------------------------------
   493 void CPhoneConference::HandleHeldConferenceL( TInt aCallId )
   495 void CPhoneConference::HandleHeldConferenceL( TInt aCallId )
   494     {
   496     {
   495     __LOGMETHODSTARTEND( EPhoneUIStates, 
   497     __LOGMETHODSTARTEND( EPhoneUIStates, 
   496         "CPhoneConference::HandleHeldConferenceL()");
   498         "CPhoneConference::HandleHeldConferenceL()");
   497     TPhoneCmdParamCallHeaderData callHeaderParam;
   499     TPhoneCmdParamCallHeaderData callHeaderParam;
   498     callHeaderParam.SetCallState( EPEStateHeld );
   500     // <-- QT PHONE START --> 
       
   501     callHeaderParam.SetCallState( EPEStateHeldConference );
       
   502     // <-- QT PHONE END -->
   499     
   503     
   500     TInt callLabelId;
   504     TInt callLabelId;
   501     TBuf<KPhoneCallHeaderLabelMaxLength> labelText( KNullDesC );
   505     TBuf<KPhoneCallHeaderLabelMaxLength> labelText( KNullDesC );
   502     callLabelId = CPhoneMainResourceResolver::Instance()->
   506     callLabelId = CPhoneMainResourceResolver::Instance()->
   503             ResolveResourceID( EPhoneCallOnHold );
   507             ResolveResourceID( EPhoneCallOnHold );
   518         {
   522         {
   519         SendGlobalInfoNoteL( EPhoneInformationConferenceOnHold );
   523         SendGlobalInfoNoteL( EPhoneInformationConferenceOnHold );
   520         }
   524         }
   521     
   525     
   522     SetTouchPaneButtonDisabled( EPhoneInCallCmdPrivate );
   526     SetTouchPaneButtonDisabled( EPhoneInCallCmdPrivate );
   523     
   527     // <-- QT PHONE START --> 
       
   528     SetTouchPaneButtons( EPhoneConferenceButtons );
       
   529     // <-- QT PHONE END -->
   524     UpdateInCallCbaL();
   530     UpdateInCallCbaL();
   525     }
   531     }
   526 
   532 
   527 
   533 
   528 // -----------------------------------------------------------
   534 // -----------------------------------------------------------
   573     {
   579     {
   574     __LOGMETHODSTARTEND( EPhoneUIStates, 
   580     __LOGMETHODSTARTEND( EPhoneUIStates, 
   575         "CPhoneConference::HandleConnectedConferenceL()");
   581         "CPhoneConference::HandleConnectedConferenceL()");
   576     // Update call state
   582     // Update call state
   577     TPhoneCmdParamCallHeaderData callHeaderParam;
   583     TPhoneCmdParamCallHeaderData callHeaderParam;
   578     callHeaderParam.SetCallState( EPEStateConnected );
   584     // <-- QT PHONE START -->
   579 
   585     callHeaderParam.SetCallState( EPEStateConnectedConference );
       
   586     // <-- QT PHONE END -->
       
   587     
   580     TBuf<KPhoneCallHeaderLabelMaxLength> conferenceText( KNullDesC );
   588     TBuf<KPhoneCallHeaderLabelMaxLength> conferenceText( KNullDesC );
   581     TInt callLabelId = CPhoneMainResourceResolver::Instance()->
   589     TInt callLabelId = CPhoneMainResourceResolver::Instance()->
   582             ResolveResourceID( EPhoneCLIConferenceCall );
   590             ResolveResourceID( EPhoneCLIConferenceCall );
   583 
   591 
   584     StringLoader::Load( 
   592     StringLoader::Load( 
   599         { 
   607         { 
   600         SendGlobalInfoNoteL( EPhoneInformationConferenceActiveted );
   608         SendGlobalInfoNoteL( EPhoneInformationConferenceActiveted );
   601         }
   609         }
   602     
   610     
   603     SetTouchPaneButtonEnabled( EPhoneInCallCmdPrivate );
   611     SetTouchPaneButtonEnabled( EPhoneInCallCmdPrivate );
       
   612     // <-- QT PHONE START --> 
       
   613     SetTouchPaneButtons( EPhoneConferenceButtons );
       
   614     // <-- QT PHONE END -->
   604     
   615     
   605     UpdateInCallCbaL();
   616     UpdateInCallCbaL();
   606     }
   617     }
   607 
   618 
   608 // -----------------------------------------------------------
   619 // -----------------------------------------------------------
   933             
   944             
   934     CloseSelectionListL();
   945     CloseSelectionListL();
   935 
   946 
   936     // Close fast swap window if it's displayed
   947     // Close fast swap window if it's displayed
   937     CEikonEnv::Static()->DismissTaskList();
   948     CEikonEnv::Static()->DismissTaskList();
   938 
   949     
   939     // Check if HW Keys or Call UI should be disabled
   950     // Check if HW Keys or Call UI should be disabled
   940     CheckDisableHWKeysAndCallUIL();
   951     CheckDisableHWKeysAndCallUIL();
   941     
   952     
   942     SetTouchPaneButtons( EPhoneWaitingCallButtons );
   953 // <-- QT PHONE START -->
   943     
       
   944     // Display incoming call
   954     // Display incoming call
   945     DisplayIncomingCallL( aCallId, dialerParam );
   955     DisplayIncomingCallL( aCallId, dialerParam );
       
   956     
       
   957     SetTouchPaneButtons( EPhoneWaitingCallButtons );
       
   958 // <-- QT PHONE END -->
   946 
   959 
   947     EndUiUpdate();
   960     EndUiUpdate();
   948 
   961 
   949     // Go to incoming state
   962     // Go to incoming state
   950     UpdateCbaL( EPhoneCallHandlingCallWaitingCBA );
   963     UpdateCbaL( EPhoneCallHandlingCallWaitingCBA );