本文整理汇总了C++中CGUIDialogPVRGuideInfo::SetProgInfo方法的典型用法代码示例。如果您正苦于以下问题:C++ CGUIDialogPVRGuideInfo::SetProgInfo方法的具体用法?C++ CGUIDialogPVRGuideInfo::SetProgInfo怎么用?C++ CGUIDialogPVRGuideInfo::SetProgInfo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CGUIDialogPVRGuideInfo
的用法示例。
在下文中一共展示了CGUIDialogPVRGuideInfo::SetProgInfo方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ShowEPGInfo
void CGUIWindowPVRCommon::ShowEPGInfo(CFileItem *item)
{
CFileItem *tag = NULL;
if (item->IsEPG())
{
tag = new CFileItem(*item);
}
else if (item->IsPVRChannel())
{
CEpgInfoTag epgnow;
if (!item->GetPVRChannelInfoTag()->GetEPGNow(epgnow))
{
CGUIDialogOK::ShowAndGetInput(19033,0,19055,0);
return;
}
tag = new CFileItem(epgnow);
}
if (tag)
{
CGUIDialogPVRGuideInfo* pDlgInfo = (CGUIDialogPVRGuideInfo*)g_windowManager.GetWindow(WINDOW_DIALOG_PVR_GUIDE_INFO);
if (!pDlgInfo)
return;
pDlgInfo->SetProgInfo(tag);
pDlgInfo->DoModal();
delete tag;
}
}
示例2: ShowInfo
void CGUIDialogPVRGuideOSD::ShowInfo(int item)
{
/* Check file item is in list range and get his pointer */
if (item < 0 || item >= (int)m_vecItems->Size()) return;
CFileItemPtr pItem = m_vecItems->Get(item);
/* Load programme info dialog */
CGUIDialogPVRGuideInfo* pDlgInfo = (CGUIDialogPVRGuideInfo*)g_windowManager.GetWindow(WINDOW_DIALOG_PVR_GUIDE_INFO);
if (!pDlgInfo)
return;
/* inform dialog about the file item and open dialog window */
pDlgInfo->SetProgInfo(pItem.get());
pDlgInfo->DoModal();
}
示例3: ShowEPGInfo
void CGUIWindowPVRBase::ShowEPGInfo(CFileItem *item)
{
CFileItem *tag = NULL;
bool bHasChannel(false);
CPVRChannelPtr channel;
if (item->IsEPG())
{
tag = new CFileItem(*item);
if (item->GetEPGInfoTag()->HasPVRChannel())
{
channel = item->GetEPGInfoTag()->ChannelTag();
bHasChannel = true;
}
}
else if (item->IsPVRTimer())
{
CEpgInfoTagPtr epg(item->GetPVRTimerInfoTag()->GetEpgInfoTag());
if (epg && epg->HasPVRChannel())
{
channel = epg->ChannelTag();
bHasChannel = true;
}
tag = new CFileItem(epg);
}
else if (item->IsPVRChannel())
{
CEpgInfoTagPtr epgnow(item->GetPVRChannelInfoTag()->GetEPGNow());
channel = item->GetPVRChannelInfoTag();
bHasChannel = true;
if (!epgnow)
{
CGUIDialogOK::ShowAndGetInput(CVariant{19033}, CVariant{19055});
return;
}
tag = new CFileItem(epgnow);
}
CGUIDialogPVRGuideInfo* pDlgInfo = (CGUIDialogPVRGuideInfo*)g_windowManager.GetWindow(WINDOW_DIALOG_PVR_GUIDE_INFO);
if (tag && (!bHasChannel || g_PVRManager.CheckParentalLock(channel)) && pDlgInfo)
{
pDlgInfo->SetProgInfo(tag);
pDlgInfo->Open();
}
delete tag;
}
示例4: ShowEPGInfo
void CGUIWindowPVRCommon::ShowEPGInfo(CFileItem *item)
{
CFileItem *tag = NULL;
bool bHasChannel(false);
CPVRChannel channel;
if (item->IsEPG())
{
tag = new CFileItem(*item);
if (item->GetEPGInfoTag()->HasPVRChannel())
{
channel = *item->GetEPGInfoTag()->ChannelTag();
bHasChannel = true;
}
}
else if (item->IsPVRChannel())
{
CEpgInfoTag epgnow;
channel = *item->GetPVRChannelInfoTag();
bHasChannel = true;
if (!item->GetPVRChannelInfoTag()->GetEPGNow(epgnow))
{
CGUIDialogOK::ShowAndGetInput(19033,0,19055,0);
return;
}
tag = new CFileItem(epgnow);
}
if (tag)
{
if (!bHasChannel || g_PVRManager.CheckParentalLock(channel))
{
CGUIDialogPVRGuideInfo* pDlgInfo = (CGUIDialogPVRGuideInfo*)g_windowManager.GetWindow(WINDOW_DIALOG_PVR_GUIDE_INFO);
if (pDlgInfo)
{
pDlgInfo->SetProgInfo(tag);
pDlgInfo->DoModal();
UpdateData();
}
}
delete tag;
}
}
示例5: ShowEPGInfo
void CGUIWindowPVRBase::ShowEPGInfo(CFileItem *item)
{
CEpgInfoTagPtr epgTag;
CPVRChannelPtr channel;
if (item->IsEPG())
{
epgTag = item->GetEPGInfoTag();
channel = epgTag->ChannelTag();
}
else if (item->IsPVRChannel())
{
channel = item->GetPVRChannelInfoTag();
epgTag = channel->GetEPGNow();
}
else if (item->IsPVRTimer())
{
epgTag = item->GetPVRTimerInfoTag()->GetEpgInfoTag();
if (epgTag && epgTag->HasPVRChannel())
channel = epgTag->ChannelTag();
}
if (channel && !g_PVRManager.CheckParentalLock(channel))
return;
if (!epgTag)
{
CLog::Log(LOGERROR, "CGUIWindowPVRBase - %s - no epg tag!", __FUNCTION__);
return;
}
CGUIDialogPVRGuideInfo* pDlgInfo = (CGUIDialogPVRGuideInfo*)g_windowManager.GetWindow(WINDOW_DIALOG_PVR_GUIDE_INFO);
if (!pDlgInfo)
{
CLog::Log(LOGERROR, "CGUIWindowPVRBase - %s - unable to get WINDOW_DIALOG_PVR_GUIDE_INFO!", __FUNCTION__);
return;
}
pDlgInfo->SetProgInfo(epgTag);
pDlgInfo->Open();
}
示例6: ShowEPGInfo
bool CPVRGUIActions::ShowEPGInfo(const CFileItemPtr &item) const
{
const CPVRChannelPtr channel(CPVRItem(item).GetChannel());
if (channel && !g_PVRManager.CheckParentalLock(channel))
return false;
const CEpgInfoTagPtr epgTag(CPVRItem(item).GetEpgInfoTag());
if (!epgTag)
{
CLog::Log(LOGERROR, "CPVRGUIActions - %s - no epg tag!", __FUNCTION__);
return false;
}
CGUIDialogPVRGuideInfo* pDlgInfo = dynamic_cast<CGUIDialogPVRGuideInfo*>(g_windowManager.GetWindow(WINDOW_DIALOG_PVR_GUIDE_INFO));
if (!pDlgInfo)
{
CLog::Log(LOGERROR, "CPVRGUIActions - %s - unable to get WINDOW_DIALOG_PVR_GUIDE_INFO!", __FUNCTION__);
return false;
}
pDlgInfo->SetProgInfo(epgTag);
pDlgInfo->Open();
return true;
}