30 LOG(VB_GENERAL, LOG_ERR,
"Cannot load screen 'schedulediff'");
85 QString message = QString(
"%1 - %2 %3\n")
95 QString messageConflict;
106 (pa->GetSourceID() == pi_sourceid ) &&
113 messageConflict += QString(
"%1 - %2 %3\n")
114 .arg(pa->GetRecordingStartTime().toLocalTime().toString(timeFormat),
115 pa->GetRecordingEndTime().toLocalTime().toString(timeFormat),
121 if (!messageConflict.isEmpty())
124 message += tr(
"The following programs will be recorded instead:");
126 message += messageConflict;
130 QString title = QObject::tr(
"Program Status");
132 auto *dlg =
new MythDialogBox(title, message, mainStack,
"statusdialog",
true);
136 dlg->AddButton(QObject::tr(
"OK"));
202 if ((*it)->GetRecordingEndTime() >= now ||
203 (*it)->GetScheduledEndTime() >= now)
216 if ((*it)->GetRecordingEndTime() >= now ||
217 (*it)->GetScheduledEndTime() >= now)
286 QVariant::fromValue(pginfo));
289 pginfo->
ToMap(infoMap);
293 item->DisplayState(state,
"status");
294 item->SetTextFromMap(infoMap, state);
299 s.m_before->GetInputID()),
"statusbefore",
304 item->SetText(
"-",
"statusbefore");
310 s.m_after->GetInputID()),
"statusafter",
315 item->SetText(
"-",
"statusafter");
337 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)