本文整理汇总了C++中MythProgramInfo::ChannelName方法的典型用法代码示例。如果您正苦于以下问题:C++ MythProgramInfo::ChannelName方法的具体用法?C++ MythProgramInfo::ChannelName怎么用?C++ MythProgramInfo::ChannelName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MythProgramInfo
的用法示例。
在下文中一共展示了MythProgramInfo::ChannelName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: switch
bool MythScheduleHelper85::FillTimerEntryWithUpcoming(MythTimerEntry& entry, const MythProgramInfo& recording) const
{
//Only include timers which have an inactive status if the user has requested it (flag m_showNotRecording)
switch (recording.Status())
{
//Upcoming recordings which are disabled due to being lower priority duplicates or already recorded
case Myth::RS_EARLIER_RECORDING: //will record earlier
case Myth::RS_LATER_SHOWING: //will record later
case Myth::RS_CURRENT_RECORDING: //Already in the current library
case Myth::RS_PREVIOUS_RECORDING: //Previoulsy recorded but no longer in the library
if (!m_manager->ShowNotRecording())
{
XBMC->Log(LOG_DEBUG, "85::%s: Skipping %s:%s on %s because status %d", __FUNCTION__,
recording.Title().c_str(), recording.Subtitle().c_str(), recording.ChannelName().c_str(),
recording.Status());
return false;
}
default:
break;
}
MythRecordingRuleNodePtr node = m_manager->FindRuleById(recording.RecordID());
if (node)
{
MythRecordingRule rule = node->GetRule();
// Relate the main rule as parent
entry.parentIndex = MythScheduleManager::MakeIndex(node->GetMainRule());
switch (rule.Type())
{
case Myth::RT_SingleRecord:
return false; // Discard upcoming. We show only main rule.
case Myth::RT_DontRecord:
entry.recordingStatus = recording.Status();
entry.timerType = TIMER_TYPE_DONT_RECORD;
entry.isInactive = rule.Inactive();
break;
case Myth::RT_OverrideRecord:
entry.recordingStatus = recording.Status();
entry.timerType = TIMER_TYPE_OVERRIDE;
entry.isInactive = rule.Inactive();
break;
default:
entry.recordingStatus = recording.Status();
if (node->GetMainRule().SearchType() == Myth::ST_ManualSearch)
entry.timerType = TIMER_TYPE_UPCOMING_MANUAL;
else
entry.timerType = TIMER_TYPE_UPCOMING;
}
entry.startOffset = rule.StartOffset();
entry.endOffset = rule.EndOffset();
entry.priority = rule.Priority();
entry.expiration = GetRuleExpirationId(RuleExpiration(rule.AutoExpire(), 0, false));
}
else
entry.timerType = TIMER_TYPE_ZOMBIE;
switch (entry.timerType)
{
case TIMER_TYPE_UPCOMING:
case TIMER_TYPE_OVERRIDE:
case TIMER_TYPE_UPCOMING_MANUAL:
entry.epgCheck = true;
break;
default:
entry.epgCheck = false;
}
entry.description = "";
entry.chanid = recording.ChannelID();
entry.callsign = recording.Callsign();
entry.startTime = recording.StartTime();
entry.endTime = recording.EndTime();
entry.title.assign(recording.Title());
if (!recording.Subtitle().empty())
entry.title.append(" (").append(recording.Subtitle()).append(")");
if (recording.Season() || recording.Episode())
entry.title.append(" - ").append(Myth::IntToString(recording.Season())).append(".").append(Myth::IntToString(recording.Episode()));
entry.recordingGroup = GetRuleRecordingGroupId(recording.RecordingGroup());
entry.entryIndex = MythScheduleManager::MakeIndex(recording); // upcoming index
return true;
}