|
1 /* |
|
2 * Copyright (c) 2002-2008 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: Defines an internal singleton class CAknsAppUiParameters. |
|
15 * Encapsulates AppUi-specific skin parameters and acts as a |
|
16 * singleton in application scope. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 // INCLUDE FILES |
|
22 #include "AknsAppUiParameters.h" |
|
23 #include <AknsConstants.h> |
|
24 |
|
25 #include "AknsDebug.h" |
|
26 |
|
27 // ============================ MEMBER FUNCTIONS =============================== |
|
28 |
|
29 // ----------------------------------------------------------------------------- |
|
30 // C++ default constructor can NOT contain any code, that might leave. |
|
31 // ----------------------------------------------------------------------------- |
|
32 // |
|
33 CAknsAppUiParameters::CAknsAppUiParameters() : |
|
34 CCoeStatic( KAknsAppUiParametersTls, EApp ), |
|
35 iAvkonSkinEnabled( EFalse ), |
|
36 iAvkonHighlightAnimationEnabled( ETrue ) |
|
37 { |
|
38 } |
|
39 |
|
40 // ----------------------------------------------------------------------------- |
|
41 // Two-phased constructor. |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 void CAknsAppUiParameters::CreateSingletonL() |
|
45 { |
|
46 AKNS_TRACE_INFO("CAknsAppUiParameters::CreateSingletonL"); |
|
47 CAknsAppUiParameters* self = new (ELeave) CAknsAppUiParameters; |
|
48 } |
|
49 |
|
50 // ----------------------------------------------------------------------------- |
|
51 // Destructor |
|
52 // ----------------------------------------------------------------------------- |
|
53 // |
|
54 CAknsAppUiParameters::~CAknsAppUiParameters() |
|
55 { |
|
56 AKNS_TRACE_INFO("CAknsAppUiParameters::destructor"); |
|
57 } |
|
58 |
|
59 // ----------------------------------------------------------------------------- |
|
60 // CAknsAppUiParameters::SetAvkonSkinEnabled() |
|
61 // ----------------------------------------------------------------------------- |
|
62 // |
|
63 void CAknsAppUiParameters::SetAvkonSkinEnabled( TBool aEnabled ) |
|
64 { |
|
65 iAvkonSkinEnabled = aEnabled; |
|
66 } |
|
67 |
|
68 // ----------------------------------------------------------------------------- |
|
69 // CAknsAppUiParameters::AvkonSkinEnabled() |
|
70 // ----------------------------------------------------------------------------- |
|
71 // |
|
72 TBool CAknsAppUiParameters::AvkonSkinEnabled() const |
|
73 { |
|
74 return iAvkonSkinEnabled; |
|
75 } |
|
76 |
|
77 // ----------------------------------------------------------------------------- |
|
78 // CAknsAppUiParameters::SetAvkonHighlightAnimationEnabled |
|
79 // ----------------------------------------------------------------------------- |
|
80 // |
|
81 void CAknsAppUiParameters::SetAvkonHighlightAnimationEnabled( TBool aEnabled ) |
|
82 { |
|
83 iAvkonHighlightAnimationEnabled = aEnabled; |
|
84 } |
|
85 |
|
86 // ----------------------------------------------------------------------------- |
|
87 // CAknsAppUiParameters::AvkonHighlightAnimationEnabled |
|
88 // ----------------------------------------------------------------------------- |
|
89 // |
|
90 TBool CAknsAppUiParameters::AvkonHighlightAnimationEnabled() const |
|
91 { |
|
92 return iAvkonHighlightAnimationEnabled; |
|
93 } |
|
94 |
|
95 // End of File |