00001 /* -*- Mode: c++ -*- 00002 * vim: set expandtab tabstop=4 shiftwidth=4: 00003 * 00004 * Original Project 00005 * MythTV http://www.mythtv.org 00006 * 00007 * Copyright (c) 2004, 2005 John Pullan <john@pullan.org> 00008 * Copyright (c) 2005 - 2007 Daniel Kristjansson 00009 * 00010 * Description: 00011 * Collection of classes to provide channel scanning functionallity 00012 * 00013 * This program is free software; you can redistribute it and/or 00014 * modify it under the terms of the GNU General Public License 00015 * as published by the Free Software Foundation; either version 2 00016 * of the License, or (at your option) any later version. 00017 * 00018 * This program is distributed in the hope that it will be useful, 00019 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00021 * GNU General Public License for more details. 00022 * 00023 * You should have received a copy of the GNU General Public License 00024 * along with this program; if not, write to the Free Software 00025 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00026 * Or, point your browser to http://www.gnu.org/copyleft/gpl.html 00027 * 00028 */ 00029 00030 #ifndef _CHANNEL_SCANNER_GUI_H_ 00031 #define _CHANNEL_SCANNER_GUI_H_ 00032 00033 // Qt headers 00034 #include <QStringList> 00035 00036 // MythTV headers 00037 #include "settings.h" 00038 #include "channelscanner.h" 00039 00040 class ScanWizard; 00041 class LogList; 00042 class ChannelScannerGUIScanPane; 00043 class DeleteStage; 00044 class InsertStage; 00045 00046 class Channel; 00047 class DVBChannel; 00048 class SignalMonitorValue; 00049 00050 class ChannelScannerGUI : 00051 public StackedConfigurationGroup, 00052 public ChannelScanner 00053 { 00054 Q_OBJECT 00055 00056 friend void *spawn_popup(void*); 00057 00058 public: 00059 ChannelScannerGUI(void); 00060 virtual void deleteLater(void) 00061 { Teardown(); StackedConfigurationGroup::deleteLater(); } 00062 00063 virtual void HandleEvent(const ScannerEvent *scanEvent); 00064 00065 protected: 00066 virtual ~ChannelScannerGUI(); 00067 00068 virtual void InformUser(const QString &error); 00069 00070 virtual void Process(const ScanDTVTransportList&); 00071 00072 virtual void MonitorProgress(bool lock, bool strength, 00073 bool snr, bool rotor); 00074 00075 public: 00076 static QString kTitle; 00077 00078 public slots: 00079 void quitScanning(void); 00080 00081 private: 00082 ChannelScannerGUIScanPane *scanStage; 00083 LogList *doneStage; 00084 QStringList messageList; 00085 }; 00086 00087 #endif // _CHANNEL_SCANNER_GUI_H_
1.6.3