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_SCAN_PANE_H_ 00031 #define _CHANNEL_SCANNER_GUI_SCAN_PANE_H_ 00032 00033 // MythTV headers 00034 #include "settings.h" 00035 00036 class LogList; 00037 00038 class TransProgressSetting: public ProgressSetting, public TransientStorage 00039 { 00040 public: 00041 TransProgressSetting(int steps = 65535): ProgressSetting(this, steps) {}; 00042 }; 00043 00044 class ChannelScannerGUIScanPane : public VerticalConfigurationGroup 00045 { 00046 Q_OBJECT 00047 00048 friend class QObject; // quiet OSX gcc warning 00049 00050 public: 00051 ChannelScannerGUIScanPane( 00052 bool lock, bool strength, bool snr, bool rotorpos, 00053 QObject *target, const char *slot); 00054 00055 void SetStatusRotorPosition(int value); 00056 void SetStatusSignalToNoise(int value); 00057 void SetStatusSignalStrength(int value); 00058 void SetStatusLock(int value); 00059 void SetScanProgress(double value) 00060 { progressBar->setValue((uint)(value * 65535));} 00061 00062 void SetStatusText(const QString &value); 00063 void SetStatusTitleText(const QString &value); 00064 00065 void AppendLine(const QString &text); 00066 00067 LogList *log; 00068 00069 private: 00070 TransProgressSetting *ss; 00071 TransProgressSetting *sn; 00072 TransProgressSetting *pos; 00073 TransProgressSetting *progressBar; 00074 00075 TransLabelSetting *sl; 00076 TransLabelSetting *sta; 00077 }; 00078 00079 #endif // _CHANNEL_SCANNER_GUI_SCAN_PANE_H_
1.6.3