MythTV  master
panesingle.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_SINGLE_H
31 #define PANE_SINGLE_H
32 
33 // MythTV headers
35 #include "multiplexsetting.h"
36 
37 class PaneSingle : public GroupSetting
38 {
39  public:
40  PaneSingle(const QString &target, StandardSetting *setting) :
44  {
45  setVisible(false);
46  setting->addTargetedChildren(target,
47  {this,
50  m_followNit});
51  }
52 
53  int GetMultiplex(void) const
54  { return m_transportSetting->getValue().toInt(); }
55  bool ignoreSignalTimeout(void) const
56  { return m_ignoreSignalTimeout->getValue().toInt() != 0; }
57  bool GetFollowNIT(void) const
58  { return m_followNit->getValue().toInt() != 0; }
59 
60  void SetSourceID(uint sourceid)
61  { m_transportSetting->SetSourceID(sourceid); }
62 
63  protected:
67 };
68 
69 #endif // PANE_SINGLE_H
multiplexsetting.h
PaneSingle::GetMultiplex
int GetMultiplex(void) const
Definition: panesingle.h:53
PaneSingle::PaneSingle
PaneSingle(const QString &target, StandardSetting *setting)
Definition: panesingle.h:40
MultiplexSetting::SetSourceID
void SetSourceID(uint sourceid)
Definition: multiplexsetting.cpp:85
PaneSingle
Definition: panesingle.h:37
PaneSingle::ignoreSignalTimeout
bool ignoreSignalTimeout(void) const
Definition: panesingle.h:55
IgnoreSignalTimeout
Definition: channelscanmiscsettings.h:52
PaneSingle::m_transportSetting
MultiplexSetting * m_transportSetting
Definition: panesingle.h:64
PaneSingle::m_ignoreSignalTimeout
IgnoreSignalTimeout * m_ignoreSignalTimeout
Definition: panesingle.h:65
StandardSetting::getValue
virtual QString getValue(void) const
Definition: standardsettings.h:52
uint
unsigned int uint
Definition: compat.h:140
channelscanmiscsettings.h
FollowNITSetting
Definition: channelscanmiscsettings.h:65
PaneSingle::SetSourceID
void SetSourceID(uint sourceid)
Definition: panesingle.h:60
StandardSetting::setVisible
void setVisible(bool visible)
Definition: standardsettings.cpp:59
StandardSetting
Definition: standardsettings.h:29
PaneSingle::m_followNit
FollowNITSetting * m_followNit
Definition: panesingle.h:66
StandardSetting::addTargetedChildren
void addTargetedChildren(const QString &value, std::initializer_list< StandardSetting * > settings)
Definition: standardsettings.cpp:106
PaneSingle::GetFollowNIT
bool GetFollowNIT(void) const
Definition: panesingle.h:57
GroupSetting
Definition: standardsettings.h:435
MultiplexSetting
Definition: multiplexsetting.h:11