00001 /* 00002 * $Id: transporteditor.h 14908 2007-11-19 16:44:58Z danielk $ 00003 * vim: set expandtab tabstop=4 shiftwidth=4: 00004 * 00005 * Original Project 00006 * MythTV http://www.mythtv.org 00007 * 00008 * Author(s): 00009 * John Pullan (john@pullan.org) 00010 * Taylor Jacob (rtjacob@earthlink.net) 00011 * 00012 * Description: 00013 * Collection of classes to provide dvb a transport editor 00014 * 00015 * This program is free software; you can redistribute it and/or 00016 * modify it under the terms of the GNU General Public License 00017 * as published by the Free Software Foundation; either version 2 00018 * of the License, or (at your option) any later version. 00019 * 00020 * This program is distributed in the hope that it will be useful, 00021 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00022 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00023 * GNU General Public License for more details. 00024 * 00025 * You should have received a copy of the GNU General Public License 00026 * along with this program; if not, write to the Free Software 00027 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00028 * Or, point your browser to http://www.gnu.org/copyleft/gpl.html 00029 * 00030 */ 00031 00032 #ifndef _TRANSPORT_EDITOR_H_ 00033 #define _TRANSPORT_EDITOR_H_ 00034 00035 #include <qobject.h> 00036 #include "settings.h" 00037 00038 class VideoSourceSelector; 00039 class MultiplexID; 00040 00041 /* 00042 * Objects added for Transport Editing section 00043 */ 00044 00045 class TransportList : public ListBoxSetting, public TransientStorage 00046 { 00047 Q_OBJECT 00048 00049 public: 00050 TransportList() : ListBoxSetting(this), sourceid(0) { } 00051 00052 virtual void load(void) { fillSelections(); } 00053 virtual void fillSelections(void); 00054 00055 void SetSourceID(uint _sourceid); 00056 00057 public slots: 00058 void SetSourceID(const QString &_sourceid) 00059 { SetSourceID(_sourceid.toUInt()); } 00060 00061 private: 00062 ~TransportList() { } 00063 00064 private: 00065 uint sourceid; 00066 uint cardtype; 00067 }; 00068 00069 // Page for selecting a transport to be created/edited 00070 class TransportListEditor : public QObject, public ConfigurationDialog 00071 { 00072 Q_OBJECT 00073 00074 public: 00075 TransportListEditor(uint initial_sourceid); 00076 00077 virtual DialogCode exec(void); 00078 00079 public slots: 00080 void Menu(void); 00081 void Delete(void); 00082 void Edit(void); 00083 00084 private: 00085 ~TransportListEditor() { } 00086 00087 private: 00088 VideoSourceSelector *m_videosource; 00089 TransportList *m_list; 00090 }; 00091 00092 #endif // _TRANSPORT_EDITOR_H_
1.5.5