MythTV master
channelrecpriority.h
Go to the documentation of this file.
1#ifndef CHANNELRECPRIORITY_H_
2#define CHANNELRECPRIORITY_H_
3
6
7class ChannelInfo;
8
9class MythUIText;
10class MythUIImage;
11class MythUIStateType;
14
22{
23 Q_OBJECT
24 public:
25 explicit ChannelRecPriority(MythScreenStack *parent);
26 ~ChannelRecPriority() override;
27
28 bool Create(void) override; // MythScreenType
29 bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
30 void customEvent(QEvent *event) override; // MythUIType
31
32 enum SortType : std::uint8_t
33 {
36 };
37
38 protected slots:
40
41 private:
42 void FillList(void);
43 void SortList(void);
44 void updateList(void);
45 void ShowMenu(void) override; // MythScreenType
46 void upcoming(void);
47 void changeRecPriority(int howMuch);
48 static void applyChannelRecPriorityChange(const QString &chanid, const QString &newrecpriority);
49
50 void saveRecPriority(void);
51
52 QMap<QString, ChannelInfo> m_channelData;
53 QMap<QString, ChannelInfo*> m_sortedChannel;
54 QMap<QString, QString> m_origRecPriorityData;
55
57
65
67
69
71};
72
73#endif
Screen for managing channel priorities in recording scheduling decisions.
void customEvent(QEvent *event) override
MythUIButtonList * m_channelList
bool Create(void) override
QMap< QString, ChannelInfo > m_channelData
ChannelRecPriority(MythScreenStack *parent)
ChannelInfo * m_currentItem
void ShowMenu(void) override
MythUIText * m_sourceNameText
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
MythUIText * m_chanstringText
MythUIText * m_chanNumText
MythUIImage * m_iconImage
MythUIText * m_callSignText
void changeRecPriority(int howMuch)
static void applyChannelRecPriorityChange(const QString &chanid, const QString &newrecpriority)
QMap< QString, ChannelInfo * > m_sortedChannel
QMap< QString, QString > m_origRecPriorityData
MythUIText * m_chanNameText
MythUIText * m_priorityText
void updateInfo(MythUIButtonListItem *item)
MythUIText * m_sourceIdText
Screen in which all other widgets are contained and rendered.
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Image widget, displays a single image or multiple images in sequence.
Definition: mythuiimage.h:98
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.
Definition: mythuitext.h:29