MythTV  master
transporteditor.h
Go to the documentation of this file.
1 /*
2  * $Id$
3  * vim: set expandtab tabstop=4 shiftwidth=4:
4  *
5  * Original Project
6  * MythTV http://www.mythtv.org
7  *
8  * Author(s):
9  * John Pullan (john@pullan.org)
10  * Taylor Jacob (rtjacob@earthlink.net)
11  *
12  * Description:
13  * Collection of classes to provide dvb a transport editor
14  *
15  * This program is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU General Public License
17  * as published by the Free Software Foundation; either version 2
18  * of the License, or (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23  * GNU General Public License for more details.
24  *
25  * You should have received a copy of the GNU General Public License
26  * along with this program; if not, write to the Free Software
27  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
28  * Or, point your browser to http://www.gnu.org/copyleft/gpl.html
29  *
30  */
31 
32 #ifndef TRANSPORT_EDITOR_H
33 #define TRANSPORT_EDITOR_H
34 
35 #include <QObject>
36 
38 
39 #include "mythtvexp.h"
40 #include "cardutil.h"
41 
42 class VideoSourceShow;
43 class MultiplexID;
44 
45 /*
46  * Objects added for Transport Editing section
47  */
49 {
50  Q_OBJECT
51 
52  public:
53  TransportSetting(const QString &label, uint mplexid, uint sourceid,
54  CardUtil::INPUT_TYPES cardtype);
55 
56  bool keyPressEvent(QKeyEvent *event) override; // StandardSetting
57 
58  uint getMplexId() const;
59 
60  signals:
61  void deletePressed();
62  void openMenu();
63 
64  private:
65  MultiplexID *m_mplexid {nullptr};
66 };
67 
68 // Page for selecting a transport to be created/edited
70 {
71  Q_OBJECT
72 
73  public:
74  explicit TransportListEditor(uint initial_sourceid);
75  void Load(void) override; // StandardSetting
76 
77  void SetSourceID(uint sourceid);
78 
79  public slots:
80  void SetSourceID(const QString &name);
81  void Menu(TransportSetting *transport);
82  void NewTransport(void);
83 
84  private:
85  ~TransportListEditor() override = default;
86  void Delete(TransportSetting *transport);
87 
88  private:
89  VideoSourceShow *m_videosource {nullptr};
90  QVector<StandardSetting*> m_list;
91  uint m_sourceid {0};
93  bool m_isLoading {false};
94 };
95 
96 #endif // TRANSPORT_EDITOR_H
TransportSetting::deletePressed
void deletePressed()
TransportSetting::m_mplexid
MultiplexID * m_mplexid
Definition: transporteditor.h:65
CardUtil::INPUT_TYPES::ERROR_PROBE
@ ERROR_PROBE
mythtvexp.h
TransportListEditor::m_list
QVector< StandardSetting * > m_list
Definition: transporteditor.h:90
TransportSetting::getMplexId
uint getMplexId() const
Definition: transporteditor.cpp:959
TransportListEditor
Definition: transporteditor.h:69
StandardSetting::Load
virtual void Load(void)
Definition: standardsettings.cpp:213
VideoSourceShow
Definition: videosource.h:75
TransportSetting
Definition: transporteditor.h:48
standardsettings.h
MTV_PUBLIC
#define MTV_PUBLIC
Definition: mythtvexp.h:15
TransportSetting::openMenu
void openMenu()
MultiplexID
Definition: transporteditor.cpp:45
cardutil.h
CardUtil::INPUT_TYPES
INPUT_TYPES
all the different inputs
Definition: cardutil.h:49
TransportSetting::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Definition: transporteditor.cpp:934
GroupSetting
Definition: standardsettings.h:435
uint
unsigned int uint
Definition: freesurround.h:24
TransportSetting::TransportSetting
TransportSetting(const QString &label, uint mplexid, uint sourceid, CardUtil::INPUT_TYPES cardtype)
Definition: transporteditor.cpp:849