vtuis/videotelui/src/features/prefs/cvtuicontrast.cpp
changeset 0 ed9695c8bcbe
equal deleted inserted replaced
-1:000000000000 0:ed9695c8bcbe
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include    <cvtlogger.h>
       
    20 #include    "cvtuicontrast.h"
       
    21 #include    "tvtuifeatureids.h"
       
    22 #include    "cvtuicontrastpopup.h"
       
    23 #include    "cvtuipopupbase.h"
       
    24 #include    "videotelui.hrh"
       
    25 #include    "cvtuifeaturemanager.h"
       
    26 #include    "tvtuistates.h"
       
    27 
       
    28 // ---------------------------------------------------------------------------
       
    29 // CVtUiContrast::NewL
       
    30 // ---------------------------------------------------------------------------
       
    31 //
       
    32 CVtUiContrast* CVtUiContrast::NewL( CVtUiFeatureManager&
       
    33     aFeatureManager )
       
    34     {
       
    35     __VTPRINTENTER( "CVtUiContrast.NewL" )
       
    36     CVtUiContrast* self =
       
    37         new ( ELeave ) CVtUiContrast( aFeatureManager );
       
    38     CleanupStack::PushL( self );
       
    39     self->ConstructL();
       
    40     CleanupStack::Pop();
       
    41     __VTPRINTEXIT( "CVtUiContrast.NewL" )
       
    42     return self;
       
    43     }
       
    44 
       
    45 // ---------------------------------------------------------------------------
       
    46 // CVtUiContrast::~CVtUiContrast
       
    47 // ---------------------------------------------------------------------------
       
    48 //
       
    49 CVtUiContrast::~CVtUiContrast()
       
    50     {
       
    51     __VTPRINTENTER( "CVtUiContrast.~" )
       
    52     __VTPRINTEXIT( "CVtUiContrast.~" )
       
    53     }
       
    54 
       
    55 // ---------------------------------------------------------------------------
       
    56 // CVtUiContrast::StartL
       
    57 // ---------------------------------------------------------------------------
       
    58 //
       
    59 void CVtUiContrast::StartL()
       
    60     {
       
    61     __VTPRINTENTER( "CVtUiContrast.StartL" )  
       
    62     CVtUiPrefSliderBase::StartL();
       
    63     iFeatureManager.UiStates().SetContrastModeOn( ETrue );
       
    64     __VTPRINTEXIT( "CVtUiContrast.StartL" )
       
    65     }
       
    66 
       
    67 // ---------------------------------------------------------------------------
       
    68 // CVtUiContrast::Stop
       
    69 // ---------------------------------------------------------------------------
       
    70 //
       
    71 void CVtUiContrast::Stop()
       
    72     {
       
    73  		__VTPRINTENTER( "CVtUiContrast.Stop" )    	
       
    74     CVtUiPrefSliderBase::Stop();
       
    75     iFeatureManager.UiStates().SetContrastModeOn( EFalse );
       
    76     __VTPRINTEXIT( "CVtUiContrast.Stop" )
       
    77     }
       
    78 
       
    79 // ---------------------------------------------------------------------------
       
    80 // CVtUiContrast::CVtUiContrast
       
    81 // ---------------------------------------------------------------------------
       
    82 //
       
    83 CVtUiContrast::CVtUiContrast( CVtUiFeatureManager& aFeatureManager )
       
    84     : CVtUiPrefSliderBase( aFeatureManager, EVtUiFeatureIdContrast )
       
    85     {
       
    86     __VTPRINTENTER( "CVtUiContrast.CVtUiContrast" )
       
    87     __VTPRINTEXIT( "CVtUiContrast.CVtUiContrast" )
       
    88     }
       
    89 
       
    90 // ---------------------------------------------------------------------------
       
    91 // CVtUiContrast::CVtUiContrast
       
    92 // ---------------------------------------------------------------------------
       
    93 //
       
    94 void CVtUiContrast:: ConstructL()
       
    95     {
       
    96     __VTPRINTENTER( "CVtUiContrast.ConstructL" )
       
    97     BaseConstructL();
       
    98     SetPopup( CVtUiContrastPopup::NewL( iFeatureManager ) );
       
    99     __VTPRINTEXIT( "CVtUiContrast.ConstructL" )
       
   100     }