filemanager/App/src/CFileManagerContainerBase.cpp
branchRCL_3
changeset 52 40fb776cbfb3
parent 42 f5c50b8af68c
--- a/filemanager/App/src/CFileManagerContainerBase.cpp	Wed Sep 15 11:58:56 2010 +0300
+++ b/filemanager/App/src/CFileManagerContainerBase.cpp	Wed Oct 13 14:17:31 2010 +0300
@@ -59,8 +59,6 @@
         CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto );
     iListBox->SetObserver( this );
     iListBox->SetListBoxObserver( this );
-    iListBox->SetMarkingModeObserver( this );
-
     SetIndex( aFocusedIndex );
     iListBox->SetFocus( ETrue );
     iListBox->AddSelectionObserverL( this );
@@ -360,29 +358,22 @@
 // 
 // -----------------------------------------------------------------------------
 // 
-void CFileManagerContainerBase::ProcessCommandL( TInt /* aCommandId */ )
-    {
-    }
-
-// -----------------------------------------------------------------------------
-// CFileManagerContainerBase::MarkingModeStatusChanged()
-//
-// -----------------------------------------------------------------------------
-//
-void CFileManagerContainerBase::MarkingModeStatusChanged( TBool aActivated )
+void CFileManagerContainerBase::ProcessCommandL( TInt aCommandId )
     {
-    // Set flag to indicate marking model is activated or not
-    iMarkingModeActivated = aActivated;
-    }
-
-// -----------------------------------------------------------------------------
-// CFileManagerContainerBase::ExitMarkingMode()
-//
-// -----------------------------------------------------------------------------
-//
-TBool CFileManagerContainerBase::ExitMarkingMode() const
-    {
-    return iAllowMarkingModeExit;
+    switch ( aCommandId )
+        {
+        case EAknSoftkeyShiftMSK:
+            {
+            static_cast< CAknAppUi* >( ControlEnv()->AppUi() )->
+                ProcessCommandL( EFileManagerToggleMark );
+            break;
+            }
+            
+        default:
+            {
+            break;
+            }
+        }
     }
 
 // -----------------------------------------------------------------------------
@@ -416,15 +407,6 @@
     }
 
 // -----------------------------------------------------------------------------
-// CFileManagerContainerBase::IsMarkingModeActivated
-// 
-// -----------------------------------------------------------------------------
-//
-TBool CFileManagerContainerBase::IsMarkingModeActivated() const
-    {
-    return iMarkingModeActivated;
-    }
-// -----------------------------------------------------------------------------
 // CFileManagerContainerBase::UpdateCba
 // 
 // -----------------------------------------------------------------------------
@@ -606,25 +588,4 @@
     {
     return 0;
     }
-
-// -----------------------------------------------------------------------------
-// CFileManagerContainerBase::AllowMarkingModeExit
-// 
-// -----------------------------------------------------------------------------
-//
-void CFileManagerContainerBase::AllowMarkingModeExit( TBool aAllowExit )
-    {
-    iAllowMarkingModeExit = aAllowExit;
-    }
-
-// -----------------------------------------------------------------------------
-// CFileManagerContainerBase::SetMarkingMode
-// 
-// -----------------------------------------------------------------------------
-//
-void CFileManagerContainerBase::SetMarkingMode( TBool aEnable )
-    {
-    iListBox->SetMarkingMode( aEnable );
-    }
-
 //  End of File