MythTV master
panedvbs.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_DVBS_H
31#define PANE_DVBS_H
32
33// MythTV headers
35
36class PaneDVBS : public GroupSetting
37{
38 public:
39 PaneDVBS(const QString &target, StandardSetting *setting)
40 {
41 setVisible(false);
42 setting->addTargetedChildren(target,
43 {this,
47 m_pfec = new ScanFec(),
49 }
50
51 QString frequency(void) const { return m_pfrequency->getValue(); }
52 QString polarity(void) const { return m_ppolarity->getValue(); }
53 QString symbolrate(void) const { return m_psymbolrate->getValue(); }
54 QString fec(void) const { return m_pfec->getValue(); }
55 QString inversion(void) const { return m_pinversion->getValue(); }
56
58 void setPolarity(const QString& polarity) { m_ppolarity->setValue(polarity); }
60 void setFec(const QString& fec) { m_pfec->setValue(fec); }
62
63 protected:
67 ScanFec *m_pfec {nullptr};
69};
70
71#endif // PANE_DVBS_H
void setValue(int value) override
ScanDVBSSymbolRate * m_psymbolrate
Definition: panedvbs.h:66
QString frequency(void) const
Definition: panedvbs.h:51
void setSymbolrate(const QString &symbolrate)
Definition: panedvbs.h:59
QString inversion(void) const
Definition: panedvbs.h:55
QString fec(void) const
Definition: panedvbs.h:54
void setFec(const QString &fec)
Definition: panedvbs.h:60
ScanInversion * m_pinversion
Definition: panedvbs.h:68
ScanFec * m_pfec
Definition: panedvbs.h:67
ScanFrequencykHz * m_pfrequency
Definition: panedvbs.h:64
ScanPolarity * m_ppolarity
Definition: panedvbs.h:65
PaneDVBS(const QString &target, StandardSetting *setting)
Definition: panedvbs.h:39
void setFrequency(uint frequency)
Definition: panedvbs.h:57
void setInversion(const QString &inversion)
Definition: panedvbs.h:61
QString symbolrate(void) const
Definition: panedvbs.h:53
void setPolarity(const QString &polarity)
Definition: panedvbs.h:58
QString polarity(void) const
Definition: panedvbs.h:52
void addTargetedChildren(const QString &value, std::initializer_list< StandardSetting * > settings)
void setVisible(bool visible)
virtual void setValue(const QString &newValue)
virtual QString getValue(void) const
unsigned int uint
Definition: compat.h:68