MythTV  master
panedvbs2.h
Go to the documentation of this file.
1 /* -*- Mode: c++ -*-
2  * vim: set expandtab tabstop=4 shiftwidth=4:
3  */
4 
5 #ifndef PANE_DVBS2_H
6 #define PANE_DVBS2_H
7 
8 // MythTV headers
10 #include "modulationsetting.h"
11 
12 class PaneDVBS2 : public GroupSetting
13 {
14  public:
15  PaneDVBS2(const QString &target, StandardSetting *setting)
16  {
17  setVisible(false);
18  setting->addTargetedChildren(target,
19  {this,
22  m_ppolarity = new ScanPolarity(),
25  m_pmodsys = new ScanDVBSModSys(),
26  m_pfec = new ScanFec(),
28  m_prolloff = new ScanRollOff()});
29 
30  // Update default tuning parameters when reference transponder is selected
31  connect(m_transponder, qOverload<StandardSetting *>(&StandardSetting::valueChanged),
33  }
34 
35  QString frequency(void) const { return m_pfrequency->getValue(); }
36  QString symbolrate(void) const { return m_psymbolrate->getValue(); }
37  QString modulation(void) const { return m_pmodulation->getValue(); }
38  QString modsys(void) const { return m_pmodsys->getValue(); }
39  QString inversion(void) const { return m_pinversion->getValue(); }
40  QString fec(void) const { return m_pfec->getValue(); }
41  QString polarity(void) const { return m_ppolarity->getValue(); }
42  QString rolloff(void) const { return m_prolloff->getValue(); }
43 
47  void setModSys(const QString& modsys) { m_pmodsys->setValue(modsys); }
49  void setFec(const QString& fec) { m_pfec->setValue(fec); }
50  void setPolarity(const QString& polarity) { m_ppolarity->setValue(polarity); }
51  void setRolloff(const QString& rolloff) { m_prolloff->setValue(rolloff); }
52 
53  public slots:
54  void SetTuningParameters(StandardSetting *setting);
55 
56  protected:
62  ScanFec *m_pfec {nullptr};
65  ScanRollOff *m_prolloff {nullptr};
66 };
67 
68 #endif // PANE_DVBS2_H
PaneDVBS2::rolloff
QString rolloff(void) const
Definition: panedvbs2.h:42
PaneDVBS2::m_psymbolrate
ScanDVBSSymbolRate * m_psymbolrate
Definition: panedvbs2.h:59
ScanRollOff
Definition: channelscanmiscsettings.h:509
StandardSetting::setValue
virtual void setValue(const QString &newValue)
Definition: standardsettings.cpp:170
PaneDVBS2::setRolloff
void setRolloff(const QString &rolloff)
Definition: panedvbs2.h:51
PaneDVBS2::fec
QString fec(void) const
Definition: panedvbs2.h:40
ScanFec
Definition: channelscanmiscsettings.h:398
PaneDVBS2::m_pfec
ScanFec * m_pfec
Definition: panedvbs2.h:62
ScanTransponder
Definition: channelscanmiscsettings.h:221
PaneDVBS2::polarity
QString polarity(void) const
Definition: panedvbs2.h:41
PaneDVBS2::setFec
void setFec(const QString &fec)
Definition: panedvbs2.h:49
PaneDVBS2::inversion
QString inversion(void) const
Definition: panedvbs2.h:39
PaneDVBS2::modsys
QString modsys(void) const
Definition: panedvbs2.h:38
PaneDVBS2::m_pmodsys
ScanDVBSModSys * m_pmodsys
Definition: panedvbs2.h:61
PaneDVBS2::setPolarity
void setPolarity(const QString &polarity)
Definition: panedvbs2.h:50
PaneDVBS2::setSymbolrate
void setSymbolrate(const QString &symbolrate)
Definition: panedvbs2.h:45
ScanPolarity
Definition: channelscanmiscsettings.h:334
PaneDVBS2::setModulation
void setModulation(const QString &modulation)
Definition: panedvbs2.h:46
PaneDVBS2
Definition: panedvbs2.h:12
PaneDVBS2::m_pmodulation
ScanDVBSModulation * m_pmodulation
Definition: panedvbs2.h:60
PaneDVBS2::m_ppolarity
ScanPolarity * m_ppolarity
Definition: panedvbs2.h:63
modulationsetting.h
ScanInversion
Definition: channelscanmiscsettings.h:348
StandardSetting::getValue
virtual QString getValue(void) const
Definition: standardsettings.h:52
PaneDVBS2::symbolrate
QString symbolrate(void) const
Definition: panedvbs2.h:36
PaneDVBS2::SetTuningParameters
void SetTuningParameters(StandardSetting *setting)
Definition: scanwizardconfig.cpp:28
uint
unsigned int uint
Definition: compat.h:79
PaneDVBS2::m_transponder
ScanTransponder * m_transponder
Definition: panedvbs2.h:57
PaneDVBS2::modulation
QString modulation(void) const
Definition: panedvbs2.h:37
PaneDVBS2::setInversion
void setInversion(const QString &inversion)
Definition: panedvbs2.h:48
ScanDVBSSymbolRate
Definition: channelscanmiscsettings.h:290
PaneDVBS2::m_pinversion
ScanInversion * m_pinversion
Definition: panedvbs2.h:64
ScanDVBSModSys
Definition: channelscanmiscsettings.h:472
channelscanmiscsettings.h
PaneDVBS2::m_prolloff
ScanRollOff * m_prolloff
Definition: panedvbs2.h:65
StandardSetting::valueChanged
void valueChanged(const QString &newValue)
PaneDVBS2::PaneDVBS2
PaneDVBS2(const QString &target, StandardSetting *setting)
Definition: panedvbs2.h:15
PaneDVBS2::setFrequency
void setFrequency(uint frequency)
Definition: panedvbs2.h:44
PaneDVBS2::setModSys
void setModSys(const QString &modsys)
Definition: panedvbs2.h:47
ScanFrequencykHz
Definition: channelscanmiscsettings.h:268
PaneDVBS2::m_pfrequency
ScanFrequencykHz * m_pfrequency
Definition: panedvbs2.h:58
StandardSetting::setVisible
void setVisible(bool visible)
Definition: standardsettings.cpp:60
StandardSetting
Definition: standardsettings.h:29
StandardSetting::addTargetedChildren
void addTargetedChildren(const QString &value, std::initializer_list< StandardSetting * > settings)
Definition: standardsettings.cpp:107
PaneDVBS2::frequency
QString frequency(void) const
Definition: panedvbs2.h:35
ScanDVBSModulation
Definition: modulationsetting.h:110
MythUIComboBoxSetting::setValue
void setValue(int value) override
Definition: standardsettings.cpp:479
GroupSetting
Definition: standardsettings.h:435