equal
deleted
inserted
replaced
167 const RFeedInfoArray* searchItems = NULL; |
167 const RFeedInfoArray* searchItems = NULL; |
168 searchItems = &iPodcastModel.FeedEngine().GetSearchResults(); |
168 searchItems = &iPodcastModel.FeedEngine().GetSearchResults(); |
169 TInt len = searchItems->Count(); |
169 TInt len = searchItems->Count(); |
170 TListItemProperties itemProps; |
170 TListItemProperties itemProps; |
171 iListContainer->Listbox()->Reset(); |
171 iListContainer->Listbox()->Reset(); |
172 iListContainer->Listbox()->ItemDrawer()->ClearAllPropertiesL(); |
172 //iListContainer->Listbox()->ItemDrawer()->ClearAllPropertiesL(); |
173 iItemIdArray.Reset(); |
173 iItemIdArray.Reset(); |
174 iItemArray->Reset(); |
174 iItemArray->Reset(); |
175 |
175 |
176 if (len > 0) |
176 if (len > 0) |
177 { |
177 { |
184 TBuf<512> descr; |
184 TBuf<512> descr; |
185 descr.Copy(fi->Description().Left(512)); |
185 descr.Copy(fi->Description().Left(512)); |
186 PodcastUtils::RemoveAllFormatting(descr); |
186 PodcastUtils::RemoveAllFormatting(descr); |
187 iListboxFormatbuffer.Format(KSearchResultFormat(), iconIndex, &fi->Title(), &descr); |
187 iListboxFormatbuffer.Format(KSearchResultFormat(), iconIndex, &fi->Title(), &descr); |
188 iItemArray->AppendL(iListboxFormatbuffer); |
188 iItemArray->AppendL(iListboxFormatbuffer); |
189 iListboxFormatbufferShort.Format(KSearchResultFormatLandscape(), iconIndex, &fi->Title(), &descr); |
189 iListboxFormatbufferShort.Format(KSearchResultFormatLandscape(), iconIndex, &fi->Title()); |
190 iItemArrayShort->AppendL(iListboxFormatbufferShort); |
190 iItemArrayShort->AppendL(iListboxFormatbufferShort); |
191 iListContainer->Listbox()->ItemDrawer()->SetPropertiesL(i, itemProps); |
191 //iListContainer->Listbox()->ItemDrawer()->SetPropertiesL(i, itemProps); |
192 } |
192 } |
193 } |
193 } |
194 else |
194 else |
195 { |
195 { |
196 TBuf<KMaxFeedNameLength> itemName; |
196 TBuf<KMaxFeedNameLength> itemName; |
200 iItemIdArray.Reset(); |
200 iItemIdArray.Reset(); |
201 |
201 |
202 TListItemProperties itemProps; |
202 TListItemProperties itemProps; |
203 itemProps.SetDimmed(ETrue); |
203 itemProps.SetDimmed(ETrue); |
204 itemProps.SetHiddenSelection(ETrue); |
204 itemProps.SetHiddenSelection(ETrue); |
205 iListContainer->Listbox()->ItemDrawer()->SetPropertiesL(0, itemProps); |
205 //iListContainer->Listbox()->ItemDrawer()->SetPropertiesL(0, itemProps); |
206 } |
206 } |
207 iListContainer->Listbox()->HandleItemAdditionL(); |
207 iListContainer->Listbox()->HandleItemAdditionL(); |
208 DP("CPodcastSearchView::UpdateListboxItemsL END"); |
208 DP("CPodcastSearchView::UpdateListboxItemsL END"); |
209 } |
209 } |
210 |
210 |