MythTV  master
panedvbs.h
Go to the documentation of this file.
1 /* -*- Mode: c++ -*-
2  * vim: set expandtab tabstop=4 shiftwidth=4:
3  *
4  * Original Project
5  * MythTV http://www.mythtv.org
6  *
7  * Copyright (c) 2004, 2005 John Pullan <john@pullan.org>
8  * Copyright (c) 2005 - 2007 Daniel Kristjansson
9  *
10  * Description:
11  * Collection of classes to provide channel scanning functionallity
12  *
13  * This program is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU General Public License
15  * as published by the Free Software Foundation; either version 2
16  * of the License, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software
25  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
26  * Or, point your browser to http://www.gnu.org/copyleft/gpl.html
27  *
28  */
29 
30 #ifndef _PANE_DVBS_H_
31 #define _PANE_DVBS_H_
32 
33 // MythTV headers
35 
36 class PaneDVBS : public GroupSetting
37 {
38  public:
39  PaneDVBS(const QString &target, StandardSetting *setting)
40  {
41  setVisible(false);
42  setting->addTargetedChildren(target,
43  {this,
45  m_ppolarity = new ScanPolarity(),
47  m_pfec = new ScanFec(),
48  m_pinversion = new ScanInversion()});
49  }
50 
51  QString frequency(void) const { return m_pfrequency->getValue(); }
52  QString symbolrate(void) const { return m_psymbolrate->getValue(); }
53  QString inversion(void) const { return m_pinversion->getValue(); }
54  QString fec(void) const { return m_pfec->getValue(); }
55  QString polarity(void) const { return m_ppolarity->getValue(); }
56 
60  void setFec(QString fec) { m_pfec->setValue(fec); }
62 
63  protected:
67  ScanFec *m_pfec {nullptr};
69 };
70 
71 #endif // _PANE_DVBS_H_
ScanFec * m_pfec
Definition: panedvbs.h:67
void setInversion(QString inversion)
Definition: panedvbs.h:59
ScanSymbolRateDVBS * m_psymbolrate
Definition: panedvbs.h:65
void setFec(QString fec)
Definition: panedvbs.h:60
virtual QString getValue(void) const
void setValue(int value) override
void setSymbolrate(QString symbolrate)
Definition: panedvbs.h:58
unsigned int uint
Definition: compat.h:140
void setPolarity(QString polarity)
Definition: panedvbs.h:61
ScanInversion * m_pinversion
Definition: panedvbs.h:66
ScanFrequencykHz * m_pfrequency
Definition: panedvbs.h:64
void setVisible(bool visible)
QString fec(void) const
Definition: panedvbs.h:54
void addTargetedChildren(const QString &value, std::initializer_list< StandardSetting * > settings)
QString frequency(void) const
Definition: panedvbs.h:51
void setFrequency(uint frequency)
Definition: panedvbs.h:57
QString symbolrate(void) const
Definition: panedvbs.h:52
PaneDVBS(const QString &target, StandardSetting *setting)
Definition: panedvbs.h:39
ScanPolarity * m_ppolarity
Definition: panedvbs.h:68
QString inversion(void) const
Definition: panedvbs.h:53
QString polarity(void) const
Definition: panedvbs.h:55
virtual void setValue(const QString &newValue)