MythTV
master
mythtv
libs
libmythtv
channelscan
inputselectorsetting.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 INPUT_SELECTOR_SETTING_H
31
#define INPUT_SELECTOR_SETTING_H
32
33
#include "
libmythui/standardsettings.h
"
34
35
class
InputSelector
:
public
TransMythUIComboBoxSetting
36
{
37
Q_OBJECT
38
39
public
:
40
InputSelector
(
uint
default_cardid, QString default_inputname);
41
42
void
Load
(
void
)
override
;
// StandardSetting
43
44
uint
GetCardID
(
void
)
const
;
45
46
QString
GetInputName
(
void
)
const
;
47
48
static
bool
Parse
(
const
QString &cardid_inputname,
49
uint
&cardid,
50
QString &inputname);
51
52
public
slots:
53
void
SetSourceID
(
const
QString &sourceid);
54
55
private
:
56
uint
m_sourceId
{0};
57
uint
m_defaultCardId
;
58
QString
m_defaultInputName
;
59
};
60
61
#endif // INPUT_SELECTOR_SETTING_H
InputSelector::m_sourceId
uint m_sourceId
Definition:
inputselectorsetting.h:56
InputSelector::SetSourceID
void SetSourceID(const QString &sourceid)
Definition:
inputselectorsetting.cpp:100
InputSelector::InputSelector
InputSelector(uint default_cardid, QString default_inputname)
Definition:
inputselectorsetting.cpp:39
TransMythUIComboBoxSetting
Definition:
standardsettings.h:272
InputSelector::Load
void Load(void) override
Definition:
inputselectorsetting.cpp:52
InputSelector::m_defaultInputName
QString m_defaultInputName
Definition:
inputselectorsetting.h:58
InputSelector::m_defaultCardId
uint m_defaultCardId
Definition:
inputselectorsetting.h:57
InputSelector
Definition:
inputselectorsetting.h:35
InputSelector::Parse
static bool Parse(const QString &cardid_inputname, uint &cardid, QString &inputname)
Definition:
inputselectorsetting.cpp:129
standardsettings.h
InputSelector::GetInputName
QString GetInputName(void) const
Definition:
inputselectorsetting.cpp:119
uint
unsigned int uint
Definition:
freesurround.h:24
InputSelector::GetCardID
uint GetCardID(void) const
Definition:
inputselectorsetting.cpp:109
Generated on Mon Jan 6 2025 03:16:46 for MythTV by
1.8.17