当前位置: 首页>>代码示例>>C++>>正文


C++ CGUIDialogPVRTimerSettings类代码示例

本文整理汇总了C++中CGUIDialogPVRTimerSettings的典型用法代码示例。如果您正苦于以下问题:C++ CGUIDialogPVRTimerSettings类的具体用法?C++ CGUIDialogPVRTimerSettings怎么用?C++ CGUIDialogPVRTimerSettings使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了CGUIDialogPVRTimerSettings类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: ChannelNamesOptionsFiller

void CGUIDialogPVRTimerSettings::ChannelNamesOptionsFiller(const CSetting *setting, std::vector< std::pair<std::string, int> > &list, int &current, void *data)
{
  if (data == NULL)
    return;

  CGUIDialogPVRTimerSettings *dialog = static_cast<CGUIDialogPVRTimerSettings*>(data);
  if (dialog == NULL)
    return;

  dialog->getChannelNames(setting->GetId() == SETTING_TMR_CHNAME_RADIO, list, current, false);
}
开发者ID:Inz999,项目名称:xbmc,代码行数:11,代码来源:GUIDialogPVRTimerSettings.cpp

示例2: ShowTimerSettings

  bool CPVRGUIActions::ShowTimerSettings(const CPVRTimerInfoTagPtr &timer) const
  {
    CGUIDialogPVRTimerSettings* pDlgInfo = dynamic_cast<CGUIDialogPVRTimerSettings*>(g_windowManager.GetWindow(WINDOW_DIALOG_PVR_TIMER_SETTING));
    if (!pDlgInfo)
    {
      CLog::Log(LOGERROR, "CPVRGUIActions - %s - unable to get WINDOW_DIALOG_PVR_TIMER_SETTING!", __FUNCTION__);
      return false;
    }

    pDlgInfo->SetTimer(timer);
    pDlgInfo->Open();

    return pDlgInfo->IsConfirmed();
  }
开发者ID:NedScott,项目名称:xbmc,代码行数:14,代码来源:PVRGUIActions.cpp

示例3: ShowTimerSettings

bool CGUIWindowPVRBase::ShowTimerSettings(CFileItem *item)
{
  if (!item->IsPVRTimer())
    return false;

  CGUIDialogPVRTimerSettings* pDlgInfo = (CGUIDialogPVRTimerSettings*)g_windowManager.GetWindow(WINDOW_DIALOG_PVR_TIMER_SETTING);

  if (!pDlgInfo)
    return false;

  pDlgInfo->SetTimer(item);
  pDlgInfo->Open();

  return pDlgInfo->IsConfirmed();
}
开发者ID:MrMC,项目名称:mrmc,代码行数:15,代码来源:GUIWindowPVRBase.cpp

示例4: ShowTimerSettings

bool CGUIWindowPVRBase::ShowTimerSettings(const CPVRTimerInfoTagPtr &timer)
{
  CGUIDialogPVRTimerSettings* pDlgInfo = (CGUIDialogPVRTimerSettings*)g_windowManager.GetWindow(WINDOW_DIALOG_PVR_TIMER_SETTING);

  if (!pDlgInfo)
  {
    CLog::Log(LOGERROR, "CGUIWindowPVRBase - %s - unable to get WINDOW_DIALOG_PVR_TIMER_SETTING!", __FUNCTION__);
    return false;
  }

  pDlgInfo->SetTimer(timer);
  pDlgInfo->Open();

  return pDlgInfo->IsConfirmed();
}
开发者ID:PeterDaveHelloKitchen,项目名称:xbmc,代码行数:15,代码来源:GUIWindowPVRBase.cpp

示例5: ShowTimerSettings

bool CGUIWindowPVRCommon::ShowTimerSettings(CFileItem *item)
{
  /* Check item is TV timer information tag */
  if (!item->IsPVRTimer())
  {
    CLog::Log(LOGERROR, "CGUIWindowPVRTimers: Can't open timer settings dialog, no timer info tag!");
    return false;
  }

  /* Load timer settings dialog */
  CGUIDialogPVRTimerSettings* pDlgInfo = (CGUIDialogPVRTimerSettings*)g_windowManager.GetWindow(WINDOW_DIALOG_PVR_TIMER_SETTING);

  if (!pDlgInfo)
    return false;

  /* inform dialog about the file item */
  pDlgInfo->SetTimer(item);

  /* Open dialog window */
  pDlgInfo->DoModal();

  /* Get modify flag from window and return it to caller */
  return pDlgInfo->GetOK();
}
开发者ID:Omel,项目名称:xbmc,代码行数:24,代码来源:GUIWindowPVRCommon.cpp


注:本文中的CGUIDialogPVRTimerSettings类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。