skins/AknSkins/src/AknsAppUiParameters.cpp
author Dario Sestito <darios@symbian.org>
Fri, 19 Nov 2010 15:21:06 +0000
branchRCL_3
changeset 129 67a72ace5294
parent 0 05e9090e2422
permissions -rw-r--r--
Fix for Bug 3172 - Recorder application demands Memory card

/*
* 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