application/src/PodcastQueueView.cpp
branch3rded
changeset 280 001f04bc4964
parent 186 32aedca70582
child 343 9c56bf585696
equal deleted inserted replaced
279:5a44ec2f6f4d 280:001f04bc4964
   174 			if (allUidsMatch && len > 0)
   174 			if (allUidsMatch && len > 0)
   175 				{
   175 				{
   176 				for (TInt loop = 0; loop< len; loop++)
   176 				for (TInt loop = 0; loop< len; loop++)
   177 					{					
   177 					{					
   178 					UpdateShowItemDataL(fItems[loop], loop);	
   178 					UpdateShowItemDataL(fItems[loop], loop);	
   179 					iListContainer->Listbox()->DrawItem(loop);
       
   180 					}
   179 					}
       
   180 				iListContainer->Listbox()->DrawNow();
   181 				}
   181 				}
   182 			else
   182 			else
   183 				{
   183 				{
   184 				iListContainer->Listbox()->ItemDrawer()->ClearAllPropertiesL();
   184 				iListContainer->Listbox()->ItemDrawer()->ClearAllPropertiesL();
   185 				iListContainer->Listbox()->Reset();
   185 				iListContainer->Listbox()->Reset();
   298 			iListContainer->Listbox()->SetCurrentItemIndex(index + 1);
   298 			iListContainer->Listbox()->SetCurrentItemIndex(index + 1);
   299 			}
   299 			}
   300 			break;
   300 			break;
   301 		case EPodcastSuspendDownloads:
   301 		case EPodcastSuspendDownloads:
   302 			{
   302 			{
       
   303 			iDontUpdateList = ETrue;
   303 			iPodcastModel.ShowEngine().SuspendDownloads();
   304 			iPodcastModel.ShowEngine().SuspendDownloads();
       
   305 			iDontUpdateList = EFalse;
   304 			UpdateListboxItemsL();
   306 			UpdateListboxItemsL();
   305 			}
   307 			}
   306 			break;
   308 			break;
   307 		case EPodcastResumeDownloads:
   309 		case EPodcastResumeDownloads:
   308 			{
   310 			{
       
   311 			iDontUpdateList = ETrue;
   309 			iPodcastModel.ShowEngine().ResumeDownloadsL();
   312 			iPodcastModel.ShowEngine().ResumeDownloadsL();
       
   313 			iDontUpdateList = EFalse;
   310 			UpdateListboxItemsL();
   314 			UpdateListboxItemsL();
   311 			}
   315 			}
   312 			break;
   316 			break;
   313 		default:
   317 		default:
   314 			CPodcastListView::HandleCommandL(aCommand);
   318 			CPodcastListView::HandleCommandL(aCommand);