00001 #ifndef CHANNELRECPRIORITY_H_ 00002 #define CHANNELRECPRIORITY_H_ 00003 00004 #include "mythscreentype.h" 00005 00006 #include "programinfo.h" 00007 00008 class ChannelInfo; 00009 00010 class MythUIText; 00011 class MythUIImage; 00012 class MythUIStateType; 00013 class MythUIButtonList; 00014 class MythUIButtonListItem; 00015 00022 class ChannelRecPriority : public MythScreenType 00023 { 00024 Q_OBJECT 00025 public: 00026 ChannelRecPriority(MythScreenStack *parent); 00027 ~ChannelRecPriority(); 00028 00029 bool Create(void); 00030 bool keyPressEvent(QKeyEvent *); 00031 void customEvent(QEvent *event); 00032 00033 enum SortType 00034 { 00035 byChannel, 00036 byRecPriority, 00037 }; 00038 00039 protected slots: 00040 void updateInfo(MythUIButtonListItem *); 00041 00042 private: 00043 void FillList(void); 00044 void SortList(void); 00045 void updateList(void); 00046 void ShowMenu(void); 00047 void upcoming(void); 00048 void changeRecPriority(int howMuch); 00049 void applyChannelRecPriorityChange(QString, const QString&); 00050 00051 void saveRecPriority(void); 00052 00053 QMap<QString, ChannelInfo> m_channelData; 00054 QMap<QString, ChannelInfo*> m_sortedChannel; 00055 QMap<QString, QString> m_origRecPriorityData; 00056 QMap<int, bool> m_visMap; 00057 00058 MythUIButtonList *m_channelList; 00059 00060 MythUIText *m_chanstringText; 00061 MythUIText *m_channameText; 00062 MythUIText *m_channumText; 00063 MythUIText *m_callsignText; 00064 MythUIText *m_sourcenameText; 00065 MythUIText *m_sourceidText; 00066 MythUIText *m_priorityText; 00067 00068 MythUIImage *m_iconImage; 00069 00070 SortType m_sortType; 00071 00072 ChannelInfo *m_currentItem; 00073 }; 00074 00075 #endif
1.6.3