28 m_startDateTime(m_nowDateTime)
53 LOG(VB_GENERAL, LOG_ERR,
54 "ManualSchedule, theme is missing required elements");
65 for (
size_t i = 0; i < channels.size(); i++)
71 channels[i].ToMap(infomap);
72 item->SetTextFromMap(infomap);
73 if (manStartChanType == 1)
76 if (channels[i].m_chanNum == startchan)
85 if (channels[i].m_chanNum == lastManualRecordChan)
88 lastManualRecordChan =
"";
91 m_chanids.push_back(channels[i].m_chanId);
94 for (
uint index = 0; index <= 60; index++)
99 if (
m_nowDateTime.addDays(index).toLocalTime().date().dayOfWeek() < 6)
100 dinfo += QString(
" (%1)").arg(tr(
"5 weekdays if daily"));
102 dinfo += QString(
" (%1)").arg(tr(
"7 days per week if daily"));
104 if (
m_nowDateTime.addDays(index).toLocalTime().toString(
"MMdd") ==
110 thisTime = thisTime.addSecs((30 - (thisTime.minute() % 30)) * 60);
112 if (thisTime < QTime(0,30))
117 int minute_increment =
187#if QT_VERSION < QT_VERSION_CHECK(6,5,0)
190 QTime(hr, min), Qt::LocalTime).toUTC();
195 QTimeZone(QTimeZone::LocalTime))
199 LOG(VB_SCHEDULE, LOG_INFO, QString(
"Start Date Time: %1")
205#if QT_VERSION < QT_VERSION_CHECK(6,5,0)
206 QDateTime
tmp = QDateTime(
209 Qt::LocalTime).toUTC();
214 QTimeZone(QTimeZone::LocalTime))
221#if QT_VERSION < QT_VERSION_CHECK(6,5,0)
224 QTime(hr, min), Qt::LocalTime).toUTC();
228 QTimeZone(QTimeZone::LocalTime))
242 LOG(VB_GENERAL, LOG_ERR,
"Channel out of range.");
256 record->LoadByProgram(&
p);
262 if (schededit->Create())
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.