30 Q_CLASSINFO(
"version" ,
"1.0" );
32 Q_CLASSINFO(
"Inputs",
"type=DTC::Input");
34 Q_PROPERTY(
int Id READ Id WRITE setId )
35 Q_PROPERTY( QString HostName READ HostName WRITE setHostName )
36 Q_PROPERTY(
bool Local READ Local WRITE setLocal )
37 Q_PROPERTY(
bool Connected READ Connected WRITE setConnected )
40 Q_PROPERTY(
bool LowOnFreeSpace READ LowOnFreeSpace WRITE setLowOnFreeSpace )
42 Q_PROPERTY( QVariantList Inputs READ Inputs )
59 static inline
void InitializeCustomTypes();
61 Q_INVOKABLE
Encoder(QObject *parent =
nullptr)
65 m_Connected (
false ),
68 m_LowOnFreeSpace(
false ),
69 m_Recording (
nullptr )
76 m_HostName = src->m_HostName ;
77 m_Local = src->m_Local ;
78 m_Connected = src->m_Connected ;
79 m_State = src->m_State ;
80 m_SleepStatus = src->m_SleepStatus ;
81 m_LowOnFreeSpace= src->m_LowOnFreeSpace;
82 m_Recording = nullptr ;
84 if ( src->m_Recording !=
nullptr)
87 CopyListContents< Input >(
this, m_Inputs, src->m_Inputs );
95 auto *pObject =
new Input(
this );
96 Inputs().append( QVariant::fromValue<QObject *>( pObject ));
107 qRegisterMetaType< Encoder* >();