MythTV  master
markup.h
Go to the documentation of this file.
1 // Program Name: markup.h
3 // Created : Apr. 4, 2021
4 //
5 // Copyright (c) 2021 team MythTV
6 //
7 // Licensed under the GPL v2 or later, see LICENSE for details
8 //
10 
11 #ifndef _MARKUP_H_
12 #define _MARKUP_H_
13 
14 #include <QString>
15 #include <QVariantList>
16 
19 
20 namespace DTC
21 {
22 Q_NAMESPACE
23 
25 
26 class SERVICE_PUBLIC Markup : public QObject
27 {
28  Q_OBJECT
29  Q_CLASSINFO( "version" , "1.0" );
30 
31  Q_PROPERTY( QString Type READ Type WRITE setType )
32  Q_PROPERTY( quint64 Frame READ Frame WRITE setFrame )
33  Q_PROPERTY( QString Data READ Data WRITE setData )
34 
35  PROPERTYIMP_REF( QString , Type )
36  PROPERTYIMP ( quint64 , Frame )
37  PROPERTYIMP_REF( QString , Data )
38 
39  public:
40 
41  static inline void InitializeCustomTypes();
42 
43  Q_INVOKABLE Markup(QObject *parent = nullptr)
44  : QObject(parent), m_Frame(0)
45  {
46  }
47 
48  void Copy( const Markup *src )
49  {
50  m_Type = src->m_Type ;
51  m_Frame = src->m_Frame ;
52  m_Data = src->m_Data ;
53  }
54 
55  private:
56  Q_DISABLE_COPY(Markup);
57 };
58 
60 {
61  qRegisterMetaType< Markup* >();
62 }
63 
64 } // namespace DTC
65 
66 #endif
DTC::Markup::Copy
void Copy(const Markup *src)
Definition: markup.h:48
Frame
Definition: zmdefines.h:93
SERVICE_PUBLIC
#define SERVICE_PUBLIC
Definition: serviceexp.h:9
DTC::Markup::InitializeCustomTypes
static void InitializeCustomTypes()
Definition: markup.h:59
DTC::Markup
Definition: markup.h:26
datacontracthelper.h
serviceexp.h
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