application/src/PodcastShowsView.cpp
branchsymbian1
changeset 377 684802056d6f
parent 373 f5de49b27caf
child 384 004e149c6f0b
equal deleted inserted replaced
375:82f59b3393b3 377:684802056d6f
   981 			// and mark as played, and not downloaded
   981 			// and mark as played, and not downloaded
   982 			
   982 			
   983 			info->SetDownloadState(ENotDownloaded);
   983 			info->SetDownloadState(ENotDownloaded);
   984 			info->SetPlayState(EPlayed);
   984 			info->SetPlayState(EPlayed);
   985 			iPodcastModel.ShowEngine().UpdateShowL(*info);
   985 			iPodcastModel.ShowEngine().UpdateShowL(*info);
   986 			
   986 		
   987 			UpdateShowItemDataL(iPodcastModel.ActiveShowList()[index], index, 0);
   987 			if (iShowNewShows)
   988 			iListContainer->Listbox()->DrawItem(index);					
   988 				{
       
   989 				UpdateListboxItemsL();
       
   990 
       
   991 				if (index > 0)
       
   992 					{
       
   993 					iListContainer->Listbox()->SetCurrentItemIndex(index - 1);
       
   994 					}
       
   995 				}
       
   996 			else
       
   997 				{
       
   998 				UpdateShowItemDataL(iPodcastModel.ActiveShowList()[index], index, 0);
       
   999 				iListContainer->Listbox()->DrawItem(index);
       
  1000 				}
   989 			}
  1001 			}
   990 		}
  1002 		}
   991 	}
  1003 	}
   992 
  1004 
   993 void CPodcastShowsView::DownloadQueueUpdatedL(TInt aDownloadingShows, TInt aQueuedShows)
  1005 void CPodcastShowsView::DownloadQueueUpdatedL(TInt aDownloadingShows, TInt aQueuedShows)