30 #include <akntoolbarobserver.h> |
30 #include <akntoolbarobserver.h> |
31 #include <eiklbo.h> |
31 #include <eiklbo.h> |
32 #include <coemain.h> |
32 #include <coemain.h> |
33 |
33 |
34 #include <Pbk2Commands.hrh> |
34 #include <Pbk2Commands.hrh> |
35 #include <aknmarkingmodeobserver.h> |
|
36 |
35 |
37 // FORWARD DECLARATIONS |
36 // FORWARD DECLARATIONS |
38 template<class ControlType> class CPbk2ControlContainer; |
37 template<class ControlType> class CPbk2ControlContainer; |
39 class CPbk2UIExtensionView; |
38 class CPbk2UIExtensionView; |
40 class MPbk2ContactUiControl; |
39 class MPbk2ContactUiControl; |
69 public MPbk2MenuCommandObserver, |
68 public MPbk2MenuCommandObserver, |
70 public MAknToolbarObserver, |
69 public MAknToolbarObserver, |
71 public MCoeControlObserver, |
70 public MCoeControlObserver, |
72 public MEikListBoxObserver, |
71 public MEikListBoxObserver, |
73 private MCoeForegroundObserver, |
72 private MCoeForegroundObserver, |
74 public MPbk2UIExtensionView2, |
73 public MPbk2UIExtensionView2 |
75 public MAknMarkingModeObserver |
|
76 { |
74 { |
77 public: // Construction and destruction |
75 public: // Construction and destruction |
78 |
76 |
79 /** |
77 /** |
80 * Creates a new instance of this class. |
78 * Creates a new instance of this class. |
161 |
159 |
162 private: // From MCoeControlObserver |
160 private: // From MCoeControlObserver |
163 void HandleControlEventL( |
161 void HandleControlEventL( |
164 CCoeControl* aControl, |
162 CCoeControl* aControl, |
165 TCoeEvent aEventType ); |
163 TCoeEvent aEventType ); |
166 |
|
167 public: // From MAknMarkingModeObserver |
|
168 |
|
169 /** |
|
170 * This method is called when marking mode is activated or deactivated. |
|
171 * |
|
172 * @param aActivated @c ETrue if marking mode was activate, @c EFalse |
|
173 * if marking mode was deactivated. |
|
174 */ |
|
175 void MarkingModeStatusChanged( TBool aActivated ); |
|
176 |
|
177 /** |
|
178 * This method is called just before marking mode is closed. Client can |
|
179 * either accept or decline closing. |
|
180 * |
|
181 * @return @c ETrue if marking mode should be closed, otherwise @c EFalse. |
|
182 */ |
|
183 TBool ExitMarkingMode() const; |
|
184 |
164 |
185 private: // Implementation |
165 private: // Implementation |
186 CPbk2NamesListExView( |
166 CPbk2NamesListExView( |
187 CPbk2UIExtensionView& aView, |
167 CPbk2UIExtensionView& aView, |
188 CSpbContentProvider& aStatusProvider, |
168 CSpbContentProvider& aStatusProvider, |
280 |
260 |
281 // REF: content provider |
261 // REF: content provider |
282 CSpbContentProvider& iContentProvider; |
262 CSpbContentProvider& iContentProvider; |
283 // Not own. CCA launcher connection |
263 // Not own. CCA launcher connection |
284 MCCAConnection*& iCCAConnection; |
264 MCCAConnection*& iCCAConnection; |
285 // Own: Context launcher |
265 /// Own: Context launcher |
286 CPbk2ContextLaunch* iContextLauncher; |
266 CPbk2ContextLaunch* iContextLauncher; |
287 // Flag to indicate whether Marking mode is active |
|
288 TBool iMarkingModeOn; |
|
289 }; |
267 }; |
290 |
268 |
291 #endif // CPBK2NAMESLISTEXVIEW_H |
269 #endif // CPBK2NAMESLISTEXVIEW_H |
292 |
270 |
293 // End of File |
271 // End of File |