application/src/PodcastShowsView.cpp
branchtwolistboxes
changeset 314 e7776f6a2198
parent 313 0f30a75610de
child 316 841ccfa933ac
equal deleted inserted replaced
313:0f30a75610de 314:e7776f6a2198
    35 #define KMaxMessageLength 200
    35 #define KMaxMessageLength 200
    36 
    36 
    37 _LIT(KSizeDownloadingOf, "%.1f/%.1f MB");
    37 _LIT(KSizeDownloadingOf, "%.1f/%.1f MB");
    38 _LIT(KShowsSizeFormatS60, "%.1f MB");
    38 _LIT(KShowsSizeFormatS60, "%.1f MB");
    39 
    39 
    40 _LIT(KShowFormat, "%d\t%S\t%S%S\t");
    40 _LIT(KShowFormat, "%d\t%S\t%S%S");
    41 
    41 
    42 // these must correspond with TShowsIconIndex
    42 // these must correspond with TShowsIconIndex
    43 
    43 
    44 const TUint KShowIconArrayIds[] =
    44 const TUint KShowIconArrayIds[] =
    45 	{
    45 	{
   476 		}
   476 		}
   477 	else
   477 	else
   478 		{
   478 		{
   479 		iItemArray->InsertL(aIndex, iListboxFormatbuffer);
   479 		iItemArray->InsertL(aIndex, iListboxFormatbuffer);
   480 		}
   480 		}
       
   481 	
       
   482 	iListContainer->SetTextArray(iItemArray);
   481 }
   483 }
   482 
   484 
   483 void CPodcastShowsView::UpdateShowItemL(TUint aUid, TInt aSizeDownloaded)
   485 void CPodcastShowsView::UpdateShowItemL(TUint aUid, TInt aSizeDownloaded)
   484 {
   486 {
   485 	RShowInfoArray& array = iPodcastModel.ActiveShowList();
   487 	RShowInfoArray& array = iPodcastModel.ActiveShowList();
   557 					iItemIdArray.Reset();
   559 					iItemIdArray.Reset();
   558 					
   560 					
   559 					itemProps.SetDimmed(ETrue);
   561 					itemProps.SetDimmed(ETrue);
   560 					itemProps.SetHiddenSelection(ETrue);
   562 					itemProps.SetHiddenSelection(ETrue);
   561 					}
   563 					}
       
   564 				iListContainer->SetTextArray(iItemArray);
   562 				iListContainer->Listbox()->HandleItemAdditionL();
   565 				iListContainer->Listbox()->HandleItemAdditionL();
   563 				}				
   566 				}				
   564 			}
   567 			}
   565 		}
   568 		}
   566 	}
   569 	}