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. | |
CPVRChannelGroups * | GetTV () const |
Get the TV channel groups. | |
CPVRChannelGroups * | GetRadio () const |
Get the radio channel groups. | |
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 > | GetByIdFromAll (int iGroupId) const |
Get a group given it's ID. | |
std::shared_ptr< CPVRChannel > | GetChannelById (int iChannelId) const |
Get a channel given it's 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 it's path. | |
std::shared_ptr< CPVRChannelGroupMember > | GetChannelGroupMemberByPath (const std::string &strPath) const |
Get a channel group member given it's path. | |
std::shared_ptr< CPVRChannel > | GetByUniqueID (int iUniqueChannelId, int iClientID) const |
Get a channel given it's channel ID from all containers. | |
std::shared_ptr< CPVRChannelGroupMember > | GetLastPlayedChannelGroupMember () const |
Get the channel group member that was played last. | |
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.
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.
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. |