![]() |
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <PVRChannelGroupsContainer.h>
Public Member Functions | |
CPVRChannelGroupsContainer () | |
Create a new container for all channel groups. | |
virtual | ~CPVRChannelGroupsContainer () |
Destroy this container. | |
bool | Update (const std::vector< std::shared_ptr< CPVRClient > > &clients) |
Update all channel groups and all channels from PVR database and from given clients. | |
bool | UpdateFromClients (const std::vector< std::shared_ptr< CPVRClient > > &clients, bool bChannelsOnly=false) |
Update data with groups and channels from the given clients, sync with local data. | |
void | Unload () |
Unload and destruct all channel groups and all channels in them. | |
std::shared_ptr< CPVRChannelGroups > | GetTV () const |
Get the TV channel groups. | |
std::shared_ptr< CPVRChannelGroups > | GetRadio () const |
Get the radio channel groups. | |
std::shared_ptr< CPVRChannelGroups > | Get (bool bRadio) const |
Get the radio or TV channel groups. | |
std::shared_ptr< CPVRChannelGroup > | GetGroupAllTV () const |
Get the group containing all TV channels. | |
std::shared_ptr< CPVRChannelGroup > | GetGroupAllRadio () const |
Get the group containing all radio channels. | |
std::shared_ptr< CPVRChannelGroup > | GetGroupAll (bool bRadio) const |
Get the group containing all TV or radio channels. | |
std::shared_ptr< CPVRChannelGroup > | GetGroupByPath (const std::string &path) const |
Get a group given its path. | |
std::shared_ptr< CPVRChannelGroup > | GetByIdFromAll (int iGroupId) const |
Get a group given its ID. | |
std::shared_ptr< CPVRChannel > | GetChannelById (int iChannelId) const |
Get a channel given its database ID. | |
std::shared_ptr< CPVRChannel > | GetChannelForEpgTag (const std::shared_ptr< const CPVREpgInfoTag > &epgTag) const |
Get the channel for the given epg tag. | |
std::shared_ptr< CPVRChannel > | GetByPath (const std::string &strPath) const |
Get a channel given its path. | |
std::shared_ptr< CPVRChannelGroupMember > | GetChannelGroupMemberByPath (const std::string &strPath) const |
Get a channel group member given its path. | |
std::shared_ptr< CPVRChannel > | GetByUniqueID (int iUniqueChannelId, int iClientID) const |
Get a channel given its channel ID from all containers. | |
std::shared_ptr< CPVRChannelGroupMember > | GetLastPlayedChannelGroupMember () const |
Get the channel group member that was played last. | |
bool | HasChannelForProvider (bool isRadio, int clientId, int providerId) const |
Check whether at least one channel is offered by the given provider. | |
unsigned int | GetChannelCountByProvider (bool isRadio, int clientId, int providerId) const |
Get the total count of channels offered by the given provider. | |
int | CleanupCachedImages () |
Erase stale texture db entries and image files. | |
CPVRChannelGroupsContainer::CPVRChannelGroupsContainer | ( | ) |
Create a new container for all channel groups.
|
virtual |
Destroy this container.
int CPVRChannelGroupsContainer::CleanupCachedImages | ( | ) |
Erase stale texture db entries and image files.
std::shared_ptr< CPVRChannelGroups > CPVRChannelGroupsContainer::Get | ( | bool | bRadio | ) | const |
Get the radio or TV channel groups.
bRadio | If true, get the radio channel groups. Get the TV channel groups otherwise. |
std::shared_ptr< CPVRChannelGroup > CPVRChannelGroupsContainer::GetByIdFromAll | ( | int | iGroupId | ) | const |
Get a group given its ID.
iGroupId | The ID of the group. |
std::shared_ptr< CPVRChannel > CPVRChannelGroupsContainer::GetByPath | ( | const std::string & | strPath | ) | const |
Get a channel given its path.
strPath | The path. |
std::shared_ptr< CPVRChannel > CPVRChannelGroupsContainer::GetByUniqueID | ( | int | iUniqueChannelId, |
int | iClientID ) const |
Get a channel given its channel ID from all containers.
iUniqueChannelId | The unique channel id on the client. |
iClientID | The ID of the client. |
std::shared_ptr< CPVRChannel > CPVRChannelGroupsContainer::GetChannelById | ( | int | iChannelId | ) | const |
Get a channel given its database ID.
iChannelId | The ID of the channel. |
unsigned int CPVRChannelGroupsContainer::GetChannelCountByProvider | ( | bool | isRadio, |
int | clientId, | ||
int | providerId ) const |
Get the total count of channels offered by the given provider.
isRadio | Check radio or TV channels. |
clientId | The clientId of the provider. |
providerId | The providerId. |
std::shared_ptr< CPVRChannel > CPVRChannelGroupsContainer::GetChannelForEpgTag | ( | const std::shared_ptr< const CPVREpgInfoTag > & | epgTag | ) | const |
Get the channel for the given epg tag.
epgTag | The epg tag. |
std::shared_ptr< CPVRChannelGroupMember > CPVRChannelGroupsContainer::GetChannelGroupMemberByPath | ( | const std::string & | strPath | ) | const |
Get a channel group member given its path.
strPath | The path. |
std::shared_ptr< CPVRChannelGroup > CPVRChannelGroupsContainer::GetGroupAll | ( | bool | bRadio | ) | const |
Get the group containing all TV or radio channels.
bRadio | If true, get the group containing all radio channels. Get the group containing all TV channels otherwise. |
|
inline |
Get the group containing all radio channels.
|
inline |
Get the group containing all TV channels.
std::shared_ptr< CPVRChannelGroup > CPVRChannelGroupsContainer::GetGroupByPath | ( | const std::string & | path | ) | const |
Get a group given its path.
path | The path to the channel group. |
std::shared_ptr< CPVRChannelGroupMember > CPVRChannelGroupsContainer::GetLastPlayedChannelGroupMember | ( | ) | const |
Get the channel group member that was played last.
|
inline |
Get the radio channel groups.
|
inline |
Get the TV channel groups.
bool CPVRChannelGroupsContainer::HasChannelForProvider | ( | bool | isRadio, |
int | clientId, | ||
int | providerId ) const |
Check whether at least one channel is offered by the given provider.
isRadio | Check radio or TV channels. |
clientId | The clientId to check. |
providerId | The providerId to check. |
void CPVRChannelGroupsContainer::Unload | ( | ) |
Unload and destruct all channel groups and all channels in them.
bool CPVRChannelGroupsContainer::Update | ( | const std::vector< std::shared_ptr< CPVRClient > > & | clients | ) |
bool CPVRChannelGroupsContainer::UpdateFromClients | ( | const std::vector< std::shared_ptr< CPVRClient > > & | clients, |
bool | bChannelsOnly = false ) |
Update data with groups and channels from the given clients, sync with local data.
clients | The clients to fetch data from. Leave empty to fetch data from all created clients. |
bChannelsOnly | Set to true to only update channels, not the groups themselves. |