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);
28 
29  bool Create(void) override; // MythScreenType
30  bool keyPressEvent(QKeyEvent *) override; // MythScreenType
31  void customEvent(QEvent *event) override; // MythUIType
32 
33  enum SortType
34  {
37  };
38 
39  protected slots:
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  void applyChannelRecPriorityChange(const QString&, const QString&);
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.
unsigned int slots[4]
Definition: element.c:38
MythUIImage * m_iconImage
ChannelRecPriority(MythScreenStack *parent)
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
MythUIButtonList * m_channelList
MythUIText * m_channumText
QMap< QString, ChannelInfo > m_channelData
MythUIText * m_sourceidText
bool Create(void) override
void updateInfo(MythUIButtonListItem *)
QMap< QString, ChannelInfo * > m_sortedChannel
MythUIText * m_sourcenameText
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
MythUIText * m_channameText
MythUIText * m_chanstringText
Screen for managing channel priorities in recording scheduling decisions.
void applyChannelRecPriorityChange(const QString &, const QString &)
Screen in which all other widgets are contained and rendered.
MythUIText * m_callsignText
void customEvent(QEvent *event) override
QMap< QString, QString > m_origRecPriorityData
bool keyPressEvent(QKeyEvent *) override
Key event handler.