29 LOG(VB_GENERAL, LOG_ERR,
"Cannot load screen 'schedulediff'");
84 QString message = QString(
"%1 - %2 %3\n")
94 QString messageConflict;
105 (pa->GetSourceID() == pi_sourceid ) &&
112 messageConflict += QString(
"%1 - %2 %3\n")
113 .arg(pa->GetRecordingStartTime().toLocalTime().toString(timeFormat),
114 pa->GetRecordingEndTime().toLocalTime().toString(timeFormat),
120 if (!messageConflict.isEmpty())
123 message += tr(
"The following programs will be recorded instead:");
125 message += messageConflict;
129 QString title = QObject::tr(
"Program Status");
131 auto *dlg =
new MythDialogBox(title, message, mainStack,
"statusdialog",
true);
135 dlg->AddButton(QObject::tr(
"OK"));
201 if ((*it)->GetRecordingEndTime() >= now ||
202 (*it)->GetScheduledEndTime() >= now)
215 if ((*it)->GetRecordingEndTime() >= now ||
216 (*it)->GetScheduledEndTime() >= now)
285 QVariant::fromValue(pginfo));
288 pginfo->
ToMap(infoMap);
292 item->DisplayState(state,
"status");
293 item->SetTextFromMap(infoMap, state);
298 s.m_before->GetInputID()),
"statusbefore",
303 item->SetText(
"-",
"statusbefore");
309 s.m_after->GetInputID()),
"statusafter",
314 item->SetText(
"-",
"statusafter");
336 pginfo->
ToMap(infoMap);
iterator erase(iterator it)
static uint GetSourceIDForChannel(uint chanid)
QString GetSetting(const QString &key, const QString &defaultval="")
Basic menu dialog, message and a list of options.
bool TranslateKeyPress(const QString &Context, QKeyEvent *Event, QStringList &Actions, bool AllowJumps=true)
Get a list of actions for a keypress in the given context.
MythScreenStack * GetStack(const QString &Stackname)
virtual void AddScreen(MythScreenType *screen, bool allowFade=true)
void LoadInBackground(const QString &message="")
void BuildFocusList(void)
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
virtual void SetTextFromMap(const InfoMap &infoMap)
virtual void SetText(const QString &text)
Holds information on recordings and videos.
uint GetChanID(void) const
This is the unique key used in the database to locate tuning information.
QString toString(Verbosity v=kLongDescription, const QString &sep=":", const QString &grp="\"") const
QDateTime GetRecordingStartTime(void) const
Approximate time the recording started.
int GetRecordingPriority(void) const
virtual void ToMap(InfoMap &progMap, bool showrerecord=false, uint star_range=10, uint date_format=0) const
Converts ProgramInfo into QString QHash containing each field in ProgramInfo converted into localized...
uint GetInputID(void) const
RecStatus::Type GetRecordingStatus(void) const
QDateTime GetRecordingEndTime(void) const
Approximate time the recording should have ended, did end, or is intended to end.
RecordingType GetRecordingRuleType(void) const
QString GetChannelSchedulingID(void) const
This is the unique programming identifier of a channel.
static QString toDescription(Type recstatus, RecordingType rectype, const QDateTime &recstartts)
Converts "recstatus" into a long human readable description.
static QString toString(RecStatus::Type recstatus, uint id)
Converts "recstatus" into a short (unreadable) string.
static QString toUIState(RecStatus::Type recstatus)
void updateInfo(MythUIButtonListItem *item)
void Load(void) override
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (S...
ProgramList m_recListAfter
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
bool Create(void) override
std::vector< class ProgramStruct > m_recList
int m_recordid
recordid that differs from master (-1 = assume all)
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
MythUIButtonList * m_conflictList
void showStatus(MythUIButtonListItem *item)
MythUIText * m_noChangesText
ProgramInfo * CurrentProgram(void)
ProgramList m_recListBefore
static bool LoadWindowFromXML(const QString &xmlfile, const QString &windowname, MythUIType *parent)
MythCoreContext * gCoreContext
This global variable contains the MythCoreContext instance for the app.
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
MythMainWindow * GetMythMainWindow(void)
QHash< QString, QString > InfoMap
QDateTime current(bool stripped)
Returns current Date and Time in UTC.
bool LoadFromScheduler(AutoDeleteDeque< TYPE * > &destination, bool &hasConflicts, const QString &altTable="", int recordid=-1)
static bool Assign(ContainerType *container, UIType *&item, const QString &name, bool *err=nullptr)
static int comp_recstart(const ProgramInfo *a, const ProgramInfo *b)
static bool comp_recstart_less_than(const ProgramInfo *a, const ProgramInfo *b)