application/src/PodcastQueueView.cpp
branchRCL_3
changeset 368 b131f7696342
parent 367 4b75876aa85a
child 383 931d0db6374d
equal deleted inserted replaced
367:4b75876aa85a 368:b131f7696342
    97 		return CPodcastListView::OfferKeyEventL(aKeyEvent, aType);
    97 		return CPodcastListView::OfferKeyEventL(aKeyEvent, aType);
    98 	}
    98 	}
    99 
    99 
   100 CPodcastQueueView::~CPodcastQueueView()
   100 CPodcastQueueView::~CPodcastQueueView()
   101 	{
   101 	{
       
   102 	DP("CPodcastQueueView::~CPodcastQueueView BEGIN");
   102 	iPodcastModel.ShowEngine().RemoveObserver(this);
   103 	iPodcastModel.ShowEngine().RemoveObserver(this);
   103 	iPodcastModel.FeedEngine().RemoveObserver(this);
   104 	iPodcastModel.FeedEngine().RemoveObserver(this);
       
   105 	DP("CPodcastQueueView::~CPodcastQueueView END");
   104 	}
   106 	}
   105 
   107 
   106 
   108 
   107 TUid CPodcastQueueView::Id() const
   109 TUid CPodcastQueueView::Id() const
   108 	{
   110 	{
   301 				{
   303 				{
   302 				iPodcastModel.ShowEngine().ResumeDownloadsL();
   304 				iPodcastModel.ShowEngine().ResumeDownloadsL();
   303 				}
   305 				}
   304 			
   306 			
   305 			UpdateListboxItemsL();
   307 			UpdateListboxItemsL();
   306 			iListContainer->Listbox()->SetCurrentItemIndex(index + 1);
   308 			if (index < iPodcastModel.ActiveShowList().Count() -1)
       
   309 				iListContainer->Listbox()->SetCurrentItemIndex(index + 1);
   307 			}
   310 			}
   308 			break;
   311 			break;
   309 		case EPodcastSuspendDownloads:
   312 		case EPodcastSuspendDownloads:
   310 			{
   313 			{
   311 			iDontUpdateList = ETrue;
   314 			iDontUpdateList = ETrue;
   326 			{
   329 			{
   327 			DisplayShowInfoDialogL();
   330 			DisplayShowInfoDialogL();
   328 			}
   331 			}
   329 			break;
   332 			break;
   330 		default:
   333 		default:
   331 			CPodcastListView::HandleCommandL(aCommand);
   334 			CPodcastShowsView::HandleCommandL(aCommand);
   332 			break;
   335 			break;
   333 		}
   336 		}
   334 	UpdateToolbar();
   337 	UpdateToolbar();
   335 	}
   338 	}
   336 	
   339