MythTV  master
videoSource.h
Go to the documentation of this file.
1 #ifndef VIDEOSOURCE_H_
2 #define VIDEOSOURCE_H_
3 
4 #include <QString>
5 
6 #include "serviceexp.h"
7 #include "datacontracthelper.h"
8 
9 namespace DTC
10 {
11 
13 
14 class SERVICE_PUBLIC VideoSource : public QObject
15 {
16  Q_OBJECT
17  Q_CLASSINFO( "version" , "1.0" );
18 
19  Q_PROPERTY( int Id READ Id WRITE setId )
20  Q_PROPERTY( QString SourceName READ SourceName WRITE setSourceName )
21  Q_PROPERTY( QString Grabber READ Grabber WRITE setGrabber )
22  Q_PROPERTY( QString UserId READ UserId WRITE setUserId )
23  Q_PROPERTY( QString FreqTable READ FreqTable WRITE setFreqTable )
24  Q_PROPERTY( QString LineupId READ LineupId WRITE setLineupId )
25  Q_PROPERTY( QString Password READ Password WRITE setPassword )
26  Q_PROPERTY( bool UseEIT READ UseEIT WRITE setUseEIT )
27  Q_PROPERTY( QString ConfigPath READ ConfigPath WRITE setConfigPath )
28  Q_PROPERTY( int NITId READ NITId WRITE setNITId )
29  Q_PROPERTY( uint BouquetId READ BouquetId WRITE setBouquetId )
30  Q_PROPERTY( uint RegionId READ RegionId WRITE setRegionId )
31  Q_PROPERTY( uint ScanFrequency READ ScanFrequency WRITE setScanFrequency )
32 
33  PROPERTYIMP ( int , Id )
34  PROPERTYIMP_REF( QString , SourceName )
35  PROPERTYIMP_REF( QString , Grabber )
36  PROPERTYIMP_REF( QString , UserId )
37  PROPERTYIMP_REF( QString , FreqTable )
38  PROPERTYIMP_REF( QString , LineupId )
39  PROPERTYIMP_REF( QString , Password )
40  PROPERTYIMP ( bool , UseEIT )
41  PROPERTYIMP_REF( QString , ConfigPath )
42  PROPERTYIMP ( int , NITId )
43  PROPERTYIMP ( uint , BouquetId )
44  PROPERTYIMP ( uint , RegionId )
46 
47  public:
48 
49  static inline void InitializeCustomTypes();
50 
51  Q_INVOKABLE VideoSource(QObject *parent = nullptr)
52  : QObject ( parent ),
53  m_Id ( 0 ),
54  m_UseEIT ( false ),
55  m_NITId ( 0 ),
56  m_BouquetId ( 0 ),
57  m_RegionId ( 0 ),
58  m_ScanFrequency ( 0 )
59  {
60  }
61 
62  void Copy( const VideoSource *src )
63  {
64  m_Id = src->m_Id ;
65  m_SourceName = src->m_SourceName ;
66  m_Grabber = src->m_Grabber ;
67  m_UserId = src->m_UserId ;
68  m_FreqTable = src->m_FreqTable ;
69  m_LineupId = src->m_LineupId ;
70  m_Password = src->m_Password ;
71  m_UseEIT = src->m_UseEIT ;
72  m_ConfigPath = src->m_ConfigPath ;
73  m_NITId = src->m_NITId ;
74  m_BouquetId = src->m_BouquetId ;
75  m_RegionId = src->m_RegionId ;
76  m_ScanFrequency = src->m_ScanFrequency ;
77  }
78 
79  private:
80  Q_DISABLE_COPY(VideoSource);
81 };
82 
84 {
85  qRegisterMetaType< VideoSource* >();
86 }
87 
88 } // namespace DTC
89 
90 #endif
Password
static StandardSetting * Password(bool enabled)
Setting for changing password.
Definition: galleryconfig.cpp:217
DTC::VideoSource::InitializeCustomTypes
static void InitializeCustomTypes()
Definition: videoSource.h:83
false
VERBOSE_PREAMBLE false
Definition: verbosedefs.h:85
UseEIT
Definition: videosource.cpp:581
SERVICE_PUBLIC
#define SERVICE_PUBLIC
Definition: serviceexp.h:9
DTC::VideoSource
Definition: videoSource.h:14
datacontracthelper.h
serviceexp.h
FreqTable
static GlobalComboBoxSetting * FreqTable()
Definition: backendsettings.cpp:241
ScanFrequency
Definition: channelscanmiscsettings.h:231
uint
unsigned int uint
Definition: compat.h:140
DTC::VideoSource::Copy
void Copy(const VideoSource *src)
Definition: videoSource.h:62
PROPERTYIMP
#define PROPERTYIMP(type, name)
Definition: datacontracthelper.h:56
DTC
Definition: datacontracthelper.h:123
PROPERTYIMP_REF
#define PROPERTYIMP_REF(type, name)
Definition: datacontracthelper.h:70