vtuis/videotelui/src/features/dialer/cvtuidialer.cpp
branchRCL_3
changeset 14 856ae1b15d98
parent 13 392fdfb57a78
equal deleted inserted replaced
13:392fdfb57a78 14:856ae1b15d98
    32 #include "CVtUiAppUi.h"
    32 #include "CVtUiAppUi.h"
    33 #include "tvtuistates.h"
    33 #include "tvtuistates.h"
    34 #include "CVtUiContextControl.h"
    34 #include "CVtUiContextControl.h"
    35 #include "CVtUiEndCallButtonPane.h"
    35 #include "CVtUiEndCallButtonPane.h"
    36 #include "CVtUiMainControl.h"
    36 #include "CVtUiMainControl.h"
       
    37 #include "CVtUiRemoteVideoControl.h"
    37 #include "VtUiLayout.h"
    38 #include "VtUiLayout.h"
       
    39 
       
    40 // Index of white color.
       
    41 const TInt KVtDialerRVCPriLow = -1;
    38 
    42 
    39 // ======== LOCAL FUNCTIONS ========
    43 // ======== LOCAL FUNCTIONS ========
    40 
    44 
    41 // Implementation of CVtUiDialer
    45 // Implementation of CVtUiDialer
    42 
    46 
    99 void CVtUiDialer::StartL()
   103 void CVtUiDialer::StartL()
   100     {
   104     {
   101     __VTPRINTENTER( "Dial.StartL" )
   105     __VTPRINTENTER( "Dial.StartL" )
   102     if ( State() == MVtUiFeature::EUnprepared )
   106     if ( State() == MVtUiFeature::EUnprepared )
   103         {
   107         {
       
   108         // Lower remote video control window priority
       
   109         TInt pos = 
       
   110                 iFeatureManager.AppUi().RemoteVideoControl().DrawableWindow()->OrdinalPosition();
       
   111         iFeatureManager.AppUi().RemoteVideoControl().DrawableWindow()->
       
   112                 SetOrdinalPosition( pos, KVtDialerRVCPriLow );
   104         // Make context control and end call button invisible
   113         // Make context control and end call button invisible
   105         iFeatureManager.AppUi().ContextControl().MakeVisible( EFalse );
   114         iFeatureManager.AppUi().ContextControl().MakeVisible( EFalse );
   106         iFeatureManager.AppUi().EndCallButtonPane().MakeVisible( EFalse );
   115         iFeatureManager.AppUi().EndCallButtonPane().MakeVisible( EFalse );
   107         iFeatureManager.UiStates().SetIsDialerActivating( ETrue );
   116         iFeatureManager.UiStates().SetIsDialerActivating( ETrue );
   108         // fixed toolbar is set to be hidden
   117         // fixed toolbar is set to be hidden
   128 void CVtUiDialer::Stop()
   137 void CVtUiDialer::Stop()
   129     {
   138     {
   130     __VTPRINTENTER( "Dial.Stop" )
   139     __VTPRINTENTER( "Dial.Stop" )
   131     if ( State() == MVtUiFeature::EActive )
   140     if ( State() == MVtUiFeature::EActive )
   132         {
   141         {
       
   142         // Lower remote video control window priority
       
   143         TInt pos = 
       
   144                 iFeatureManager.AppUi().RemoteVideoControl().DrawableWindow()->OrdinalPosition();
       
   145         iFeatureManager.AppUi().RemoteVideoControl().DrawableWindow()->
       
   146                 SetOrdinalPosition( pos, KVtDialerRVCPriLow );
       
   147         
   133         TInt error;
   148         TInt error;
   134         TRAP( error,
   149         TRAP( error,
   135             {
   150             {
   136             iFeatureManager.AppUi().SwitchLayoutToFlatStatusPaneL( EFalse );
   151             iFeatureManager.AppUi().SwitchLayoutToFlatStatusPaneL( EFalse );
   137             iFeatureManager.ComponentManager().DeActivateComponentL(
   152             iFeatureManager.ComponentManager().DeActivateComponentL(