|
Kodi Documentation
18.0
Kodi is an open source media player and entertainment hub.
|
#include <PVRChannelGroups.h>
Public Member Functions | |
| CPVRChannelGroups (bool bRadio) | |
| Create a new group container. More... | |
| virtual | ~CPVRChannelGroups (void) |
| void | Clear (void) |
| Remove all channels from this group. More... | |
| bool | Load (void) |
| Load this container's contents from the database or PVR clients. More... | |
| size_t | Size (void) const |
| bool | Update (const CPVRChannelGroup &group, bool bUpdateFromClient=false) |
| Update a group or add it if it's not in here yet. More... | |
| bool | UpdateFromClient (const CPVRChannelGroup &group) |
| Called by the add-on callback to add a new group. More... | |
| CFileItemPtr | GetByPath (const std::string &strPath) const |
| Get a channel given it's path. More... | |
| CPVRChannelGroupPtr | GetById (int iGroupId) const |
| Get a pointer to a channel group given it's ID. More... | |
| std::vector< CPVRChannelGroupPtr > | GetGroupsByChannel (const CPVRChannelPtr &channel, bool bExcludeHidden=false) const |
| Get all groups the given channel is a member. More... | |
| CPVRChannelGroupPtr | GetByName (const std::string &strName) const |
| Get a group given it's name. More... | |
| CPVRChannelGroupPtr | GetGroupAll (void) const |
| Get the group that contains all channels. More... | |
| CPVRChannelGroupPtr | GetFirstGroup (void) const |
| CPVRChannelGroupPtr | GetLastGroup (void) const |
| CPVRChannelGroupPtr | GetLastPlayedGroup (int iChannelID=-1) const |
| The group that was played last and optionally contains the given channel. More... | |
| std::vector< CPVRChannelGroupPtr > | GetMembers (bool bExcludeHidden=false) const |
| Get the list of groups. More... | |
| int | GetGroupList (CFileItemList *results, bool bExcludeHidden=false) const |
| Get the list of groups. More... | |
| CPVRChannelGroupPtr | GetPreviousGroup (const CPVRChannelGroup &group) const |
| Get the previous group in this container. More... | |
| CPVRChannelGroupPtr | GetNextGroup (const CPVRChannelGroup &group) const |
| Get the next group in this container. More... | |
| CPVRChannelGroupPtr | GetSelectedGroup (void) const |
| Get the group that is currently selected in the UI. More... | |
| void | SetSelectedGroup (const CPVRChannelGroupPtr &group) |
| Change the selected group. More... | |
| bool | AddGroup (const std::string &strName) |
| Add a group to this container. More... | |
| bool | DeleteGroup (const CPVRChannelGroup &group) |
| Delete a group in this container. More... | |
| bool | CreateChannelEpgs (void) |
| Create EPG tags for all channels of the internal group. More... | |
| void | RemoveFromAllGroups (const CPVRChannelPtr &channel) |
| Remove a channel from all non-system groups. More... | |
| bool | PersistAll (void) |
| Persist all changes in channel groups. More... | |
| bool | IsRadio (void) const |
| bool | Update (bool bChannelsOnly=false) |
| Update the contents of the groups in this container. More... | |
A container class for channel groups
|
explicit |
Create a new group container.
| bRadio | True if this is a container for radio channels, false if it is for tv channels. |
|
virtual |
| bool CPVRChannelGroups::AddGroup | ( | const std::string & | strName | ) |
Add a group to this container.
| strName | The name of the group. |
| bool CPVRChannelGroups::CreateChannelEpgs | ( | void | ) |
Create EPG tags for all channels of the internal group.
| bool CPVRChannelGroups::DeleteGroup | ( | const CPVRChannelGroup & | group | ) |
Delete a group in this container.
| group | The group to delete. |
| CPVRChannelGroupPtr CPVRChannelGroups::GetById | ( | int | iGroupId | ) | const |
Get a pointer to a channel group given it's ID.
| iGroupId | The ID of the group. |
| CPVRChannelGroupPtr CPVRChannelGroups::GetByName | ( | const std::string & | strName | ) | const |
Get a group given it's name.
| strName | The name. |
| CFileItemPtr CPVRChannelGroups::GetByPath | ( | const std::string & | strPath | ) | const |
Get a channel given it's path.
| strPath | The path to the channel |
|
inline |
| CPVRChannelGroupPtr CPVRChannelGroups::GetGroupAll | ( | void | ) | const |
Get the group that contains all channels.
| int CPVRChannelGroups::GetGroupList | ( | CFileItemList * | results, |
| bool | bExcludeHidden = false |
||
| ) | const |
Get the list of groups.
| results | The file list to store the results in. |
| bExcludeHidden | Decides whether to filter hidden groups |
| std::vector< CPVRChannelGroupPtr > CPVRChannelGroups::GetGroupsByChannel | ( | const CPVRChannelPtr & | channel, |
| bool | bExcludeHidden = false |
||
| ) | const |
Get all groups the given channel is a member.
| channel | The channel. |
| bExcludeHidden | Whenever to exclude hidden channel groups. |
| CPVRChannelGroupPtr CPVRChannelGroups::GetLastGroup | ( | void | ) | const |
| CPVRChannelGroupPtr CPVRChannelGroups::GetLastPlayedGroup | ( | int | iChannelID = -1 | ) | const |
The group that was played last and optionally contains the given channel.
| iChannelID | The channel ID |
| std::vector< CPVRChannelGroupPtr > CPVRChannelGroups::GetMembers | ( | bool | bExcludeHidden = false | ) | const |
Get the list of groups.
| groups | The list to store the results in. |
| bExcludeHidden | Whenever to exclude hidden channel groups. |
| CPVRChannelGroupPtr CPVRChannelGroups::GetNextGroup | ( | const CPVRChannelGroup & | group | ) | const |
Get the next group in this container.
| group | The current group. |
| CPVRChannelGroupPtr CPVRChannelGroups::GetPreviousGroup | ( | const CPVRChannelGroup & | group | ) | const |
Get the previous group in this container.
| group | The current group. |
| CPVRChannelGroupPtr CPVRChannelGroups::GetSelectedGroup | ( | void | ) | const |
Get the group that is currently selected in the UI.
|
inline |
| bool CPVRChannelGroups::Load | ( | void | ) |
Load this container's contents from the database or PVR clients.
| bool CPVRChannelGroups::PersistAll | ( | void | ) |
Persist all changes in channel groups.
| void CPVRChannelGroups::RemoveFromAllGroups | ( | const CPVRChannelPtr & | channel | ) |
Remove a channel from all non-system groups.
| channel | The channel to remove. |
| void CPVRChannelGroups::SetSelectedGroup | ( | const CPVRChannelGroupPtr & | group | ) |
Change the selected group.
| group | The group to select. |
|
inline |
| bool CPVRChannelGroups::Update | ( | const CPVRChannelGroup & | group, |
| bool | bUpdateFromClient = false |
||
| ) |
Update a group or add it if it's not in here yet.
| group | The group to update. |
| bUpdateFromClient | True to save the changes in the db. |
| bool CPVRChannelGroups::Update | ( | bool | bChannelsOnly = false | ) |
Update the contents of the groups in this container.
| bChannelsOnly | Set to true to only update channels, not the groups themselves. |
|
inline |
Called by the add-on callback to add a new group.
| group | The group to add |