MythTV
master
libs
libmythtv
channelscan
paneall.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_ALL_H
31
#define PANE_ALL_H
32
33
// MythTV headers
34
#include "
channelscanmiscsettings.h
"
35
36
class
PaneAll
:
public
GroupSetting
37
{
38
public
:
39
PaneAll
(
const
QString &target,
StandardSetting
*setting) :
40
m_ignoreSignalTimeout
(new
IgnoreSignalTimeout
()),
41
m_followNit
(new
FollowNITSetting
())
42
{
43
setVisible
(
false
);
44
setting->
addTargetedChildren
(target,
45
{
this
,
46
m_ignoreSignalTimeout
,
47
m_followNit
});
48
}
49
50
bool
ignoreSignalTimeout
(
void
)
const
51
{
return
m_ignoreSignalTimeout
->
getValue
().toInt() != 0; }
52
bool
GetFollowNIT
(
void
)
const
53
{
return
m_followNit
->
getValue
().toInt() != 0; }
54
55
protected
:
56
IgnoreSignalTimeout
*
m_ignoreSignalTimeout
{
nullptr
};
57
FollowNITSetting
*
m_followNit
{
nullptr
};
58
};
59
60
#endif // PANE_ALL_H
PaneAll::ignoreSignalTimeout
bool ignoreSignalTimeout(void) const
Definition:
paneall.h:50
PaneAll::m_ignoreSignalTimeout
IgnoreSignalTimeout * m_ignoreSignalTimeout
Definition:
paneall.h:56
PaneAll::GetFollowNIT
bool GetFollowNIT(void) const
Definition:
paneall.h:52
IgnoreSignalTimeout
Definition:
channelscanmiscsettings.h:52
StandardSetting::getValue
virtual QString getValue(void) const
Definition:
standardsettings.h:52
channelscanmiscsettings.h
FollowNITSetting
Definition:
channelscanmiscsettings.h:65
PaneAll::m_followNit
FollowNITSetting * m_followNit
Definition:
paneall.h:57
PaneAll::PaneAll
PaneAll(const QString &target, StandardSetting *setting)
Definition:
paneall.h:39
StandardSetting::setVisible
void setVisible(bool visible)
Definition:
standardsettings.cpp:60
StandardSetting
Definition:
standardsettings.h:29
StandardSetting::addTargetedChildren
void addTargetedChildren(const QString &value, std::initializer_list< StandardSetting * > settings)
Definition:
standardsettings.cpp:107
PaneAll
Definition:
paneall.h:36
GroupSetting
Definition:
standardsettings.h:435
Generated on Wed Dec 6 2023 03:20:16 for MythTV by
1.8.17