本文整理汇总了C++中CPVREpgInfoTagPtr::Plot方法的典型用法代码示例。如果您正苦于以下问题:C++ CPVREpgInfoTagPtr::Plot方法的具体用法?C++ CPVREpgInfoTagPtr::Plot怎么用?C++ CPVREpgInfoTagPtr::Plot使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CPVREpgInfoTagPtr
的用法示例。
在下文中一共展示了CPVREpgInfoTagPtr::Plot方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: RemoveDuplicates
int CPVREpgSearchFilter::RemoveDuplicates(CFileItemList &results)
{
unsigned int iSize = results.Size();
for (unsigned int iResultPtr = 0; iResultPtr < iSize; iResultPtr++)
{
const CPVREpgInfoTagPtr epgentry_1(results.Get(iResultPtr)->GetEPGInfoTag());
if (!epgentry_1)
continue;
for (unsigned int iTagPtr = 0; iTagPtr < iSize; iTagPtr++)
{
if (iResultPtr == iTagPtr)
continue;
const CPVREpgInfoTagPtr epgentry_2(results.Get(iTagPtr)->GetEPGInfoTag());
if (!epgentry_2)
continue;
if (epgentry_1->Title() != epgentry_2->Title() ||
epgentry_1->Plot() != epgentry_2->Plot() ||
epgentry_1->PlotOutline() != epgentry_2->PlotOutline())
continue;
results.Remove(iTagPtr);
iResultPtr--;
iTagPtr--;
iSize--;
}
}
return iSize;
}
示例2: MatchSearchTerm
bool CPVREpgSearchFilter::MatchSearchTerm(const CPVREpgInfoTagPtr &tag) const
{
bool bReturn(true);
if (!m_strSearchTerm.empty())
{
CTextSearch search(m_strSearchTerm, m_bIsCaseSensitive, SEARCH_DEFAULT_OR);
bReturn = search.Search(tag->Title()) ||
search.Search(tag->PlotOutline()) ||
(m_bSearchInDescription && search.Search(tag->Plot()));
}
return bReturn;
}
示例3: GetListItemAndPlayerLabel
//.........这里部分代码省略.........
switch (info.m_info)
{
// special handling for channels without epg or with radio rds data
case PLAYER_TITLE:
case VIDEOPLAYER_TITLE:
case LISTITEM_TITLE:
case VIDEOPLAYER_NEXT_TITLE:
case LISTITEM_NEXT_TITLE:
case LISTITEM_EPG_EVENT_TITLE:
// Note: in difference to LISTITEM_TITLE, LISTITEM_EPG_EVENT_TITLE returns the title
// associated with the epg event of a timer, if any, and not the title of the timer.
if (epgTag)
strValue = epgTag->Title();
if (strValue.empty() && !CServiceBroker::GetSettingsComponent()->GetSettings()->GetBool(CSettings::SETTING_EPG_HIDENOINFOAVAILABLE))
strValue = g_localizeStrings.Get(19055); // no information available
return true;
}
}
if (epgTag)
{
switch (info.m_info)
{
case VIDEOPLAYER_GENRE:
case LISTITEM_GENRE:
case VIDEOPLAYER_NEXT_GENRE:
case LISTITEM_NEXT_GENRE:
strValue = epgTag->GetGenresLabel();
return true;
case VIDEOPLAYER_PLOT:
case LISTITEM_PLOT:
case VIDEOPLAYER_NEXT_PLOT:
case LISTITEM_NEXT_PLOT:
strValue = epgTag->Plot();
return true;
case VIDEOPLAYER_PLOT_OUTLINE:
case LISTITEM_PLOT_OUTLINE:
case VIDEOPLAYER_NEXT_PLOT_OUTLINE:
case LISTITEM_NEXT_PLOT_OUTLINE:
strValue = epgTag->PlotOutline();
return true;
case LISTITEM_DATE:
strValue = epgTag->StartAsLocalTime().GetAsLocalizedDateTime(false, false);
return true;
case LISTITEM_STARTDATE:
case LISTITEM_NEXT_STARTDATE:
strValue = epgTag->StartAsLocalTime().GetAsLocalizedDate(true);
return true;
case VIDEOPLAYER_STARTTIME:
case VIDEOPLAYER_NEXT_STARTTIME:
case LISTITEM_STARTTIME:
case LISTITEM_NEXT_STARTTIME:
strValue = epgTag->StartAsLocalTime().GetAsLocalizedTime("", false);
return true;
case LISTITEM_ENDDATE:
case LISTITEM_NEXT_ENDDATE:
strValue = epgTag->EndAsLocalTime().GetAsLocalizedDate(true);
return true;
case VIDEOPLAYER_ENDTIME:
case VIDEOPLAYER_NEXT_ENDTIME:
case LISTITEM_ENDTIME:
case LISTITEM_NEXT_ENDTIME:
strValue = epgTag->EndAsLocalTime().GetAsLocalizedTime("", false);
return true;
// note: for some reason, there is no VIDEOPLAYER_DURATION
case LISTITEM_DURATION: