本文整理汇总了C++中CPVRChannelGroupInternal::UpdateChannel方法的典型用法代码示例。如果您正苦于以下问题:C++ CPVRChannelGroupInternal::UpdateChannel方法的具体用法?C++ CPVRChannelGroupInternal::UpdateChannel怎么用?C++ CPVRChannelGroupInternal::UpdateChannel使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CPVRChannelGroupInternal
的用法示例。
在下文中一共展示了CPVRChannelGroupInternal::UpdateChannel方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: PVRTransferChannelEntry
void CAddonHelpers_PVR::PVRTransferChannelEntry(void *addonData, const PVRHANDLE handle, const PVR_CHANNEL *channel)
{
CAddonHelpers* addon = (CAddonHelpers*) addonData;
if (addon == NULL || handle == NULL || channel == NULL)
{
CLog::Log(LOGERROR, "PVR: PVRTransferChannelEntry is called with NULL-Pointer!!!");
return;
}
CPVRClient* client = (CPVRClient*) handle->CALLER_ADDRESS;
CPVRChannelGroupInternal *xbmcChannels = (CPVRChannelGroupInternal*) handle->DATA_ADDRESS;
CPVRChannel channelTag(channel->radio);
channelTag.SetClientChannelNumber(channel->number);
channelTag.SetClientID(client->GetClientID());
channelTag.SetUniqueID(channel->uid);
channelTag.SetChannelName(channel->name);
channelTag.SetClientChannelName(channel->callsign);
channelTag.SetIconPath(channel->iconpath);
channelTag.SetEncryptionSystem(channel->encryption);
channelTag.SetHidden(channel->hide);
channelTag.SetRecording(channel->recording);
channelTag.SetInputFormat(channel->input_format);
channelTag.SetStreamURL(channel->stream_url);
xbmcChannels->UpdateChannel(channelTag);
}