本文整理汇总了C++中CGUIWindowPVRBase::DoRefresh方法的典型用法代码示例。如果您正苦于以下问题:C++ CGUIWindowPVRBase::DoRefresh方法的具体用法?C++ CGUIWindowPVRBase::DoRefresh怎么用?C++ CGUIWindowPVRBase::DoRefresh使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CGUIWindowPVRBase
的用法示例。
在下文中一共展示了CGUIWindowPVRBase::DoRefresh方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: HideChannel
bool CPVRGUIActions::HideChannel(const CFileItemPtr &item) const
{
const CPVRChannelPtr channel(item->GetPVRChannelInfoTag());
/* check if the channel tag is valid */
if (!channel || channel->ChannelNumber() <= 0)
return false;
if (!CGUIDialogYesNo::ShowAndGetInput(CVariant{19054}, // "Hide channel"
CVariant{19039}, // "Are you sure you want to hide this channel?"
CVariant{""},
CVariant{channel->ChannelName()}))
return false;
if (!g_PVRChannelGroups->GetGroupAll(channel->IsRadio())->RemoveFromGroup(channel))
return false;
CGUIWindowPVRBase *pvrWindow = dynamic_cast<CGUIWindowPVRBase *>(g_windowManager.GetWindow(g_windowManager.GetActiveWindow()));
if (pvrWindow)
pvrWindow->DoRefresh();
else
CLog::Log(LOGERROR, "CPVRGUIActions - %s - called on non-pvr window. no refresh possible.", __FUNCTION__);
return true;
}
示例2: MarkUnwatched
bool CPVRGUIActions::MarkUnwatched(const CFileItemPtr &item) const
{
if (!g_PVRRecordings->SetRecordingsPlayCount(item, 0))
return false;
CGUIWindowPVRBase *pvrWindow = dynamic_cast<CGUIWindowPVRBase *>(g_windowManager.GetWindow(g_windowManager.GetActiveWindow()));
if (pvrWindow)
pvrWindow->DoRefresh();
else
CLog::Log(LOGERROR, "CPVRGUIActions - %s - called on non-pvr window. no refresh possible.", __FUNCTION__);
return true;
}
示例3: RenameTimer
bool CPVRGUIActions::RenameTimer(const CFileItemPtr &item) const
{
if (!item->HasPVRTimerInfoTag())
return false;
const CPVRTimerInfoTagPtr timer(item->GetPVRTimerInfoTag());
std::string strNewName(timer->m_strTitle);
if (CGUIKeyboardFactory::ShowAndGetInput(strNewName,
CVariant{g_localizeStrings.Get(19042)}, // "Are you sure you want to rename this timer?"
false))
{
if (!g_PVRTimers->RenameTimer(*item, strNewName))
return false;
}
CGUIWindowPVRBase *pvrWindow = dynamic_cast<CGUIWindowPVRBase *>(g_windowManager.GetWindow(g_windowManager.GetActiveWindow()));
if (pvrWindow)
pvrWindow->DoRefresh();
else
CLog::Log(LOGERROR, "CPVRGUIActions - %s - called on non-pvr window. no refresh possible.", __FUNCTION__);
return true;
}