27 |
27 |
28 #include <aknViewAppUi.h> |
28 #include <aknViewAppUi.h> |
29 #include <gssensorpluginrsc.rsg> |
29 #include <gssensorpluginrsc.rsg> |
30 #include <gscommon.hrh> |
30 #include <gscommon.hrh> |
31 #include <eikbtgpc.h> |
31 #include <eikbtgpc.h> |
|
32 #include <featmgr.h> |
|
33 #include <hlplch.h> |
32 |
34 |
33 |
35 |
34 // ========================= MEMBER FUNCTIONS ================================ |
36 // ========================= MEMBER FUNCTIONS ================================ |
35 |
37 |
36 // --------------------------------------------------------------------------- |
38 // --------------------------------------------------------------------------- |
119 // Update MSK label |
121 // Update MSK label |
120 CheckMiddleSoftkeyLabelL(); |
122 CheckMiddleSoftkeyLabelL(); |
121 break; |
123 break; |
122 } |
124 } |
123 case EGSCmdOk: |
125 case EGSCmdOk: |
124 // Check selections |
126 case EAknSoftkeyBack: |
|
127 { |
|
128 // Check selections |
125 Container()->CheckSelections(); |
129 Container()->CheckSelections(); |
126 // Store changes and show previous view |
130 // Store changes and show previous view |
127 Container()->StoreSelectionsL(); |
131 Container()->StoreSelectionsL(); |
128 // cont. to next case |
132 // cont. to next case |
129 case EAknSoftkeyBack: |
|
130 { |
|
131 // activate previous view |
133 // activate previous view |
132 iAppUi->ActivateLocalViewL( KGSSensorPluginUid ); |
134 iAppUi->ActivateLocalViewL( KGSSensorPluginUid ); |
133 break; |
135 break; |
134 } |
136 } |
|
137 case EAknCmdHelp: |
|
138 { |
|
139 if ( FeatureManager::FeatureSupported( KFeatureIdHelp ) ) |
|
140 { |
|
141 HlpLauncher::LaunchHelpApplicationL( |
|
142 iEikonEnv->WsSession(), iAppUi->AppHelpContextL() ); |
|
143 } |
|
144 break; |
|
145 } |
|
146 case EGSSenMenuExit: |
|
147 { |
|
148 aCommand=EAknCmdExit; |
|
149 iAppUi->HandleCommandL( aCommand ); |
|
150 break; |
|
151 } |
|
152 |
135 default: |
153 default: |
136 iAppUi->HandleCommandL( aCommand ); |
154 iAppUi->HandleCommandL( aCommand ); |
137 break; |
155 break; |
138 } |
156 } |
139 TRACE_( "[GSSensorPlugin] CGSSenTurnCtrlView::HandleCommandL() - return" ); |
157 TRACE_( "[GSSensorPlugin] CGSSenTurnCtrlView::HandleCommandL() - return" ); |
140 } |
158 } |
141 |
159 // --------------------------------------------------------------------------- |
|
160 // CGSSenTurnCtrlView::DoDeactivate |
|
161 // Deactivates the current view |
|
162 // --------------------------------------------------------------------------- |
|
163 void CGSSenTurnCtrlView::DoDeactivate() |
|
164 { |
|
165 // Check selections |
|
166 Container()->CheckSelections(); |
|
167 // Store changes and show previous view |
|
168 Container()->StoreSelectionsL(); |
|
169 CGSSensorBaseView::DoDeactivate(); |
|
170 |
|
171 } |
142 // --------------------------------------------------------------------------- |
172 // --------------------------------------------------------------------------- |
143 // CGSSenTurnCtrlView::Container |
173 // CGSSenTurnCtrlView::Container |
144 // Returns call container item |
174 // Returns call container item |
145 // --------------------------------------------------------------------------- |
175 // --------------------------------------------------------------------------- |
146 // |
176 // |