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 _INPUT_SELECTOR_SETTING_H_ 00031 #define _INPUT_SELECTOR_SETTING_H_ 00032 00033 #include "settings.h" 00034 00035 class InputSelector : public ComboBoxSetting, public TransientStorage 00036 { 00037 Q_OBJECT 00038 00039 public: 00040 InputSelector(uint _default_cardid, const QString &_default_inputname); 00041 00042 virtual void Load(void); 00043 00044 uint GetCardID(void) const; 00045 00046 QString GetInputName(void) const; 00047 00048 static bool Parse(const QString &cardids_inputname, 00049 uint &cardid, 00050 QString &inputname); 00051 00052 public slots: 00053 void SetSourceID(const QString &_sourceid); 00054 00055 private: 00056 uint sourceid; 00057 uint default_cardid; 00058 QString default_inputname; 00059 }; 00060 00061 #endif // _INPUT_SELECTOR_SETTING_H_
1.6.3