MythTV master
scanwizardconfig.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 SCAN_WIZARD_CONFIG_H
31#define SCAN_WIZARD_CONFIG_H
32
33// MythTV headers
36
38#include "channelscantypes.h"
39
40class ScanWizard;
42class ScanTypeSetting;
43class ScanCountry;
44class ScanNetwork;
46class DesiredServices;
47class FreeToAirOnly;
52class AddFullTS;
54
55class PaneAll;
56class PaneATSC;
57class PaneAnalog;
58class PaneDVBT;
59class PaneDVBT2;
60class PaneDVBC;
61class PaneDVBS;
62class PaneDVBS2;
63class PaneSingle;
66
68{
69 friend class ScanWizard;
70 Q_OBJECT
71 public:
72 enum Type : std::uint8_t
73 {
76 // Scans that check each frequency in a predefined list
82 // Scans starting on one frequency that adds each transport
83 // seen in the Network Information Tables to the scan.
89 // Scan of all transports already in the database
91 // Scan of one transport already in the database
95 // IPTV import of channels from M3U URL
97 // IPTV import of channels from M3U URL, with MPTS
99 // Imports lists from dvb-utils scanners
101 // Imports lists from previous mythtv scan
103 // Import using the VBox API to get the channel list
105 // Import using the ExternalRecorder API to get the channel list
107 // Import using the HDHomeRun API to get the channel list
109 };
110
112 {
113 setLabel(QObject::tr("Scan Type"));
114 }
115
116 protected slots:
117 void SetInput(const QString &cardids_inputname);
118
119 protected:
121};
122
124{
125 Q_OBJECT
126
127 public:
128 explicit ScanOptionalConfig(ScanTypeSetting *_scan_type);
129
130 QString GetFrequencyStandard(void) const;
131 QString GetModulation(void) const;
132 QString GetFrequencyTable(void) const;
133 bool GetFrequencyTableRange(QString &start, QString &end) const;
134 bool DoIgnoreSignalTimeout(void) const;
135 bool DoFollowNIT(void) const;
136 QString GetFilename(void) const;
137 uint GetMultiplex(void) const;
138 QMap<QString,QString> GetStartChan(void) const;
139 uint GetScanID(void) const;
140 void SetTuningPaneValues(uint frequency, const DTVMultiplex &mpx);
141 void SetTuningPaneValuesATSC(const QString &freqtable);
142
143 public slots:
144 void SetSourceID(const QString &sourceid);
145
146 private:
159 PaneAll *m_paneAll {nullptr};
162};
163
164#endif // SCAN_WIZARD_CONFIG_H
PaneAnalog * m_paneAnalog
void SetTuningPaneValues(uint frequency, const DTVMultiplex &mpx)
PaneSingle * m_paneSingle
PaneDVBUtilsImport * m_paneDVBUtilsImport
uint GetMultiplex(void) const
ScanCountry * m_dvbT2Country
uint GetScanID(void) const
bool DoIgnoreSignalTimeout(void) const
ScanCountry * m_dvbTCountry
QString GetFrequencyTable(void) const
ScanTypeSetting * m_scanType
ScanNetwork * m_network
ScanOptionalConfig(ScanTypeSetting *_scan_type)
QString GetFrequencyStandard(void) const
PaneExistingScanImport * m_paneExistingScanImport
bool GetFrequencyTableRange(QString &start, QString &end) const
QString GetModulation(void) const
QMap< QString, QString > GetStartChan(void) const
void SetSourceID(const QString &sourceid)
bool DoFollowNIT(void) const
void SetTuningPaneValuesATSC(const QString &freqtable)
QString GetFilename(void) const
@ CurrentTransportScan
Scans the transport when there is no tuner (for ASI)
void SetInput(const QString &cardids_inputname)
virtual void setLabel(QString str)
unsigned int uint
Definition: freesurround.h:24