application/src/PodcastQueueView.cpp
branchtwolistboxes
changeset 316 841ccfa933ac
parent 314 e7776f6a2198
child 317 5afc95a6ad83
equal deleted inserted replaced
315:091fa3bf3295 316:841ccfa933ac
   187 				{
   187 				{
   188 				iListContainer->Listbox()->ItemDrawer()->ClearAllPropertiesL();
   188 				iListContainer->Listbox()->ItemDrawer()->ClearAllPropertiesL();
   189 				iListContainer->Listbox()->Reset();
   189 				iListContainer->Listbox()->Reset();
   190 				iItemIdArray.Reset();
   190 				iItemIdArray.Reset();
   191 				iItemArray->Reset();
   191 				iItemArray->Reset();
       
   192 				iItemArrayShort->Reset();
   192 
   193 
   193 				if (len > 0)
   194 				if (len > 0)
   194 					{
   195 					{
   195 					for (TInt i=0; i<len; i++)
   196 					for (TInt i=0; i<len; i++)
   196 						{
   197 						{
   197 						CShowInfo *si = fItems[i];
   198 						CShowInfo *si = fItems[i];
   198 						FormatShowInfoListBoxItemL(*si);
   199 						FormatShowInfoListBoxItemL(*si);
   199 						iItemIdArray.Append(si->Uid());						
   200 						iItemIdArray.Append(si->Uid());						
   200 						iItemArray->AppendL(iListboxFormatbuffer);
   201 						iItemArray->AppendL(iListboxFormatbuffer);
       
   202 						iItemArrayShort->AppendL(iListboxFormatbufferShort);
   201 						}
   203 						}
   202 					}
   204 					}
   203 				else
   205 				else
   204 					{
   206 					{
   205 					iItemArray->Reset();
   207 					iItemArray->Reset();
       
   208 					iItemArrayShort->Reset();
   206 					iItemIdArray.Reset();
   209 					iItemIdArray.Reset();
   207 					
   210 					
   208 					itemProps.SetDimmed(ETrue);
   211 					itemProps.SetDimmed(ETrue);
   209 					itemProps.SetHiddenSelection(ETrue);
   212 					itemProps.SetHiddenSelection(ETrue);
   210 					}
   213 					}
   211 				iListContainer->SetTextArray(iItemArray);
       
   212 				iListContainer->Listbox()->HandleItemAdditionL();
   214 				iListContainer->Listbox()->HandleItemAdditionL();
   213 				}				
   215 				}				
   214 			}
   216 			}
   215 		}
   217 		}
   216 	}
   218 	}