voicerecorder/AppSrc/CVRAppUI.cpp
branchRCL_3
changeset 8 49233e24b2ab
parent 7 6aee962f6139
child 10 bb90e4148332
equal deleted inserted replaced
7:6aee962f6139 8:49233e24b2ab
   267 				}
   267 				}
   268 
   268 
   269 			// The file service needs to abort if it's still going on
   269 			// The file service needs to abort if it's still going on
   270 			if ( iEmbeddedObserver )
   270 			if ( iEmbeddedObserver )
   271 				{
   271 				{
   272 				dynamic_cast<CNewFileServiceBase*>(iEmbeddedObserver)->SetErrorCode(KErrAbort);
   272 				CNewFileServiceBase * iNewFileService = NULL;
       
   273 				iNewFileService = dynamic_cast<CNewFileServiceBase*>(iEmbeddedObserver);
       
   274 				if(iNewFileService != NULL)
       
   275 					{
       
   276 					iNewFileService->SetErrorCode(KErrAbort);
       
   277 					}
   273 				iEmbeddedObserver->AbortL();
   278 				iEmbeddedObserver->AbortL();
   274 				}
   279 				}
   275 
   280 
   276             Exit();
   281             Exit();
   277 			break;
   282 			break;
   284 				}
   289 				}
   285 
   290 
   286 			// The file service needs to abort if it's still going on
   291 			// The file service needs to abort if it's still going on
   287 			if ( iEmbeddedObserver )
   292 			if ( iEmbeddedObserver )
   288 				{
   293 				{
   289 				dynamic_cast<CNewFileServiceBase*>(iEmbeddedObserver)->SetErrorCode(KErrAbort);
   294 				CNewFileServiceBase * iNewFileService = NULL;
       
   295 				iNewFileService = dynamic_cast<CNewFileServiceBase*>(iEmbeddedObserver);
       
   296 				if(iNewFileService != NULL)
       
   297 					{
       
   298 					iNewFileService->SetErrorCode(KErrAbort);
       
   299 					}
   290 				iEmbeddedObserver->AbortL();
   300 				iEmbeddedObserver->AbortL();
   291 				}
   301 				}
   292 			
   302 			
   293 			Exit();
   303 			Exit();
   294             break;
   304             break;