本文整理汇总了C++中CGUIDialogPVRGroupManager::Open方法的典型用法代码示例。如果您正苦于以下问题:C++ CGUIDialogPVRGroupManager::Open方法的具体用法?C++ CGUIDialogPVRGroupManager::Open怎么用?C++ CGUIDialogPVRGroupManager::Open使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CGUIDialogPVRGroupManager
的用法示例。
在下文中一共展示了CGUIDialogPVRGroupManager::Open方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnSettingAction
void CPVRManager::OnSettingAction(const CSetting *setting)
{
if (setting == NULL)
return;
const std::string &settingId = setting->GetId();
if (settingId == CSettings::SETTING_PVRMENU_SEARCHICONS)
{
if (IsStarted())
TriggerSearchMissingChannelIcons();
}
else if (settingId == CSettings::SETTING_PVRMANAGER_RESETDB)
{
if (CheckParentalPIN(g_localizeStrings.Get(19262)) &&
HELPERS::ShowYesNoDialogText(CVariant{19098}, CVariant{19186}) == DialogResponse::YES)
{
CDateTime::ResetTimezoneBias();
ResetDatabase(false);
}
}
else if (settingId == CSettings::SETTING_EPG_RESETEPG)
{
if (HELPERS::ShowYesNoDialogText(CVariant{19098}, CVariant{19188}) == DialogResponse::YES)
{
CDateTime::ResetTimezoneBias();
ResetDatabase(true);
}
}
else if (settingId == CSettings::SETTING_PVRMANAGER_CHANNELSCAN)
{
if (IsStarted())
StartChannelScan();
}
else if (settingId == CSettings::SETTING_PVRMANAGER_CHANNELMANAGER)
{
if (IsStarted())
{
CGUIDialogPVRChannelManager *dialog = (CGUIDialogPVRChannelManager *)g_windowManager.GetWindow(WINDOW_DIALOG_PVR_CHANNEL_MANAGER);
if (dialog)
dialog->Open();
}
}
else if (settingId == CSettings::SETTING_PVRMANAGER_GROUPMANAGER)
{
if (IsStarted())
{
CGUIDialogPVRGroupManager *dialog = (CGUIDialogPVRGroupManager *)g_windowManager.GetWindow(WINDOW_DIALOG_PVR_GROUP_MANAGER);
if (dialog)
dialog->Open();
}
}
else if (settingId == CSettings::SETTING_PVRCLIENT_MENUHOOK)
{
if (IsStarted())
m_addons->ProcessMenuHooks(-1, PVR_MENUHOOK_SETTING, NULL);
}
}
示例2: ShowGroupManager
void CGUIWindowPVRChannels::ShowGroupManager(void)
{
/* Load group manager dialog */
CGUIDialogPVRGroupManager* pDlgInfo = (CGUIDialogPVRGroupManager*)g_windowManager.GetWindow(WINDOW_DIALOG_PVR_GROUP_MANAGER);
if (!pDlgInfo)
return;
pDlgInfo->SetRadio(m_bRadio);
pDlgInfo->Open();
return;
}
示例3: OnClickButtonGroupManager
bool CGUIDialogPVRChannelManager::OnClickButtonGroupManager(CGUIMessage &message)
{
/* Load group manager dialog */
CGUIDialogPVRGroupManager* pDlgInfo = g_windowManager.GetWindow<CGUIDialogPVRGroupManager>(WINDOW_DIALOG_PVR_GROUP_MANAGER);
if (!pDlgInfo)
return false;
pDlgInfo->SetRadio(m_bIsRadio);
/* Open dialog window */
pDlgInfo->Open();
Update();
return true;
}