|
1 /* |
|
2 * Copyright (c) 2005 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: Blid application settings view class definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef BLIDSETTINGSVIEW_H |
|
20 #define BLIDSETTINGSVIEW_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "CBlidBaseView.h" |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CBlidSettingsContainer; |
|
27 class MBlidSettings; |
|
28 class CEikMenuPane; |
|
29 class CBlidEng; |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * CBlidSettingsView view class. |
|
34 * |
|
35 */ |
|
36 class CBlidSettingsView : public CBlidBaseView |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * Symbian default constructor. |
|
42 * @param aKeyProcessor A pointer to MKeyProcessor |
|
43 */ |
|
44 static CBlidSettingsView* NewLC( MKeyProcessor& aKeyProcessor ); |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 ~CBlidSettingsView(); |
|
50 |
|
51 private: |
|
52 /** |
|
53 * C++ constructor |
|
54 * @param aKeyProcessor A pointer to MKeyProcessor |
|
55 */ |
|
56 CBlidSettingsView( MKeyProcessor& aKeyProcessor ); |
|
57 |
|
58 /** |
|
59 * Symbian default constructor. |
|
60 */ |
|
61 void ConstructL(); |
|
62 |
|
63 public: // from CAknView |
|
64 TUid Id() const; |
|
65 void HandleCommandL(TInt aCommand); |
|
66 |
|
67 public: // From MEikMenuObserver |
|
68 void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); |
|
69 |
|
70 public: // From MLogsKeyProcessor |
|
71 TBool ProcessKeyEventL( const TKeyEvent& aKeyEvent, |
|
72 TEventCode aType ); |
|
73 |
|
74 private: // From CAknView |
|
75 void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId, |
|
76 const TDesC8& aCustomMessage); |
|
77 void DoDeactivate(); |
|
78 |
|
79 #ifdef RD_SCALABLE_UI_V2 |
|
80 private: |
|
81 /** |
|
82 * From CBlidBaseView. |
|
83 */ |
|
84 void HandleListBoxSelectionL(); |
|
85 #endif // RD_SCALABLE_UI_V2 |
|
86 |
|
87 private: // new functions |
|
88 /** |
|
89 * Change current altitude calibration |
|
90 */ |
|
91 void ChangeAltitudeCalibrationL(); |
|
92 |
|
93 /** |
|
94 * Change Backlight settings Options |
|
95 * 1.Normal |
|
96 * 2.On During Navigation |
|
97 */ |
|
98 void ChangeBacklightSettingsL(); |
|
99 |
|
100 /** |
|
101 * Change Backlight settings Options for Double tapping of stylus |
|
102 * on the item |
|
103 * 1.Normal |
|
104 * 2.On During Navigation |
|
105 */ |
|
106 void ChangeBacklightSettingsValueL(TInt aValue); |
|
107 |
|
108 void CheckResetOdometerOptionL( ); |
|
109 |
|
110 void OpenArrivalToneDialogL( ); |
|
111 |
|
112 private: // Data |
|
113 /// Own: A pointer to container |
|
114 CBlidSettingsContainer* iContainer; |
|
115 |
|
116 /// Ref: A pointer to Settings model |
|
117 MBlidSettings* iSettingsModel; |
|
118 |
|
119 /// Own: previous view's id |
|
120 TInt iPrevViewId; |
|
121 |
|
122 /// Own: A pointer to TLocale |
|
123 TLocale* iLocale; |
|
124 |
|
125 // Own: Settings view backlight selection as Normal |
|
126 HBufC* iBlidBacklightNormal; |
|
127 |
|
128 // Own: Settings view backlight selection as On During Navigation |
|
129 HBufC* iBlidBacklightOn; |
|
130 }; |
|
131 |
|
132 #endif // LOCSETTINGSVIEW_H |
|
133 |
|
134 // End of File |