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,
48  m_pfec = new ScanFec()});
49  }
50 
51  QString frequency(void) const { return m_pfrequency->getValue(); }
52  QString symbolrate(void) const { return m_psymbolrate->getValue(); }
53  QString inversion(void) const { return m_pinversion->getValue(); }
54  QString fec(void) const { return m_pfec->getValue(); }
55  QString modulation(void) const { return m_pmodulation->getValue(); }
56 
61  void setFec(const QString& fec) { m_pfec->setValue(fec); }
62 
63  protected:
68  ScanFec *m_pfec {nullptr};
69 };
70 
71 #endif // _PANE_DVBC_H_
void setFrequency(uint frequency)
Definition: panedvbc.h:57
QString fec(void) const
Definition: panedvbc.h:54
void setInversion(const QString &inversion)
Definition: panedvbc.h:59
QString modulation(void) const
Definition: panedvbc.h:55
QString inversion(void) const
Definition: panedvbc.h:53
QString frequency(void) const
Definition: panedvbc.h:51
ScanModulation * m_pmodulation
Definition: panedvbc.h:67
ScanSymbolRateDVBC * m_psymbolrate
Definition: panedvbc.h:65
ScanInversion * m_pinversion
Definition: panedvbc.h:66
virtual QString getValue(void) const
ScanFrequency * m_pfrequency
Definition: panedvbc.h:64
void setValue(int value) override
unsigned int uint
Definition: compat.h:140
void setFec(const QString &fec)
Definition: panedvbc.h:61
void setVisible(bool visible)
void addTargetedChildren(const QString &value, std::initializer_list< StandardSetting * > settings)
PaneDVBC(const QString &target, StandardSetting *setting)
Definition: panedvbc.h:39
QString symbolrate(void) const
Definition: panedvbc.h:52
void setModulation(const QString &modulation)
Definition: panedvbc.h:60
ScanFec * m_pfec
Definition: panedvbc.h:68
virtual void setValue(const QString &newValue)
void setSymbolrate(const QString &symbolrate)
Definition: panedvbc.h:58