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_SINGLE_H_ 00031 #define _PANE_SINGLE_H_ 00032 00033 // MythTV headers 00034 #include "channelscanmiscsettings.h" 00035 #include "multiplexsetting.h" 00036 00037 class PaneSingle : public VerticalConfigurationGroup 00038 { 00039 public: 00040 PaneSingle() : 00041 VerticalConfigurationGroup(false, false, true, false), 00042 transport_setting(new MultiplexSetting()), 00043 ignore_signal_timeout(new IgnoreSignalTimeout()), 00044 follow_nit(new FollowNITSetting()) 00045 { 00046 addChild(transport_setting); 00047 addChild(ignore_signal_timeout); 00048 addChild(follow_nit); 00049 } 00050 00051 int GetMultiplex(void) const 00052 { return transport_setting->getValue().toInt(); } 00053 bool ignoreSignalTimeout(void) const 00054 { return ignore_signal_timeout->getValue().toInt(); } 00055 bool GetFollowNIT(void) const 00056 { return follow_nit->getValue().toInt(); } 00057 00058 void SetSourceID(uint sourceid) 00059 { transport_setting->SetSourceID(sourceid); } 00060 00061 protected: 00062 MultiplexSetting *transport_setting; 00063 IgnoreSignalTimeout *ignore_signal_timeout; 00064 FollowNITSetting *follow_nit; 00065 }; 00066 00067 #endif // _PANE_SINGLE_H_
1.6.3