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; } }
void CPVRManager::SetPlayingGroup(const CPVRChannelGroupPtr &group) { if (m_channelGroups && group) m_channelGroups->Get(group->IsRadio())->SetSelectedGroup(group); }
void CPVRManager::SetPlayingGroup(CPVRChannelGroupPtr group) { m_channelGroups->Get(group->IsRadio())->SetSelectedGroup(group); }