application/src/PodcastFeedView.cpp
branchRCL_3
changeset 368 b131f7696342
parent 341 a648d7ca5e27
child 369 c683165bec63
equal deleted inserted replaced
367:4b75876aa85a 368:b131f7696342
   119 	DP("CPodcastFeedView::ConstructL END");
   119 	DP("CPodcastFeedView::ConstructL END");
   120 	}
   120 	}
   121     
   121     
   122 CPodcastFeedView::~CPodcastFeedView()
   122 CPodcastFeedView::~CPodcastFeedView()
   123     {
   123     {
       
   124 	DP("CPodcastFeedView::~CPodcastFeedView BEGIN");
   124 	iPodcastModel.FeedEngine().RemoveObserver(this);
   125 	iPodcastModel.FeedEngine().RemoveObserver(this);
   125 	delete iFeedsFormat;
   126 	delete iFeedsFormat;
   126 	delete iNeverUpdated;
   127 	delete iNeverUpdated;
   127 	delete iUpdater;
   128 	delete iUpdater;
   128 	iFeedIdForIconArray.Close();
   129 	iFeedIdForIconArray.Close();
       
   130 	DP("CPodcastFeedView::~CPodcastFeedView END");
   129     }
   131     }
   130 
   132 
   131 void CPodcastFeedView::UpdateItemL(TInt aIndex)
   133 void CPodcastFeedView::UpdateItemL(TInt aIndex)
   132 	{
   134 	{
   133 	__ASSERT_DEBUG(iListContainer->IsVisible(), Panic(EPodcatcherPanicFeedView));
   135 	__ASSERT_DEBUG(iListContainer->IsVisible(), Panic(EPodcatcherPanicFeedView));
   179 	                                  const TDesC8& aCustomMessage)
   181 	                                  const TDesC8& aCustomMessage)
   180 	{
   182 	{
   181 	DP("CPodcastFeedView::DoActivateL BEGIN");
   183 	DP("CPodcastFeedView::DoActivateL BEGIN");
   182 	CPodcastListView::DoActivateL(aPrevViewId, aCustomMessageId, aCustomMessage);
   184 	CPodcastListView::DoActivateL(aPrevViewId, aCustomMessageId, aCustomMessage);
   183 	
   185 	
   184 	
   186 	iPodcastModel.ShowEngine().ExpireOldShows();
       
   187 
   185 	UpdateListboxItemsL();		
   188 	UpdateListboxItemsL();		
   186 	UpdateToolbar();
   189 	UpdateToolbar();
   187 	
   190 	
   188 	if (aPrevViewId.iViewUid == KUidPodcastShowsViewID)
   191 	if (aPrevViewId.iViewUid == KUidPodcastShowsViewID)
   189 		{
   192 		{
   653 	}
   656 	}
   654 
   657 
   655 void CPodcastFeedView::ShowItem(TUint aUid)
   658 void CPodcastFeedView::ShowItem(TUint aUid)
   656 	{
   659 	{
   657 	TInt listIndex = -1;
   660 	TInt listIndex = -1;
   658 	for (TUint i=0;i<iItemIdArray.Count();i++)
   661 	for (TInt i=0;i<iItemIdArray.Count();i++)
   659 		{
   662 		{
   660 		if (iItemIdArray[i] == aUid)
   663 		if (iItemIdArray[i] == aUid)
   661 			{
   664 			{
   662 			listIndex = i;
   665 			listIndex = i;
   663 			}
   666 			}