voicerecorder/RecViewSrc/CVRRecViewModel.cpp
branchRCL_3
changeset 29 c9b63fff5abf
parent 25 c6bafb5162d8
--- a/voicerecorder/RecViewSrc/CVRRecViewModel.cpp	Wed Sep 15 12:15:47 2010 +0300
+++ b/voicerecorder/RecViewSrc/CVRRecViewModel.cpp	Wed Oct 13 14:34:59 2010 +0300
@@ -84,8 +84,7 @@
 	iLabelSets( 2 ),
 	iPreviousCallState( EPSCTsyCallStateNone ),
 	iCanHandleCommands( ETrue ),
-	iCBAEnabled( ETrue ),
-	iIsDriveReady( ETrue )
+	iCBAEnabled( ETrue )
 	{
 	}
 
@@ -805,7 +804,7 @@
 //	
 TInt CVRRecViewModel::ButtonState( TInt aButtonId ) const
 	{
-    if(CVRUSBStateHanlder::IsUsbActive() || !iIsDriveReady)
+    if(CVRUSBStateHanlder::IsUsbActive())
         {
             return EDimmed;
         }
@@ -2433,44 +2432,14 @@
             ( !CVRUSBStateHanlder::IsUsbActive() ) )
 		{
         //exit for mmc dismount	
-        SendExitEvent();   
+        TWsEvent event;
+        event.SetType( EAknSoftkeyExit );
+        event.SetTimeNow();
+        event.SetHandle( CCoeEnv::Static()->WsSession().WsHandle() );
+        CCoeEnv::Static()->WsSession().SendEventToWindowGroup( CEikonEnv::Static()->RootWin().Identifier(), event );
+        return;       
 		}
-    }
-
-// ---------------------------------------------------------------------------
-// CVRRecViewModel::SendExitEvent
-// 
-// ---------------------------------------------------------------------------
-//
-void CVRRecViewModel::SendExitEvent()
-    {
-    TWsEvent event;
-    event.SetType( EAknSoftkeyExit );
-    event.SetTimeNow();
-    event.SetHandle( CCoeEnv::Static()->WsSession().WsHandle() );
-    CCoeEnv::Static()->WsSession().SendEventToWindowGroup( CEikonEnv::Static()->RootWin().Identifier(), event );
-    return;
-    }
-
-// ---------------------------------------------------------------------------
-// CVRRecViewModel::SetIsDriveReady
-// 
-// ---------------------------------------------------------------------------
-//
-void CVRRecViewModel::SetIsDriveReady(TBool aIsDriveReady)
-    {
-    iIsDriveReady = aIsDriveReady;
-    }
-
-// ---------------------------------------------------------------------------
-// CVRRecViewModel::GetIsDriveReady
-// 
-// ---------------------------------------------------------------------------
-//
-TBool CVRRecViewModel::GetIsDriveReady()
-    {
-    return iIsDriveReady;
-    }
+	}
 
 
 // End of file