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> |
|
28 //#include "MceListContainer.h" |
27 //#include "MceListContainer.h" |
29 //#include "MceMessageListContTimer.h" |
28 //#include "MceMessageListContTimer.h" |
30 |
29 |
31 #include "mcetemplate.h" |
30 #include "mcetemplate.h" |
32 #include "MceUtils.h" |
31 #include "MceUtils.h" |
56 * This class is used by message list view. |
55 * This class is used by message list view. |
57 * @since S60 5.0 |
56 * @since S60 5.0 |
58 */ |
57 */ |
59 class CMceMessageListContainerBase : |
58 class CMceMessageListContainerBase : |
60 public CCoeControl, |
59 public CCoeControl, |
61 public MEikCommandObserver, |
60 public MEikCommandObserver |
62 public MAknMarkingModeObserver |
|
63 { |
61 { |
64 public: // Constructors and destructor |
62 public: // Constructors and destructor |
65 |
63 |
66 /** |
64 /** |
67 * Destructor. |
65 * Destructor. |
68 */ |
66 */ |
69 virtual ~CMceMessageListContainerBase(); |
67 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; |
|
88 |
68 |
89 public: |
69 public: |
90 |
70 |
91 /** |
71 /** |
92 * TODO: Needed? |
72 * TODO: Needed? |
199 virtual TBool FindFirstUnreadMessageL( TMsvId& aEntryId ) const = 0; |
179 virtual TBool FindFirstUnreadMessageL( TMsvId& aEntryId ) const = 0; |
200 |
180 |
201 /** |
181 /** |
202 * TODO: that is not needed if container would be msv session observer |
182 * TODO: that is not needed if container would be msv session observer |
203 */ |
183 */ |
204 virtual void ItemCountChangedL( TBool aItemsAdded, CArrayFix<TInt>* |
184 virtual void ItemCountChangedL( TBool aItemsAdded ) = 0; |
205 aAddedIndexes = 0 ) = 0; |
|
206 |
185 |
207 /** |
186 /** |
208 * Redraw the listbox. |
187 * Redraw the listbox. |
209 */ |
188 */ |
210 virtual void RefreshListbox() = 0; |
189 virtual void RefreshListbox() = 0; |
478 |
457 |
479 /** |
458 /** |
480 * Updates icon array in case MTM is released (one row list) |
459 * Updates icon array in case MTM is released (one row list) |
481 */ |
460 */ |
482 virtual void UpdateIconArrayL() = 0; |
461 virtual void UpdateIconArrayL() = 0; |
483 |
|
484 /** |
|
485 * Sets Marking mode Off |
|
486 */ |
|
487 |
|
488 virtual void SetMarkingModeOff() = 0; |
|
489 |
462 |
490 protected: |
463 protected: |
491 |
464 |
492 /** |
465 /** |
493 * |
466 * |