filemanager/App/inc/CFileManagerContainerBase.h
branchRCL_3
changeset 42 f5c50b8af68c
parent 39 65326cf895ed
child 52 40fb776cbfb3
--- a/filemanager/App/inc/CFileManagerContainerBase.h	Wed Sep 01 12:31:07 2010 +0100
+++ b/filemanager/App/inc/CFileManagerContainerBase.h	Tue Sep 14 20:57:31 2010 +0300
@@ -25,6 +25,7 @@
 #include <badesca.h>
 #include <eiklbo.h>
 #include <eikcmobs.h>
+#include <aknmarkingmodeobserver.h>
 
 
 // FORWARD DECLARATIONS
@@ -39,7 +40,9 @@
                                   public MEikListBoxObserver, 
                                   public MCoeControlObserver,
                                   public MEikCommandObserver,
-                                  public MListBoxSelectionObserver
+                                  public MListBoxSelectionObserver,
+                                  public MAknMarkingModeObserver
+
     {
     public:  // destructor
         /**
@@ -90,6 +93,25 @@
 		 */
         void ProcessCommandL( TInt aCommandId );
 
+    public: // From MAknMarkingModeObserver 
+        /**
+        * This method is called when marking mode is activated or deactivated.
+        *
+        * @since 5.2
+        * @param aActivated ETrue if marking mode is activated, EFalse
+        * if marking mode is deactivated.
+        */
+        void MarkingModeStatusChanged( TBool aActivated );
+
+        /**
+        * This method is called just before marking mode is closed. Client can 
+        * either accept or decline closing.
+        *
+        * @since 5.2
+        * @return ETrue if marking mode should be closed, otherwise EFalse.
+        */
+        TBool ExitMarkingMode() const;
+
     public: // New functions
         /**
          * Sets list empty and removes empty text until refreshed.
@@ -132,6 +154,14 @@
         TBool SelectionModeEnabled() const;
 
         /**
+        * Gets marking mode status.
+        *
+        * @since 5.2 
+        * @return ETrue if marking mode is activated, otherwise EFalse.
+        */
+        TBool IsMarkingModeActivated() const;
+
+        /**
          * Updates cba
          */
         virtual void UpdateCba();
@@ -233,6 +263,24 @@
          * @return index in listbox
          */
         virtual TInt SearchFieldToListBoxIndex( TInt aIndex );
+
+        /**
+        * Sets flag to indicate marking mode could exit or not 
+        * 
+        * @since 5.2 
+        * @param aAllowExit ETrue if allow marking mode exit, EFalse if not
+        */
+        virtual void AllowMarkingModeExit( TBool aAllowExit );
+        
+        /**
+        * Turns the marking mode on / off.
+        *
+        * @since 5.2
+        * @param aEnable ETrue to turn marking mode on,
+        *                EFalse to turn marking mode off.
+        */
+        virtual void SetMarkingMode( TBool aEnable );
+
     protected:
         /**
          * Standard C++ constructor.
@@ -267,6 +315,10 @@
         MDesCArray* iArray;
         // Own: Stores selection mode status
         TBool iSelectionModeEnabled;
+        // Own: Indicates marking mode is activated or not
+        TBool iMarkingModeActivated;
+        // Own: Indicates marking mode is allowed to exit or not
+        TBool iAllowMarkingModeExit;
 
     };