本文整理汇总了C++中CFileItemPtr::IsPVRTimer方法的典型用法代码示例。如果您正苦于以下问题:C++ CFileItemPtr::IsPVRTimer方法的具体用法?C++ CFileItemPtr::IsPVRTimer怎么用?C++ CFileItemPtr::IsPVRTimer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CFileItemPtr
的用法示例。
在下文中一共展示了CFileItemPtr::IsPVRTimer方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnContextButton
bool CGUIWindowPVRBase::OnContextButton(int itemNumber, CONTEXT_BUTTON button)
{
bool bReturn = false;
switch(button)
{
case CONTEXT_BUTTON_MENU_HOOKS:
if (itemNumber >= 0 && itemNumber < m_vecItems->Size())
{
CFileItemPtr item = m_vecItems->Get(itemNumber);
if (item->IsEPG() && item->GetEPGInfoTag()->HasPVRChannel())
g_PVRClients->ProcessMenuHooks(item->GetEPGInfoTag()->ChannelTag()->ClientID(), PVR_MENUHOOK_EPG, item.get());
else if (item->IsPVRChannel())
g_PVRClients->ProcessMenuHooks(item->GetPVRChannelInfoTag()->ClientID(), PVR_MENUHOOK_CHANNEL, item.get());
else if (item->IsDeletedPVRRecording())
g_PVRClients->ProcessMenuHooks(item->GetPVRRecordingInfoTag()->m_iClientId, PVR_MENUHOOK_DELETED_RECORDING, item.get());
else if (item->IsUsablePVRRecording())
g_PVRClients->ProcessMenuHooks(item->GetPVRRecordingInfoTag()->m_iClientId, PVR_MENUHOOK_RECORDING, item.get());
else if (item->IsPVRTimer())
g_PVRClients->ProcessMenuHooks(item->GetPVRTimerInfoTag()->m_iClientId, PVR_MENUHOOK_TIMER, item.get());
bReturn = true;
}
break;
case CONTEXT_BUTTON_FIND:
{
int windowSearchId = m_bRadio ? WINDOW_RADIO_SEARCH : WINDOW_TV_SEARCH;
CGUIWindowPVRBase *windowSearch = (CGUIWindowPVRBase*) g_windowManager.GetWindow(windowSearchId);
if (windowSearch && itemNumber >= 0 && itemNumber < m_vecItems->Size())
{
CFileItemPtr item = m_vecItems->Get(itemNumber);
g_windowManager.ActivateWindow(windowSearchId);
bReturn = windowSearch->OnContextButton(*item.get(), button);
}
break;
}
default:
bReturn = false;
}
return bReturn || CGUIMediaWindow::OnContextButton(itemNumber, button);
}