--- a/messagingappbase/mce/inc/MceMessageListContainerBase.h Tue Sep 14 21:11:56 2010 +0300
+++ b/messagingappbase/mce/inc/MceMessageListContainerBase.h Wed Sep 15 12:08:45 2010 +0300
@@ -24,6 +24,7 @@
// INCLUDES
#include <coecntrl.h> // CCoeControl
#include <msvapi.h>
+#include <aknmarkingmodeobserver.h>
//#include "MceListContainer.h"
//#include "MceMessageListContTimer.h"
@@ -57,7 +58,8 @@
*/
class CMceMessageListContainerBase :
public CCoeControl,
- public MEikCommandObserver
+ public MEikCommandObserver,
+ public MAknMarkingModeObserver
{
public: // Constructors and destructor
@@ -65,6 +67,24 @@
* Destructor.
*/
virtual ~CMceMessageListContainerBase();
+
+ public: // From MAknMarkingModeObserver
+
+ /**
+ * This method is called when marking mode is activated or deactivated.
+ *
+ * @param aActivated @c ETrue if marking mode was activate, @c EFalse
+ * if marking mode was deactivated.
+ */
+ void MarkingModeStatusChanged( TBool aActivated );
+
+ /**
+ * This method is called just before marking mode is closed. Client can
+ * either accept or decline closing.
+ *
+ * @return @c ETrue if marking mode should be closed, otherwise @c EFalse.
+ */
+ TBool ExitMarkingMode() const;
public:
@@ -181,7 +201,8 @@
/**
* TODO: that is not needed if container would be msv session observer
*/
- virtual void ItemCountChangedL( TBool aItemsAdded ) = 0;
+ virtual void ItemCountChangedL( TBool aItemsAdded, CArrayFix<TInt>*
+ aAddedIndexes = 0 ) = 0;
/**
* Redraw the listbox.
@@ -459,6 +480,12 @@
* Updates icon array in case MTM is released (one row list)
*/
virtual void UpdateIconArrayL() = 0;
+
+ /**
+ * Sets Marking mode Off
+ */
+
+ virtual void SetMarkingModeOff() = 0;
protected: