vtuis/videotelui/src/CVtUiRemoteVideoControl.cpp
branchRCL_3
changeset 11 50bbdc59f9c4
parent 8 07d1685f0cd4
child 23 890b5dd735f8
equal deleted inserted replaced
10:f84a661cfc1d 11:50bbdc59f9c4
    66 // CVtUiRemoteVideoControl::~CVtUiRemoteVideoControl
    66 // CVtUiRemoteVideoControl::~CVtUiRemoteVideoControl
    67 // ---------------------------------------------------------------------------
    67 // ---------------------------------------------------------------------------
    68 //
    68 //
    69 CVtUiRemoteVideoControl::~CVtUiRemoteVideoControl()
    69 CVtUiRemoteVideoControl::~CVtUiRemoteVideoControl()
    70     {    
    70     {    
       
    71     if ( iAppUi.EventMonitor() )
       
    72         {
       
    73         iAppUi.EventMonitor()->RemoveObserver( this );
       
    74         }
    71     __VTPRINTENTER( "RemoteVideoControl.~" )
    75     __VTPRINTENTER( "RemoteVideoControl.~" )
    72     __VTPRINTEXIT( "RemoteVideoControl.~" )
    76     __VTPRINTEXIT( "RemoteVideoControl.~" )
    73     }
    77     }
    74 
    78 
    75 // ---------------------------------------------------------------------------
    79 // ---------------------------------------------------------------------------
    91     {
    95     {
    92     __VTPRINTENTER( "RemoteVideoControl.ConstructL" )
    96     __VTPRINTENTER( "RemoteVideoControl.ConstructL" )
    93     CreateWindowL();
    97     CreateWindowL();
    94     SetExtent( TPoint(), TSize() );
    98     SetExtent( TPoint(), TSize() );
    95     ActivateL();
    99     ActivateL();
    96     //Window().SetNonFading( ETrue );    
   100 	    
       
   101     // Disable fading when using DP (eliminates nasty color error)
       
   102     if ( FeatureManager::FeatureSupported( KFeatureIdDisplayPost ) )
       
   103         {
       
   104         Window().SetNonFading( ETrue );
       
   105         }    
       
   106   
       
   107     if ( iAppUi.EventMonitor() )
       
   108         {
       
   109         iAppUi.EventMonitor()->AddObserverL( this );
       
   110         }	
       
   111 	
    97     __VTPRINTEXIT( "RemoteVideoControl.ConstructL" )
   112     __VTPRINTEXIT( "RemoteVideoControl.ConstructL" )
    98     }
   113     }
    99 
   114 
   100 RWindow& CVtUiRemoteVideoControl::GetRWindow()
   115 RWindow& CVtUiRemoteVideoControl::GetRWindow()
   101     {
   116     {