00001 #ifndef VIDEOSETUPWIZARD_H 00002 #define VIDEOSETUPWIZARD_H 00003 00004 #include <uitypes.h> 00005 #include <mythwidgets.h> 00006 #include <mythdialogs.h> 00007 00008 // Utility headers 00009 #include <videodisplayprofile.h> 00010 00011 // libmythui 00012 #include <mythuibutton.h> 00013 #include <mythuibuttonlist.h> 00014 #include <mythprogressdialog.h> 00015 #include <mythscreentype.h> 00016 #include <mythdialogbox.h> 00017 00018 extern const QString VIDEO_SAMPLE_HD_LOCATION; 00019 extern const QString VIDEO_SAMPLE_SD_LOCATION; 00020 extern const QString VIDEO_SAMPLE_HD_FILENAME; 00021 extern const QString VIDEO_SAMPLE_SD_FILENAME; 00022 00023 class VideoSetupWizard : public MythScreenType 00024 { 00025 Q_OBJECT 00026 00027 public: 00028 00029 VideoSetupWizard(MythScreenStack *parent, MythScreenType *general, 00030 MythScreenType *audio, const char *name = 0); 00031 ~VideoSetupWizard(); 00032 00033 bool Create(void); 00034 bool keyPressEvent(QKeyEvent *); 00035 void customEvent(QEvent *e); 00036 00037 void save(void); 00038 00039 private: 00040 void initProgressDialog(); 00041 00042 enum TestType 00043 { 00044 ttNone = 0, 00045 ttHighDefinition, 00046 ttStandardDefinition 00047 }; 00048 00049 QString m_downloadFile; 00050 TestType m_testType; 00051 00052 MythScreenType *m_generalScreen; 00053 MythScreenType *m_audioScreen; 00054 00055 MythUIButtonList *m_playbackProfileButtonList; 00056 MythScreenStack *m_popupStack; 00057 MythUIProgressDialog *m_progressDialog; 00058 00059 MythUIButton *m_testSDButton; 00060 MythUIButton *m_testHDButton; 00061 00062 MythUIButton *m_nextButton; 00063 MythUIButton *m_prevButton; 00064 00065 VideoDisplayProfile *m_vdp; 00066 00067 private slots: 00068 void slotNext(void); 00069 void slotPrevious(void); 00070 void loadData(void); 00071 00072 void testSDVideo(void); 00073 void testHDVideo(void); 00074 void playVideoTest(QString desc, 00075 QString title, 00076 QString file); 00077 00078 void DownloadSample(QString url, QString dest); 00079 }; 00080 00081 #endif
1.6.3