Go to the documentation of this file.
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())
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.
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.
void SaveSetting(const QString &key, int newValue)
static QString GetChanNum(int chan_id)
Returns the channel-number string of the given channel.
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