application/src/PodcastFeedView.cpp
branchsymbian1
changeset 356 697e27864f3a
parent 355 075b3a49cb55
child 385 f372a154ba57
equal deleted inserted replaced
346:a0eb6aaed052 356:697e27864f3a
   117 	DP("CPodcastFeedView::ConstructL END");
   117 	DP("CPodcastFeedView::ConstructL END");
   118 	}
   118 	}
   119     
   119     
   120 CPodcastFeedView::~CPodcastFeedView()
   120 CPodcastFeedView::~CPodcastFeedView()
   121     {
   121     {
       
   122 	DP("CPodcastFeedView::~CPodcastFeedView BEGIN");
   122 	iPodcastModel.FeedEngine().RemoveObserver(this);
   123 	iPodcastModel.FeedEngine().RemoveObserver(this);
   123 	delete iFeedsFormat;
   124 	delete iFeedsFormat;
   124 	delete iNeverUpdated;
   125 	delete iNeverUpdated;
   125 	delete iStylusPopupMenu;
   126 	delete iStylusPopupMenu;
   126 	delete iUpdater;
   127 	delete iUpdater;
   127 	iFeedIdForIconArray.Close();
   128 	iFeedIdForIconArray.Close();
       
   129 	DP("CPodcastFeedView::~CPodcastFeedView END");
   128     }
   130     }
   129 
   131 
   130 void CPodcastFeedView::UpdateItemL(TInt aIndex)
   132 void CPodcastFeedView::UpdateItemL(TInt aIndex)
   131 	{
   133 	{
   132 	__ASSERT_DEBUG(iListContainer->IsVisible(), Panic(EPodcatcherPanicFeedView));
   134 	__ASSERT_DEBUG(iListContainer->IsVisible(), Panic(EPodcatcherPanicFeedView));
   178 	                                  const TDesC8& aCustomMessage)
   180 	                                  const TDesC8& aCustomMessage)
   179 	{
   181 	{
   180 	DP("CPodcastFeedView::DoActivateL BEGIN");
   182 	DP("CPodcastFeedView::DoActivateL BEGIN");
   181 	CPodcastListView::DoActivateL(aPrevViewId, aCustomMessageId, aCustomMessage);
   183 	CPodcastListView::DoActivateL(aPrevViewId, aCustomMessageId, aCustomMessage);
   182 	
   184 	
       
   185 	iPodcastModel.ShowEngine().ExpireOldShows();
   183 	if (aPrevViewId.iViewUid == KUidPodcastShowsViewID)
   186 	if (aPrevViewId.iViewUid == KUidPodcastShowsViewID)
   184 		{
   187 		{
   185 		// back key from shows view
   188 		// back key from shows view
   186 		iViewingShows = EFalse;
   189 		iViewingShows = EFalse;
   187 		}
   190 		}
   634 	}
   637 	}
   635 
   638 
   636 void CPodcastFeedView::ShowItem(TUint aUid)
   639 void CPodcastFeedView::ShowItem(TUint aUid)
   637 	{
   640 	{
   638 	TInt listIndex = -1;
   641 	TInt listIndex = -1;
   639 	for (TUint i=0;i<iItemIdArray.Count();i++)
   642 	for (TInt i=0;i<iItemIdArray.Count();i++)
   640 		{
   643 		{
   641 		if (iItemIdArray[i] == aUid)
   644 		if (iItemIdArray[i] == aUid)
   642 			{
   645 			{
   643 			listIndex = i;
   646 			listIndex = i;
   644 			}
   647 			}