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 _PANE_DVB_UTILS_IMPORT_H_ 00031 #define _PANE_DVB_UTILS_IMPORT_H_ 00032 00033 // Qt headers 00034 #include <QString> 00035 00036 // MythTV headers 00037 #include "channelscanmiscsettings.h" 00038 00039 class PaneDVBUtilsImport : public VerticalConfigurationGroup 00040 { 00041 Q_OBJECT 00042 00043 public: 00044 PaneDVBUtilsImport() : 00045 VerticalConfigurationGroup(false,false,true,false), 00046 filename(new TransLineEditSetting()), 00047 ignore_signal_timeout(new IgnoreSignalTimeout()) 00048 { 00049 filename->setLabel(tr("File location")); 00050 filename->setHelpText(tr("Location of the channels.conf file.")); 00051 addChild(filename); 00052 addChild(ignore_signal_timeout); 00053 } 00054 00055 QString GetFilename(void) const { return filename->getValue(); } 00056 bool DoIgnoreSignalTimeout(void) const 00057 { return ignore_signal_timeout->getValue().toInt(); } 00058 00059 private: 00060 TransLineEditSetting *filename; 00061 IgnoreSignalTimeout *ignore_signal_timeout; 00062 }; 00063 00064 #endif // _PANE_DVB_UTILS_IMPORT_H_
1.6.3