本文整理汇总了C++中epg::CEpgInfoTagPtr::SetRecording方法的典型用法代码示例。如果您正苦于以下问题:C++ CEpgInfoTagPtr::SetRecording方法的具体用法?C++ CEpgInfoTagPtr::SetRecording怎么用?C++ CEpgInfoTagPtr::SetRecording使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类epg::CEpgInfoTagPtr
的用法示例。
在下文中一共展示了CEpgInfoTagPtr::SetRecording方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: UpdateFromClient
void CPVRRecordings::UpdateFromClient(const CPVRRecordingPtr &tag)
{
CSingleLock lock(m_critSection);
if (tag->IsDeleted())
m_bHasDeleted = true;
CPVRRecordingPtr newTag = GetById(tag->m_iClientId, tag->m_strRecordingId);
if (newTag)
{
newTag->Update(*tag);
}
else
{
newTag = CPVRRecordingPtr(new CPVRRecording);
newTag->Update(*tag);
if (newTag->BroadcastUid() != EPG_TAG_INVALID_UID)
{
const CPVRChannelPtr channel(newTag->Channel());
if (channel)
{
const EPG::CEpgInfoTagPtr epgTag = EPG::CEpgContainer::GetInstance().GetTagById(channel, newTag->BroadcastUid());
if (epgTag)
epgTag->SetRecording(newTag);
}
}
newTag->m_iRecordingId = ++m_iLastId;
m_recordings.insert(std::make_pair(CPVRRecordingUid(newTag->m_iClientId, newTag->m_strRecordingId), newTag));
}
}
示例2: UpdateFromClient
void CPVRRecordings::UpdateFromClient(const CPVRRecordingPtr &tag)
{
CSingleLock lock(m_critSection);
if (tag->IsDeleted())
m_bHasDeleted = true;
CPVRRecordingPtr newTag = GetById(tag->m_iClientId, tag->m_strRecordingId);
if (newTag)
{
newTag->Update(*tag);
}
else
{
newTag = CPVRRecordingPtr(new CPVRRecording);
newTag->Update(*tag);
if (newTag->EpgEvent() > 0)
{
EPG::CEpgInfoTagPtr epgTag = EPG::CEpgContainer::GetInstance().GetTagById(newTag->EpgEvent());
if (epgTag)
epgTag->SetRecording(newTag);
}
newTag->m_iRecordingId = ++m_iLastId;
m_recordings.insert(std::make_pair(CPVRRecordingUid(newTag->m_iClientId, newTag->m_strRecordingId), newTag));
}
}
示例3: UpdateEpgTags
void CPVRRecordings::UpdateEpgTags(void)
{
CSingleLock lock(m_critSection);
int iEpgEvent;
for (PVR_RECORDINGMAP_ITR it = m_recordings.begin(); it != m_recordings.end(); ++it)
{
iEpgEvent = it->second->EpgEvent();
if (iEpgEvent > 0 && !it->second->IsDeleted())
{
EPG::CEpgInfoTagPtr epgTag = EPG::CEpgContainer::GetInstance().GetTagById(iEpgEvent);
if (epgTag)
epgTag->SetRecording(it->second);
}
}
}
示例4: UpdateEpgTags
void CPVRRecordings::UpdateEpgTags(void)
{
CSingleLock lock(m_critSection);
unsigned int iEpgEvent;
CPVRChannelPtr channel;
for (PVR_RECORDINGMAP_ITR it = m_recordings.begin(); it != m_recordings.end(); ++it)
{
iEpgEvent = it->second->BroadcastUid();
if (iEpgEvent != EPG_TAG_INVALID_UID && !it->second->IsDeleted())
{
channel = it->second->Channel();
if (channel)
{
const EPG::CEpgInfoTagPtr epgTag = EPG::CEpgContainer::GetInstance().GetTagById(channel, iEpgEvent);
if (epgTag)
epgTag->SetRecording(it->second);
}
}
}
}