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
40class DeleteStage;
41class InsertStage;
42
43class Channel;
44class DVBChannel;
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
virtual void Process(const ScanDTVTransportList &_transports, bool success=false)
void InformUser(const QString &error) override
void MonitorProgress(bool lock, bool strength, bool snr, bool rotor) override
ChannelScannerGUI(void)=default
friend void * spawn_popup(void *)
virtual void deleteLater(void)
QStringList m_messageList
void HandleEvent(const ScannerEvent *scanEvent) override
ChannelScannerGUIScanPane * m_scanStage
virtual void Teardown(void)
Provides interface to the tuning hardware when using DVB drivers.
Definition: dvbchannel.h:31
std::vector< ScanDTVTransport > ScanDTVTransportList
Definition: dtvmultiplex.h:143
def error(message)
Definition: smolt.py:409