MythTV  master
channelrecpriority.h
Go to the documentation of this file.
1 #ifndef CHANNELRECPRIORITY_H_
2 #define CHANNELRECPRIORITY_H_
3 
4 #include "mythscreentype.h"
5 
6 #include "programinfo.h"
7 
8 class ChannelInfo;
9 
10 class MythUIText;
11 class MythUIImage;
12 class MythUIStateType;
13 class MythUIButtonList;
15 
23 {
24  Q_OBJECT
25  public:
26  explicit ChannelRecPriority(MythScreenStack *parent);
27  ~ChannelRecPriority() override;
28 
29  bool Create(void) override; // MythScreenType
30  bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
31  void customEvent(QEvent *event) override; // MythUIType
32 
33  enum SortType
34  {
37  };
38 
39  protected slots:
40  void updateInfo(MythUIButtonListItem *item);
41 
42  private:
43  void FillList(void);
44  void SortList(void);
45  void updateList(void);
46  void ShowMenu(void) override; // MythScreenType
47  void upcoming(void);
48  void changeRecPriority(int howMuch);
49  static void applyChannelRecPriorityChange(const QString &chanid, const QString &newrecpriority);
50 
51  void saveRecPriority(void);
52 
53  QMap<QString, ChannelInfo> m_channelData;
54  QMap<QString, ChannelInfo*> m_sortedChannel;
55  QMap<QString, QString> m_origRecPriorityData;
56 
58 
66 
68 
70 
72 };
73 
74 #endif
This widget is used for grouping other widgets for display when a particular named state is called.
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
unsigned int slots[4]
Definition: element.c:38
MythUIImage * m_iconImage
ChannelRecPriority(MythScreenStack *parent)
MythUIText * m_chanNameText
All purpose text widget, displays a text string.
Definition: mythuitext.h:28
Image widget, displays a single image or multiple images in sequence.
Definition: mythuiimage.h:97
MythUIText * m_priorityText
void ShowMenu(void) override
void changeRecPriority(int howMuch)
ChannelInfo * m_currentItem
MythUIText * m_sourceNameText
MythUIButtonList * m_channelList
QMap< QString, ChannelInfo > m_channelData
bool Create(void) override
QMap< QString, ChannelInfo * > m_sortedChannel
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
MythUIText * m_chanNumText
MythUIText * m_chanstringText
Screen for managing channel priorities in recording scheduling decisions.
void updateInfo(MythUIButtonListItem *item)
MythUIText * m_sourceIdText
MythUIText * m_callSignText
static void applyChannelRecPriorityChange(const QString &chanid, const QString &newrecpriority)
Screen in which all other widgets are contained and rendered.
void customEvent(QEvent *event) override
QMap< QString, QString > m_origRecPriorityData