MythTV  master
panedvbc.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_DVBC_H
31 #define PANE_DVBC_H
32 
33 // MythTV headers
35 
36 class PaneDVBC : public GroupSetting
37 {
38  public:
39  PaneDVBC(const QString &target, StandardSetting *setting)
40  {
41  setVisible(false);
42  setting->addTargetedChildren(target,
43  {this,
47  m_pmodsys = new ScanDVBCModSys(),
49  m_pfec = new ScanFec()});
50  }
51 
52  QString frequency(void) const { return m_pfrequency->getValue(); }
53  QString symbolrate(void) const { return m_psymbolrate->getValue(); }
54  QString modulation(void) const { return m_pmodulation->getValue(); }
55  QString modsys(void) const { return m_pmodsys->getValue(); }
56  QString inversion(void) const { return m_pinversion->getValue(); }
57  QString fec(void) const { return m_pfec->getValue(); }
58 
62  void setModsys(const QString& modsys) { m_pmodsys->setValue(modsys); }
64  void setFec(const QString& fec) { m_pfec->setValue(fec); }
65 
66  protected:
72  ScanFec *m_pfec {nullptr};
73 };
74 
75 #endif // PANE_DVBC_H
void setFrequency(uint frequency)
Definition: panedvbc.h:59
QString fec(void) const
Definition: panedvbc.h:57
void setInversion(const QString &inversion)
Definition: panedvbc.h:63
QString modulation(void) const
Definition: panedvbc.h:54
QString inversion(void) const
Definition: panedvbc.h:56
ScanDVBCSymbolRate * m_psymbolrate
Definition: panedvbc.h:68
QString frequency(void) const
Definition: panedvbc.h:52
ScanModulation * m_pmodulation
Definition: panedvbc.h:69
void setModsys(const QString &modsys)
Definition: panedvbc.h:62
QString modsys(void) const
Definition: panedvbc.h:55
ScanInversion * m_pinversion
Definition: panedvbc.h:71
virtual QString getValue(void) const
ScanFrequency * m_pfrequency
Definition: panedvbc.h:67
void setValue(int value) override
unsigned int uint
Definition: compat.h:140
void setFec(const QString &fec)
Definition: panedvbc.h:64
void setVisible(bool visible)
void addTargetedChildren(const QString &value, std::initializer_list< StandardSetting * > settings)
ScanDVBCModSys * m_pmodsys
Definition: panedvbc.h:70
PaneDVBC(const QString &target, StandardSetting *setting)
Definition: panedvbc.h:39
QString symbolrate(void) const
Definition: panedvbc.h:53
void setModulation(const QString &modulation)
Definition: panedvbc.h:61
ScanFec * m_pfec
Definition: panedvbc.h:72
virtual void setValue(const QString &newValue)
void setSymbolrate(const QString &symbolrate)
Definition: panedvbc.h:60