MythTV  master
v2input.h
Go to the documentation of this file.
1 // Program Name: input.h
3 // Created : Nov. 20, 2013
4 //
5 // Copyright (c) 2013 Stuart Morgan <smorgan@mythtv.org>
6 //
7 // Licensed under the GPL v2 or later, see COPYING for details
8 //
10 
11 #ifndef V2INPUT_H_
12 #define V2INPUT_H_
13 
14 #include <QString>
15 
17 
19 
20 class V2Input : public QObject
21 {
22  Q_OBJECT
23  Q_CLASSINFO( "Version" , "1.0" );
24 
25  SERVICE_PROPERTY2( uint , Id )
26  SERVICE_PROPERTY2( uint , CardId )
27  SERVICE_PROPERTY2( uint , SourceId )
28  SERVICE_PROPERTY2( QString , InputName )
29  SERVICE_PROPERTY2( QString , DisplayName )
31  SERVICE_PROPERTY2( int , RecPriority )
34 
35  public:
36 
37  Q_INVOKABLE V2Input(QObject *parent = nullptr)
38  : QObject( parent )
39  {
40  }
41 
42  void Copy( const V2Input *src )
43  {
44  m_Id = src->m_Id;
45  m_CardId = src->m_CardId;
46  m_SourceId = src->m_SourceId;
47  m_InputName = src->m_InputName;
48  m_DisplayName = src->m_DisplayName;
49  m_QuickTune = src->m_QuickTune;
50  m_RecPriority = src->m_RecPriority;
51  m_ScheduleOrder = src->m_ScheduleOrder;
52  m_LiveTVOrder = src->m_LiveTVOrder;
53  }
54 
55  private:
57 };
58 
60 
61 #endif
InputName
Definition: videosource.cpp:2787
V2Input::Copy
void Copy(const V2Input *src)
Definition: v2input.h:42
QuickTune
Definition: videosource.cpp:3015
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(StandardSetting *)
LiveTVOrder
Definition: videosource.cpp:3139
uint
unsigned int uint
Definition: compat.h:81
mythhttpservice.h
ScheduleOrder
Definition: videosource.cpp:3122
V2Input::V2Input
Q_INVOKABLE V2Input(QObject *parent=nullptr)
Definition: v2input.h:37
V2Input::SERVICE_PROPERTY2
SERVICE_PROPERTY2(int, LiveTVOrder)
V2Input::Q_CLASSINFO
Q_CLASSINFO("Version", "1.0")
V2Input
Definition: v2input.h:20
V2Input::Q_DISABLE_COPY
Q_DISABLE_COPY(V2Input)