MythTV  master
setupwizard_audio.h
Go to the documentation of this file.
1 #ifndef AUDIOSETUPWIZARD_H
2 #define AUDIOSETUPWIZARD_H
3 
4 // libmythui
5 #include <mythuibutton.h>
6 #include <mythuibuttonlist.h>
7 #include <mythscreentype.h>
8 #include <mythdialogbox.h>
9 #include <audiooutput.h>
10 
11 class AudioTestThread;
12 
14 {
15  Q_OBJECT
16 
17  public:
18 
20  const char *name = nullptr)
21  : MythScreenType(parent, name),
22  m_generalScreen(generalScreen) {}
23  ~AudioSetupWizard() override;
24 
25  bool Create(void) override; // MythScreenType
26  bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
27 
28  void save(void);
29 
30  private:
31  void Load(void) override; // MythScreenType
32  void Init(void) override; // MythScreenType
33 
34  QVector<AudioOutput::AudioDeviceConfig> *m_outputlist {nullptr};
36 
38 
41 
47 
49 
52  int m_maxspeakers {2};
54 
55  private slots:
56  AudioOutputSettings UpdateCapabilities(bool restore = true,
57  bool AC3 = false);
60  void slotNext(void);
61  void slotPrevious(void);
62 
63  void toggleSpeakers(void);
64 };
65 
66 #endif
AudioSetupWizard::m_testSpeakerButton
MythUIButton * m_testSpeakerButton
Definition: setupwizard_audio.h:48
AudioSetupWizard::m_prevButton
MythUIButton * m_prevButton
Definition: setupwizard_audio.h:51
AudioSetupWizard::Init
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
Definition: setupwizard_audio.cpp:134
AudioSetupWizard::m_audioDeviceButtonList
MythUIButtonList * m_audioDeviceButtonList
Definition: setupwizard_audio.h:39
AudioSetupWizard::slotNext
void slotNext(void)
Definition: setupwizard_audio.cpp:314
mythdialogbox.h
MythScreenStack
Definition: mythscreenstack.h:16
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:45
AudioSetupWizard::UpdateCapabilities
AudioOutputSettings UpdateCapabilities(bool restore=true, bool AC3=false)
Definition: setupwizard_audio.cpp:183
AudioSetupWizard::AudioSetupWizard
AudioSetupWizard(MythScreenStack *parent, MythScreenType *generalScreen, const char *name=nullptr)
Definition: setupwizard_audio.h:19
AudioSetupWizard::Create
bool Create(void) override
Definition: setupwizard_audio.cpp:18
mythuibuttonlist.h
MythUIButtonListItem
Definition: mythuibuttonlist.h:28
AudioSetupWizard::m_ac3Check
MythUICheckBox * m_ac3Check
Definition: setupwizard_audio.h:43
AudioSetupWizard::save
void save(void)
Definition: setupwizard_audio.cpp:335
AudioSetupWizard::m_lastAudioDevice
QString m_lastAudioDevice
Definition: setupwizard_audio.h:53
AudioSetupWizard::Load
void Load(void) override
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (S...
Definition: setupwizard_audio.cpp:129
AudioTestThread
Definition: audiogeneralsettings.h:148
AudioSetupWizard::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition: setupwizard_audio.cpp:373
MythUIButton
A single button widget.
Definition: mythuibutton.h:22
AudioSetupWizard::m_dtsCheck
MythUICheckBox * m_dtsCheck
Definition: setupwizard_audio.h:42
AudioSetupWizard::m_outputlist
QVector< AudioOutput::AudioDeviceConfig > * m_outputlist
Definition: setupwizard_audio.h:34
MythUICheckBox
A checkbox widget supporting three check states - on,off,half and two conditions - selected and unsel...
Definition: mythuicheckbox.h:16
AudioSetupWizard::~AudioSetupWizard
~AudioSetupWizard() override
Definition: setupwizard_audio.cpp:118
AudioSetupWizard::m_generalScreen
MythScreenType * m_generalScreen
Definition: setupwizard_audio.h:37
AudioSetupWizard::m_truehdCheck
MythUICheckBox * m_truehdCheck
Definition: setupwizard_audio.h:45
AudioSetupWizard::m_maxspeakers
int m_maxspeakers
Definition: setupwizard_audio.h:52
AudioSetupWizard::m_testThread
AudioTestThread * m_testThread
Definition: setupwizard_audio.h:35
AudioSetupWizard::m_speakerNumberButtonList
MythUIButtonList * m_speakerNumberButtonList
Definition: setupwizard_audio.h:40
AudioOutputSettings
Definition: audiooutputsettings.h:50
audiooutput.h
AudioSetupWizard
Definition: setupwizard_audio.h:14
AudioSetupWizard::m_eac3Check
MythUICheckBox * m_eac3Check
Definition: setupwizard_audio.h:44
AC3
@ AC3
Definition: element.h:84
mythuibutton.h
AudioSetupWizard::slotPrevious
void slotPrevious(void)
Definition: setupwizard_audio.cpp:368
AudioSetupWizard::m_nextButton
MythUIButton * m_nextButton
Definition: setupwizard_audio.h:50
AudioSetupWizard::UpdateCapabilitiesAC3
AudioOutputSettings UpdateCapabilitiesAC3(void)
Definition: setupwizard_audio.cpp:309
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition: mythuibuttonlist.h:144
AudioSetupWizard::toggleSpeakers
void toggleSpeakers(void)
Definition: setupwizard_audio.cpp:386
AudioSetupWizard::m_dtshdCheck
MythUICheckBox * m_dtshdCheck
Definition: setupwizard_audio.h:46
mythscreentype.h