Go to the documentation of this file.
35 m_startDateTime(m_nowDateTime)
60 LOG(VB_GENERAL, LOG_ERR,
61 "ManualSchedule, theme is missing required elements");
70 for (
size_t i = 0; i < channels.size(); i++)
76 channels[i].ToMap(infomap);
77 item->SetTextFromMap(infomap);
78 if (channels[i].m_chanNum == startchan)
83 m_chanids.push_back(channels[i].m_chanId);
86 for (
uint index = 0; index <= 60; index++)
91 if (
m_nowDateTime.addDays(index).toLocalTime().date().dayOfWeek() < 6)
92 dinfo += QString(
" (%1)").arg(tr(
"5 weekdays if daily"));
94 dinfo += QString(
" (%1)").arg(tr(
"7 days per week if daily"));
96 if (
m_nowDateTime.addDays(index).toLocalTime().toString(
"MMdd") ==
102 thisTime = thisTime.addSecs((30 - (thisTime.minute() % 30)) * 60);
104 if (thisTime < QTime(0,30))
109 int minute_increment =
181 QTime(hr, min), Qt::LocalTime).toUTC();
183 LOG(VB_SCHEDULE, LOG_INFO, QString(
"Start Date Time: %1")
189 QDateTime
tmp = QDateTime(
192 Qt::LocalTime).toUTC();
199 QTime(hr, min), Qt::LocalTime).toUTC();
211 LOG(VB_GENERAL, LOG_ERR,
"Channel out of range.");
220 record->LoadByProgram(&
p);
226 if (schededit->Create())
MythUIButton * m_cancelButton
MythScreenStack * GetMainStack()
void SetMaxLength(int length)
MythUIButtonList * m_channelList
QString toString(const QDateTime &raw_dt, uint format)
Returns formatted string representing the time.
void minuteRollover(void)
MythUIButtonList * m_startdateList
MythUIType * GetChild(const QString &name) const
Get a named child of this UIType.
arg(title).arg(filename).arg(doDelete))
Internal representation of a recording rule, mirrors the record table.
A text entry and edit widget.
MythUISpinBox * m_startminuteSpin
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
Screen in which all other widgets are contained and rendered.
bool Create(void) override
void ruleSaved(int ruleId)
QString GetText(void) const
void SetRange(int low, int high, int step, uint pageMultiple=5)
Set the lower and upper bounds of the spinbox, the interval and page amount.
QDateTime current(bool stripped)
Returns current Date and Time in UTC.
QHash< QString, QString > InfoMap
static void SortChannels(ChannelInfoList &list, const QString &order, bool eliminate_duplicates=false)
void SetValue(int val) override
QList< uint32_t > m_chanids
MythUISpinBox * m_starthourSpin
int GetIntValue(void) const override
void BuildFocusList(void)
ManualSchedule(MythScreenStack *parent)
static ChannelInfoList GetChannels(uint sourceid, bool visible_only, const QString &group_by=QString(), uint channel_groupid=0)
MythCoreContext * gCoreContext
This global variable contains the MythCoreContext instance for the app.
int GetNumSetting(const QString &key, int defaultval=0)
@ kSimplify
Do Today/Yesterday/Tomorrow transform.
Holds information on recordings and videos.
static bool LoadWindowFromXML(const QString &xmlfile, const QString &windowname, MythUIType *parent)
MythUISpinBox * m_durationSpin
MythUITextEdit * m_titleEdit
MythUIButton * m_recordButton
MythMainWindow * GetMythMainWindow(void)
void scheduleCreated(int ruleid)
A widget for offering a range of numerical values where only the the bounding values and interval are...
@ kDateFull
Default local time.
virtual void AddScreen(MythScreenType *screen, bool allowFade=true)
Construct a recording schedule.
QDateTime m_startDateTime
QString GetSetting(const QString &key, const QString &defaultval="")
std::vector< ChannelInfo > ChannelInfoList