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
ScanDVBCModSys
Definition: channelscanmiscsettings.h:448
StandardSetting::setValue
virtual void setValue(const QString &newValue)
Definition: standardsettings.cpp:169
PaneDVBC::modsys
QString modsys(void) const
Definition: panedvbc.h:55
PaneDVBC::m_pinversion
ScanInversion * m_pinversion
Definition: panedvbc.h:71
ScanFec
Definition: channelscanmiscsettings.h:350
ScanDVBCSymbolRate
Definition: channelscanmiscsettings.h:266
PaneDVBC::setSymbolrate
void setSymbolrate(const QString &symbolrate)
Definition: panedvbc.h:60
PaneDVBC::setFec
void setFec(const QString &fec)
Definition: panedvbc.h:64
PaneDVBC::PaneDVBC
PaneDVBC(const QString &target, StandardSetting *setting)
Definition: panedvbc.h:39
PaneDVBC::setFrequency
void setFrequency(uint frequency)
Definition: panedvbc.h:59
PaneDVBC::setInversion
void setInversion(const QString &inversion)
Definition: panedvbc.h:63
ScanFrequency
Definition: channelscanmiscsettings.h:231
PaneDVBC::setModulation
void setModulation(const QString &modulation)
Definition: panedvbc.h:61
PaneDVBC::m_psymbolrate
ScanDVBCSymbolRate * m_psymbolrate
Definition: panedvbc.h:68
ScanInversion
Definition: channelscanmiscsettings.h:300
PaneDVBC::setModsys
void setModsys(const QString &modsys)
Definition: panedvbc.h:62
StandardSetting::getValue
virtual QString getValue(void) const
Definition: standardsettings.h:52
PaneDVBC::frequency
QString frequency(void) const
Definition: panedvbc.h:52
uint
unsigned int uint
Definition: compat.h:140
channelscanmiscsettings.h
PaneDVBC::inversion
QString inversion(void) const
Definition: panedvbc.h:56
PaneDVBC::fec
QString fec(void) const
Definition: panedvbc.h:57
PaneDVBC::m_pfrequency
ScanFrequency * m_pfrequency
Definition: panedvbc.h:67
StandardSetting::setVisible
void setVisible(bool visible)
Definition: standardsettings.cpp:59
StandardSetting
Definition: standardsettings.h:29
PaneDVBC::m_pmodsys
ScanDVBCModSys * m_pmodsys
Definition: panedvbc.h:70
PaneDVBC::m_pmodulation
ScanModulation * m_pmodulation
Definition: panedvbc.h:69
StandardSetting::addTargetedChildren
void addTargetedChildren(const QString &value, std::initializer_list< StandardSetting * > settings)
Definition: standardsettings.cpp:106
ScanModulation
Definition: modulationsetting.h:84
MythUIComboBoxSetting::setValue
void setValue(int value) override
Definition: standardsettings.cpp:478
PaneDVBC::modulation
QString modulation(void) const
Definition: panedvbc.h:54
GroupSetting
Definition: standardsettings.h:435
PaneDVBC
Definition: panedvbc.h:36
PaneDVBC::m_pfec
ScanFec * m_pfec
Definition: panedvbc.h:72
PaneDVBC::symbolrate
QString symbolrate(void) const
Definition: panedvbc.h:53