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


C++ CEpg::Get方法代码示例

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


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

示例1: GetEPG

int CPVRChannel::GetEPG(CFileItemList &results) const
{
    CEpg *epg = GetEPG();
    if (!epg)
    {
        CLog::Log(LOGDEBUG, "PVR - %s - cannot get EPG for channel '%s'",
                  __FUNCTION__, m_strChannelName.c_str());
        return -1;
    }

    return epg->Get(results);
}
开发者ID:Gujs,项目名称:xbmc,代码行数:12,代码来源:PVRChannel.cpp

示例2: GetEPGAll

int CPVRChannelGroup::GetEPGAll(CFileItemList &results) const
{
  int iInitialSize = results.Size();
  CEpg* epg;
  CPVRChannelPtr channel;
  CSingleLock lock(m_critSection);

  for (PVR_CHANNEL_GROUP_SORTED_MEMBERS::const_iterator it = m_sortedMembers.begin(); it != m_sortedMembers.end(); ++it)
  {
    channel = (*it).channel;
    if (!channel->IsHidden() && (epg = channel->GetEPG()) != NULL)
    {
      // XXX channel pointers aren't set in some occasions. this works around the issue, but is not very nice
      epg->SetChannel(channel);
      epg->Get(results);
    }
  }

  return results.Size() - iInitialSize;
}
开发者ID:sonics620,项目名称:xbmc,代码行数:20,代码来源:PVRChannelGroup.cpp

示例3: GetEPGAll

int CPVRChannelGroup::GetEPGAll(CFileItemList &results)
{
  int iInitialSize = results.Size();
  CSingleLock lock(m_critSection);

  for (unsigned int iChannelPtr = 0; iChannelPtr < m_members.size(); iChannelPtr++)
  {
    if (m_members.at(iChannelPtr).channel && !m_members.at(iChannelPtr).channel->IsHidden())
    {
      CEpg* epg = m_members.at(iChannelPtr).channel->GetEPG();
      if (epg)
      {
        // XXX channel pointers aren't set in some occasions. this works around the issue, but is not very nice
        epg->SetChannel(m_members.at(iChannelPtr).channel);
        epg->Get(results);
      }
    }
  }

  return results.Size() - iInitialSize;
}
开发者ID:Dr-Romantic,项目名称:xbmc,代码行数:21,代码来源:PVRChannelGroup.cpp

示例4: GetEPGAll

int CPVRChannelGroup::GetEPGAll(CFileItemList &results) const
{
  int iInitialSize = results.Size();
  CEpg* epg;
  CSingleLock lock(m_critSection);

  for (std::vector<PVRChannelGroupMember>::const_iterator it = m_members.begin(); it != m_members.end(); ++it)
  {
    if ((*it).channel && !(*it).channel->IsHidden())
    {
      epg = (*it).channel->GetEPG();
      if (epg)
      {
        // XXX channel pointers aren't set in some occasions. this works around the issue, but is not very nice
        epg->SetChannel((*it).channel);
        epg->Get(results);
      }
    }
  }

  return results.Size() - iInitialSize;
}
开发者ID:DanTheMan827,项目名称:xbmc,代码行数:22,代码来源:PVRChannelGroup.cpp

示例5: GetBroadcasts

JSONRPC_STATUS CPVROperations::GetBroadcasts(const std::string &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result)
{
  if (!g_PVRManager.IsStarted())
    return FailedToExecute;

  CPVRChannelGroupsContainer *channelGroupContainer = g_PVRManager.ChannelGroups();
  if (channelGroupContainer == NULL)
    return FailedToExecute;

  CPVRChannelPtr channel = channelGroupContainer->GetChannelById((int)parameterObject["channelid"].asInteger());
  if (channel == NULL)
    return InvalidParams;

  CEpg *channelEpg = channel->GetEPG();
  if (channelEpg == NULL)
    return InternalError;

  CFileItemList programFull;
  channelEpg->Get(programFull);

  HandleFileItemList("broadcastid", false, "broadcasts", programFull, parameterObject, result, programFull.Size(), true);

  return OK;
}
开发者ID:7orlum,项目名称:xbmc,代码行数:24,代码来源:PVROperations.cpp


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