00001 #ifndef VIEWSCHEDULED_H_ 00002 #define VIEWSCHEDULED_H_ 00003 00004 // QT 00005 #include <QDateTime> 00006 #include <QString> 00007 #include <QMap> 00008 00009 // MythTV 00010 #include "schedulecommon.h" 00011 #include "mythscreentype.h" 00012 #include "programinfo.h" 00013 00014 class TV; 00015 class Timer; 00016 00017 class MythUIText; 00018 class MythUIStateType; 00019 class MythUIButtonList; 00020 class MythUIButtonListItem; 00021 00027 class ViewScheduled : public ScheduleCommon 00028 { 00029 Q_OBJECT 00030 public: 00031 explicit ViewScheduled(MythScreenStack *parent, TV *player = NULL, 00032 bool showTV = false); 00033 ~ViewScheduled(); 00034 00035 static void * RunViewScheduled(void *player, bool); 00036 00037 virtual bool Create(void); // MythScreenType 00038 virtual void ShowMenu(void); // MythScreenType 00039 virtual bool keyPressEvent(QKeyEvent *); // QObject 00040 virtual void customEvent(QEvent*); // QObject 00041 00042 protected slots: 00043 void ChangeGroup(MythUIButtonListItem *item); 00044 void edit(); 00045 void customEdit(); 00046 void deleteRule(); 00047 void upcoming(); 00048 void upcomingScheduled(); 00049 void details(); 00050 void selected(MythUIButtonListItem *); 00051 void updateInfo(MythUIButtonListItem *); 00052 void SwitchList(void); 00053 void Close(void); 00054 00055 protected: 00056 virtual void Load(void); // MythScreenType 00057 virtual void Init(void); // MythScreenType 00058 00059 private: 00060 void FillList(void); 00061 void LoadList(bool useExistingData = false); 00062 void setShowAll(bool all); 00063 void viewCards(void); 00064 void viewInputs(void); 00065 00066 void EmbedTVWindow(void); 00067 00068 bool m_conflictBool; 00069 QDate m_conflictDate; 00070 00071 QRect m_tvRect; 00072 00073 MythUIButtonList *m_schedulesList; 00074 MythUIButtonList *m_groupList; 00075 00076 bool m_showAll; 00077 00078 bool m_inEvent; 00079 bool m_inFill; 00080 bool m_needFill; 00081 00082 int m_listPos; 00083 ProgramList m_recList; 00084 QMap<QDate, ProgramList> m_recgroupList; 00085 00086 QDate m_currentGroup; 00087 QDate m_defaultGroup; 00088 00089 QMap<int, int> m_cardref; 00090 uint m_maxcard; 00091 uint m_curcard; 00092 00093 QMap<int, int> m_inputref; 00094 uint m_maxinput; 00095 uint m_curinput; 00096 00097 TV *m_player; 00098 }; 00099 00100 #endif
1.6.3