application/src/PodcastFeedView.cpp
branchasynchparser
changeset 171 cc1be3797632
parent 164 000f9fc147b2
equal deleted inserted replaced
170:f42c9de433f2 171:cc1be3797632
   228 	UpdateToolbar();
   228 	UpdateToolbar();
   229 	}
   229 	}
   230 
   230 
   231 void CPodcastFeedView::FeedDownloadStartedL(TFeedState /*aState*/, TUint aFeedUid)
   231 void CPodcastFeedView::FeedDownloadStartedL(TFeedState /*aState*/, TUint aFeedUid)
   232 	{
   232 	{
       
   233 	DP("FeedDownloadStartedL");
   233 	// Update status text
   234 	// Update status text
   234 	iUpdatingRunning = ETrue;
   235 	iUpdatingRunning = ETrue;
   235 	UpdateFeedInfoStatusL(aFeedUid, ETrue);
   236 	UpdateFeedInfoStatusL(aFeedUid, ETrue);
   236 	
   237 	
   237 	UpdateToolbar();
   238 	UpdateToolbar();
   238 	}
   239 	}
   239 
   240 
   240 void CPodcastFeedView::FeedDownloadFinishedL(TFeedState aState,TUint aFeedUid, TInt aError)
   241 void CPodcastFeedView::FeedDownloadFinishedL(TFeedState aState,TUint aFeedUid, TInt aError)
   241 	{
   242 	{
       
   243 	DP("FeedDownloadFinishedL");
   242 	switch(aError)
   244 	switch(aError)
   243 		{
   245 		{
   244 		case KErrCouldNotConnect:
   246 		case KErrCouldNotConnect:
   245 			{
   247 			{
   246 			if(aState == MFeedEngineObserver::EFeedManualUpdate)
   248 			if(aState == MFeedEngineObserver::EFeedManualUpdate)
   253 			break;
   255 			break;
   254 		default: // Do nothing
   256 		default: // Do nothing
   255 			break;
   257 			break;
   256 		}
   258 		}
   257 	UpdateFeedInfoStatusL(aFeedUid, EFalse);
   259 	UpdateFeedInfoStatusL(aFeedUid, EFalse);
       
   260 	UpdateToolbar();
   258 	}
   261 	}
   259 
   262 
   260 void CPodcastFeedView::UpdateFeedInfoStatusL(TUint aFeedUid, TBool aIsUpdating)
   263 void CPodcastFeedView::UpdateFeedInfoStatusL(TUint aFeedUid, TBool aIsUpdating)
   261 	{
   264 	{
   262 	const RFeedInfoArray& feeds = iPodcastModel.FeedEngine().GetSortedFeeds();
   265 	const RFeedInfoArray& feeds = iPodcastModel.FeedEngine().GetSortedFeeds();