|
1 /* |
|
2 * Copyright (c) 2009 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: AknConf setting list component |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_AKNCONFPHYSICSSETTINGLIST_H |
|
20 #define C_AKNCONFPHYSICSSETTINGLIST_H |
|
21 |
|
22 |
|
23 #include "aknconfsettinglist.h" |
|
24 |
|
25 class CRepository; |
|
26 |
|
27 /** |
|
28 * AknConf setting list component |
|
29 */ |
|
30 class CAknConfPhysicsSettingList : public CAknConfSettingList |
|
31 { |
|
32 |
|
33 public: |
|
34 |
|
35 static CAknConfPhysicsSettingList* NewL(); |
|
36 |
|
37 /** |
|
38 * Destructor. |
|
39 */ |
|
40 ~CAknConfPhysicsSettingList(); |
|
41 |
|
42 // from base class CAknSettingItemList |
|
43 |
|
44 /** |
|
45 * Resets the cenrep values to initial state. |
|
46 */ |
|
47 void ResetValues(); |
|
48 |
|
49 /** |
|
50 * Framework method to create a setting item based upon the user id aSettingId. The |
|
51 * client code decides what type to contruct. new (ELeave) must then be used and the resulting |
|
52 * pointer returned. Ownership is thereafter base class's responsiblity. |
|
53 * |
|
54 * @param aSettingId ID to use to determine the type of the setting item |
|
55 * @return a constructed (not 2nd-stage constructed) setting item. |
|
56 */ |
|
57 CAknSettingItem* CreateSettingItemL( TInt aIdentifier ); |
|
58 |
|
59 private: |
|
60 |
|
61 CAknConfPhysicsSettingList(); |
|
62 |
|
63 void ConstructL(); |
|
64 |
|
65 /** |
|
66 * Returns the pointer to data value that corresponds the setting id. |
|
67 * Provides also the setting cen rep key. |
|
68 * |
|
69 * @param aId ID to determine the type of the setting item. |
|
70 * @param aCenRepKey Setting cen rep key. |
|
71 * @return Pointer to data value. |
|
72 */ |
|
73 TInt* DataValuePointer( const TInt& aId, TInt& aCenRepKey ); |
|
74 |
|
75 /** |
|
76 * Gets and sets setting value from cenrep according to given setting id. |
|
77 * |
|
78 * @param aId ID to determine the type of the setting item. |
|
79 * @param aCenRepKey Setting cen rep key. |
|
80 * @return Pointer to setting value. |
|
81 */ |
|
82 TInt* ValueFromCenRep( const TInt& aId, TInt& aCenRepKey ); |
|
83 |
|
84 private: |
|
85 |
|
86 /** |
|
87 * Settings data values. |
|
88 */ |
|
89 TInt iMass; |
|
90 TInt iGravity; |
|
91 TInt iSurfaceSoftErp; |
|
92 TInt iSurfaceSoftCfm; |
|
93 TInt iHighlightTimeout; |
|
94 TInt iDragThreshold; |
|
95 TBool iFeatureEnabled; |
|
96 TInt iFrameDelay; |
|
97 TInt iMinFrameInterval; |
|
98 TInt iShortListEmptySpace; |
|
99 TInt iLongListEmptySpace; |
|
100 TInt iFpsLoggingEnabled; |
|
101 |
|
102 }; |
|
103 |
|
104 #endif // C_AKNCONFPHYSICSSETTINGLIST_H |