1#ifndef PROGRAMRECPROIRITY_H_
2#define PROGRAMRECPROIRITY_H_
35 {
if (
this != &other)
clone(other);
return *
this; }
37 {
if (
this != &other)
clone(other);
return *
this; }
39 {
if (
this != &other)
clone(other);
return *
this; }
41 bool ignore_non_serialized_data =
false);
43 bool ignore_non_serialized_data =
false)
override;
45 bool ignore_non_serialized_data =
false)
override;
47 void clear(
void)
override;
50 bool showrerecord =
false,
52 uint date_format = 0)
const override;
71 bool Create(
void)
override;
92 void Load(
void)
override;
93 void Init(
void)
override;
This widget is used for grouping other widgets for display when a particular named state is called.
All purpose text widget, displays a text string.
Holds information on recordings and videos.
void clear(void) override
ProgramRecPriorityInfo(const ProgramRecPriorityInfo &)=default
ProgramRecPriorityInfo & operator=(const RecordingInfo &other)
ProgramRecPriorityInfo()=default
virtual void clone(const ProgramRecPriorityInfo &other, bool ignore_non_serialized_data=false)
void ToMap(InfoMap &progMap, bool showrerecord=false, uint star_range=10, uint date_format=0) const override
Converts ProgramInfo into QString QHash containing each field in ProgramInfo converted into localized...
ProgramRecPriorityInfo & operator=(const ProgramRecPriorityInfo &other)
ProgramRecPriorityInfo & operator=(const ProgramInfo &other)
MythUIText * m_schedInfoText
ProgramInfo * GetCurrentProgram(void) const override
MythUIText * m_chanNameText
void saveRecPriority(void)
QMap< int, int > m_origRecPriorityData
void updateInfo(MythUIButtonListItem *item)
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
void edit(MythUIButtonListItem *item) const
void Load(void) override
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (S...
MythUIText * m_lastRecordedTimeText
std::vector< ProgramRecPriorityInfo * > m_sortedProgram
void changeRecPriority(int howMuch)
~ProgramRecPriority() override=default
ProgramRecPriority(MythScreenStack *parent, const QString &name)
QMap< int, int > m_nowMatch
MythUIText * m_callSignText
MythUIText * m_recPriorityBText
MythUIButtonList * m_programList
QMap< int, int > m_conMatch
QMap< int, int > m_listMatch
MythUIText * m_finalPriorityText
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
void newTemplate(QString category)
void customEvent(QEvent *event) override
MythUIText * m_lastRecordedDateText
MythUIText * m_chanNumText
MythUIText * m_lastRecordedText
void scheduleChanged(int recid)
MythUIText * m_recPriorityText
QMap< int, ProgramRecPriorityInfo > m_programData
bool Create(void) override
QMap< int, int > m_recMatch
ProgramRecPriorityInfo * m_currentItem
void RemoveItemFromList(MythUIButtonListItem *item)
void SortList(ProgramRecPriorityInfo *newCurrentItem=nullptr)
MythUIText * m_recProfileText
Holds information on a TV Program one might wish to record.
Internal representation of a recording rule, mirrors the record table.
Q_DECLARE_METATYPE(std::chrono::seconds)
QHash< QString, QString > InfoMap