skins/AknSkins/src/AknsAppUiParameters.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 25 May 2010 13:47:21 +0300
branchRCL_3
changeset 58 a2f9480e2280
parent 0 05e9090e2422
permissions -rw-r--r--
Revision: 201019 Kit: 2010121

/*
* Copyright (c) 2002-2008 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:  Defines an internal singleton class CAknsAppUiParameters.
*                Encapsulates AppUi-specific skin parameters and acts as a
*                singleton in application scope.
*
*/


// INCLUDE FILES
#include "AknsAppUiParameters.h"
#include <AknsConstants.h>

#include "AknsDebug.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CAknsAppUiParameters::CAknsAppUiParameters() :
    CCoeStatic( KAknsAppUiParametersTls, EApp ),
    iAvkonSkinEnabled( EFalse ),
    iAvkonHighlightAnimationEnabled( ETrue )
    {
    }

// -----------------------------------------------------------------------------
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
void CAknsAppUiParameters::CreateSingletonL()
    {
    AKNS_TRACE_INFO("CAknsAppUiParameters::CreateSingletonL");
    CAknsAppUiParameters* self = new (ELeave) CAknsAppUiParameters;
    }

// -----------------------------------------------------------------------------
// Destructor
// -----------------------------------------------------------------------------
//
CAknsAppUiParameters::~CAknsAppUiParameters()
    {
    AKNS_TRACE_INFO("CAknsAppUiParameters::destructor");
    }

// -----------------------------------------------------------------------------
// CAknsAppUiParameters::SetAvkonSkinEnabled()
// -----------------------------------------------------------------------------
//
void CAknsAppUiParameters::SetAvkonSkinEnabled( TBool aEnabled )
    {
    iAvkonSkinEnabled = aEnabled;
    }

// -----------------------------------------------------------------------------
// CAknsAppUiParameters::AvkonSkinEnabled()
// -----------------------------------------------------------------------------
//
TBool CAknsAppUiParameters::AvkonSkinEnabled() const
    {
    return iAvkonSkinEnabled;
    }

// -----------------------------------------------------------------------------
// CAknsAppUiParameters::SetAvkonHighlightAnimationEnabled
// -----------------------------------------------------------------------------
//
void CAknsAppUiParameters::SetAvkonHighlightAnimationEnabled( TBool aEnabled )
    {
    iAvkonHighlightAnimationEnabled = aEnabled;
    }

// -----------------------------------------------------------------------------
// CAknsAppUiParameters::AvkonHighlightAnimationEnabled
// -----------------------------------------------------------------------------
//
TBool CAknsAppUiParameters::AvkonHighlightAnimationEnabled() const
    {
    return iAvkonHighlightAnimationEnabled;
    }

//  End of File