11#include "../../AddonBase.h"
12#include "../../c-api/addon-instance/pvr.h"
65 ReallocAndCopyString(&m_cStructure->strGroupName, groupName.c_str());
71 return m_cStructure->strGroupName ? m_cStructure->strGroupName :
"";
76 void SetIsRadio(
bool isRadio) { m_cStructure->bIsRadio = isRadio; }
79 bool GetIsRadio()
const {
return m_cStructure->bIsRadio; }
84 void SetPosition(
unsigned int position) { m_cStructure->iPosition = position; }
87 unsigned int GetPosition()
const {
return m_cStructure->iPosition; }
93 target->strGroupName = AllocAndCopyString(source->strGroupName);
96 static void FreeResources(
PVR_CHANNEL_GROUP* target) { FreeString(target->strGroupName); }
118 : m_instance(instance), m_handle(handle)
131 m_instance->toKodi->TransferChannelGroup(m_instance->toKodi->kodiInstance, m_handle, tag);
138 const PVR_HANDLE m_handle;
188 ReallocAndCopyString(&m_cStructure->strGroupName, groupName.c_str());
194 return m_cStructure->strGroupName ? m_cStructure->strGroupName :
"";
201 m_cStructure->iChannelUniqueId = channelUniqueId;
211 m_cStructure->iChannelNumber = channelNumber;
221 m_cStructure->iSubChannelNumber = subChannelNumber;
229 void SetOrder(
bool order) { m_cStructure->iOrder = order; }
232 bool GetOrder()
const {
return m_cStructure->iOrder; }
239 target->strGroupName = AllocAndCopyString(source->strGroupName);
264 : m_instance(instance), m_handle(handle)
277 m_instance->toKodi->TransferChannelGroupMember(m_instance->toKodi->kodiInstance, m_handle, tag);
284 const PVR_HANDLE m_handle;
Definition AddonBase.h:288
Definition ChannelGroups.h:38
Definition ChannelGroups.h:159
Definition ChannelGroups.h:259
Definition ChannelGroups.h:113
void SetPosition(unsigned int position)
optional Sort position of the group (0 indicates that the backend doesn't support sorting of groups).
Definition ChannelGroups.h:84
void SetIsRadio(bool isRadio)
required true If this is a radio channel group, false otherwise.
Definition ChannelGroups.h:76
unsigned int GetPosition() const
To get with SetPosition changed values.
Definition ChannelGroups.h:87
bool GetIsRadio() const
To get with SetIsRadio changed values.
Definition ChannelGroups.h:79
std::string GetGroupName() const
To get with SetGroupName changed values.
Definition ChannelGroups.h:69
void SetGroupName(const std::string &groupName)
required Name of this channel group.
Definition ChannelGroups.h:63
void SetOrder(bool order)
optional The value denoting the order of this channel in the 'All channels' group.
Definition ChannelGroups.h:229
unsigned int GetSubChannelNumber() const
To get with SetSubChannelNumber changed values.
Definition ChannelGroups.h:225
void SetChannelNumber(unsigned int channelNumber)
optional Channel number within the group.
Definition ChannelGroups.h:209
void SetSubChannelNumber(unsigned int subChannelNumber)
optional Sub channel number within the group (ATSC).
Definition ChannelGroups.h:219
void SetChannelUniqueId(unsigned int channelUniqueId)
required Unique id of the member.
Definition ChannelGroups.h:199
unsigned int GetChannelUniqueId() const
To get with SetChannelUniqueId changed values.
Definition ChannelGroups.h:205
void SetGroupName(const std::string &groupName)
required Name of the channel group to add the channel to.
Definition ChannelGroups.h:186
std::string GetGroupName() const
To get with SetGroupName changed values.
Definition ChannelGroups.h:192
unsigned int GetChannelNumber() const
To get with SetChannelNumber changed values.
Definition ChannelGroups.h:215
bool GetOrder() const
To get with SetOrder changed values.
Definition ChannelGroups.h:232
void Add(const kodi::addon::PVRChannelGroupMember &tag)
To add and give content from addon to Kodi on related call.
Definition ChannelGroups.h:275
void Add(const kodi::addon::PVRChannelGroup &tag)
To add and give content from addon to Kodi on related call.
Definition ChannelGroups.h:129
"C" PVR add-on channel group member.
Definition pvr_channel_groups.h:45
"C" PVR add-on channel group.
Definition pvr_channel_groups.h:31