application/src/PodcastQueueView.cpp
changeset 8 aab3aa4acdd6
parent 4 be243543a361
child 13 f58e3c482bd9
equal deleted inserted replaced
7:a7a43293ae56 8:aab3aa4acdd6
   234 
   234 
   235 void CPodcastQueueView::ShowDownloadFinishedL(TUint /*aShowUid*/, TInt aError)
   235 void CPodcastQueueView::ShowDownloadFinishedL(TUint /*aShowUid*/, TInt aError)
   236 	{
   236 	{
   237 	iProgressAdded = EFalse;
   237 	iProgressAdded = EFalse;
   238 
   238 
   239 	iPodcastModel.GetShowsDownloading();
   239 	iPodcastModel.GetShowsDownloadingL();
   240 	UpdateListboxItemsL();
   240 	UpdateListboxItemsL();
   241 	UpdateToolbar();
   241 	UpdateToolbar();
   242 	
   242 	
   243 	switch(aError)
   243 	switch(aError)
   244 		{
   244 		{
   260 	// TODO make use of the fact that we know that the feed download is
   260 	// TODO make use of the fact that we know that the feed download is
   261 	// started instead of checking feed engine states in UpdateFeedUpdateStateL.
   261 	// started instead of checking feed engine states in UpdateFeedUpdateStateL.
   262 	if (iPodcastModel.ActiveFeedInfo() != NULL
   262 	if (iPodcastModel.ActiveFeedInfo() != NULL
   263 			&& iPodcastModel.ActiveFeedInfo()->Uid() == aFeedUid)
   263 			&& iPodcastModel.ActiveFeedInfo()->Uid() == aFeedUid)
   264 		{
   264 		{
   265 		TRAP_IGNORE(UpdateFeedUpdateStateL());
   265 		UpdateFeedUpdateStateL();
   266 		UpdateToolbar();
   266 		UpdateToolbar();
   267 		}	
   267 		}	
   268 	}
   268 	}
   269 
   269 
   270 void CPodcastQueueView::FeedDownloadFinishedL(TFeedState /*aState*/, TUint aFeedUid, TInt /*aError*/)
   270 void CPodcastQueueView::FeedDownloadFinishedL(TFeedState /*aState*/, TUint aFeedUid, TInt /*aError*/)
   273 	// TODO make use of the fact that we know that the feed download is
   273 	// TODO make use of the fact that we know that the feed download is
   274 	// finished instead of checking feed engine states in UpdateFeedUpdateStateL.
   274 	// finished instead of checking feed engine states in UpdateFeedUpdateStateL.
   275 	if (iPodcastModel.ActiveFeedInfo() != NULL
   275 	if (iPodcastModel.ActiveFeedInfo() != NULL
   276 			&& iPodcastModel.ActiveFeedInfo()->Uid() == aFeedUid)
   276 			&& iPodcastModel.ActiveFeedInfo()->Uid() == aFeedUid)
   277 		{
   277 		{
   278 		TRAP_IGNORE(UpdateFeedUpdateStateL());
   278 		UpdateFeedUpdateStateL();
   279 		}
   279 		}
   280 	DP("CPodcastQueueView::FeedDownloadFinishedL END");
   280 	DP("CPodcastQueueView::FeedDownloadFinishedL END");
   281 	}
   281 	}
   282 
   282 
   283 void CPodcastQueueView::HandleListBoxEventL(CEikListBox* /*aListBox*/,
   283 void CPodcastQueueView::HandleListBoxEventL(CEikListBox* /*aListBox*/,
   428 	if (iListContainer->IsVisible())
   428 	if (iListContainer->IsVisible())
   429 		{
   429 		{
   430 		TListItemProperties itemProps;
   430 		TListItemProperties itemProps;
   431 		TInt len = 0;
   431 		TInt len = 0;
   432 
   432 
   433 		iPodcastModel.GetShowsDownloading();
   433 		iPodcastModel.GetShowsDownloadingL();
   434 	
   434 	
   435 		RShowInfoArray &fItems = iPodcastModel.ActiveShowList();
   435 		RShowInfoArray &fItems = iPodcastModel.ActiveShowList();
   436 		len = fItems.Count();
   436 		len = fItems.Count();
   437 
   437 
   438 		if (iListContainer->Listbox() != NULL)
   438 		if (iListContainer->Listbox() != NULL)