voicerecorder/RecViewSrc/CVRMdaRecorder.cpp
branchRCL_3
changeset 8 49233e24b2ab
parent 5 35a9006a7fc7
child 11 a2fdc35b8f46
equal deleted inserted replaced
7:6aee962f6139 8:49233e24b2ab
   178 
   178 
   179 	if (iMediaServerError != KErrNone ) 
   179 	if (iMediaServerError != KErrNone ) 
   180 		{
   180 		{
   181         
   181         
   182         // when mmc card is used and unpluged, this error returned
   182         // when mmc card is used and unpluged, this error returned
   183         if (iMediaServerError == KErrCorrupt)
   183         if (iMediaServerError == KErrCorrupt || iMediaServerError == KErrNotReady)
   184         	{
   184         	{
   185         	iAudioRecorder->Close();
   185         	CVRRecViewModel* iViewModel = NULL;
   186         	dynamic_cast <CVRRecViewModel*>(iAutoStopObserver)->HandleCommandL(EEikCmdExit);
   186         	//iAudioRecorder->Close();
       
   187         	iViewModel = dynamic_cast <CVRRecViewModel*>(iAutoStopObserver);
       
   188         	if(iViewModel != NULL)
       
   189         		{
       
   190         		iViewModel->HandleCommandL(EEikCmdExit);
       
   191         		}
       
   192         	else
       
   193         		{
       
   194         		CEikonEnv::Static()->EikAppUi()->HandleCommandL( EAknSoftkeyExit);
       
   195         		}
   187         	}
   196         	}
   188  		
   197  		
   189 		// Media server reports KErrDied if the playing was interrupted
   198 		// Media server reports KErrDied if the playing was interrupted
   190 		// by some other system sound triggered by for example incoming SMS
   199 		// by some other system sound triggered by for example incoming SMS
   191 
   200