323 HBufC* emptyText = iEikonEnv->AllocReadResourceLC(aResourceId); |
323 HBufC* emptyText = iEikonEnv->AllocReadResourceLC(aResourceId); |
324 iListContainer->Listbox()->View()->SetListEmptyTextL(*emptyText); |
324 iListContainer->Listbox()->View()->SetListEmptyTextL(*emptyText); |
325 CleanupStack::PopAndDestroy(emptyText); |
325 CleanupStack::PopAndDestroy(emptyText); |
326 } |
326 } |
327 |
327 |
328 void CPodcastListView::ShowOkMessage(TDesC &aText) |
328 void CPodcastListView::ShowOkMessageL(TDesC &aText) |
329 { |
329 { |
330 CAknNoteDialog* dlg= new(ELeave) CAknNoteDialog(); |
330 CAknNoteDialog* dlg= new(ELeave) CAknNoteDialog(); |
331 CleanupStack::PushL(dlg); |
331 CleanupStack::PushL(dlg); |
332 dlg->SetTextL(aText); |
332 dlg->SetTextL(aText); |
333 CleanupStack::Pop(dlg); |
333 CleanupStack::Pop(dlg); |
334 dlg->ExecuteLD(R_MESSAGEDLG_OK); |
334 dlg->ExecuteLD(R_MESSAGEDLG_OK); |
335 } |
335 } |
336 |
336 |
337 void CPodcastListView::ShowErrorMessage(TDesC &aText) |
337 void CPodcastListView::ShowErrorMessageL(TDesC &aText) |
338 { |
338 { |
339 CAknNoteDialog* dlg= new(ELeave) CAknNoteDialog(); |
339 CAknNoteDialog* dlg= new(ELeave) CAknNoteDialog(); |
340 CleanupStack::PushL(dlg); |
340 CleanupStack::PushL(dlg); |
341 dlg->SetTextL(aText); |
341 dlg->SetTextL(aText); |
342 CleanupStack::Pop(dlg); |
342 CleanupStack::Pop(dlg); |
343 dlg->ExecuteLD(R_ERRORDLG_OK); |
343 dlg->ExecuteLD(R_ERRORDLG_OK); |
344 } |
344 } |
345 |
345 |
346 TInt CPodcastListView::ShowQueryMessage(TDesC &aText) |
346 TInt CPodcastListView::ShowQueryMessageL(TDesC &aText) |
347 { |
347 { |
348 CAknQueryDialog* dlg= new(ELeave) CAknQueryDialog(); |
348 CAknQueryDialog* dlg= new(ELeave) CAknQueryDialog(); |
349 |
349 |
350 CleanupStack::PushL(dlg); |
350 CleanupStack::PushL(dlg); |
351 dlg->SetPromptL(aText); |
351 dlg->SetPromptL(aText); |
373 |
373 |
374 |
374 |
375 void CPodcastListView::HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& /* aPenEventScreenLocation */) |
375 void CPodcastListView::HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& /* aPenEventScreenLocation */) |
376 { |
376 { |
377 DP("CPodcastListView::HandleLongTapEventL BEGIN"); |
377 DP("CPodcastListView::HandleLongTapEventL BEGIN"); |
378 iListContainer->SetLongTapDetected(ETrue); |
378 iListContainer->SetLongTapDetectedL(ETrue); |
379 const TInt KListboxDefaultHeight = 19; // for some reason it returns 19 for an empty listbox in S^1 |
379 const TInt KListboxDefaultHeight = 19; // for some reason it returns 19 for an empty listbox in S^1 |
380 TInt lbHeight = iListContainer->Listbox()->CalcHeightBasedOnNumOfItems( |
380 TInt lbHeight = iListContainer->Listbox()->CalcHeightBasedOnNumOfItems( |
381 iListContainer->Listbox()->Model()->NumberOfItems()) - KListboxDefaultHeight; |
381 iListContainer->Listbox()->Model()->NumberOfItems()) - KListboxDefaultHeight; |
382 |
382 |
383 if(iStylusPopupMenu && aPenEventLocation.iY < lbHeight) |
383 if(iStylusPopupMenu && aPenEventLocation.iY < lbHeight) |
419 if (aType==EEventKey) |
419 if (aType==EEventKey) |
420 { |
420 { |
421 switch (aKeyEvent.iCode) |
421 switch (aKeyEvent.iCode) |
422 { |
422 { |
423 case EKeyRightArrow: |
423 case EKeyRightArrow: |
424 ((CPodcastAppUi*)AppUi())->TabRight(); |
424 ((CPodcastAppUi*)AppUi())->TabRightL(); |
425 return EKeyWasConsumed; |
425 return EKeyWasConsumed; |
426 case EKeyLeftArrow: |
426 case EKeyLeftArrow: |
427 ((CPodcastAppUi*)AppUi())->TabLeft(); |
427 ((CPodcastAppUi*)AppUi())->TabLeftL(); |
428 return EKeyWasConsumed; |
428 return EKeyWasConsumed; |
429 } |
429 } |
430 } |
430 } |
431 return EKeyWasNotConsumed; |
431 return EKeyWasNotConsumed; |
432 } |
432 } |