00001 #ifndef VIEWSCHEDULEDIFF_H_ 00002 #define VIEWSCHEDULEDIFF_H_ 00003 00004 // C++ headers 00005 #include <vector> 00006 using namespace std; 00007 00008 // mythui 00009 #include "mythscreentype.h" 00010 00011 // mythtv 00012 #include "programinfo.h" 00013 00014 class ProgramStruct 00015 { 00016 public: 00017 ProgramStruct() : before(NULL), after(NULL) {} 00018 ProgramInfo *before; 00019 ProgramInfo *after; 00020 }; 00021 00022 class QKeyEvent; 00023 00024 class ViewScheduleDiff : public MythScreenType 00025 { 00026 Q_OBJECT 00027 public: 00028 ViewScheduleDiff(MythScreenStack *parent, QString altTbl, 00029 int recordid = -1, QString ltitle = ""); 00030 ~ViewScheduleDiff(); 00031 00032 bool Create(void); 00033 bool keyPressEvent(QKeyEvent *); 00034 00035 private slots: 00036 void updateInfo(MythUIButtonListItem *item); 00037 void showStatus(MythUIButtonListItem *item); 00038 00039 private: 00040 virtual void Load(void); 00041 virtual void Init(void); 00042 00043 void fillList(void); 00044 void updateUIList(); 00045 00046 ProgramInfo *CurrentProgram(void); 00047 00048 bool m_inEvent; 00049 bool m_inFill; 00050 00051 ProgramList m_recListBefore; 00052 ProgramList m_recListAfter; 00053 00054 QString m_altTable; 00055 QString m_title; 00056 00057 MythUIButtonList *m_conflictList; 00058 MythUIText *m_titleText; 00059 MythUIText *m_noChangesText; 00060 00061 vector<class ProgramStruct> m_recList; 00062 00063 int m_recordid; 00064 }; 00065 00066 #endif
1.6.3