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_DVBS_H_ 00031 #define _PANE_DVBS_H_ 00032 00033 // MythTV headers 00034 #include "channelscanmiscsettings.h" 00035 00036 class PaneDVBS : public HorizontalConfigurationGroup 00037 { 00038 public: 00039 PaneDVBS() : HorizontalConfigurationGroup(false, false, true, false) 00040 { 00041 setUseFrame(false); 00042 VerticalConfigurationGroup *left = 00043 new VerticalConfigurationGroup(false,true); 00044 VerticalConfigurationGroup *right = 00045 new VerticalConfigurationGroup(false,true); 00046 left->addChild(pfrequency = new ScanFrequencykHz()); 00047 left->addChild(ppolarity = new ScanPolarity()); 00048 left->addChild(psymbolrate = new ScanSymbolRateDVBS()); 00049 right->addChild(pfec = new ScanFec()); 00050 right->addChild(pinversion = new ScanInversion()); 00051 addChild(left); 00052 addChild(right); 00053 } 00054 00055 QString frequency(void) const { return pfrequency->getValue(); } 00056 QString symbolrate(void) const { return psymbolrate->getValue(); } 00057 QString inversion(void) const { return pinversion->getValue(); } 00058 QString fec(void) const { return pfec->getValue(); } 00059 QString polarity(void) const { return ppolarity->getValue(); } 00060 00061 protected: 00062 ScanFrequencykHz *pfrequency; 00063 ScanSymbolRateDVBS *psymbolrate; 00064 ScanInversion *pinversion; 00065 ScanFec *pfec; 00066 ScanPolarity *ppolarity; 00067 }; 00068 00069 #endif // _PANE_DVBS_H_
1.6.3