aboutsummaryrefslogtreecommitdiff
path: root/xbmc/pvr/channels/PVRChannelGroupsContainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/pvr/channels/PVRChannelGroupsContainer.cpp')
-rw-r--r--xbmc/pvr/channels/PVRChannelGroupsContainer.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/xbmc/pvr/channels/PVRChannelGroupsContainer.cpp b/xbmc/pvr/channels/PVRChannelGroupsContainer.cpp
index 13f53da56e..1da1ef5acb 100644
--- a/xbmc/pvr/channels/PVRChannelGroupsContainer.cpp
+++ b/xbmc/pvr/channels/PVRChannelGroupsContainer.cpp
@@ -168,6 +168,26 @@ std::shared_ptr<CPVRChannelGroupMember> CPVRChannelGroupsContainer::
return channelTV;
}
+bool CPVRChannelGroupsContainer::HasChannelForProvider(bool isRadio,
+ int clientId,
+ int providerId) const
+{
+ if (isRadio)
+ return m_groupsRadio->GetGroupAll()->HasChannelForProvider(clientId, providerId);
+ else
+ return m_groupsTV->GetGroupAll()->HasChannelForProvider(clientId, providerId);
+}
+
+unsigned int CPVRChannelGroupsContainer::GetChannelCountByProvider(bool isRadio,
+ int clientId,
+ int providerId) const
+{
+ if (isRadio)
+ return m_groupsRadio->GetGroupAll()->GetChannelCountByProvider(clientId, providerId);
+ else
+ return m_groupsTV->GetGroupAll()->GetChannelCountByProvider(clientId, providerId);
+}
+
int CPVRChannelGroupsContainer::CleanupCachedImages()
{
return m_groupsTV->CleanupCachedImages() + m_groupsRadio->CleanupCachedImages();