00001 /* 00002 * $Id$ 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> 00036 00037 #include "mythtvexp.h" 00038 #include "settings.h" 00039 00040 class VideoSourceSelector; 00041 class MultiplexID; 00042 00043 /* 00044 * Objects added for Transport Editing section 00045 */ 00046 00047 class TransportList : public ListBoxSetting, public TransientStorage 00048 { 00049 Q_OBJECT 00050 00051 public: 00052 TransportList() : ListBoxSetting(this), sourceid(0), cardtype(0) { } 00053 00054 virtual void Load(void) { fillSelections(); } 00055 virtual void fillSelections(void); 00056 00057 void SetSourceID(uint _sourceid); 00058 00059 public slots: 00060 void SetSourceID(const QString &_sourceid) 00061 { SetSourceID(_sourceid.toUInt()); } 00062 00063 private: 00064 ~TransportList() { } 00065 00066 private: 00067 uint sourceid; 00068 uint cardtype; 00069 }; 00070 00071 // Page for selecting a transport to be created/edited 00072 class MTV_PUBLIC TransportListEditor : public QObject, public ConfigurationDialog 00073 { 00074 Q_OBJECT 00075 00076 public: 00077 TransportListEditor(uint initial_sourceid); 00078 00079 virtual DialogCode exec(void); 00080 00081 public slots: 00082 void Menu(void); 00083 void Delete(void); 00084 void Edit(void); 00085 00086 private: 00087 ~TransportListEditor() { } 00088 00089 private: 00090 VideoSourceSelector *m_videosource; 00091 TransportList *m_list; 00092 }; 00093 00094 #endif // _TRANSPORT_EDITOR_H_
1.6.3