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_pmod_sys = 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_pcoderate_lp->getValue(); }
62  QString coderate_hp(void) const { return m_pcoderate_hp->getValue(); }
63  QString trans_mode(void) const { return m_ptrans_mode->getValue(); }
64  QString guard_interval(void) const { return m_pguard_interval->getValue();}
65  QString hierarchy(void) const { return m_phierarchy->getValue(); }
66  QString mod_sys(void) const { return m_pmod_sys->getValue(); }
67 
78 
79  protected:
90 };
91 
92 #endif // _PANE_DVBT2_H_
ScanTransmissionMode * m_ptrans_mode
Definition: panedvbt2.h:86
PaneDVBT2(const QString &target, StandardSetting *setting)
Definition: panedvbt2.h:40
QString coderate_lp(void) const
Definition: panedvbt2.h:61
ScanGuardInterval * m_pguard_interval
Definition: panedvbt2.h:87
ScanBandwidth * m_pbandwidth
Definition: panedvbt2.h:81
ScanDVBTModSys * m_pmod_sys
Definition: panedvbt2.h:89
void setTransmode(QString trans_mode)
Definition: panedvbt2.h:74
void setHierarchy(QString hierarchy)
Definition: panedvbt2.h:76
void setBandwidth(QString bandwidth)
Definition: panedvbt2.h:69
void setInversion(QString inversion)
Definition: panedvbt2.h:70
virtual QString getValue(void) const
ScanInversion * m_pinversion
Definition: panedvbt2.h:82
void setFrequency(uint frequency)
Definition: panedvbt2.h:68
ScanConstellation * m_pconstellation
Definition: panedvbt2.h:83
ScanCodeRateHP * m_pcoderate_hp
Definition: panedvbt2.h:85
void setCodeRateHP(QString coderate_hp)
Definition: panedvbt2.h:73
void setValue(int value) override
QString trans_mode(void) const
Definition: panedvbt2.h:63
QString inversion(void) const
Definition: panedvbt2.h:59
void setGuardInterval(QString guard_interval)
Definition: panedvbt2.h:75
unsigned int uint
Definition: compat.h:140
QString bandwidth(void) const
Definition: panedvbt2.h:58
void setCodeRateLP(QString coderate_lp)
Definition: panedvbt2.h:72
QString hierarchy(void) const
Definition: panedvbt2.h:65
QString coderate_hp(void) const
Definition: panedvbt2.h:62
void setVisible(bool visible)
QString guard_interval(void) const
Definition: panedvbt2.h:64
void addTargetedChildren(const QString &value, std::initializer_list< StandardSetting * > settings)
ScanCodeRateLP * m_pcoderate_lp
Definition: panedvbt2.h:84
void setModsys(QString mod_sys)
Definition: panedvbt2.h:77
QString frequency(void) const
Definition: panedvbt2.h:57
void setConstellation(QString constellation)
Definition: panedvbt2.h:71
ScanFrequency * m_pfrequency
Definition: panedvbt2.h:80
QString mod_sys(void) const
Definition: panedvbt2.h:66
virtual void setValue(const QString &newValue)
QString constellation(void) const
Definition: panedvbt2.h:60
ScanHierarchy * m_phierarchy
Definition: panedvbt2.h:88