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
42class VideoSourceShow;
43class 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:
62 void openMenu();
63
64 private:
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
INPUT_TYPES
all the different inputs
Definition: cardutil.h:50
virtual void Load(void)
~TransportListEditor() override=default
QVector< StandardSetting * > m_list
MultiplexID * m_mplexid
bool keyPressEvent(QKeyEvent *event) override
TransportSetting(const QString &label, uint mplexid, uint sourceid, CardUtil::INPUT_TYPES cardtype)
uint getMplexId() const
unsigned int uint
Definition: freesurround.h:24
#define MTV_PUBLIC
Definition: mythtvexp.h:15