equal
deleted
inserted
replaced
32 #include "VtUiLayout.h" |
32 #include "VtUiLayout.h" |
33 #include "VtUiUtility.h" |
33 #include "VtUiUtility.h" |
34 #include "VtUiPanic.h" |
34 #include "VtUiPanic.h" |
35 #include "CVtUiActivateBtHfDialog.h" |
35 #include "CVtUiActivateBtHfDialog.h" |
36 #include "CVtUiRemoteVideoControl.h" |
36 #include "CVtUiRemoteVideoControl.h" |
|
37 #include "CVtUiEndCallButtonPane.h" |
37 #include <csxhelp/incl.hlp.hrh> |
38 #include <csxhelp/incl.hlp.hrh> |
38 |
39 |
39 |
40 |
40 #include <AknIncallBubbleNotify.h> |
41 #include <AknIncallBubbleNotify.h> |
41 #include <AknsLayeredBackgroundControlContext.h> |
42 #include <AknsLayeredBackgroundControlContext.h> |
538 // ETrue if number entry has been added to stack. |
539 // ETrue if number entry has been added to stack. |
539 TBool iNumberEntryInStack; |
540 TBool iNumberEntryInStack; |
540 |
541 |
541 // Owned number entry activation control. |
542 // Owned number entry activation control. |
542 CVtUiNumberEntryActivationControl* iNumberEntryActivation; |
543 CVtUiNumberEntryActivationControl* iNumberEntryActivation; |
|
544 |
|
545 // Owned button pane control |
|
546 CVtUiEndCallButtonPane* iEndCallButtonPane; |
|
547 |
|
548 // ETrue if iButtonPane has been added to stack. |
|
549 TBool iButtonPaneInStack; |
543 |
550 |
544 }; |
551 }; |
545 |
552 |
546 /** |
553 /** |
547 * Encapsulates event handling. |
554 * Encapsulates event handling. |
828 VTLOGINIT |
835 VTLOGINIT |
829 __VTPRINTENTER( "VtUi.ConstructL" ) |
836 __VTPRINTENTER( "VtUi.ConstructL" ) |
830 |
837 |
831 FeatureManager::InitializeLibL(); |
838 FeatureManager::InitializeLibL(); |
832 BaseConstructL( EAknEnableSkin | EAknEnableMSK ); |
839 BaseConstructL( EAknEnableSkin | EAknEnableMSK ); |
|
840 |
|
841 iIsLandScapeOrientation = VtUiLayout::IsLandscapeOrientation(); |
833 |
842 |
834 iCba = Cba(); |
843 iCba = Cba(); |
835 // Must be done before creating features |
844 // Must be done before creating features |
836 iVTVariation.ReadL(); |
845 iVTVariation.ReadL(); |
837 |
846 |
3204 ExecuteCmdL( KVtEngSetZoomStep, aZoomStep ); |
3213 ExecuteCmdL( KVtEngSetZoomStep, aZoomStep ); |
3205 } |
3214 } |
3206 __VTPRINTEXIT( "VtUi.SetZoomFactorL" ) |
3215 __VTPRINTEXIT( "VtUi.SetZoomFactorL" ) |
3207 } |
3216 } |
3208 |
3217 |
|
3218 // ----------------------------------------------------------------------------- |
|
3219 // CVtUiAppUi::CmdSimulateKeyEvent |
|
3220 // ----------------------------------------------------------------------------- |
|
3221 // |
|
3222 void CVtUiAppUi::CmdSimulateKeyEvent( TInt aScanCode ) |
|
3223 { |
|
3224 TRawEvent lEventDown; |
|
3225 lEventDown.Set( TRawEvent::EKeyDown, aScanCode ); |
|
3226 UserSvr::AddEvent( lEventDown ); |
|
3227 User::After( 100000 ); |
|
3228 TRawEvent lEventUp; |
|
3229 lEventUp.Set( TRawEvent::EKeyUp, aScanCode ); |
|
3230 UserSvr::AddEvent( lEventUp ); |
|
3231 } |
3209 |
3232 |
3210 // ----------------------------------------------------------------------------- |
3233 // ----------------------------------------------------------------------------- |
3211 // CVtUiAppUi::CmdUpdateVolumeL |
3234 // CVtUiAppUi::CmdUpdateVolumeL |
3212 // This method is called to update volume to the Video Telephone engine |
3235 // This method is called to update volume to the Video Telephone engine |
3213 // side |
3236 // side |
3632 synch = ETrue; |
3655 synch = ETrue; |
3633 } |
3656 } |
3634 break; |
3657 break; |
3635 |
3658 |
3636 case EVtUiAppUiAnsweredQuerySetupStill: |
3659 case EVtUiAppUiAnsweredQuerySetupStill: |
3637 ActiveExecInitSetSourceL( MVtEngMedia::EMediaStillImage, aRequest ); |
3660 { |
|
3661 if ( iIsLandScapeOrientation == VtUiLayout::IsLandscapeOrientation() ) |
|
3662 { |
|
3663 ActiveExecInitSetSourceL( MVtEngMedia::EMediaStillImage, aRequest ); |
|
3664 } |
3638 aNextState = EVtUiAppUiAnsweredQuerySetupStart; |
3665 aNextState = EVtUiAppUiAnsweredQuerySetupStart; |
|
3666 } |
3639 break; |
3667 break; |
3640 |
3668 |
3641 case EVtUiAppUiAnsweredQuerySetupNone: |
3669 case EVtUiAppUiAnsweredQuerySetupNone: |
3642 ActiveExecInitSetSourceL( MVtEngMedia::EMediaNone, aRequest ); |
3670 { |
|
3671 if ( iIsLandScapeOrientation == VtUiLayout::IsLandscapeOrientation() ) |
|
3672 { |
|
3673 ActiveExecInitSetSourceL( MVtEngMedia::EMediaNone, aRequest ); |
|
3674 } |
3643 aNextState = EVtUiAppUiAnsweredQuerySetupStart; |
3675 aNextState = EVtUiAppUiAnsweredQuerySetupStart; |
|
3676 } |
3644 break; |
3677 break; |
3645 |
3678 |
3646 case EVtUiAppUiAnsweredQuerySetupStart: |
3679 case EVtUiAppUiAnsweredQuerySetupStart: |
3647 ActiveExecInitExecuteCommandL( KVtEngStartViewFinder, aRequest ); |
3680 ActiveExecInitExecuteCommandL( KVtEngStartViewFinder, aRequest ); |
3648 aNextState = EVtUiAppUiAnsweredQueryShow; |
3681 aNextState = EVtUiAppUiAnsweredQueryShow; |
3788 if ( iUiStates->IsExecShowCameraInUse() ) |
3821 if ( iUiStates->IsExecShowCameraInUse() ) |
3789 { |
3822 { |
3790 ShowCameraInUseNoteL(); |
3823 ShowCameraInUseNoteL(); |
3791 } |
3824 } |
3792 |
3825 |
|
3826 if ( iIsLandScapeOrientation != VtUiLayout::IsLandscapeOrientation() ) |
|
3827 { |
|
3828 (void) HandleLayoutChanged(); |
|
3829 } |
|
3830 |
3793 if ( aState != EVtUiAppUiAnsweredQueryFinish ) |
3831 if ( aState != EVtUiAppUiAnsweredQueryFinish ) |
3794 { |
3832 { |
3795 ChangeApplicationFocus( ETrue ); |
3833 ChangeApplicationFocus( ETrue ); |
3796 } |
3834 } |
3797 SetHiddenL( EFalse ); |
3835 SetHiddenL( EFalse ); |
4548 CVtUiRemoteVideoControl& CVtUiAppUi::RemoteVideoControl() |
4586 CVtUiRemoteVideoControl& CVtUiAppUi::RemoteVideoControl() |
4549 { |
4587 { |
4550 __VTPRINTENTER( "VtUi.RemoteVideoControl" ) |
4588 __VTPRINTENTER( "VtUi.RemoteVideoControl" ) |
4551 __VTPRINTEXIT( "VtUi.RemoteVideoControl" ) |
4589 __VTPRINTEXIT( "VtUi.RemoteVideoControl" ) |
4552 return *iInstance->iRemoteVideoControl; |
4590 return *iInstance->iRemoteVideoControl; |
|
4591 } |
|
4592 |
|
4593 // ----------------------------------------------------------------------------- |
|
4594 // CVtUiAppUi::EndCallButtonPane |
|
4595 // ----------------------------------------------------------------------------- |
|
4596 // |
|
4597 CVtUiEndCallButtonPane& CVtUiAppUi::EndCallButtonPane() |
|
4598 { |
|
4599 __VTPRINTENTER( "VtUi.EndCallButtonPane" ) |
|
4600 __VTPRINTEXIT( "VtUi.EndCallButtonPane" ) |
|
4601 return *iInstance->iEndCallButtonPane; |
4553 } |
4602 } |
4554 |
4603 |
4555 // ----------------------------------------------------------------------------- |
4604 // ----------------------------------------------------------------------------- |
4556 // CVtUiAppUi::DoExit |
4605 // CVtUiAppUi::DoExit |
4557 // ----------------------------------------------------------------------------- |
4606 // ----------------------------------------------------------------------------- |
6316 control ); |
6365 control ); |
6317 AknLayoutUtils::LayoutControl( iContextControl, parent, control ); |
6366 AknLayoutUtils::LayoutControl( iContextControl, parent, control ); |
6318 iAppUi.AddToStackL( iContextControl ); |
6367 iAppUi.AddToStackL( iContextControl ); |
6319 iContextControlInStack = ETrue; |
6368 iContextControlInStack = ETrue; |
6320 |
6369 |
|
6370 iEndCallButtonPane = CVtUiEndCallButtonPane::NewL( parent ); |
|
6371 |
|
6372 VtUiLayout::GetButtonPaneLayout( control ); |
|
6373 |
|
6374 AknLayoutUtils::LayoutControl( iEndCallButtonPane, parent, control ); |
|
6375 iAppUi.AddToStackL( iEndCallButtonPane ); |
|
6376 iButtonPaneInStack = ETrue; |
|
6377 |
6321 iNaviPane = |
6378 iNaviPane = |
6322 CVtUiNaviPane::NewL( |
6379 CVtUiNaviPane::NewL( |
6323 *( iAppUi.NaviPaneL() ), |
6380 *( iAppUi.NaviPaneL() ), |
6324 iAppUi ); |
6381 iAppUi ); |
6325 |
6382 |
6340 if(iMainControl) |
6397 if(iMainControl) |
6341 iMainControl->LayoutRemoteVideo(); |
6398 iMainControl->LayoutRemoteVideo(); |
6342 AknLayoutUtils::LayoutControl( iNumberEntryActivation, parent, control ); |
6399 AknLayoutUtils::LayoutControl( iNumberEntryActivation, parent, control ); |
6343 VtUiLayout::GetFirstWindowBackgroundLayout( control ); |
6400 VtUiLayout::GetFirstWindowBackgroundLayout( control ); |
6344 AknLayoutUtils::LayoutControl( iContextControl, parent, control ); |
6401 AknLayoutUtils::LayoutControl( iContextControl, parent, control ); |
|
6402 |
|
6403 VtUiLayout::GetButtonPaneLayout( control ); |
|
6404 AknLayoutUtils::LayoutControl( iEndCallButtonPane, parent, control ); |
|
6405 |
6345 if(iContextControl) |
6406 if(iContextControl) |
6346 iContextControl->LayoutRemoteVideo(); |
6407 iContextControl->LayoutRemoteVideo(); |
6347 |
6408 |
6348 } |
6409 } |
6349 |
6410 |
6411 } |
6472 } |
6412 if(iRemoteVideoControl &&iRemoteVideoControlInStack) |
6473 if(iRemoteVideoControl &&iRemoteVideoControlInStack) |
6413 { |
6474 { |
6414 iAppUi.RemoveFromStack( iRemoteVideoControl ); |
6475 iAppUi.RemoveFromStack( iRemoteVideoControl ); |
6415 } |
6476 } |
|
6477 if( iEndCallButtonPane && iButtonPaneInStack ) |
|
6478 { |
|
6479 iAppUi.RemoveFromStack( iEndCallButtonPane ); |
|
6480 } |
6416 delete iMainControl; |
6481 delete iMainControl; |
6417 delete iContextControl; |
6482 delete iContextControl; |
6418 delete iRemoteVideoControl; |
6483 delete iRemoteVideoControl; |
6419 delete iNumberEntryActivation; |
6484 delete iNumberEntryActivation; |
6420 delete iNaviPane; |
6485 delete iNaviPane; |
6421 delete iBitmapManager; |
6486 delete iBitmapManager; |
|
6487 delete iEndCallButtonPane; |
6422 } |
6488 } |
6423 |
6489 |
6424 // Implementation of CVtUiAppUi::CEventObserver |
6490 // Implementation of CVtUiAppUi::CEventObserver |
6425 |
6491 |
6426 // ----------------------------------------------------------------------------- |
6492 // ----------------------------------------------------------------------------- |