本文整理汇总了C++中CGUIDialogPVRChannelManager::DoModal方法的典型用法代码示例。如果您正苦于以下问题:C++ CGUIDialogPVRChannelManager::DoModal方法的具体用法?C++ CGUIDialogPVRChannelManager::DoModal怎么用?C++ CGUIDialogPVRChannelManager::DoModal使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CGUIDialogPVRChannelManager
的用法示例。
在下文中一共展示了CGUIDialogPVRChannelManager::DoModal方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnSettingAction
void CPVRManager::OnSettingAction(const CSetting *setting)
{
if (setting == NULL)
return;
const std::string &settingId = setting->GetId();
if (settingId == "pvrmenu.searchicons")
{
if (IsStarted())
SearchMissingChannelIcons();
}
else if (settingId == "pvrmanager.resetdb")
{
if (CheckParentalPIN(g_localizeStrings.Get(19262).c_str()) &&
CGUIDialogYesNo::ShowAndGetInput(19098, 19186, 750, 0))
{
CDateTime::ResetTimezoneBias();
ResetDatabase(false);
}
}
else if (settingId == "epg.resetepg")
{
if (CGUIDialogYesNo::ShowAndGetInput(19098, 19188, 750, 0))
{
CDateTime::ResetTimezoneBias();
ResetDatabase(true);
}
}
else if (settingId == "pvrmanager.channelscan")
{
if (IsStarted())
StartChannelScan();
}
else if (settingId == "pvrmanager.channelmanager")
{
if (IsStarted())
{
CGUIDialogPVRChannelManager *dialog = (CGUIDialogPVRChannelManager *)g_windowManager.GetWindow(WINDOW_DIALOG_PVR_CHANNEL_MANAGER);
if (dialog)
dialog->DoModal();
}
}
else if (settingId == "pvrclient.menuhook")
{
if (IsStarted())
Clients()->ProcessMenuHooks(-1, PVR_MENUHOOK_SETTING, NULL);
}
}
示例2: ShowChannelManager
void CGUIWindowPVRChannels::ShowChannelManager()
{
CGUIDialogPVRChannelManager *dialog = (CGUIDialogPVRChannelManager *)g_windowManager.GetWindow(WINDOW_DIALOG_PVR_CHANNEL_MANAGER);
if (dialog)
dialog->DoModal();
}