MythTV  master
panedvbt2.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  * Copyright (c) 2014 David C J Matthews
10  *
11  * Description:
12  * Collection of classes to provide channel scanning functionallity
13  *
14  * This program is free software; you can redistribute it and/or
15  * modify it under the terms of the GNU General Public License
16  * as published by the Free Software Foundation; either version 2
17  * of the License, or (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * You should have received a copy of the GNU General Public License
25  * along with this program; if not, write to the Free Software
26  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
27  * Or, point your browser to http://www.gnu.org/copyleft/gpl.html
28  *
29  */
30 
31 #ifndef PANE_DVBT2_H
32 #define PANE_DVBT2_H
33 
34 // MythTV headers
36 
37 class PaneDVBT2 : public GroupSetting
38 {
39  public:
40  PaneDVBT2(const QString &target, StandardSetting *setting)
41  {
42  setVisible(false);
43  setting->addTargetedChildren(target,
44  {this,
49  m_pmodsys = new ScanDVBTModSys(),
54  m_phierarchy = new ScanHierarchy()});
55  }
56 
57  QString frequency(void) const { return m_pfrequency->getValue(); }
58  QString bandwidth(void) const { return m_pbandwidth->getValue(); }
59  QString inversion(void) const { return m_pinversion->getValue(); }
60  QString constellation(void) const { return m_pconstellation->getValue(); }
61  QString coderate_lp(void) const { return m_pcoderateLp->getValue(); }
62  QString coderate_hp(void) const { return m_pcoderateHp->getValue(); }
63  QString trans_mode(void) const { return m_ptransMode->getValue(); }
64  QString guard_interval(void) const { return m_pguardInterval->getValue(); }
65  QString hierarchy(void) const { return m_phierarchy->getValue(); }
66  QString modsys(void) const { return m_pmodsys->getValue(); }
67 
77  void setModsys(const QString& mod_sys) { m_pmodsys->setValue(mod_sys); }
78 
79  protected:
90 };
91 
92 #endif // PANE_DVBT2_H
PaneDVBT2
Definition: panedvbt2.h:37
PaneDVBT2::inversion
QString inversion(void) const
Definition: panedvbt2.h:59
StandardSetting::setValue
virtual void setValue(const QString &newValue)
Definition: standardsettings.cpp:169
PaneDVBT2::setTransmode
void setTransmode(const QString &trans_mode)
Definition: panedvbt2.h:74
PaneDVBT2::bandwidth
QString bandwidth(void) const
Definition: panedvbt2.h:58
PaneDVBT2::guard_interval
QString guard_interval(void) const
Definition: panedvbt2.h:64
PaneDVBT2::trans_mode
QString trans_mode(void) const
Definition: panedvbt2.h:63
PaneDVBT2::frequency
QString frequency(void) const
Definition: panedvbt2.h:57
ScanHierarchy
Definition: channelscanmiscsettings.h:409
ScanTransmissionMode
Definition: channelscanmiscsettings.h:396
PaneDVBT2::setBandwidth
void setBandwidth(const QString &bandwidth)
Definition: panedvbt2.h:69
PaneDVBT2::m_pbandwidth
ScanBandwidth * m_pbandwidth
Definition: panedvbt2.h:81
PaneDVBT2::m_pinversion
ScanInversion * m_pinversion
Definition: panedvbt2.h:82
PaneDVBT2::setCodeRateLP
void setCodeRateLP(const QString &coderate_lp)
Definition: panedvbt2.h:72
PaneDVBT2::setInversion
void setInversion(const QString &inversion)
Definition: panedvbt2.h:70
PaneDVBT2::coderate_lp
QString coderate_lp(void) const
Definition: panedvbt2.h:61
PaneDVBT2::setGuardInterval
void setGuardInterval(const QString &guard_interval)
Definition: panedvbt2.h:75
PaneDVBT2::constellation
QString constellation(void) const
Definition: panedvbt2.h:60
PaneDVBT2::m_phierarchy
ScanHierarchy * m_phierarchy
Definition: panedvbt2.h:88
PaneDVBT2::setConstellation
void setConstellation(const QString &constellation)
Definition: panedvbt2.h:71
ScanCodeRateLP
Definition: channelscanmiscsettings.h:361
PaneDVBT2::setFrequency
void setFrequency(uint frequency)
Definition: panedvbt2.h:68
ScanBandwidth
Definition: channelscanmiscsettings.h:316
PaneDVBT2::m_pcoderateHp
ScanCodeRateHP * m_pcoderateHp
Definition: panedvbt2.h:85
ScanFrequency
Definition: channelscanmiscsettings.h:231
ScanConstellation
Definition: modulationsetting.h:97
PaneDVBT2::modsys
QString modsys(void) const
Definition: panedvbt2.h:66
ScanDVBTModSys
Definition: channelscanmiscsettings.h:436
PaneDVBT2::setCodeRateHP
void setCodeRateHP(const QString &coderate_hp)
Definition: panedvbt2.h:73
ScanInversion
Definition: channelscanmiscsettings.h:300
StandardSetting::getValue
virtual QString getValue(void) const
Definition: standardsettings.h:52
PaneDVBT2::PaneDVBT2
PaneDVBT2(const QString &target, StandardSetting *setting)
Definition: panedvbt2.h:40
PaneDVBT2::m_pfrequency
ScanFrequency * m_pfrequency
Definition: panedvbt2.h:80
uint
unsigned int uint
Definition: compat.h:140
PaneDVBT2::hierarchy
QString hierarchy(void) const
Definition: panedvbt2.h:65
channelscanmiscsettings.h
ScanCodeRateHP
Definition: channelscanmiscsettings.h:371
ScanGuardInterval
Definition: channelscanmiscsettings.h:381
PaneDVBT2::m_pguardInterval
ScanGuardInterval * m_pguardInterval
Definition: panedvbt2.h:87
PaneDVBT2::setHierarchy
void setHierarchy(const QString &hierarchy)
Definition: panedvbt2.h:76
StandardSetting::setVisible
void setVisible(bool visible)
Definition: standardsettings.cpp:59
StandardSetting
Definition: standardsettings.h:29
PaneDVBT2::m_pmodsys
ScanDVBTModSys * m_pmodsys
Definition: panedvbt2.h:89
PaneDVBT2::setModsys
void setModsys(const QString &mod_sys)
Definition: panedvbt2.h:77
PaneDVBT2::m_pcoderateLp
ScanCodeRateLP * m_pcoderateLp
Definition: panedvbt2.h:84
StandardSetting::addTargetedChildren
void addTargetedChildren(const QString &value, std::initializer_list< StandardSetting * > settings)
Definition: standardsettings.cpp:106
PaneDVBT2::m_pconstellation
ScanConstellation * m_pconstellation
Definition: panedvbt2.h:83
PaneDVBT2::coderate_hp
QString coderate_hp(void) const
Definition: panedvbt2.h:62
PaneDVBT2::m_ptransMode
ScanTransmissionMode * m_ptransMode
Definition: panedvbt2.h:86
MythUIComboBoxSetting::setValue
void setValue(int value) override
Definition: standardsettings.cpp:478
GroupSetting
Definition: standardsettings.h:435