application/src/PodcastQueueView.cpp
branchRCL_3
changeset 265 72305c65726c
parent 243 44d205147a83
child 295 67f53e831ab0
equal deleted inserted replaced
264:6dfdf1d9da5c 265:72305c65726c
   178 			if (allUidsMatch && len > 0)
   178 			if (allUidsMatch && len > 0)
   179 				{
   179 				{
   180 				for (TInt loop = 0; loop< len; loop++)
   180 				for (TInt loop = 0; loop< len; loop++)
   181 					{					
   181 					{					
   182 					UpdateShowItemDataL(fItems[loop], loop);	
   182 					UpdateShowItemDataL(fItems[loop], loop);	
   183 					iListContainer->Listbox()->DrawItem(loop);
       
   184 					}
   183 					}
       
   184 				iListContainer->Listbox()->DrawNow();
   185 				}
   185 				}
   186 			else
   186 			else
   187 				{
   187 				{
   188 				iListContainer->Listbox()->ItemDrawer()->ClearAllPropertiesL();
   188 				iListContainer->Listbox()->ItemDrawer()->ClearAllPropertiesL();
   189 				iListContainer->Listbox()->Reset();
   189 				iListContainer->Listbox()->Reset();
   302 			UpdateListboxItemsL();
   302 			UpdateListboxItemsL();
   303 			}
   303 			}
   304 			break;
   304 			break;
   305 		case EPodcastSuspendDownloads:
   305 		case EPodcastSuspendDownloads:
   306 			{
   306 			{
       
   307 			iDontUpdateList = ETrue;
   307 			iPodcastModel.ShowEngine().SuspendDownloads();
   308 			iPodcastModel.ShowEngine().SuspendDownloads();
       
   309 			iDontUpdateList = EFalse;
   308 			UpdateListboxItemsL();
   310 			UpdateListboxItemsL();
   309 			}
   311 			}
   310 			break;
   312 			break;
   311 		case EPodcastResumeDownloads:
   313 		case EPodcastResumeDownloads:
   312 			{
   314 			{
       
   315 			iDontUpdateList = ETrue;
   313 			iPodcastModel.ShowEngine().ResumeDownloadsL();
   316 			iPodcastModel.ShowEngine().ResumeDownloadsL();
       
   317 			iDontUpdateList = EFalse;
   314 			UpdateListboxItemsL();
   318 			UpdateListboxItemsL();
   315 			}
   319 			}
   316 			break;
   320 			break;
   317 		default:
   321 		default:
   318 			CPodcastListView::HandleCommandL(aCommand);
   322 			CPodcastListView::HandleCommandL(aCommand);