MythTV master
setupwizard_audio.h
Go to the documentation of this file.
1#ifndef AUDIOSETUPWIZARD_H
2#define AUDIOSETUPWIZARD_H
3
4// MythTV
10
11class 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
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
AudioTestThread * m_testThread
AudioOutputSettings UpdateCapabilitiesAC3(void)
AudioSetupWizard(MythScreenStack *parent, MythScreenType *generalScreen, const char *name=nullptr)
AudioOutputSettings UpdateCapabilities(bool restore=true, bool AC3=false)
MythUICheckBox * m_dtsCheck
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
bool Create(void) override
MythUIButton * m_testSpeakerButton
MythUICheckBox * m_eac3Check
MythUICheckBox * m_ac3Check
MythUIButtonList * m_speakerNumberButtonList
MythUICheckBox * m_dtshdCheck
~AudioSetupWizard() override
void Load(void) override
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (S...
MythUIButtonList * m_audioDeviceButtonList
MythUICheckBox * m_truehdCheck
MythUIButton * m_nextButton
QVector< AudioOutput::AudioDeviceConfig > * m_outputlist
MythScreenType * m_generalScreen
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
MythUIButton * m_prevButton
Screen in which all other widgets are contained and rendered.
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
A single button widget.
Definition: mythuibutton.h:22
A checkbox widget supporting three check states - on,off,half and two conditions - selected and unsel...
@ AC3
Definition: element.h:84