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(),
23  m_pmod_sys = new ScanModSys(),
24  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 inversion(void) const { return m_pinversion->getValue(); }
33  QString fec(void) const { return m_pfec->getValue(); }
34  QString polarity(void) const { return m_ppolarity->getValue(); }
35  QString modulation(void) const { return m_pmodulation->getValue(); }
36  QString mod_sys(void) const { return m_pmod_sys->getValue(); }
37  QString rolloff(void) const { return m_prolloff->getValue(); }
38 
42  void setFec(QString fec) { m_pfec->setValue(fec); }
47 
48  protected:
52  ScanFec *m_pfec {nullptr};
55  ScanModSys *m_pmod_sys {nullptr};
56  ScanRollOff *m_prolloff {nullptr};
57 };
58 
59 #endif // _PANE_DVBS2_H_
void setSymbolrate(QString symbolrate)
Definition: panedvbs2.h:40
QString inversion(void) const
Definition: panedvbs2.h:32
void setPolarity(QString polarity)
Definition: panedvbs2.h:43
QString modulation(void) const
Definition: panedvbs2.h:35
void setRolloff(QString rolloff)
Definition: panedvbs2.h:46
ScanDVBSModulation * m_pmodulation
Definition: panedvbs2.h:54
PaneDVBS2(const QString &target, StandardSetting *setting)
Definition: panedvbs2.h:15
ScanFec * m_pfec
Definition: panedvbs2.h:52
void setFec(QString fec)
Definition: panedvbs2.h:42
virtual QString getValue(void) const
void setModsys(QString mod_sys)
Definition: panedvbs2.h:45
void setInversion(QString inversion)
Definition: panedvbs2.h:41
QString polarity(void) const
Definition: panedvbs2.h:34
void setValue(int value) override
QString frequency(void) const
Definition: panedvbs2.h:30
QString rolloff(void) const
Definition: panedvbs2.h:37
ScanPolarity * m_ppolarity
Definition: panedvbs2.h:53
ScanRollOff * m_prolloff
Definition: panedvbs2.h:56
ScanFrequencykHz * m_pfrequency
Definition: panedvbs2.h:49
unsigned int uint
Definition: compat.h:140
ScanSymbolRateDVBS * m_psymbolrate
Definition: panedvbs2.h:50
void setFrequency(uint frequency)
Definition: panedvbs2.h:39
void setModulation(QString modulation)
Definition: panedvbs2.h:44
void setVisible(bool visible)
void addTargetedChildren(const QString &value, std::initializer_list< StandardSetting * > settings)
QString mod_sys(void) const
Definition: panedvbs2.h:36
ScanInversion * m_pinversion
Definition: panedvbs2.h:51
QString symbolrate(void) const
Definition: panedvbs2.h:31
virtual void setValue(const QString &newValue)
QString fec(void) const
Definition: panedvbs2.h:33
ScanModSys * m_pmod_sys
Definition: panedvbs2.h:55