application/src/PodcastQueueView.cpp
branchsymbian1
changeset 70 0a94e3bc0ef2
parent 67 9c24c921ec35
child 145 cc0182a5da39
equal deleted inserted replaced
69:4a65cc85c4f3 70:0a94e3bc0ef2
    65 	iListContainer->Listbox()->SetListBoxObserver(this);
    65 	iListContainer->Listbox()->SetListBoxObserver(this);
    66 	
    66 	
    67 	iPodcastModel.FeedEngine().AddObserver(this);
    67 	iPodcastModel.FeedEngine().AddObserver(this);
    68 	iPodcastModel.ShowEngine().AddObserver(this);
    68 	iPodcastModel.ShowEngine().AddObserver(this);
    69 	
    69 	
    70 
       
    71 	// no popup options apply to S^1
       
    72 #ifndef SYMBIAN1_UI
       
    73 	iStylusPopupMenu = CAknStylusPopUpMenu::NewL( this , TPoint(0,0));
       
    74 	TResourceReader reader;
       
    75 	iCoeEnv->CreateResourceReaderLC(reader,R_QUEUEVIEW_POPUP_MENU);
       
    76 	iStylusPopupMenu->ConstructFromResourceL(reader);
       
    77 	CleanupStack::PopAndDestroy();
       
    78 #endif
       
    79 	SetEmptyTextL(R_PODCAST_EMPTY_QUEUE);
    70 	SetEmptyTextL(R_PODCAST_EMPTY_QUEUE);
    80 	}
    71 	}
    81 
    72 
    82 TKeyResponse CPodcastQueueView::OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType)
    73 TKeyResponse CPodcastQueueView::OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType)
    83 	{
    74 	{
   143 void CPodcastQueueView::HandleListBoxEventL(CEikListBox* /*aListBox*/,
   134 void CPodcastQueueView::HandleListBoxEventL(CEikListBox* /*aListBox*/,
   144 		TListBoxEvent aEventType)
   135 		TListBoxEvent aEventType)
   145 	{
   136 	{
   146 	switch (aEventType)
   137 	switch (aEventType)
   147 		{
   138 		{
   148 #ifndef SYMBIAN1_UI
       
   149 		case EEventItemClicked:
       
   150 #endif
       
   151 		case EEventEnterKeyPressed:		
   139 		case EEventEnterKeyPressed:		
   152 		case EEventItemActioned:
   140 		case EEventItemActioned:
   153 		case EEventItemDoubleClicked:
   141 		case EEventItemDoubleClicked:
   154 			break;
   142 			break;
   155 		default:
   143 		default: