application/src/PodcastFeedView.cpp
branchSymbian3
changeset 51 3a22449b5c73
parent 37 1644b7cd063e
parent 50 e7b10d6d7ba3
child 65 bcd88ba95046
equal deleted inserted replaced
43:3c0683f9f72c 51:3a22449b5c73
   170 void CPodcastFeedView::DoActivateL(const TVwsViewId& aPrevViewId,
   170 void CPodcastFeedView::DoActivateL(const TVwsViewId& aPrevViewId,
   171 	                                  TUid aCustomMessageId,
   171 	                                  TUid aCustomMessageId,
   172 	                                  const TDesC8& aCustomMessage)
   172 	                                  const TDesC8& aCustomMessage)
   173 	{
   173 	{
   174 	CPodcastListView::DoActivateL(aPrevViewId, aCustomMessageId, aCustomMessage);
   174 	CPodcastListView::DoActivateL(aPrevViewId, aCustomMessageId, aCustomMessage);
   175 
   175 	
   176 	if (aPrevViewId.iViewUid == KUidPodcastShowsViewID)
   176 	if (aPrevViewId.iViewUid == KUidPodcastShowsViewID)
   177 		{
   177 		{
   178 		// back key from shows view
   178 		// back key from shows view
   179 		iViewingShows = EFalse;
   179 		iViewingShows = EFalse;
   180 		}
   180 		}
   181 	
   181 	
   182 	if (iViewingShows)
       
   183 		{
       
   184 		// go to shows view
       
   185 		AppUi()->ActivateLocalViewL(KUidPodcastShowsViewID,  TUid::Uid(0), KNullDesC8());
       
   186 		} 
       
   187 	else 
       
   188 		{
       
   189 		UpdateListboxItemsL();		
   182 		UpdateListboxItemsL();		
   190 		UpdateToolbar();
   183 		UpdateToolbar();
   191 
   184 
   192 		if (iFirstActivateAfterLaunch)
   185 	if (iFirstActivateAfterLaunch)
   193 			{
   186 		{
   194 			iFirstActivateAfterLaunch = EFalse;
   187 		iFirstActivateAfterLaunch = EFalse;
   195 			}
       
   196 		}
   188 		}
   197 	}
   189 	}
   198 
   190 
   199 void CPodcastFeedView::DoDeactivate()
   191 void CPodcastFeedView::DoDeactivate()
   200 	{
   192 	{
   983 		iStylusPopupMenu->ShowMenu();
   975 		iStylusPopupMenu->ShowMenu();
   984 		iStylusPopupMenu->SetPosition(aPenEventLocation);
   976 		iStylusPopupMenu->SetPosition(aPenEventLocation);
   985     }
   977     }
   986 	DP("CPodcastListView::HandleLongTapEventL END");
   978 	DP("CPodcastListView::HandleLongTapEventL END");
   987 }
   979 }
       
   980 
       
   981 TBool CPodcastFeedView::ViewingShows()
       
   982 	{
       
   983 	return iViewingShows;
       
   984 	}