59 { |
59 { |
60 BaseConstructL(R_PODCAST_QUEUEVIEW); |
60 BaseConstructL(R_PODCAST_QUEUEVIEW); |
61 CPodcastListView::ConstructL(); |
61 CPodcastListView::ConstructL(); |
62 |
62 |
63 CreateIconsL(); |
63 CreateIconsL(); |
64 |
|
65 iListContainer->Listbox()->SetListBoxObserver(this); |
|
66 |
64 |
67 iPodcastModel.FeedEngine().AddObserver(this); |
65 iPodcastModel.FeedEngine().AddObserver(this); |
68 iPodcastModel.ShowEngine().AddObserver(this); |
66 iPodcastModel.ShowEngine().AddObserver(this); |
69 |
67 |
70 iStylusPopupMenu = CAknStylusPopUpMenu::NewL( this , TPoint(0,0)); |
68 iStylusPopupMenu = CAknStylusPopUpMenu::NewL( this , TPoint(0,0)); |
192 } |
191 } |
193 iListContainer->Listbox()->DrawNow(); |
192 iListContainer->Listbox()->DrawNow(); |
194 } |
193 } |
195 else |
194 else |
196 { |
195 { |
197 iListContainer->Listbox()->ItemDrawer()->ClearAllPropertiesL(); |
196 //iListContainer->Listbox()->ItemDrawer()->ClearAllPropertiesL(); |
198 iListContainer->Listbox()->Reset(); |
197 iListContainer->Listbox()->Reset(); |
199 iItemIdArray.Reset(); |
198 iItemIdArray.Reset(); |
200 iItemArray->Reset(); |
199 iItemArray->Reset(); |
|
200 iItemArrayShort->Reset(); |
201 |
201 |
202 if (len > 0) |
202 if (len > 0) |
203 { |
203 { |
204 for (TInt i=0; i<len; i++) |
204 for (TInt i=0; i<len; i++) |
205 { |
205 { |
206 CShowInfo *si = fItems[i]; |
206 CShowInfo *si = fItems[i]; |
207 FormatShowInfoListBoxItemL(*si); |
207 FormatShowInfoListBoxItemL(*si); |
208 iItemIdArray.Append(si->Uid()); |
208 iItemIdArray.Append(si->Uid()); |
209 iItemArray->AppendL(iListboxFormatbuffer); |
209 iItemArray->AppendL(iListboxFormatbuffer); |
|
210 iItemArrayShort->AppendL(iListboxFormatbufferShort); |
210 } |
211 } |
211 } |
212 } |
212 else |
213 else |
213 { |
214 { |
214 iItemArray->Reset(); |
215 iItemArray->Reset(); |
|
216 iItemArrayShort->Reset(); |
215 iItemIdArray.Reset(); |
217 iItemIdArray.Reset(); |
216 |
218 |
217 itemProps.SetDimmed(ETrue); |
219 itemProps.SetDimmed(ETrue); |
218 itemProps.SetHiddenSelection(ETrue); |
220 itemProps.SetHiddenSelection(ETrue); |
219 } |
221 } |
220 iListContainer->Listbox()->HandleItemAdditionL(); |
222 iListContainer->Listbox()->HandleItemAdditionL(); |
221 } |
223 } |
222 } |
224 } |
223 } |
225 } |
|
226 DP("CPodcastQueueView::UpdateListboxItemsL END"); |
224 } |
227 } |
225 |
228 |
226 /** |
229 /** |
227 * Command handling function intended for overriding by sub classes. |
230 * Command handling function intended for overriding by sub classes. |
228 * Default implementation is empty. |
231 * Default implementation is empty. |
323 { |
326 { |
324 iDontUpdateList = ETrue; |
327 iDontUpdateList = ETrue; |
325 iPodcastModel.ShowEngine().ResumeDownloadsL(); |
328 iPodcastModel.ShowEngine().ResumeDownloadsL(); |
326 iDontUpdateList = EFalse; |
329 iDontUpdateList = EFalse; |
327 UpdateListboxItemsL(); |
330 UpdateListboxItemsL(); |
|
331 } |
|
332 break; |
|
333 case EPodcastShowInfo: |
|
334 { |
|
335 DisplayShowInfoDialogL(); |
328 } |
336 } |
329 break; |
337 break; |
330 default: |
338 default: |
331 CPodcastListView::HandleCommandL(aCommand); |
339 CPodcastListView::HandleCommandL(aCommand); |
332 break; |
340 break; |