本文整理汇总了C++中CPVRChannelGroupPtr::IsRadio方法的典型用法代码示例。如果您正苦于以下问题:C++ CPVRChannelGroupPtr::IsRadio方法的具体用法?C++ CPVRChannelGroupPtr::IsRadio怎么用?C++ CPVRChannelGroupPtr::IsRadio使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CPVRChannelGroupPtr
的用法示例。
在下文中一共展示了CPVRChannelGroupPtr::IsRadio方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: FillChannelGroupDetails
void CPVROperations::FillChannelGroupDetails(const CPVRChannelGroupPtr &channelGroup, const CVariant ¶meterObject, CVariant &result, bool append /* = false */)
{
if (channelGroup == NULL)
return;
CVariant object(CVariant::VariantTypeObject);
object["channelgroupid"] = channelGroup->GroupID();
object["channeltype"] = channelGroup->IsRadio() ? "radio" : "tv";
object["label"] = channelGroup->GroupName();
if (append)
result.append(object);
else
{
CFileItemList channels;
channelGroup->GetMembers(channels);
object["channels"] = CVariant(CVariant::VariantTypeArray);
HandleFileItemList("channelid", false, "channels", channels, parameterObject["channels"], object, false);
result = object;
}
}
示例2: SetPlayingGroup
void CPVRManager::SetPlayingGroup(const CPVRChannelGroupPtr &group)
{
if (m_channelGroups && group)
m_channelGroups->Get(group->IsRadio())->SetSelectedGroup(group);
}
示例3: SetPlayingGroup
void CPVRManager::SetPlayingGroup(CPVRChannelGroupPtr group)
{
m_channelGroups->Get(group->IsRadio())->SetSelectedGroup(group);
}