MythTV  master
artworkInfo.h
Go to the documentation of this file.
1 // Program Name: artworkInfo.h
3 // Created : Nov. 12, 2011
4 //
5 // Copyright (c) 2011 Robert McNamara <rmcnamara@mythtv.org>
6 //
7 // Licensed under the GPL v2 or later, see COPYING for details
8 //
10 
11 #ifndef ARTWORKINFO_H_
12 #define ARTWORKINFO_H_
13 
14 #include <QString>
15 
16 #include "serviceexp.h"
17 #include "datacontracthelper.h"
18 
19 namespace DTC
20 {
21 
23 
24 class SERVICE_PUBLIC ArtworkInfo : public QObject
25 {
26  Q_OBJECT
27  Q_CLASSINFO( "version" , "1.0" );
28 
29  Q_PROPERTY( QString URL READ URL WRITE setURL )
30  Q_PROPERTY( QString FileName READ FileName WRITE setFileName )
31  Q_PROPERTY( QString StorageGroup READ StorageGroup WRITE setStorageGroup )
32  Q_PROPERTY( QString Type READ Type WRITE setType )
33 
34  PROPERTYIMP ( QString , URL )
35  PROPERTYIMP ( QString , FileName )
36  PROPERTYIMP ( QString , StorageGroup )
37  PROPERTYIMP ( QString , Type )
38 
39  public:
40 
41  static inline void InitializeCustomTypes();
42 
43  Q_INVOKABLE ArtworkInfo(QObject *parent = nullptr)
44  : QObject ( parent )
45  {
46  }
47 
48  void Copy( const ArtworkInfo *src )
49  {
50  m_URL = src->m_URL ;
51  m_FileName = src->m_FileName ;
52  m_StorageGroup = src->m_StorageGroup ;
53  m_Type = src->m_Type ;
54  }
55 
56  private:
57  Q_DISABLE_COPY(ArtworkInfo);
58 };
59 
61 {
62  qRegisterMetaType< ArtworkInfo* >();
63 }
64 
65 } // namespace DTC
66 
67 #endif
static void InitializeCustomTypes()
Definition: artworkInfo.h:60
static const char URL[]
Definition: cddb.cpp:29
#define PROPERTYIMP(type, name)
#define SERVICE_PUBLIC
Definition: serviceexp.h:9
void Copy(const ArtworkInfo *src)
Definition: artworkInfo.h:48