engine/src/FeedEngine.cpp
changeset 111 12c59f14a031
parent 110 403412eb5292
child 114 27f6f5827e5d
equal deleted inserted replaced
110:403412eb5292 111:12c59f14a031
   276 		if (++iCatchupCounter > 1) {
   276 		if (++iCatchupCounter > 1) {
   277 			aItem.SetPlayState(EPlayed);
   277 			aItem.SetPlayState(EPlayed);
   278 		}
   278 		}
   279 	}
   279 	}
   280 	
   280 	
   281 	TBool isShowAdded = iPodcastModel.ShowEngine().AddShowL(aItem);
   281 	TRAPD(err, iPodcastModel.ShowEngine().AddShowL(aItem));
   282 
   282 
   283 	if (aItem.PlayState() == ENeverPlayed && isShowAdded && iPodcastModel.SettingsEngine().DownloadAutomatically()) 
   283 	if (err == KErrNone && aItem.PlayState() == ENeverPlayed && 
       
   284 			iPodcastModel.SettingsEngine().DownloadAutomatically()) 
   284 		{
   285 		{
   285 		iPodcastModel.ShowEngine().AddDownloadL(aItem);
   286 		iPodcastModel.ShowEngine().AddDownloadL(aItem);
   286 		}	
   287 		}	
   287 	}
   288 	}
   288 
   289 
   574 							iActiveFeed->SetLastError(parserErr);
   575 							iActiveFeed->SetLastError(parserErr);
   575 							DP1("CFeedEngine::Complete()\t Failed to parse feed. Leave with error code=%d", parserErr);
   576 							DP1("CFeedEngine::Complete()\t Failed to parse feed. Leave with error code=%d", parserErr);
   576 							}
   577 							}
   577 						else
   578 						else
   578 							{
   579 							{
   579 							iPodcastModel.ShowEngine().DeleteOldShowsByFeed(iActiveFeed->Uid());
   580 							iPodcastModel.ShowEngine().DeleteOldShowsByFeedL(iActiveFeed->Uid());
   580 							}
   581 							}
   581 	
   582 	
   582 						// delete the downloaded XML file as it is no longer needed
   583 						// delete the downloaded XML file as it is no longer needed
   583 						BaflUtils::DeleteFile(iPodcastModel.FsSession(),iUpdatingFeedFileName);			
   584 						BaflUtils::DeleteFile(iPodcastModel.FsSession(),iUpdatingFeedFileName);			
   584 	
   585