MythTV  master
panedvbt.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_DVBT_H_
31 #define _PANE_DVBT_H_
32 
33 // MythTV headers
35 
36 class PaneDVBT : public GroupSetting
37 {
38  public:
39  PaneDVBT(const QString &target, StandardSetting *setting)
40  {
41  setVisible(false);
42  setting->addTargetedChildren(target,
43  {this,
52  m_phierarchy = new ScanHierarchy()});
53  }
54 
55  QString frequency(void) const { return m_pfrequency->getValue(); }
56  QString bandwidth(void) const { return m_pbandwidth->getValue(); }
57  QString inversion(void) const { return m_pinversion->getValue(); }
58  QString constellation(void) const { return m_pconstellation->getValue(); }
59  QString coderate_lp(void) const { return m_pcoderate_lp->getValue(); }
60  QString coderate_hp(void) const { return m_pcoderate_hp->getValue(); }
61  QString trans_mode(void) const { return m_ptrans_mode->getValue(); }
62  QString guard_interval(void) const { return m_pguard_interval->getValue();}
63  QString hierarchy(void) const { return m_phierarchy->getValue(); }
64 
74 
75  protected:
85 };
86 
87 #endif // _PANE_DVBT_H_
QString trans_mode(void) const
Definition: panedvbt.h:61
void setBandwidth(const QString &bandwidth)
Definition: panedvbt.h:66
void setConstellation(const QString &constellation)
Definition: panedvbt.h:68
PaneDVBT(const QString &target, StandardSetting *setting)
Definition: panedvbt.h:39
void setCodeRateHP(const QString &coderate_hp)
Definition: panedvbt.h:70
void setHierarchy(const QString &hierarchy)
Definition: panedvbt.h:73
virtual QString getValue(void) const
QString hierarchy(void) const
Definition: panedvbt.h:63
QString inversion(void) const
Definition: panedvbt.h:57
QString constellation(void) const
Definition: panedvbt.h:58
void setTransmode(const QString &trans_mode)
Definition: panedvbt.h:71
QString frequency(void) const
Definition: panedvbt.h:55
ScanInversion * m_pinversion
Definition: panedvbt.h:77
void setValue(int value) override
void setCodeRateLP(const QString &coderate_lp)
Definition: panedvbt.h:69
ScanFrequency * m_pfrequency
Definition: panedvbt.h:76
unsigned int uint
Definition: compat.h:140
ScanCodeRateHP * m_pcoderate_hp
Definition: panedvbt.h:81
QString bandwidth(void) const
Definition: panedvbt.h:56
void setGuardInterval(const QString &guard_interval)
Definition: panedvbt.h:72
void setVisible(bool visible)
ScanCodeRateLP * m_pcoderate_lp
Definition: panedvbt.h:80
void addTargetedChildren(const QString &value, std::initializer_list< StandardSetting * > settings)
ScanTransmissionMode * m_ptrans_mode
Definition: panedvbt.h:82
ScanBandwidth * m_pbandwidth
Definition: panedvbt.h:78
ScanHierarchy * m_phierarchy
Definition: panedvbt.h:84
ScanGuardInterval * m_pguard_interval
Definition: panedvbt.h:83
ScanConstellation * m_pconstellation
Definition: panedvbt.h:79
void setFrequency(uint frequency)
Definition: panedvbt.h:65
QString guard_interval(void) const
Definition: panedvbt.h:62
QString coderate_lp(void) const
Definition: panedvbt.h:59
QString coderate_hp(void) const
Definition: panedvbt.h:60
virtual void setValue(const QString &newValue)
void setInversion(const QString &inversion)
Definition: panedvbt.h:67