|
1 /* |
|
2 * Copyright (c) 2005-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: Declares main view for Blid application. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef BLIDTRIPMETERVIEW_H |
|
19 #define BLIDTRIPMETERVIEW_H |
|
20 |
|
21 // INCLUDES |
|
22 #include "CBlidBaseView.h" |
|
23 #include <eikmenub.h> // CEikMenuBar |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CHtkTripMeterControl; |
|
27 class CBlidNoteDialog; |
|
28 class CAlfEnv; |
|
29 class CAlfControlGroup; |
|
30 class CBlidLocSettingsLauncher; |
|
31 class CAlfDisplay; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * CBlidTripMeterView view class. |
|
37 * |
|
38 */ |
|
39 class CBlidTripMeterView : public CBlidBaseView |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 /** |
|
43 * C++ default constructor. |
|
44 * @param aKeyProcessor |
|
45 * @return Created view object |
|
46 */ |
|
47 static CBlidTripMeterView* NewLC( MKeyProcessor& aKeyProcessor,CAlfEnv& aEnv ); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 */ |
|
52 ~CBlidTripMeterView(); |
|
53 |
|
54 private: // constructor |
|
55 /** |
|
56 * C++ constructor |
|
57 * @param aKeyProcessor |
|
58 */ |
|
59 CBlidTripMeterView( MKeyProcessor& aKeyProcessor,CAlfEnv& aEnv ); |
|
60 |
|
61 /** |
|
62 * By default Symbian 2nd phase constructor is private. |
|
63 */ |
|
64 void ConstructL(); |
|
65 |
|
66 public: //from MBlidEngObserver |
|
67 /** |
|
68 * From MBlidEngObserver, called when a position update is received. |
|
69 * @param aOnlineMode |
|
70 */ |
|
71 void NotifyL( const TBool aOnlineMode ); |
|
72 /** |
|
73 * From MBlidEngObserver, called when there is an error in receiving position update |
|
74 * @param aErrorCode |
|
75 */ |
|
76 void NotifyErrorL( TInt aErrorCode ); |
|
77 |
|
78 public: // from CAknView |
|
79 /** |
|
80 * From CAknView, returns the view id |
|
81 * @param None |
|
82 */ |
|
83 TUid Id() const; |
|
84 /** |
|
85 * From CAknView, takes care of command handling. |
|
86 * @param aCommand command to be handled |
|
87 */ |
|
88 void HandleCommandL(TInt aCommand); |
|
89 /** |
|
90 * From CAknView, handles a change to the resources |
|
91 * @param aType |
|
92 */ |
|
93 void HandleResourceChangeL( TInt aType ); |
|
94 |
|
95 #ifdef RD_SCALABLE_UI_V2 |
|
96 private: |
|
97 /** |
|
98 * From CBlidBaseView. |
|
99 */ |
|
100 void HandleListBoxSelectionL(); |
|
101 #endif // RD_SCALABLE_UI_V2 |
|
102 |
|
103 private: // From CAknView |
|
104 /** |
|
105 * From CAknView, called when view is activated |
|
106 * @param aPrevViewId |
|
107 * @param aCustomMessageId |
|
108 * @param aCustomMessage |
|
109 */ |
|
110 void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId, |
|
111 const TDesC8& aCustomMessage); |
|
112 /** |
|
113 * From CAknView, called when view is deactivated |
|
114 * |
|
115 */ |
|
116 void DoDeactivate(); |
|
117 |
|
118 public: // From MEikMenuObserver |
|
119 /** |
|
120 * From MEikMenuObserver, dynamically intializes the menu |
|
121 * @param aResourceId |
|
122 * @param aMenuPane |
|
123 */ |
|
124 void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); |
|
125 |
|
126 public: |
|
127 /** |
|
128 * Retruns the tripmeter control |
|
129 * |
|
130 */ |
|
131 CHtkTripMeterControl* GetControl(); |
|
132 |
|
133 private: // Data |
|
134 //own:tripmetercontrol class |
|
135 CHtkTripMeterControl* iTripCtrl; |
|
136 |
|
137 CAlfEnv& iEnv; |
|
138 |
|
139 CBlidNoteDialog* iNoteDialog; |
|
140 |
|
141 CAlfControlGroup* iTripCtrlGroup; |
|
142 // Own: Pointer to Location Settings Launcher |
|
143 CBlidLocSettingsLauncher* iLauncher; |
|
144 |
|
145 CAlfDisplay* iCtrlDisplay; |
|
146 |
|
147 }; |
|
148 |
|
149 #endif |
|
150 |
|
151 // End of File |