application/src/PodcastQueueView.cpp
branchsymbian1
changeset 263 c71e68f962c6
parent 183 913f0f0e98fc
child 336 3d6c1417e8bd
equal deleted inserted replaced
261:55305e953f12 263:c71e68f962c6
   187 			if (allUidsMatch && len > 0)
   187 			if (allUidsMatch && len > 0)
   188 				{
   188 				{
   189 				for (TInt loop = 0; loop< len; loop++)
   189 				for (TInt loop = 0; loop< len; loop++)
   190 					{					
   190 					{					
   191 					UpdateShowItemDataL(fItems[loop], loop);	
   191 					UpdateShowItemDataL(fItems[loop], loop);	
   192 					iListContainer->Listbox()->DrawItem(loop);
       
   193 					}
   192 					}
       
   193 				iListContainer->Listbox()->DrawNow();
   194 				}
   194 				}
   195 			else
   195 			else
   196 				{
   196 				{
   197 				iListContainer->Listbox()->ItemDrawer()->ClearAllPropertiesL();
   197 				iListContainer->Listbox()->ItemDrawer()->ClearAllPropertiesL();
   198 				iListContainer->Listbox()->Reset();
   198 				iListContainer->Listbox()->Reset();
   311 			iListContainer->Listbox()->SetCurrentItemIndex(index + 1);
   311 			iListContainer->Listbox()->SetCurrentItemIndex(index + 1);
   312 			}
   312 			}
   313 			break;
   313 			break;
   314 		case EPodcastSuspendDownloads:
   314 		case EPodcastSuspendDownloads:
   315 			{
   315 			{
       
   316 			iDontUpdateList = ETrue;
   316 			iPodcastModel.ShowEngine().SuspendDownloads();
   317 			iPodcastModel.ShowEngine().SuspendDownloads();
       
   318 			iDontUpdateList = EFalse;
   317 			UpdateListboxItemsL();
   319 			UpdateListboxItemsL();
   318 			}
   320 			}
   319 			break;
   321 			break;
   320 		case EPodcastResumeDownloads:
   322 		case EPodcastResumeDownloads:
   321 			{
   323 			{
       
   324 			iDontUpdateList = ETrue;
   322 			iPodcastModel.ShowEngine().ResumeDownloadsL();
   325 			iPodcastModel.ShowEngine().ResumeDownloadsL();
       
   326 			iDontUpdateList = EFalse;
   323 			UpdateListboxItemsL();
   327 			UpdateListboxItemsL();
   324 			}
   328 			}
   325 			break;
   329 			break;
   326 		default:
   330 		default:
   327 			CPodcastListView::HandleCommandL(aCommand);
   331 			CPodcastListView::HandleCommandL(aCommand);