29 m_startDateTime(m_nowDateTime)
54 LOG(VB_GENERAL, LOG_ERR,
55 "ManualSchedule, theme is missing required elements");
66 for (
size_t i = 0; i < channels.size(); i++)
72 channels[i].ToMap(infomap);
73 item->SetTextFromMap(infomap);
74 if (manStartChanType == 1)
77 if (channels[i].m_chanNum == startchan)
86 if (channels[i].m_chanNum == lastManualRecordChan)
89 lastManualRecordChan =
"";
92 m_chanids.push_back(channels[i].m_chanId);
95 for (
uint index = 0; index <= 60; index++)
100 if (
m_nowDateTime.addDays(index).toLocalTime().date().dayOfWeek() < 6)
101 dinfo += QString(
" (%1)").arg(tr(
"5 weekdays if daily"));
103 dinfo += QString(
" (%1)").arg(tr(
"7 days per week if daily"));
105 if (
m_nowDateTime.addDays(index).toLocalTime().toString(
"MMdd") ==
111 thisTime = thisTime.addSecs((30 - (thisTime.minute() % 30)) * 60);
113 if (thisTime < QTime(0,30))
118 int minute_increment =
188#if QT_VERSION < QT_VERSION_CHECK(6,5,0)
191 QTime(hr, min), Qt::LocalTime).toUTC();
196 QTimeZone(QTimeZone::LocalTime))
200 LOG(VB_SCHEDULE, LOG_INFO, QString(
"Start Date Time: %1")
206#if QT_VERSION < QT_VERSION_CHECK(6,5,0)
207 QDateTime tmp = QDateTime(
210 Qt::LocalTime).toUTC();
215 QTimeZone(QTimeZone::LocalTime))
222#if QT_VERSION < QT_VERSION_CHECK(6,5,0)
225 QTime(hr, min), Qt::LocalTime).toUTC();
229 QTimeZone(QTimeZone::LocalTime))
243 LOG(VB_GENERAL, LOG_ERR,
"Channel out of range.");
257 record->LoadByProgram(&
p);
263 if (schededit->Create())
280#include "moc_manualschedule.cpp"
std::vector< ChannelInfo > ChannelInfoList
static void SortChannels(ChannelInfoList &list, const QString &order, bool eliminate_duplicates=false)
static QString GetChanNum(int chan_id)
Returns the channel-number string of the given channel.
static ChannelInfoList GetChannels(uint sourceid, bool visible_only, const QString &group_by=QString(), uint channel_groupid=0)
MythUISpinBox * m_starthourSpin
MythUITextEdit * m_titleEdit
bool Create(void) override
MythUIButtonList * m_startdateList
ManualSchedule(MythScreenStack *parent)
MythUISpinBox * m_durationSpin
void scheduleCreated(int ruleid)
MythUIButtonList * m_channelList
QDateTime m_startDateTime
void minuteRollover(void)
MythUISpinBox * m_startminuteSpin
QList< uint32_t > m_chanids
MythUIButton * m_recordButton
MythUIButton * m_cancelButton
void SaveSetting(const QString &key, int newValue)
QString GetSetting(const QString &key, const QString &defaultval="")
int GetNumSetting(const QString &key, int defaultval=0)
MythScreenStack * GetMainStack()
virtual void AddScreen(MythScreenType *screen, bool allowFade=true)
Screen in which all other widgets are contained and rendered.
void BuildFocusList(void)
A widget for offering a range of numerical values where only the the bounding values and interval are...
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.
void SetValue(int val) override
int GetIntValue(void) const override
A text entry and edit widget.
QString GetText(void) const
void SetMaxLength(int length)
MythUIType * GetChild(const QString &name) const
Get a named child of this UIType.
Holds information on recordings and videos.
Internal representation of a recording rule, mirrors the record table.
Construct a recording schedule.
void ruleSaved(int ruleId)
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
QString toString(const QDateTime &raw_dt, uint format)
Returns formatted string representing the time.
@ kSimplify
Do Today/Yesterday/Tomorrow transform.
@ kDateFull
Default local time.
QDateTime current(bool stripped)
Returns current Date and Time in UTC.