本文整理汇总了C++中ProgramInfo::IsDuplicate方法的典型用法代码示例。如果您正苦于以下问题:C++ ProgramInfo::IsDuplicate方法的具体用法?C++ ProgramInfo::IsDuplicate怎么用?C++ ProgramInfo::IsDuplicate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ProgramInfo
的用法示例。
在下文中一共展示了ProgramInfo::IsDuplicate方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ShowOldRecordedMenu
void ProgLister::ShowOldRecordedMenu(void)
{
ProgramInfo *pi = GetCurrent();
if (!pi)
return;
QString message = pi->toString(ProgramInfo::kTitleSubtitle, " - ");
if (!pi->GetDescription().isEmpty())
message += "\n\n" + pi->GetDescription();
message += "\n\n\n" + tr("NOTE: removing items from this list will not "
"delete any recordings.");
QString title = tr("Previously Recorded");
MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack();
MythDialogBox *menuPopup = new MythDialogBox(
title, message, mainStack, "deletepopup", true);
if (menuPopup->Create())
{
menuPopup->SetReturnEvent(this, "deletemenu");
if (pi->IsDuplicate())
menuPopup->AddButton(tr("Allow this episode to re-record"));
else
menuPopup->AddButton(tr("Never record this episode"));
menuPopup->AddButton(tr("Remove this episode from the list"));
menuPopup->AddButton(tr("Remove all episodes for this title"));
menuPopup->AddButton(tr("Cancel"));
mainStack->AddScreen(menuPopup);
}
else
{
delete menuPopup;
}
}