22 #include <eikenv.h> |
22 #include <eikenv.h> |
23 #include <featmgr.h> |
23 #include <featmgr.h> |
24 #include <StringLoader.h> |
24 #include <StringLoader.h> |
25 #include <dundomainpskeys.h> |
25 #include <dundomainpskeys.h> |
26 #include <telephonyvariant.hrh> |
26 #include <telephonyvariant.hrh> |
27 #include <ScreensaverInternalPSKeys.h> |
|
28 #include <mpeengineinfo.h> |
27 #include <mpeengineinfo.h> |
29 #include <MediatorDomainUIDs.h> |
28 #include <MediatorDomainUIDs.h> |
30 // <-- QT PHONE START --> |
|
31 #include <videotelcontrolmediatorapi.h> |
29 #include <videotelcontrolmediatorapi.h> |
32 // <-- QT PHONE END --> |
|
33 |
30 |
34 #include "cphonepubsubproxy.h" |
31 #include "cphonepubsubproxy.h" |
35 #include "phoneui.pan" |
32 #include "phoneui.pan" |
36 #include "cphonestateincoming.h" |
33 #include "cphonestateincoming.h" |
37 #include "tphonecmdparamboolean.h" |
34 #include "tphonecmdparamboolean.h" |
407 // Update single call |
404 // Update single call |
408 UpdateSingleActiveCallL( aCallId ); |
405 UpdateSingleActiveCallL( aCallId ); |
409 |
406 |
410 SetTouchPaneButtons( EPhoneIncallButtons ); |
407 SetTouchPaneButtons( EPhoneIncallButtons ); |
411 SetToolbarDimming( EFalse ); |
408 SetToolbarDimming( EFalse ); |
|
409 SetBackButtonActive(ETrue); |
412 |
410 |
413 EndUiUpdate(); |
411 EndUiUpdate(); |
414 EndTransEffect(); |
412 EndTransEffect(); |
415 |
413 |
416 // Go to single state |
414 // Go to single state |
480 TPhoneCmdParamBoolean globalNotifierParam; |
478 TPhoneCmdParamBoolean globalNotifierParam; |
481 globalNotifierParam.SetBoolean( EFalse ); |
479 globalNotifierParam.SetBoolean( EFalse ); |
482 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetEikonNotifiersDisabled, |
480 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetEikonNotifiersDisabled, |
483 &globalNotifierParam ); |
481 &globalNotifierParam ); |
484 |
482 |
485 |
|
486 SetDefaultFlagsL(); |
483 SetDefaultFlagsL(); |
487 |
484 |
488 if ( IsNumberEntryUsedL() ) |
485 if ( IsNumberEntryUsedL() ) |
489 { |
486 { |
490 if ( NeedToSendToBackgroundL() ) |
487 if ( NeedToSendToBackgroundL() ) |
515 // Display idle screen |
512 // Display idle screen |
516 DisplayIdleScreenL(); |
513 DisplayIdleScreenL(); |
517 } |
514 } |
518 |
515 |
519 DeleteTouchPaneButtons(); |
516 DeleteTouchPaneButtons(); |
|
517 SetBackButtonActive(ETrue); |
|
518 |
520 EndUiUpdate(); |
519 EndUiUpdate(); |
521 EndTransEffect(); |
520 EndTransEffect(); |
522 // Go to idle state |
521 // Go to idle state |
523 iCbaManager->UpdateCbaL( EPhoneEmptyCBA ); |
522 iCbaManager->UpdateCbaL( EPhoneEmptyCBA ); |
524 iStateMachine->ChangeState( EPhoneStateIdle ); |
523 iStateMachine->ChangeState( EPhoneStateIdle ); |
571 MPEPhoneModel::EPEMessageStopTonePlay ); |
570 MPEPhoneModel::EPEMessageStopTonePlay ); |
572 break; |
571 break; |
573 |
572 |
574 case EPhoneCallComingCmdSoftReject: |
573 case EPhoneCallComingCmdSoftReject: |
575 // Open Soft reject message editor |
574 // Open Soft reject message editor |
576 OpenSoftRejectMessageEditorL(); |
575 OpenSoftRejectMessageL(); |
577 break; |
576 break; |
578 |
577 |
579 case EPhoneNumberAcqCmdSendCommand: |
578 case EPhoneNumberAcqCmdSendCommand: |
580 HandleSendL(); |
579 HandleSendL(); |
581 break; |
580 break; |
647 iStateMachine->SetCallId( iRingingCallId ); |
646 iStateMachine->SetCallId( iRingingCallId ); |
648 |
647 |
649 if( IsVideoCall( iRingingCallId ) ) |
648 if( IsVideoCall( iRingingCallId ) ) |
650 { |
649 { |
651 // Video call can be released only after we get response to VT Shutdown Command |
650 // Video call can be released only after we get response to VT Shutdown Command |
652 // <-- QT PHONE START --> |
|
653 |
|
654 CPhoneMediatorFactory::Instance()->Sender()->IssueCommand( KMediatorVideoTelephonyDomain, |
651 CPhoneMediatorFactory::Instance()->Sender()->IssueCommand( KMediatorVideoTelephonyDomain, |
655 KCatPhoneToVideotelCommands, |
652 KCatPhoneToVideotelCommands, |
656 EVtCmdReleaseDataport, |
653 EVtCmdReleaseDataport, |
657 TVersion( KPhoneToVideotelCmdVersionMajor, |
654 TVersion( KPhoneToVideotelCmdVersionMajor, |
658 KPhoneToVideotelCmdVersionMinor, |
655 KPhoneToVideotelCmdVersionMinor, |
659 KPhoneToVideotelCmdVersionBuild ), |
656 KPhoneToVideotelCmdVersionBuild ), |
660 KNullDesC8, |
657 KNullDesC8, |
661 CPhoneReleaseCommand::NewL( *iStateMachine ) ); |
658 CPhoneReleaseCommand::NewL( *iStateMachine ) ); |
662 |
|
663 // <-- QT PHONE END --> |
|
664 } |
659 } |
665 else |
660 else |
666 { |
661 { |
667 // Release the call |
662 // Release the call |
668 iStateMachine->SendPhoneEngineMessage( |
663 iStateMachine->SendPhoneEngineMessage( |
674 |
669 |
675 // ----------------------------------------------------------- |
670 // ----------------------------------------------------------- |
676 // CPhoneStateIncoming::OpenSoftRejectMessageEditorL |
671 // CPhoneStateIncoming::OpenSoftRejectMessageEditorL |
677 // ----------------------------------------------------------- |
672 // ----------------------------------------------------------- |
678 // |
673 // |
679 void CPhoneStateIncoming::OpenSoftRejectMessageEditorL() |
674 void CPhoneStateIncoming::OpenSoftRejectMessageL() |
680 { |
675 { |
681 __LOGMETHODSTARTEND(EPhoneControl, |
676 __LOGMETHODSTARTEND(EPhoneControl, |
682 "CPhoneStateIncoming::OpenSoftRejectMessageEditorL ()" ); |
677 "CPhoneStateIncoming::OpenSoftRejectMessageEditorL ()" ); |
683 // Clear the soft reject flag |
678 // Clear the soft reject flag |
684 TPhoneCmdParamBoolean softRejectParam; |
679 TPhoneCmdParamBoolean softRejectParam; |