application/src/PodcastShowsView.cpp
branchsymbian1
changeset 70 0a94e3bc0ef2
parent 67 9c24c921ec35
child 90 d0c0c3e6f7a1
equal deleted inserted replaced
69:4a65cc85c4f3 70:0a94e3bc0ef2
   313 void CPodcastShowsView::HandleListBoxEventL(CEikListBox* /*aListBox*/,
   313 void CPodcastShowsView::HandleListBoxEventL(CEikListBox* /*aListBox*/,
   314 		TListBoxEvent aEventType)
   314 		TListBoxEvent aEventType)
   315 	{
   315 	{
   316 	switch (aEventType)
   316 	switch (aEventType)
   317 		{
   317 		{
   318 #ifndef SYMBIAN1_UI
       
   319 		case EEventItemClicked:
       
   320 #endif
       
   321 		case EEventEnterKeyPressed:		
   318 		case EEventEnterKeyPressed:		
   322 		case EEventItemActioned:
   319 		case EEventItemActioned:
   323 		case EEventItemDoubleClicked:
   320 		case EEventItemDoubleClicked:
   324 			{
   321 			{
   325 			RShowInfoArray &fItems = iPodcastModel.ActiveShowList();
   322 			RShowInfoArray &fItems = iPodcastModel.ActiveShowList();
   668 		TBool updatingState = iPodcastModel.FeedEngine().ClientState() != EIdle && 
   665 		TBool updatingState = iPodcastModel.FeedEngine().ClientState() != EIdle && 
   669 				iPodcastModel.FeedEngine().ActiveClientUid() == iPodcastModel.ActiveFeedInfo()->Uid();
   666 				iPodcastModel.FeedEngine().ActiveClientUid() == iPodcastModel.ActiveFeedInfo()->Uid();
   670 	
   667 	
   671 		toolbar->HideItem(EPodcastUpdateFeed, updatingState, ETrue ); 
   668 		toolbar->HideItem(EPodcastUpdateFeed, updatingState, ETrue ); 
   672 		toolbar->HideItem(EPodcastCancelUpdateAllFeeds, !updatingState, ETrue );
   669 		toolbar->HideItem(EPodcastCancelUpdateAllFeeds, !updatingState, ETrue );
   673 #ifndef SYMBIAN1_UI
       
   674 		// there seems to be drawing bugs in the toolbar if there is only
       
   675 		// one or two buttons defined in the resource, so we have download
       
   676 		// there but always hidden
       
   677 		toolbar->HideItem(EPodcastDownloadShow, ETrue, ETrue );
       
   678 #else SYMBIAN1_UI
       
   679 		RShowInfoArray &fItems = iPodcastModel.ActiveShowList();
   670 		RShowInfoArray &fItems = iPodcastModel.ActiveShowList();
   680 		TInt itemCnt = fItems.Count();
   671 		TInt itemCnt = fItems.Count();
   681 	
   672 	
   682 		TBool hideDownloadShowCmd = EFalse;
   673 		TBool hideDownloadShowCmd = EFalse;
   683 		TBool dimDownloadShowCmd = EFalse;
   674 		TBool dimDownloadShowCmd = EFalse;
   729 		} else {
   720 		} else {
   730 			toolbar->HideItem(EPodcastMarkAsPlayed, EFalse, ETrue );
   721 			toolbar->HideItem(EPodcastMarkAsPlayed, EFalse, ETrue );
   731 			toolbar->HideItem(EPodcastMarkAsUnplayed, ETrue, ETrue );
   722 			toolbar->HideItem(EPodcastMarkAsUnplayed, ETrue, ETrue );
   732 			toolbar->SetItemDimmed(EPodcastMarkAsPlayed, updatingState, ETrue);
   723 			toolbar->SetItemDimmed(EPodcastMarkAsPlayed, updatingState, ETrue);
   733 		}
   724 		}
   734 #endif
       
   735 	}
   725 	}
   736 }
   726 }
   737 
   727 
   738 void CPodcastShowsView::HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& /* aPenEventScreenLocation */)
   728 void CPodcastShowsView::HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& /* aPenEventScreenLocation */)
   739 {
   729 {