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  virtual ~ChannelScannerGUI();
64 
65  void InformUser(const QString &error) override; // ChannelScanner
66 
67  virtual void Process(const ScanDTVTransportList&, 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_
unsigned int slots[4]
Definition: element.c:38
void HandleEvent(const ScannerEvent *scanEvent) override
static void error(const char *str,...)
Definition: vbi.c:42
virtual void Teardown(void)
vector< ScanDTVTransport > ScanDTVTransportList
Definition: dtvmultiplex.h:141
Provides interface to the tuning hardware when using DVB drivers.
Definition: dvbchannel.h:29
ChannelScannerGUIScanPane * m_scanStage
ChannelScannerGUI(void)=default
void MonitorProgress(bool lock, bool strength, bool snr, bool rotor) override
virtual void Process(const ScanDTVTransportList &, bool success=false)
QStringList m_messageList
virtual void deleteLater(void)
friend void * spawn_popup(void *)
void InformUser(const QString &error) override