MythTV  master
imageMetadataInfo.h
Go to the documentation of this file.
1 #ifndef IMAGEMETADATAINFO_H
2 #define IMAGEMETADATAINFO_H
3 
4 #include <QString>
5 
6 #include "serviceexp.h"
7 #include "datacontracthelper.h"
8 
9 
10 
11 namespace DTC
12 {
13 
14 class SERVICE_PUBLIC ImageMetadataInfo : public QObject
15 {
16  Q_OBJECT
17  Q_CLASSINFO( "version" , "1.00" )
18 
19  Q_PROPERTY( int Number READ Number WRITE setNumber )
20  Q_PROPERTY( QString Tag READ Tag WRITE setTag )
21  Q_PROPERTY( QString Label READ Label WRITE setLabel )
22  Q_PROPERTY( QString Value READ Value WRITE setValue )
23 
24  PROPERTYIMP ( int , Number )
25  PROPERTYIMP ( QString , Tag )
26  PROPERTYIMP ( QString , Label )
27  PROPERTYIMP ( QString , Value );
28 
29  public:
30 
31  static inline void InitializeCustomTypes();
32 
33  Q_INVOKABLE ImageMetadataInfo(QObject *parent = nullptr)
34  : QObject ( parent ),
35  m_Number ( 0 )
36  {
37  }
38 
39  void Copy( const ImageMetadataInfo *src )
40  {
41  m_Number = src->m_Number;
42  m_Tag = src->m_Tag;
43  m_Label = src->m_Label;
44  m_Value = src->m_Value;
45  }
46 
47  private:
48  Q_DISABLE_COPY(ImageMetadataInfo);
49 };
50 
52 {
53  qRegisterMetaType< ImageMetadataInfo* >();
54 }
55 
56 } // namespace DTC
57 
58 #endif // IMAGEMETADATAINFO_H
static void InitializeCustomTypes()
#define PROPERTYIMP(type, name)
#define SERVICE_PUBLIC
Definition: serviceexp.h:9
void Copy(const ImageMetadataInfo *src)