|
kodi
|
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. More... | |
| 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. More... | |
| void | Unload () |
| Unload and destruct all channel groups and all channels in them. | |
| CPVRChannelGroups * | GetTV () const |
| Get the TV channel groups. More... | |
| CPVRChannelGroups * | GetRadio () const |
| Get the radio channel groups. More... | |
| CPVRChannelGroups * | Get (bool bRadio) const |
| Get the radio or TV channel groups. More... | |
| std::shared_ptr< CPVRChannelGroup > | GetGroupAllTV () const |
| Get the group containing all TV channels. More... | |
| std::shared_ptr< CPVRChannelGroup > | GetGroupAllRadio () const |
| Get the group containing all radio channels. More... | |
| std::shared_ptr< CPVRChannelGroup > | GetGroupAll (bool bRadio) const |
| Get the group containing all TV or radio channels. More... | |
| std::shared_ptr< CPVRChannelGroup > | GetByIdFromAll (int iGroupId) const |
| Get a group given it's ID. More... | |
| std::shared_ptr< CPVRChannel > | GetChannelById (int iChannelId) const |
| Get a channel given it's database ID. More... | |
| std::shared_ptr< CPVRChannel > | GetChannelForEpgTag (const std::shared_ptr< const CPVREpgInfoTag > &epgTag) const |
| Get the channel for the given epg tag. More... | |
| std::shared_ptr< CPVRChannel > | GetByPath (const std::string &strPath) const |
| Get a channel given it's path. More... | |
| std::shared_ptr< CPVRChannelGroupMember > | GetChannelGroupMemberByPath (const std::string &strPath) const |
| Get a channel group member given it's path. More... | |
| std::shared_ptr< CPVRChannel > | GetByUniqueID (int iUniqueChannelId, int iClientID) const |
| Get a channel given it's channel ID from all containers. More... | |
| std::shared_ptr< CPVRChannelGroupMember > | GetLastPlayedChannelGroupMember () const |
| Get the channel group member that was played last. More... | |
| int | CleanupCachedImages () |
| Erase stale texture db entries and image files. More... | |
| int CPVRChannelGroupsContainer::CleanupCachedImages | ( | ) |
Erase stale texture db entries and image files.
| 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 it's ID.
| iGroupId | The ID of the group. |
| std::shared_ptr< CPVRChannel > CPVRChannelGroupsContainer::GetByPath | ( | const std::string & | strPath | ) | const |
Get a channel given it's path.
| strPath | The path. |
| std::shared_ptr< CPVRChannel > CPVRChannelGroupsContainer::GetByUniqueID | ( | int | iUniqueChannelId, |
| int | iClientID | ||
| ) | const |
Get a channel given it's 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 it's database ID.
| iChannelId | The ID of the channel. |
| 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 it's 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< 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::Update | ( | const std::vector< std::shared_ptr< CPVRClient >> & | clients | ) |
Update all channel groups and all channels from PVR database and from given clients.
| clients | The PVR clients data should be loaded for. Leave empty for all 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. |
1.8.13