本文整理汇总了C++中CPVRClientPtr::Name方法的典型用法代码示例。如果您正苦于以下问题:C++ CPVRClientPtr::Name方法的具体用法?C++ CPVRClientPtr::Name怎么用?C++ CPVRClientPtr::Name使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CPVRClientPtr
的用法示例。
在下文中一共展示了CPVRClientPtr::Name方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: UpdateEntries
//.........这里部分代码省略.........
{
bIgnoreTimer = true;
break;
}
}
if (bIgnoreTimer)
{
++it2;
continue;
}
CLog::LogFC(LOGDEBUG, LOGPVR, "Deleted timer %d on client %d",
timer->m_iClientIndex, timer->m_iClientId);
timerNotifications.push_back(std::make_pair(timer->m_iClientId, timer->GetDeletedNotificationText()));
it2 = it->second.erase(it2);
bChanged = true;
bAddedOrDeleted = true;
}
else if ((timer->m_bStartAnyTime && it->first != CDateTime()) ||
(!timer->m_bStartAnyTime && timer->StartAsUTC() != it->first))
{
/* timer start has changed */
CLog::LogFC(LOGDEBUG, LOGPVR, "Changed start time timer %d on client %d",
timer->m_iClientIndex, timer->m_iClientId);
/* remember timer */
timersToMove.push_back(timer);
/* remove timer for now, reinsert later */
it2 = it->second.erase(it2);
bChanged = true;
bAddedOrDeleted = true;
}
else
{
++it2;
}
}
if (it->second.empty())
it = m_tags.erase(it);
else
++it;
}
/* reinsert timers with changed timer start */
for (VecTimerInfoTag::const_iterator timerIt = timersToMove.begin(); timerIt != timersToMove.end(); ++timerIt)
InsertTimer(*timerIt);
/* update child information for all parent timers */
for (const auto &tagsEntry : m_tags)
{
for (const auto &timersEntry : tagsEntry.second)
{
if (timersEntry->GetTimerRuleId() != PVR_TIMER_NO_PARENT)
{
const CPVRTimerInfoTagPtr parentTimer(GetByClient(timersEntry->m_iClientId, timersEntry->GetTimerRuleId()));
if (parentTimer)
parentTimer->UpdateChildState(timersEntry);
}
}
}
m_bIsUpdating = false;
if (bChanged)
{
UpdateChannels();
lock.Leave();
CServiceBroker::GetPVRManager().SetChanged();
CServiceBroker::GetPVRManager().NotifyObservers(bAddedOrDeleted ? ObservableMessageTimersReset : ObservableMessageTimers);
if (!timerNotifications.empty() && CServiceBroker::GetPVRManager().IsStarted())
{
CPVREventlogJob *job = new CPVREventlogJob;
/* queue notifications / fill eventlog */
for (const auto &entry : timerNotifications)
{
const CPVRClientPtr client = CServiceBroker::GetPVRManager().GetClient(entry.first);
if (client)
{
job->AddEvent(m_settings.GetBoolValue(CSettings::SETTING_PVRRECORD_TIMERNOTIFICATIONS),
false, // info, no error
client->Name(),
entry.second,
client->Icon());
}
}
CJobManager::GetInstance().AddJob(job, nullptr);
}
}
return bChanged;
}