MythTV  master
channelscanner_gui.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 CHANNEL_SCANNER_GUI_H
31 #define CHANNEL_SCANNER_GUI_H
32 
33 // Qt headers
34 #include <QStringList>
35 
36 // MythTV headers
37 #include "channelscanner.h"
38 
40 class DeleteStage;
41 class InsertStage;
42 
43 class Channel;
44 class DVBChannel;
45 class SignalMonitorValue;
46 
48  public QObject,
49  public ChannelScanner
50 {
51  Q_OBJECT
52 
53  friend void *spawn_popup(void*);
54 
55  public:
56  ChannelScannerGUI(void) = default;
57  virtual void deleteLater(void)
58  { Teardown(); }
59 
60  void HandleEvent(const ScannerEvent *scanEvent) override; // ChannelScanner
61 
62  protected:
63  ~ChannelScannerGUI() override;
64 
65  void InformUser(const QString &error) override; // ChannelScanner
66 
67  virtual void Process(const ScanDTVTransportList &_transports, bool success = false);
68 
69  void MonitorProgress(bool lock, bool strength,
70  bool snr, bool rotor) override; // ChannelScanner
71 
72  public slots:
73  void quitScanning(void);
74 
75  private:
77  QStringList m_messageList;
78 };
79 
80 #endif // CHANNEL_SCANNER_GUI_H
ChannelScannerGUI::m_messageList
QStringList m_messageList
Definition: channelscanner_gui.h:77
Channel
Definition: channel.h:36
ChannelScannerGUI::spawn_popup
friend void * spawn_popup(void *)
error
static void error(const char *str,...)
Definition: vbi.cpp:37
ChannelScannerGUI::InformUser
void InformUser(const QString &error) override
Definition: channelscanner_gui.cpp:145
ChannelScannerGUI::HandleEvent
void HandleEvent(const ScannerEvent *scanEvent) override
Definition: channelscanner_gui.cpp:62
ChannelScannerGUI::m_scanStage
ChannelScannerGUIScanPane * m_scanStage
Definition: channelscanner_gui.h:76
ChannelScannerGUI
Definition: channelscanner_gui.h:47
ChannelScannerGUI::ChannelScannerGUI
ChannelScannerGUI(void)=default
channelscanner.h
ChannelScannerGUI::Process
virtual void Process(const ScanDTVTransportList &_transports, bool success=false)
Definition: channelscanner_gui.cpp:136
ChannelScannerGUI::quitScanning
void quitScanning(void)
Definition: channelscanner_gui.cpp:150
ChannelScanner
Definition: channelscanner.h:66
ChannelScanner::Teardown
virtual void Teardown(void)
Definition: channelscanner.cpp:63
ChannelScannerGUI::MonitorProgress
void MonitorProgress(bool lock, bool strength, bool snr, bool rotor) override
Definition: channelscanner_gui.cpp:160
SignalMonitorValue
Definition: signalmonitorvalue.h:13
ScanDTVTransportList
std::vector< ScanDTVTransport > ScanDTVTransportList
Definition: dtvmultiplex.h:143
ScannerEvent
Definition: scanmonitor.h:86
DVBChannel
Provides interface to the tuning hardware when using DVB drivers.
Definition: dvbchannel.h:31
ChannelScannerGUIScanPane
Definition: channelscanner_gui_scan_pane.h:40
ChannelScannerGUI::~ChannelScannerGUI
~ChannelScannerGUI() override
Definition: channelscanner_gui.cpp:53
ChannelScannerGUI::deleteLater
virtual void deleteLater(void)
Definition: channelscanner_gui.h:57