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
ChannelInfo
Definition: channelinfo.h:33
ChannelRecPriority::m_origRecPriorityData
QMap< QString, QString > m_origRecPriorityData
Definition: channelrecpriority.h:55
ChannelRecPriority::upcoming
void upcoming(void)
Definition: channelrecpriority.cpp:424
MythUIImage
Image widget, displays a single image or multiple images in sequence.
Definition: mythuiimage.h:97
ChannelRecPriority::m_priorityText
MythUIText * m_priorityText
Definition: channelrecpriority.h:65
ChannelRecPriority::m_channelList
MythUIButtonList * m_channelList
Definition: channelrecpriority.h:57
ChannelRecPriority::m_channelData
QMap< QString, ChannelInfo > m_channelData
Definition: channelrecpriority.h:53
ChannelRecPriority::saveRecPriority
void saveRecPriority(void)
Definition: channelrecpriority.cpp:217
MythScreenStack
Definition: mythscreenstack.h:15
ChannelRecPriority::Create
bool Create(void) override
Definition: channelrecpriority.cpp:69
slots
unsigned int slots[4]
Definition: element.cpp:38
ChannelRecPriority::m_sortedChannel
QMap< QString, ChannelInfo * > m_sortedChannel
Definition: channelrecpriority.h:54
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:44
ChannelRecPriority::m_chanNameText
MythUIText * m_chanNameText
Definition: channelrecpriority.h:60
ChannelRecPriority::m_iconImage
MythUIImage * m_iconImage
Definition: channelrecpriority.h:67
MythUIButtonListItem
Definition: mythuibuttonlist.h:27
ChannelRecPriority::ChannelRecPriority
ChannelRecPriority(MythScreenStack *parent)
Definition: channelrecpriority.cpp:52
ChannelRecPriority::SortList
void SortList(void)
Definition: channelrecpriority.cpp:339
ChannelRecPriority::m_currentItem
ChannelInfo * m_currentItem
Definition: channelrecpriority.h:71
programinfo.h
ChannelRecPriority::SortType
SortType
Definition: channelrecpriority.h:33
ChannelRecPriority::m_sourceNameText
MythUIText * m_sourceNameText
Definition: channelrecpriority.h:63
ChannelRecPriority::FillList
void FillList(void)
Definition: channelrecpriority.cpp:235
ChannelRecPriority::updateInfo
void updateInfo(MythUIButtonListItem *item)
Definition: channelrecpriority.cpp:393
ChannelRecPriority::customEvent
void customEvent(QEvent *event) override
Definition: channelrecpriority.cpp:446
ChannelRecPriority
Screen for managing channel priorities in recording scheduling decisions.
Definition: channelrecpriority.h:22
ChannelRecPriority::~ChannelRecPriority
~ChannelRecPriority() override
Definition: channelrecpriority.cpp:61
MythUIText
All purpose text widget, displays a text string.
Definition: mythuitext.h:28
ChannelRecPriority::m_chanNumText
MythUIText * m_chanNumText
Definition: channelrecpriority.h:61
ChannelRecPriority::updateList
void updateList(void)
Definition: channelrecpriority.cpp:291
ChannelRecPriority::m_sortType
SortType m_sortType
Definition: channelrecpriority.h:69
ChannelRecPriority::m_chanstringText
MythUIText * m_chanstringText
Definition: channelrecpriority.h:59
ChannelRecPriority::byChannel
@ byChannel
Definition: channelrecpriority.h:35
ChannelRecPriority::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition: channelrecpriority.cpp:97
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition: mythuibuttonlist.h:143
ChannelRecPriority::byRecPriority
@ byRecPriority
Definition: channelrecpriority.h:36
ChannelRecPriority::applyChannelRecPriorityChange
static void applyChannelRecPriorityChange(const QString &chanid, const QString &newrecpriority)
Definition: channelrecpriority.cpp:204
MythUIStateType
This widget is used for grouping other widgets for display when a particular named state is called....
Definition: mythuistatetype.h:22
ChannelRecPriority::m_sourceIdText
MythUIText * m_sourceIdText
Definition: channelrecpriority.h:64
ChannelRecPriority::m_callSignText
MythUIText * m_callSignText
Definition: channelrecpriority.h:62
ChannelRecPriority::ShowMenu
void ShowMenu(void) override
Definition: channelrecpriority.cpp:150
mythscreentype.h
ChannelRecPriority::changeRecPriority
void changeRecPriority(int howMuch)
Definition: channelrecpriority.cpp:178