1 #ifndef LOGMESSAGELIST_H_
2 #define LOGMESSAGELIST_H_
4 #include <QVariantList>
18 Q_CLASSINFO(
"version",
"1.0" );
23 Q_CLASSINFO(
"HostNames",
"type=DTC::LabelValue");
24 Q_CLASSINFO(
"Applications",
"type=DTC::LabelValue");
25 Q_CLASSINFO(
"LogMessages",
"type=DTC::LogMessage");
27 Q_PROPERTY( QVariantList HostNames READ HostNames )
28 Q_PROPERTY( QVariantList Applications READ Applications )
29 Q_PROPERTY( QVariantList LogMessages READ LogMessages )
37 static inline
void InitializeCustomTypes();
46 CopyListContents< LabelValue >(
this, m_HostNames,
48 CopyListContents< LabelValue >(
this, m_Applications,
49 src->m_Applications );
50 CopyListContents< LogMessage >(
this, m_LogMessages,
60 m_HostNames.append( QVariant::fromValue<QObject *>( pObject ));
71 m_Applications.append( QVariant::fromValue<QObject *>( pObject ));
82 m_LogMessages.append( QVariant::fromValue<QObject *>( pObject ));
93 qRegisterMetaType< LogMessageList* >();