phoneapp/phoneuistates/src/cphonesinglecall.cpp
changeset 22 6bb1b21d2484
parent 21 92ab7f8d0eab
child 51 f39ed5e045e0
equal deleted inserted replaced
21:92ab7f8d0eab 22:6bb1b21d2484
    23 #include <featmgr.h>
    23 #include <featmgr.h>
    24 #include <pevirtualengine.h>
    24 #include <pevirtualengine.h>
    25 #include <mpeengineinfo.h>
    25 #include <mpeengineinfo.h>
    26 #include <cpephonemodelif.h>
    26 #include <cpephonemodelif.h>
    27 #include <connect/sbdefs.h>
    27 #include <connect/sbdefs.h>
    28 // <-- QT PHONE START --> 
       
    29 #include <videotelcontrolmediatorapi.h>
    28 #include <videotelcontrolmediatorapi.h>
    30 // <-- QT PHONE END --> 
       
    31 #include <MediatorDomainUIDs.h>
    29 #include <MediatorDomainUIDs.h>
    32 #include <telephonyvariant.hrh>
    30 #include <telephonyvariant.hrh>
    33 
    31 
    34 #include "cphonesinglecall.h"
    32 #include "cphonesinglecall.h"
    35 #include "tphonecmdparamstring.h"
    33 #include "tphonecmdparamstring.h"
   304             // Set current call id
   302             // Set current call id
   305             iStateMachine->SetCallId( iCallId );
   303             iStateMachine->SetCallId( iCallId );
   306                         if( IsVideoCall( iCallId ) )
   304                         if( IsVideoCall( iCallId ) )
   307                         {
   305                         {
   308                            // Video call can be released only after we get response to VT Shutdown Command
   306                            // Video call can be released only after we get response to VT Shutdown Command
   309 // <-- QT PHONE START -->
       
   310  
       
   311                            CPhoneMediatorFactory::Instance()->Sender()->IssueCommand( KMediatorVideoTelephonyDomain,
   307                            CPhoneMediatorFactory::Instance()->Sender()->IssueCommand( KMediatorVideoTelephonyDomain,
   312                                                                                       KCatPhoneToVideotelCommands, 
   308                                                                                       KCatPhoneToVideotelCommands, 
   313                                                                                       EVtCmdReleaseDataport,
   309                                                                                       EVtCmdReleaseDataport,
   314                                                                                       TVersion( KPhoneToVideotelCmdVersionMajor,
   310                                                                                       TVersion( KPhoneToVideotelCmdVersionMajor,
   315                                                                                             KPhoneToVideotelCmdVersionMinor, 
   311                                                                                             KPhoneToVideotelCmdVersionMinor, 
   316                                                                                             KPhoneToVideotelCmdVersionBuild ),
   312                                                                                             KPhoneToVideotelCmdVersionBuild ),
   317                                                                                       KNullDesC8,
   313                                                                                       KNullDesC8,
   318                                                                                       CPhoneSwitchToVideoOrVoiceCommand::NewL( *iStateMachine ) );
   314                                                                                       CPhoneSwitchToVideoOrVoiceCommand::NewL( *iStateMachine ) );
   319 
       
   320 // <-- QT PHONE END --> 
       
   321                         }
   315                         }
   322                         else
   316                         else
   323                         {
   317                         {
   324                           iStateMachine->SendPhoneEngineMessage(
   318                           iStateMachine->SendPhoneEngineMessage(
   325                               CPEPhoneModelIF::EPEMessageSwitchToVideoOrVoice );                    
   319                               CPEPhoneModelIF::EPEMessageSwitchToVideoOrVoice );                    
   435         { 
   429         { 
   436         HandleHoldNoteL( aCallId , ETrue );
   430         HandleHoldNoteL( aCallId , ETrue );
   437         }
   431         }
   438 
   432 
   439     UpdateInCallCbaL();
   433     UpdateInCallCbaL();
   440 // <-- QT PHONE START -->
       
   441     SetTouchPaneButtons( EPhoneIncallHeldButtons );
   434     SetTouchPaneButtons( EPhoneIncallHeldButtons );
   442 // <-- QT PHONE END -->
       
   443     }
   435     }
   444     
   436     
   445 // -----------------------------------------------------------
   437 // -----------------------------------------------------------
   446 // CPhoneSingleCall::HandleConnectedL
   438 // CPhoneSingleCall::HandleConnectedL
   447 // -----------------------------------------------------------
   439 // -----------------------------------------------------------
   472             HandleHoldNoteL( aCallId , EFalse );
   464             HandleHoldNoteL( aCallId , EFalse );
   473             }
   465             }
   474         }
   466         }
   475 
   467 
   476     UpdateInCallCbaL();  
   468     UpdateInCallCbaL();  
   477 // <-- QT PHONE START -->
       
   478     SetTouchPaneButtons( EPhoneIncallButtons );
   469     SetTouchPaneButtons( EPhoneIncallButtons );
   479 // <-- QT PHONE END -->
       
   480     }
   470     }
   481     
   471     
   482 // -----------------------------------------------------------
   472 // -----------------------------------------------------------
   483 // CPhoneSingleCall::ToggleHold
   473 // CPhoneSingleCall::ToggleHold
   484 // -----------------------------------------------------------
   474 // -----------------------------------------------------------
   486 void CPhoneSingleCall::ToggleHoldL()
   476 void CPhoneSingleCall::ToggleHoldL()
   487     {
   477     {
   488     __LOGMETHODSTARTEND( EPhoneUIStates, 
   478     __LOGMETHODSTARTEND( EPhoneUIStates, 
   489         "CPhoneSingleCall::ToggleHoldL()");
   479         "CPhoneSingleCall::ToggleHoldL()");
   490 
   480 
   491     // <-- QT PHONE START --> 
       
   492     TPECallControlCaps callControlCaps =
   481     TPECallControlCaps callControlCaps =
   493         iStateMachine->PhoneEngineInfo()->CallControlCaps( iCallId );
   482         iStateMachine->PhoneEngineInfo()->CallControlCaps( iCallId );
   494     
   483     
   495     if ( callControlCaps & MCCECallObserver::ECCECapsHold  )
   484     if ( callControlCaps & MCCECallObserver::ECCECapsHold  )
   496         {
   485         {
   506         }
   495         }
   507     else
   496     else
   508         {
   497         {
   509         SendGlobalInfoNoteL( EPhoneNoteTextNotAllowed );    
   498         SendGlobalInfoNoteL( EPhoneNoteTextNotAllowed );    
   510         }
   499         }
   511     // <-- QT PHONE END -->
       
   512     }
   500     }
   513         
   501         
   514 // -----------------------------------------------------------
   502 // -----------------------------------------------------------
   515 // CPhoneSingleCall::HandleIncomingL
   503 // CPhoneSingleCall::HandleIncomingL
   516 // -----------------------------------------------------------
   504 // -----------------------------------------------------------
   526     dialerParam.SetBoolean( ETrue );
   514     dialerParam.SetBoolean( ETrue );
   527     
   515     
   528     // Get allow waiting call header param value.
   516     // Get allow waiting call header param value.
   529     AllowShowingOfWaitingCallHeaderL( dialerParam );    
   517     AllowShowingOfWaitingCallHeaderL( dialerParam );    
   530 
   518 
   531     // Close fast swap window if it's displayed
       
   532 // <-- QT PHONE START --> 
       
   533 //    CEikonEnv::Static()->DismissTaskList();
       
   534  
       
   535 
       
   536     // Display incoming call
   519     // Display incoming call
   537     DisplayIncomingCallL( aCallId, dialerParam );
   520     DisplayIncomingCallL( aCallId, dialerParam );
   538     
   521     
   539     // Show incoming call buttons
   522     // Show incoming call buttons
   540     SetTouchPaneButtons( EPhoneWaitingCallButtons ); 
   523     SetTouchPaneButtons( EPhoneWaitingCallButtons ); 
   541 // <-- QT PHONE END -->
       
   542     
   524     
   543     if( FeatureManager::FeatureSupported( KFeatureIdFfTouchUnlockStroke ) 
   525     if( FeatureManager::FeatureSupported( KFeatureIdFfTouchUnlockStroke ) 
   544             && !CPhoneCenRepProxy::Instance()->
   526             && !CPhoneCenRepProxy::Instance()->
   545             IsTelephonyFeatureSupported( KTelephonyLVFlagAllowUnlockOnIncoming ) 
   527             IsTelephonyFeatureSupported( KTelephonyLVFlagAllowUnlockOnIncoming ) 
   546             && ( IsKeyLockOn() || IsAutoLockOn() ) )
   528             && ( IsKeyLockOn() || IsAutoLockOn() ) )
   661     BeginTransEffectLC( ENumberEntryClose );
   643     BeginTransEffectLC( ENumberEntryClose );
   662     BeginUiUpdateLC();
   644     BeginUiUpdateLC();
   663     
   645     
   664     SetNumberEntryVisibilityL(EFalse);
   646     SetNumberEntryVisibilityL(EFalse);
   665 
   647 
   666     //QT PHONE START
       
   667     // Display call setup 
   648     // Display call setup 
   668     DisplayCallSetupL( aCallId );
   649     DisplayCallSetupL( aCallId );
   669     
   650     
   670     // Show incoming call buttons
   651     // Show incoming call buttons
   671     SetTouchPaneButtons( EPhoneCallSetupAndSingleButtons );
   652     SetTouchPaneButtons( EPhoneCallSetupAndSingleButtons );
   672     //QT PHONE END
       
   673 
   653 
   674     EndUiUpdate();
   654     EndUiUpdate();
   675     
   655     
   676     EndTransEffect();
   656     EndTransEffect();
   677 
   657