application/src/PodcastFeedView.cpp
changeset 8 aab3aa4acdd6
parent 7 a7a43293ae56
child 11 f6c975c3b702
--- a/application/src/PodcastFeedView.cpp	Thu Feb 25 17:12:04 2010 +0000
+++ b/application/src/PodcastFeedView.cpp	Thu Feb 25 17:33:06 2010 +0000
@@ -939,3 +939,23 @@
 	{
 	iEikonEnv->GetErrorText(aErrorMessage, aErrorCode);
 	}
+
+void CPodcastFeedView::HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& /* aPenEventScreenLocation */)
+{
+	DP("CPodcastListView::HandleLongTapEventL BEGIN");
+	
+	if (iUpdatingAllRunning) {
+		return; // we don't allow feed manipulation while update is running
+	}
+	
+	const TInt KListboxDefaultHeight = 19; // for some reason it returns 19 for an empty listbox in S^1
+	TInt lbHeight = iListContainer->Listbox()->CalcHeightBasedOnNumOfItems(
+			iListContainer->Listbox()->Model()->NumberOfItems()) - KListboxDefaultHeight;
+
+    if(iStylusPopupMenu && aPenEventLocation.iY < lbHeight)
+    {
+		iStylusPopupMenu->ShowMenu();
+		iStylusPopupMenu->SetPosition(aPenEventLocation);
+    }
+	DP("CPodcastListView::HandleLongTapEventL END");
+}