|
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_AKNCONFGESTURESETTINGLIST_H |
|
20 #define C_AKNCONFGESTURESETTINGLIST_H |
|
21 |
|
22 |
|
23 #include "aknconfsettinglist.h" |
|
24 |
|
25 class CRepository; |
|
26 |
|
27 /** |
|
28 * AknConf setting list component |
|
29 */ |
|
30 class CAknConfGestureSettingList : public CAknConfSettingList |
|
31 { |
|
32 |
|
33 public: |
|
34 |
|
35 static CAknConfGestureSettingList* NewL(); |
|
36 |
|
37 /** |
|
38 * Destructor. |
|
39 */ |
|
40 ~CAknConfGestureSettingList(); |
|
41 |
|
42 /** |
|
43 * Resets the cenrep values to initial state. |
|
44 */ |
|
45 void ResetValues(); |
|
46 |
|
47 private: |
|
48 |
|
49 CAknConfGestureSettingList(); |
|
50 |
|
51 void ConstructL(); |
|
52 |
|
53 /** |
|
54 * Returns the pointer to data value that corresponds the setting id. |
|
55 * Provides also the setting cen rep key. |
|
56 * |
|
57 * @param aId ID to determine the type of the setting item. |
|
58 * @param aCenRepKey Setting cen rep key. |
|
59 * @return Pointer to data value. |
|
60 */ |
|
61 TInt* DataValuePointer( const TInt& aId, TInt& aCenRepKey ); |
|
62 |
|
63 private: |
|
64 |
|
65 /** |
|
66 * Settings data values. |
|
67 */ |
|
68 TInt iTapThreshold; |
|
69 TInt iLongTapThreshold; |
|
70 TInt iDoubleTapThreshold; |
|
71 TInt iDragThreshold; |
|
72 TInt iFlickBuffer; |
|
73 TInt iFlickSpeedThreshold; |
|
74 TInt iFlickDetectionTime; |
|
75 TInt iFlickChangeSensitivity; |
|
76 TInt iPinchInitialThreshold; |
|
77 TInt iPinchMovementThreshold; |
|
78 TInt iPinchDirectionChangeSensitivity; |
|
79 TInt iPinchDirectionResetSensitivity; |
|
80 TInt iPinchDimensionThreshold; |
|
81 TInt iPinchMaximumConfirmationDuration; |
|
82 |
|
83 }; |
|
84 |
|
85 #endif // C_AKNCONFGESTURESETTINGLIST_H |