engine/src/ShowEngine.cpp
changeset 6 e211a78d3037
parent 2 29cda98b007e
child 15 93d9f66bf50b
equal deleted inserted replaced
5:ba42cd6670b8 6:e211a78d3037
   272 		{
   272 		{
   273 		DP1("CShowEngine::Complete\tDownload of file: %S is complete", &iShowDownloading->FileName());		
   273 		DP1("CShowEngine::Complete\tDownload of file: %S is complete", &iShowDownloading->FileName());		
   274 		// decide what kind of file this is		
   274 		// decide what kind of file this is		
   275 		if(aError != KErrCouldNotConnect)
   275 		if(aError != KErrCouldNotConnect)
   276 			{
   276 			{
   277 			if(aError == KErrDisconnected && !iPodcastModel.SettingsEngine().DownloadSuspended()) {
   277 			if(aError == KErrDisconnected && iPodcastModel.SettingsEngine().DownloadSuspended())
       
   278 				{
   278 				// no error if disconnect happened because of suspended downloading
   279 				// no error if disconnect happened because of suspended downloading
       
   280 				}
       
   281 			else
       
   282 				{
   279 				iShowDownloading->SetLastError(aError);
   283 				iShowDownloading->SetLastError(aError);
   280 			}
   284 				}
   281 
   285 
   282 			if (aError == KErrNone)
   286 			if (aError == KErrNone)
   283 				{
   287 				{
   284 				TBuf<KMimeBufLength> mimeType;
   288 				TBuf<KMimeBufLength> mimeType;
   285 				GetMimeType(iShowDownloading->FileName(), mimeType);
   289 				GetMimeType(iShowDownloading->FileName(), mimeType);