bool CGUIWindowPVRGuide::OnClickList(CGUIMessage &message) { bool bReturn = false; if (IsSelectedList(message)) { int iAction = message.GetParam1(); int iItem = m_parent->m_viewControl.GetSelectedItem(); /* get the fileitem pointer */ if (iItem < 0 || iItem >= (int) m_parent->m_vecItems->Size()) return bReturn; CFileItemPtr pItem = m_parent->m_vecItems->Get(iItem); /* process actions */ bReturn = true; if ((iAction == ACTION_SELECT_ITEM) || (iAction == ACTION_SHOW_INFO || iAction == ACTION_MOUSE_LEFT_CLICK)) ShowEPGInfo(pItem.get()); else if (iAction == ACTION_RECORD) ActionRecord(pItem.get()); else if (iAction == ACTION_PLAY) ActionPlayEpg(pItem.get()); else if (iAction == ACTION_CONTEXT_MENU || iAction == ACTION_MOUSE_RIGHT_CLICK) m_parent->OnPopupMenu(iItem); else bReturn = false; } return bReturn; }
bool CGUIWindowPVRSearch::ActionShowSearch(CFileItem *item) { if (item->m_strPath == "pvr://guide/searchresults/empty.epg") ShowSearchResults(); else ShowEPGInfo(item); return true; }
bool CGUIWindowPVRGuide::OnContextButtonInfo(CFileItem *item, CONTEXT_BUTTON button) { bool bReturn = false; if (button == CONTEXT_BUTTON_INFO) { ShowEPGInfo(item); bReturn = true; } return bReturn; }