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
QString inversion(void) const
Definition: panedvbs2.h:34
QString modulation(void) const
Definition: panedvbs2.h:32
ScanDVBSModulation * m_pmodulation
Definition: panedvbs2.h:51
void setInversion(const QString &inversion)
Definition: panedvbs2.h:43
void setPolarity(const QString &polarity)
Definition: panedvbs2.h:45
PaneDVBS2(const QString &target, StandardSetting *setting)
Definition: panedvbs2.h:15
ScanFec * m_pfec
Definition: panedvbs2.h:53
virtual QString getValue(void) const
QString polarity(void) const
Definition: panedvbs2.h:36
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:54
ScanDVBSSymbolRate * m_psymbolrate
Definition: panedvbs2.h:50
ScanRollOff * m_prolloff
Definition: panedvbs2.h:56
ScanFrequencykHz * m_pfrequency
Definition: panedvbs2.h:49
unsigned int uint
Definition: compat.h:140
void setRolloff(const QString &rolloff)
Definition: panedvbs2.h:46
void setFrequency(uint frequency)
Definition: panedvbs2.h:39
ScanDVBSModSys * m_pmodsys
Definition: panedvbs2.h:52
void setVisible(bool visible)
void setFec(const QString &fec)
Definition: panedvbs2.h:44
void addTargetedChildren(const QString &value, std::initializer_list< StandardSetting * > settings)
void setModSys(const QString &modsys)
Definition: panedvbs2.h:42
void setSymbolrate(const QString &symbolrate)
Definition: panedvbs2.h:40
QString modsys(void) const
Definition: panedvbs2.h:33
ScanInversion * m_pinversion
Definition: panedvbs2.h:55
void setModulation(const QString &modulation)
Definition: panedvbs2.h:41
QString symbolrate(void) const
Definition: panedvbs2.h:31
virtual void setValue(const QString &newValue)
QString fec(void) const
Definition: panedvbs2.h:35