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); } }
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); } }
void CGUIWindowPVRChannels::ShowChannelManager() { CGUIDialogPVRChannelManager *dialog = (CGUIDialogPVRChannelManager *)g_windowManager.GetWindow(WINDOW_DIALOG_PVR_CHANNEL_MANAGER); if (dialog) dialog->Open(); }