Go to the documentation of this file.
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);
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
ProgramList m_recListAfter
void LoadInBackground(const QString &message="")
static QString toUIState(RecStatus::Type recstatus)
void showStatus(MythUIButtonListItem *item)
bool LoadFromScheduler(AutoDeleteDeque< TYPE * > &destination, bool &hasConflicts, const QString &altTable="", int recordid=-1)
bool Create(void) override
std::vector< class ProgramStruct > m_recList
QString GetChannelSchedulingID(void) const
This is the unique programming identifier of a channel.
static bool comp_recstart_less_than(const ProgramInfo *a, const ProgramInfo *b)
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
QDateTime GetRecordingEndTime(void) const
Approximate time the recording should have ended, did end, or is intended to end.
int GetRecordingPriority(void) const
QDateTime current(bool stripped)
Returns current Date and Time in UTC.
QDateTime GetRecordingStartTime(void) const
Approximate time the recording started.
static QString toString(RecStatus::Type recstatus, uint id)
Converts "recstatus" into a short (unreadable) string.
QHash< QString, QString > InfoMap
ProgramInfo * CurrentProgram(void)
RecStatus::Type GetRecordingStatus(void) const
void updateInfo(MythUIButtonListItem *item)
bool TranslateKeyPress(const QString &Context, QKeyEvent *Event, QStringList &Actions, bool AllowJumps=true)
Get a list of actions for a keypress in the given context.
static QString toDescription(Type recstatus, RecordingType rectype, const QDateTime &recstartts)
Converts "recstatus" into a long human readable description.
Basic menu dialog, message and a list of options.
void Load(void) override
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (S...
void BuildFocusList(void)
int m_recordid
recordid that differs from master (-1 = assume all)
virtual void SetTextFromMap(const InfoMap &infoMap)
QString toString(Verbosity v=kLongDescription, const QString &sep=":", const QString &grp="\"") 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...
ProgramList m_recListBefore
MythCoreContext * gCoreContext
This global variable contains the MythCoreContext instance for the app.
static bool Assign(ContainerType *container, UIType *&item, const QString &name, bool *err=nullptr)
uint GetInputID(void) const
uint GetChanID(void) const
This is the unique key used in the database to locate tuning information.
static int comp_recstart(const ProgramInfo *a, const ProgramInfo *b)
RecordingType GetRecordingRuleType(void) const
Holds information on recordings and videos.
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
static bool LoadWindowFromXML(const QString &xmlfile, const QString &windowname, MythUIType *parent)
MythUIText * m_noChangesText
static uint GetSourceIDForChannel(uint chanid)
virtual void SetText(const QString &text)
MythMainWindow * GetMythMainWindow(void)
MythScreenStack * GetStack(const QString &Stackname)
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
MythUIButtonList * m_conflictList
iterator erase(iterator it)
virtual void AddScreen(MythScreenType *screen, bool allowFade=true)
QString GetSetting(const QString &key, const QString &defaultval="")