MythTV  master
videoMultiplex.h
Go to the documentation of this file.
1 #ifndef VIDEOMULTIPLEX_H_
2 #define VIDEOMULTIPLEX_H_
3 
4 #include <QString>
5 #include <QDateTime>
6 
7 #include "serviceexp.h"
8 #include "datacontracthelper.h"
9 
10 namespace DTC
11 {
12 
14 
15 class SERVICE_PUBLIC VideoMultiplex : public QObject
16 {
17  Q_OBJECT
18  Q_CLASSINFO( "version" , "1.1" );
19 
20  Q_PROPERTY( int MplexId READ MplexId WRITE setMplexId )
21  Q_PROPERTY( int SourceId READ SourceId WRITE setSourceId )
22  Q_PROPERTY( int TransportId READ TransportId WRITE setTransportId )
23  Q_PROPERTY( int NetworkId READ NetworkId WRITE setNetworkId )
24  Q_PROPERTY( long long Frequency READ Frequency WRITE setFrequency )
25  Q_PROPERTY( QString Inversion READ Inversion WRITE setInversion )
26  Q_PROPERTY( long long SymbolRate READ SymbolRate WRITE setSymbolRate )
27  Q_PROPERTY( QString FEC READ FEC WRITE setFEC )
28  Q_PROPERTY( QString Polarity READ Polarity WRITE setPolarity )
29  Q_PROPERTY( QString Modulation READ Modulation WRITE setModulation )
30  Q_PROPERTY( QString Bandwidth READ Bandwidth WRITE setBandwidth )
31  Q_PROPERTY( QString LPCodeRate READ LPCodeRate WRITE setLPCodeRate )
32  Q_PROPERTY( QString HPCodeRate READ HPCodeRate WRITE setHPCodeRate )
33  Q_PROPERTY( QString TransmissionMode READ TransmissionMode WRITE setTransmissionMode )
34  Q_PROPERTY( QString GuardInterval READ GuardInterval WRITE setGuardInterval )
35  Q_PROPERTY( bool Visible READ Visible WRITE setVisible )
36  Q_PROPERTY( QString Constellation READ Constellation WRITE setConstellation )
37  Q_PROPERTY( QString Hierarchy READ Hierarchy WRITE setHierarchy )
38  Q_PROPERTY( QString ModulationSystem READ ModulationSystem WRITE setModulationSystem )
39  Q_PROPERTY( QString RollOff READ RollOff WRITE setRollOff )
40  Q_PROPERTY( QString SIStandard READ SIStandard WRITE setSIStandard )
41  Q_PROPERTY( int ServiceVersion READ ServiceVersion WRITE setServiceVersion )
42  Q_PROPERTY( QDateTime UpdateTimeStamp READ UpdateTimeStamp WRITE setUpdateTimeStamp )
43  Q_PROPERTY( QString DefaultAuthority READ DefaultAuthority WRITE setDefaultAuthority )
44 
45  PROPERTYIMP ( int , MplexId )
46  PROPERTYIMP ( int , SourceId )
47  PROPERTYIMP ( int , TransportId )
48  PROPERTYIMP ( int , NetworkId )
49  PROPERTYIMP ( long long , Frequency )
50  PROPERTYIMP ( QString , Inversion )
51  PROPERTYIMP ( long long , SymbolRate )
52  PROPERTYIMP ( QString , FEC )
53  PROPERTYIMP ( QString , Polarity )
54  PROPERTYIMP ( QString , Modulation )
55  PROPERTYIMP ( QString , Bandwidth )
56  PROPERTYIMP ( QString , LPCodeRate )
57  PROPERTYIMP ( QString , HPCodeRate )
58  PROPERTYIMP ( QString , TransmissionMode )
59  PROPERTYIMP ( QString , GuardInterval )
60  PROPERTYIMP ( bool , Visible )
61  PROPERTYIMP ( QString , Constellation )
62  PROPERTYIMP ( QString , Hierarchy )
63  PROPERTYIMP ( QString , ModulationSystem )
64  PROPERTYIMP ( QString , RollOff )
65  PROPERTYIMP ( QString , SIStandard )
66  PROPERTYIMP ( int , ServiceVersion )
67  PROPERTYIMP ( QDateTime , UpdateTimeStamp )
68  PROPERTYIMP ( QString , DefaultAuthority )
69 
70  public:
71 
72  static inline void InitializeCustomTypes();
73 
74  Q_INVOKABLE VideoMultiplex(QObject *parent = nullptr)
75  : QObject ( parent ),
76  m_MplexId ( 0 ),
77  m_SourceId ( 0 ),
78  m_TransportId ( 0 ),
79  m_NetworkId ( 0 ),
80  m_Frequency ( 0 ),
81  m_SymbolRate ( 0 ),
82  m_Visible ( false ),
83  m_ServiceVersion( 0 )
84  {
85  }
86 
87  void Copy( const VideoMultiplex *src )
88  {
89  m_MplexId = src->m_MplexId ;
90  m_SourceId = src->m_SourceId ;
91  m_TransportId = src->m_TransportId ;
92  m_NetworkId = src->m_NetworkId ;
93  m_Frequency = src->m_Frequency ;
94  m_Inversion = src->m_Inversion ;
95  m_SymbolRate = src->m_SymbolRate ;
96  m_FEC = src->m_FEC ;
97  m_Polarity = src->m_Polarity ;
98  m_Modulation = src->m_Modulation ;
99  m_Bandwidth = src->m_Bandwidth ;
100  m_LPCodeRate = src->m_LPCodeRate ;
101  m_HPCodeRate = src->m_HPCodeRate ;
102  m_TransmissionMode = src->m_TransmissionMode ;
103  m_GuardInterval = src->m_GuardInterval ;
104  m_Visible = src->m_Visible ;
105  m_Constellation = src->m_Constellation ;
106  m_Hierarchy = src->m_Hierarchy ;
107  m_ModulationSystem = src->m_ModulationSystem ;
108  m_RollOff = src->m_RollOff ;
109  m_SIStandard = src->m_SIStandard ;
110  m_ServiceVersion = src->m_ServiceVersion ;
111  m_UpdateTimeStamp = src->m_UpdateTimeStamp ;
112  m_DefaultAuthority = src->m_DefaultAuthority ;
113  }
114 
115  private:
116  Q_DISABLE_COPY(VideoMultiplex);
117 };
118 
120 {
121  qRegisterMetaType< VideoMultiplex* >();
122 }
123 
124 } // namespace DTC
125 
126 #endif
#define PROPERTYIMP(type, name)
#define SERVICE_PUBLIC
Definition: serviceexp.h:9
VERBOSE_PREAMBLE false
Definition: verbosedefs.h:85
void Copy(const VideoMultiplex *src)
static void InitializeCustomTypes()