MythTV  master
setupwizard_video.h
Go to the documentation of this file.
1 #ifndef VIDEOSETUPWIZARD_H
2 #define VIDEOSETUPWIZARD_H
3 
4 // Utility headers
5 #include <videodisplayprofile.h>
6 
7 // libmythui
8 #include <mythuibutton.h>
9 #include <mythuibuttonlist.h>
10 #include <mythprogressdialog.h>
11 #include <mythscreentype.h>
12 #include <mythdialogbox.h>
13 
14 extern const QString VIDEO_SAMPLE_HD_LOCATION;
15 extern const QString VIDEO_SAMPLE_SD_LOCATION;
16 extern const QString VIDEO_SAMPLE_HD_FILENAME;
17 extern const QString VIDEO_SAMPLE_SD_FILENAME;
18 
20 {
21  Q_OBJECT
22 
23  public:
24 
26  MythScreenType *audio, const char *name = nullptr);
27  ~VideoSetupWizard() override;
28 
29  bool Create(void) override; // MythScreenType
30  bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
31  void customEvent(QEvent *e) override; // MythUIType
32 
33  void save(void);
34 
35  private:
36  void initProgressDialog();
37 
38  enum TestType
39  {
40  ttNone = 0,
43  };
44 
45  QString m_downloadFile;
47 
50 
54 
57 
60 
61  private slots:
62  void slotNext(void);
63  void slotPrevious(void);
64  void loadData(void);
65 
66  void testSDVideo(void);
67  void testHDVideo(void);
68  void playVideoTest(const QString& desc,
69  const QString& title,
70  const QString& file);
71 
72  void DownloadSample(const QString& url, const QString& dest);
73 };
74 
75 #endif
VIDEO_SAMPLE_SD_LOCATION
const QString VIDEO_SAMPLE_SD_LOCATION
Definition: setupwizard_video.cpp:21
VideoSetupWizard::m_generalScreen
MythScreenType * m_generalScreen
Definition: setupwizard_video.h:48
VideoSetupWizard::~VideoSetupWizard
~VideoSetupWizard() override
Definition: setupwizard_video.cpp:86
e
QDomElement e
Definition: mythplugins/mytharchive/mytharchivehelper/main.cpp:1420
build_compdb.dest
dest
Definition: build_compdb.py:9
VideoSetupWizard::playVideoTest
void playVideoTest(const QString &desc, const QString &title, const QString &file)
Definition: setupwizard_video.cpp:196
VideoSetupWizard::ttHighDefinition
@ ttHighDefinition
Definition: setupwizard_video.h:41
title
QString title
Definition: mythplugins/mytharchive/mytharchivehelper/main.cpp:636
VideoSetupWizard::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition: setupwizard_video.cpp:141
VIDEO_SAMPLE_SD_FILENAME
const QString VIDEO_SAMPLE_SD_FILENAME
Definition: setupwizard_video.cpp:25
VideoSetupWizard::testSDVideo
void testSDVideo(void)
Definition: setupwizard_video.cpp:154
VideoSetupWizard::initProgressDialog
void initProgressDialog()
Definition: setupwizard_video.cpp:213
VIDEO_SAMPLE_HD_LOCATION
const QString VIDEO_SAMPLE_HD_LOCATION
Definition: setupwizard_video.cpp:19
VideoSetupWizard::Create
bool Create(void) override
Definition: setupwizard_video.cpp:39
mythdialogbox.h
MythScreenStack
Definition: mythscreenstack.h:16
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:45
VideoSetupWizard::save
void save(void)
Definition: setupwizard_video.cpp:129
build_compdb.file
file
Definition: build_compdb.py:55
mythuibuttonlist.h
mythprogressdialog.h
VideoSetupWizard::customEvent
void customEvent(QEvent *e) override
Definition: setupwizard_video.cpp:230
VideoSetupWizard::ttStandardDefinition
@ ttStandardDefinition
Definition: setupwizard_video.h:42
VideoSetupWizard::m_downloadFile
QString m_downloadFile
Definition: setupwizard_video.h:45
videodisplayprofile.h
VideoSetupWizard::m_playbackProfileButtonList
MythUIButtonList * m_playbackProfileButtonList
Definition: setupwizard_video.h:51
VideoSetupWizard
Definition: setupwizard_video.h:20
MythUIProgressDialog
Definition: mythprogressdialog.h:60
VideoSetupWizard::slotPrevious
void slotPrevious(void)
Definition: setupwizard_video.cpp:136
VideoSetupWizard::ttNone
@ ttNone
Definition: setupwizard_video.h:40
MythUIButton
A single button widget.
Definition: mythuibutton.h:22
VideoSetupWizard::m_progressDialog
MythUIProgressDialog * m_progressDialog
Definition: setupwizard_video.h:53
VideoSetupWizard::VideoSetupWizard
VideoSetupWizard(MythScreenStack *parent, MythScreenType *general, MythScreenType *audio, const char *name=nullptr)
Definition: setupwizard_video.cpp:28
VideoSetupWizard::TestType
TestType
Definition: setupwizard_video.h:39
VideoSetupWizard::m_nextButton
MythUIButton * m_nextButton
Definition: setupwizard_video.h:58
VideoSetupWizard::m_testType
TestType m_testType
Definition: setupwizard_video.h:46
VideoSetupWizard::m_prevButton
MythUIButton * m_prevButton
Definition: setupwizard_video.h:59
VideoSetupWizard::slotNext
void slotNext(void)
Definition: setupwizard_video.cpp:110
VideoSetupWizard::testHDVideo
void testHDVideo(void)
Definition: setupwizard_video.cpp:175
mythuibutton.h
VideoSetupWizard::m_testSDButton
MythUIButton * m_testSDButton
Definition: setupwizard_video.h:55
VideoSetupWizard::loadData
void loadData(void)
Definition: setupwizard_video.cpp:91
VideoSetupWizard::DownloadSample
void DownloadSample(const QString &url, const QString &dest)
Definition: setupwizard_video.cpp:207
VideoSetupWizard::m_testHDButton
MythUIButton * m_testHDButton
Definition: setupwizard_video.h:56
VIDEO_SAMPLE_HD_FILENAME
const QString VIDEO_SAMPLE_HD_FILENAME
Definition: setupwizard_video.cpp:23
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition: mythuibuttonlist.h:144
VideoSetupWizard::m_audioScreen
MythScreenType * m_audioScreen
Definition: setupwizard_video.h:49
mythscreentype.h
VideoSetupWizard::m_popupStack
MythScreenStack * m_popupStack
Definition: setupwizard_video.h:52