application/src/PodcastShowsView.cpp
changeset 8 aab3aa4acdd6
parent 6 e211a78d3037
child 10 121100939521
equal deleted inserted replaced
7:a7a43293ae56 8:aab3aa4acdd6
   309 	// TODO make use of the fact that we know that the feed download is
   309 	// TODO make use of the fact that we know that the feed download is
   310 	// started instead of checking feed engine states in UpdateFeedUpdateStateL.
   310 	// started instead of checking feed engine states in UpdateFeedUpdateStateL.
   311 	if (iPodcastModel.ActiveFeedInfo() != NULL
   311 	if (iPodcastModel.ActiveFeedInfo() != NULL
   312 			&& iPodcastModel.ActiveFeedInfo()->Uid() == aFeedUid)
   312 			&& iPodcastModel.ActiveFeedInfo()->Uid() == aFeedUid)
   313 		{
   313 		{
   314 		TRAP_IGNORE(UpdateFeedUpdateStateL());
   314 		UpdateFeedUpdateStateL();
   315 		UpdateToolbar();
   315 		UpdateToolbar();
   316 		}	
   316 		}	
   317 	}
   317 	}
   318 
   318 
   319 void CPodcastShowsView::FeedDownloadFinishedL(TFeedState /*aState*/, TUint aFeedUid, TInt /*aError*/)
   319 void CPodcastShowsView::FeedDownloadFinishedL(TFeedState /*aState*/, TUint aFeedUid, TInt /*aError*/)
   322 	// TODO make use of the fact that we know that the feed download is
   322 	// TODO make use of the fact that we know that the feed download is
   323 	// finished instead of checking feed engine states in UpdateFeedUpdateStateL.
   323 	// finished instead of checking feed engine states in UpdateFeedUpdateStateL.
   324 	if (iPodcastModel.ActiveFeedInfo() != NULL
   324 	if (iPodcastModel.ActiveFeedInfo() != NULL
   325 			&& iPodcastModel.ActiveFeedInfo()->Uid() == aFeedUid)
   325 			&& iPodcastModel.ActiveFeedInfo()->Uid() == aFeedUid)
   326 		{
   326 		{
   327 		TRAP_IGNORE(UpdateFeedUpdateStateL());
   327 		UpdateFeedUpdateStateL();
   328 		TRAP_IGNORE(UpdateViewTitleL());
   328 		UpdateViewTitleL();
   329 		}
   329 		}
   330 	DP("CPodcastShowsView::FeedDownloadFinishedL END");
   330 	DP("CPodcastShowsView::FeedDownloadFinishedL END");
   331 	}
   331 	}
   332 
   332 
   333 void CPodcastShowsView::HandleListBoxEventL(CEikListBox* /*aListBox*/,
   333 void CPodcastShowsView::HandleListBoxEventL(CEikListBox* /*aListBox*/,
   516 	if (iListContainer->IsVisible())
   516 	if (iListContainer->IsVisible())
   517 		{
   517 		{
   518 		TListItemProperties itemProps;
   518 		TListItemProperties itemProps;
   519 		TInt len = 0;
   519 		TInt len = 0;
   520 
   520 
   521 		iPodcastModel.GetShowsByFeed(iPodcastModel.ActiveFeedInfo()->Uid());
   521 		iPodcastModel.GetShowsByFeedL(iPodcastModel.ActiveFeedInfo()->Uid());
   522 
   522 
   523 		RShowInfoArray &fItems = iPodcastModel.ActiveShowList();
   523 		RShowInfoArray &fItems = iPodcastModel.ActiveShowList();
   524 		len = fItems.Count();
   524 		len = fItems.Count();
   525 
   525 
   526 		if (iListContainer->Listbox() != NULL)
   526 		if (iListContainer->Listbox() != NULL)