equal
deleted
inserted
replaced
23 // INCLUDES |
23 // INCLUDES |
24 #include <coecntrl.h> |
24 #include <coecntrl.h> |
25 #include <badesca.h> |
25 #include <badesca.h> |
26 #include <eiklbo.h> |
26 #include <eiklbo.h> |
27 #include <eikcmobs.h> |
27 #include <eikcmobs.h> |
|
28 #include <aknmarkingmodeobserver.h> |
28 |
29 |
29 |
30 |
30 // FORWARD DECLARATIONS |
31 // FORWARD DECLARATIONS |
31 class CEikTextListBox; |
32 class CEikTextListBox; |
32 |
33 |
37 */ |
38 */ |
38 class CFileManagerContainerBase : public CCoeControl, |
39 class CFileManagerContainerBase : public CCoeControl, |
39 public MEikListBoxObserver, |
40 public MEikListBoxObserver, |
40 public MCoeControlObserver, |
41 public MCoeControlObserver, |
41 public MEikCommandObserver, |
42 public MEikCommandObserver, |
42 public MListBoxSelectionObserver |
43 public MListBoxSelectionObserver, |
|
44 public MAknMarkingModeObserver |
|
45 |
43 { |
46 { |
44 public: // destructor |
47 public: // destructor |
45 /** |
48 /** |
46 * Destructor. |
49 * Destructor. |
47 */ |
50 */ |
88 /** |
91 /** |
89 * @see MEikCommandObserver |
92 * @see MEikCommandObserver |
90 */ |
93 */ |
91 void ProcessCommandL( TInt aCommandId ); |
94 void ProcessCommandL( TInt aCommandId ); |
92 |
95 |
|
96 public: // From MAknMarkingModeObserver |
|
97 /** |
|
98 * This method is called when marking mode is activated or deactivated. |
|
99 * |
|
100 * @since 5.2 |
|
101 * @param aActivated ETrue if marking mode is activated, EFalse |
|
102 * if marking mode is deactivated. |
|
103 */ |
|
104 void MarkingModeStatusChanged( TBool aActivated ); |
|
105 |
|
106 /** |
|
107 * This method is called just before marking mode is closed. Client can |
|
108 * either accept or decline closing. |
|
109 * |
|
110 * @since 5.2 |
|
111 * @return ETrue if marking mode should be closed, otherwise EFalse. |
|
112 */ |
|
113 TBool ExitMarkingMode() const; |
|
114 |
93 public: // New functions |
115 public: // New functions |
94 /** |
116 /** |
95 * Sets list empty and removes empty text until refreshed. |
117 * Sets list empty and removes empty text until refreshed. |
96 */ |
118 */ |
97 virtual void SetListEmptyL(); |
119 virtual void SetListEmptyL(); |
130 * Gets selection mode status |
152 * Gets selection mode status |
131 */ |
153 */ |
132 TBool SelectionModeEnabled() const; |
154 TBool SelectionModeEnabled() const; |
133 |
155 |
134 /** |
156 /** |
|
157 * Gets marking mode status. |
|
158 * |
|
159 * @since 5.2 |
|
160 * @return ETrue if marking mode is activated, otherwise EFalse. |
|
161 */ |
|
162 TBool IsMarkingModeActivated() const; |
|
163 |
|
164 /** |
135 * Updates cba |
165 * Updates cba |
136 */ |
166 */ |
137 virtual void UpdateCba(); |
167 virtual void UpdateCba(); |
138 |
168 |
139 /** |
169 /** |
231 * search filed index to listbox index |
261 * search filed index to listbox index |
232 * @param aIndex index in search filed |
262 * @param aIndex index in search filed |
233 * @return index in listbox |
263 * @return index in listbox |
234 */ |
264 */ |
235 virtual TInt SearchFieldToListBoxIndex( TInt aIndex ); |
265 virtual TInt SearchFieldToListBoxIndex( TInt aIndex ); |
|
266 |
|
267 /** |
|
268 * Sets flag to indicate marking mode could exit or not |
|
269 * |
|
270 * @since 5.2 |
|
271 * @param aAllowExit ETrue if allow marking mode exit, EFalse if not |
|
272 */ |
|
273 virtual void AllowMarkingModeExit( TBool aAllowExit ); |
|
274 |
|
275 /** |
|
276 * Turns the marking mode on / off. |
|
277 * |
|
278 * @since 5.2 |
|
279 * @param aEnable ETrue to turn marking mode on, |
|
280 * EFalse to turn marking mode off. |
|
281 */ |
|
282 virtual void SetMarkingMode( TBool aEnable ); |
|
283 |
236 protected: |
284 protected: |
237 /** |
285 /** |
238 * Standard C++ constructor. |
286 * Standard C++ constructor. |
239 */ |
287 */ |
240 CFileManagerContainerBase(); |
288 CFileManagerContainerBase(); |
265 HBufC* iEmptyText; |
313 HBufC* iEmptyText; |
266 // Ref: Pointer to text array |
314 // Ref: Pointer to text array |
267 MDesCArray* iArray; |
315 MDesCArray* iArray; |
268 // Own: Stores selection mode status |
316 // Own: Stores selection mode status |
269 TBool iSelectionModeEnabled; |
317 TBool iSelectionModeEnabled; |
|
318 // Own: Indicates marking mode is activated or not |
|
319 TBool iMarkingModeActivated; |
|
320 // Own: Indicates marking mode is allowed to exit or not |
|
321 TBool iAllowMarkingModeExit; |
270 |
322 |
271 }; |
323 }; |
272 |
324 |
273 #endif // CFILEMANAGERCONTAINERBASE_H |
325 #endif // CFILEMANAGERCONTAINERBASE_H |
274 |
326 |