application/src/PodcastQueueView.cpp
branch3rded
changeset 343 9c56bf585696
parent 280 001f04bc4964
child 390 d7abecc9d189
equal deleted inserted replaced
281:1cae65a87b5e 343:9c56bf585696
    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 	SetEmptyTextL(R_PODCAST_EMPTY_QUEUE);
    68 	SetEmptyTextL(R_PODCAST_EMPTY_QUEUE);
   140 		}
   138 		}
   141 	}
   139 	}
   142 
   140 
   143 void CPodcastQueueView::UpdateListboxItemsL()
   141 void CPodcastQueueView::UpdateListboxItemsL()
   144 	{
   142 	{
       
   143 	DP("CPodcastQueueView::UpdateListboxItemsL BEGIN");
   145 	if (iListContainer->IsVisible() && !iDontUpdateList)
   144 	if (iListContainer->IsVisible() && !iDontUpdateList)
   146 		{
   145 		{
   147 		TListItemProperties itemProps;
   146 		TListItemProperties itemProps;
   148 		TInt len = 0;
   147 		TInt len = 0;
   149 
   148 
   206 					}
   205 					}
   207 				iListContainer->Listbox()->HandleItemAdditionL();
   206 				iListContainer->Listbox()->HandleItemAdditionL();
   208 				}				
   207 				}				
   209 			}
   208 			}
   210 		}
   209 		}
       
   210 	DP("CPodcastQueueView::UpdateListboxItemsL END");
   211 	}
   211 	}
   212 
   212 
   213 /** 
   213 /** 
   214  * Command handling function intended for overriding by sub classes. 
   214  * Command handling function intended for overriding by sub classes. 
   215  * Default implementation is empty.  
   215  * Default implementation is empty.  
   310 			{
   310 			{
   311 			iDontUpdateList = ETrue;
   311 			iDontUpdateList = ETrue;
   312 			iPodcastModel.ShowEngine().ResumeDownloadsL();
   312 			iPodcastModel.ShowEngine().ResumeDownloadsL();
   313 			iDontUpdateList = EFalse;
   313 			iDontUpdateList = EFalse;
   314 			UpdateListboxItemsL();
   314 			UpdateListboxItemsL();
       
   315 			}
       
   316 			break;
       
   317 		case EPodcastShowInfo:
       
   318 			{
       
   319 			DisplayShowInfoDialogL();
   315 			}
   320 			}
   316 			break;
   321 			break;
   317 		default:
   322 		default:
   318 			CPodcastListView::HandleCommandL(aCommand);
   323 			CPodcastListView::HandleCommandL(aCommand);
   319 			break;
   324 			break;