MythTV master
channelrecpriority.h
Go to the documentation of this file.
1#ifndef CHANNELRECPRIORITY_H_
2#define CHANNELRECPRIORITY_H_
3
5
6class ChannelInfo;
7
8class MythUIText;
9class MythUIImage;
10class MythUIStateType;
13
21{
22 Q_OBJECT
23 public:
24 explicit ChannelRecPriority(MythScreenStack *parent);
25 ~ChannelRecPriority() override;
26
27 bool Create(void) override; // MythScreenType
28 bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
29 void customEvent(QEvent *event) override; // MythUIType
30
31 enum SortType : std::uint8_t
32 {
35 };
36
37 protected slots:
39
40 private:
41 void FillList(void);
42 void SortList(void);
43 void updateList(void);
44 void ShowMenu(void) override; // MythScreenType
45 void upcoming(void);
46 void changeRecPriority(int howMuch);
47 static void applyChannelRecPriorityChange(const QString &chanid, const QString &newrecpriority);
48
49 void saveRecPriority(void);
50
51 QMap<QString, ChannelInfo> m_channelData;
52 QMap<QString, ChannelInfo*> m_sortedChannel;
53 QMap<QString, QString> m_origRecPriorityData;
54
56
64
66
68
70};
71
72#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