diff -r f15ac8e65a02 -r 779871d1e4f4 vtuis/videotelui/src/features/prefs/cvtuicontrastpopup.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vtuis/videotelui/src/features/prefs/cvtuicontrastpopup.cpp Wed Sep 01 12:29:12 2010 +0100 @@ -0,0 +1,102 @@ +/* +* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Implementation of Contrast popup +* +*/ + + + +#include +#include "cvtuicontrastpopup.h" +#include +#include "tvtuilocalvariation.h" +#include +#include "mvtuicomponent.h" +#include "CVtUiAppUi.h" +#include +#include + +// --------------------------------------------------------------------------- +// CVtUiContrastPopup::NewL +// --------------------------------------------------------------------------- +// +CVtUiContrastPopup* CVtUiContrastPopup::NewL( CVtUiFeatureManager& + aFeatureManager ) + { + __VTPRINTENTER( "CVtUiContrastPopup.NewL" ) + CVtUiContrastPopup* self = + new ( ELeave ) CVtUiContrastPopup( aFeatureManager ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop(); + __VTPRINTEXIT( "CVtUiContrastPopup.NewL" ) + return self; + } + +// --------------------------------------------------------------------------- +// CVtUiContrastPopup::~CVtUiContrastPopup +// --------------------------------------------------------------------------- +// +CVtUiContrastPopup::~CVtUiContrastPopup() + { + __VTPRINTENTER( "CVtUiContrastPopup.~" ) + __VTPRINTEXIT( "CVtUiContrastPopup.~" ) + } + +// --------------------------------------------------------------------------- +// CVtUiContrastPopup::CurrentValue +// --------------------------------------------------------------------------- +// +TInt CVtUiContrastPopup::CurrentValue() + { + __VTPRINTENTER( "CVtUiContrastPopup.CurrentValue" ) + // ask from engine current value + TInt value; + if ( iCameraPref->GetContrast( value) ) + { + __VTPRINTEXIT( "CVtUiContrastPopup.CurrentValueERR" ) + return 0; + } + __VTPRINTEXIT( "CVtUiContrastPopup.CurrentValue" ) + return value; + } + +// --------------------------------------------------------------------------- +// CVtUiContrastPopup::CVtUiContrastPopup +// --------------------------------------------------------------------------- +// +CVtUiContrastPopup::CVtUiContrastPopup( CVtUiFeatureManager& aFeatureManager ) + : CVtUiPrefPopupBase( aFeatureManager, TVtUiBlockListBitField( + MVtUiComponent::EComponentIdDialer | + MVtUiComponent::EComponentIdToolbar | + MVtUiComponent::EComponentIdNumberEntry | + MVtUiComponent::EComponentIdVolume | + MVtUiComponent::EComponentIdZoom | + MVtUiComponent::EVComponentIdBrightness ), EVComponentIdContrast, + KVtEngSetContrast ) + { + __VTPRINTENTER( "CVtUiContrastPopup.CVtUiContrastPopup" ) + __VTPRINTEXIT( "CVtUiContrastPopup.CVtUiContrastPopup" ) + } + +// --------------------------------------------------------------------------- +// CVtUiContrastPopup::CVtUiContrastPopup +// --------------------------------------------------------------------------- +// +void CVtUiContrastPopup::ConstructL() + { + __VTPRINTENTER( "CVtUiContrastPopup.ConstructL" ) + BaseConstructL(); + __VTPRINTEXIT( "CVtUiContrastPopup.ConstructL" ) + }