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,
21  m_ppolarity = new ScanPolarity(),
24  m_pmodsys = new ScanDVBSModSys(),
25  m_pfec = new ScanFec(),
27  m_prolloff = new ScanRollOff()});
28  }
29 
30  QString frequency(void) const { return m_pfrequency->getValue(); }
31  QString symbolrate(void) const { return m_psymbolrate->getValue(); }
32  QString modulation(void) const { return m_pmodulation->getValue(); }
33  QString modsys(void) const { return m_pmodsys->getValue(); }
34  QString inversion(void) const { return m_pinversion->getValue(); }
35  QString fec(void) const { return m_pfec->getValue(); }
36  QString polarity(void) const { return m_ppolarity->getValue(); }
37  QString rolloff(void) const { return m_prolloff->getValue(); }
38 
42  void setModSys(const QString& modsys) { m_pmodsys->setValue(modsys); }
44  void setFec(const QString& fec) { m_pfec->setValue(fec); }
45  void setPolarity(const QString& polarity) { m_ppolarity->setValue(polarity); }
46  void setRolloff(const QString& rolloff) { m_prolloff->setValue(rolloff); }
47 
48  protected:
53  ScanFec *m_pfec {nullptr};
56  ScanRollOff *m_prolloff {nullptr};
57 };
58 
59 #endif // PANE_DVBS2_H
PaneDVBS2::rolloff
QString rolloff(void) const
Definition: panedvbs2.h:37
PaneDVBS2::m_psymbolrate
ScanDVBSSymbolRate * m_psymbolrate
Definition: panedvbs2.h:50
ScanRollOff
Definition: channelscanmiscsettings.h:461
StandardSetting::setValue
virtual void setValue(const QString &newValue)
Definition: standardsettings.cpp:169
PaneDVBS2::setRolloff
void setRolloff(const QString &rolloff)
Definition: panedvbs2.h:46
PaneDVBS2::fec
QString fec(void) const
Definition: panedvbs2.h:35
ScanFec
Definition: channelscanmiscsettings.h:350
PaneDVBS2::m_pfec
ScanFec * m_pfec
Definition: panedvbs2.h:53
PaneDVBS2::polarity
QString polarity(void) const
Definition: panedvbs2.h:36
PaneDVBS2::setFec
void setFec(const QString &fec)
Definition: panedvbs2.h:44
PaneDVBS2::inversion
QString inversion(void) const
Definition: panedvbs2.h:34
PaneDVBS2::modsys
QString modsys(void) const
Definition: panedvbs2.h:33
PaneDVBS2::m_pmodsys
ScanDVBSModSys * m_pmodsys
Definition: panedvbs2.h:52
PaneDVBS2::setPolarity
void setPolarity(const QString &polarity)
Definition: panedvbs2.h:45
PaneDVBS2::setSymbolrate
void setSymbolrate(const QString &symbolrate)
Definition: panedvbs2.h:40
ScanPolarity
Definition: channelscanmiscsettings.h:286
PaneDVBS2::setModulation
void setModulation(const QString &modulation)
Definition: panedvbs2.h:41
PaneDVBS2
Definition: panedvbs2.h:12
PaneDVBS2::m_pmodulation
ScanDVBSModulation * m_pmodulation
Definition: panedvbs2.h:51
PaneDVBS2::m_ppolarity
ScanPolarity * m_ppolarity
Definition: panedvbs2.h:54
modulationsetting.h
ScanInversion
Definition: channelscanmiscsettings.h:300
StandardSetting::getValue
virtual QString getValue(void) const
Definition: standardsettings.h:52
PaneDVBS2::symbolrate
QString symbolrate(void) const
Definition: panedvbs2.h:31
uint
unsigned int uint
Definition: compat.h:140
PaneDVBS2::modulation
QString modulation(void) const
Definition: panedvbs2.h:32
PaneDVBS2::setInversion
void setInversion(const QString &inversion)
Definition: panedvbs2.h:43
ScanDVBSSymbolRate
Definition: channelscanmiscsettings.h:242
PaneDVBS2::m_pinversion
ScanInversion * m_pinversion
Definition: panedvbs2.h:55
ScanDVBSModSys
Definition: channelscanmiscsettings.h:424
channelscanmiscsettings.h
PaneDVBS2::m_prolloff
ScanRollOff * m_prolloff
Definition: panedvbs2.h:56
PaneDVBS2::PaneDVBS2
PaneDVBS2(const QString &target, StandardSetting *setting)
Definition: panedvbs2.h:15
PaneDVBS2::setFrequency
void setFrequency(uint frequency)
Definition: panedvbs2.h:39
PaneDVBS2::setModSys
void setModSys(const QString &modsys)
Definition: panedvbs2.h:42
ScanFrequencykHz
Definition: channelscanmiscsettings.h:220
PaneDVBS2::m_pfrequency
ScanFrequencykHz * m_pfrequency
Definition: panedvbs2.h:49
StandardSetting::setVisible
void setVisible(bool visible)
Definition: standardsettings.cpp:59
StandardSetting
Definition: standardsettings.h:29
StandardSetting::addTargetedChildren
void addTargetedChildren(const QString &value, std::initializer_list< StandardSetting * > settings)
Definition: standardsettings.cpp:106
PaneDVBS2::frequency
QString frequency(void) const
Definition: panedvbs2.h:30
ScanDVBSModulation
Definition: modulationsetting.h:110
MythUIComboBoxSetting::setValue
void setValue(int value) override
Definition: standardsettings.cpp:478
GroupSetting
Definition: standardsettings.h:435