equal
deleted
inserted
replaced
22 #define MCEMESSAGELISTCONTAINERBASE_H |
22 #define MCEMESSAGELISTCONTAINERBASE_H |
23 |
23 |
24 // INCLUDES |
24 // INCLUDES |
25 #include <coecntrl.h> // CCoeControl |
25 #include <coecntrl.h> // CCoeControl |
26 #include <msvapi.h> |
26 #include <msvapi.h> |
|
27 #include <aknmarkingmodeobserver.h> |
27 //#include "MceListContainer.h" |
28 //#include "MceListContainer.h" |
28 //#include "MceMessageListContTimer.h" |
29 //#include "MceMessageListContTimer.h" |
29 |
30 |
30 #include "mcetemplate.h" |
31 #include "mcetemplate.h" |
31 #include "MceUtils.h" |
32 #include "MceUtils.h" |
55 * This class is used by message list view. |
56 * This class is used by message list view. |
56 * @since S60 5.0 |
57 * @since S60 5.0 |
57 */ |
58 */ |
58 class CMceMessageListContainerBase : |
59 class CMceMessageListContainerBase : |
59 public CCoeControl, |
60 public CCoeControl, |
60 public MEikCommandObserver |
61 public MEikCommandObserver, |
|
62 public MAknMarkingModeObserver |
61 { |
63 { |
62 public: // Constructors and destructor |
64 public: // Constructors and destructor |
63 |
65 |
64 /** |
66 /** |
65 * Destructor. |
67 * Destructor. |
66 */ |
68 */ |
67 virtual ~CMceMessageListContainerBase(); |
69 virtual ~CMceMessageListContainerBase(); |
|
70 |
|
71 public: // From MAknMarkingModeObserver |
|
72 |
|
73 /** |
|
74 * This method is called when marking mode is activated or deactivated. |
|
75 * |
|
76 * @param aActivated @c ETrue if marking mode was activate, @c EFalse |
|
77 * if marking mode was deactivated. |
|
78 */ |
|
79 void MarkingModeStatusChanged( TBool aActivated ); |
|
80 |
|
81 /** |
|
82 * This method is called just before marking mode is closed. Client can |
|
83 * either accept or decline closing. |
|
84 * |
|
85 * @return @c ETrue if marking mode should be closed, otherwise @c EFalse. |
|
86 */ |
|
87 TBool ExitMarkingMode() const; |
68 |
88 |
69 public: |
89 public: |
70 |
90 |
71 /** |
91 /** |
72 * TODO: Needed? |
92 * TODO: Needed? |
179 virtual TBool FindFirstUnreadMessageL( TMsvId& aEntryId ) const = 0; |
199 virtual TBool FindFirstUnreadMessageL( TMsvId& aEntryId ) const = 0; |
180 |
200 |
181 /** |
201 /** |
182 * TODO: that is not needed if container would be msv session observer |
202 * TODO: that is not needed if container would be msv session observer |
183 */ |
203 */ |
184 virtual void ItemCountChangedL( TBool aItemsAdded ) = 0; |
204 virtual void ItemCountChangedL( TBool aItemsAdded, CArrayFix<TInt>* |
|
205 aAddedIndexes = 0 ) = 0; |
185 |
206 |
186 /** |
207 /** |
187 * Redraw the listbox. |
208 * Redraw the listbox. |
188 */ |
209 */ |
189 virtual void RefreshListbox() = 0; |
210 virtual void RefreshListbox() = 0; |
457 |
478 |
458 /** |
479 /** |
459 * Updates icon array in case MTM is released (one row list) |
480 * Updates icon array in case MTM is released (one row list) |
460 */ |
481 */ |
461 virtual void UpdateIconArrayL() = 0; |
482 virtual void UpdateIconArrayL() = 0; |
|
483 |
|
484 /** |
|
485 * Sets Marking mode Off |
|
486 */ |
|
487 |
|
488 virtual void SetMarkingModeOff() = 0; |
462 |
489 |
463 protected: |
490 protected: |
464 |
491 |
465 /** |
492 /** |
466 * |
493 * |