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 LICENSE for details
8 //
10 
11 #ifndef ARTWORKINFO_H_
12 #define ARTWORKINFO_H_
13 
14 #include <QString>
15 
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_REF( QString , URL )
35  PROPERTYIMP_REF( QString , FileName )
36  PROPERTYIMP_REF( QString , StorageGroup )
37  PROPERTYIMP_REF( QString , Type )
38 
39  public:
40 
41  static inline void InitializeCustomTypes();
42 
43  Q_INVOKABLE explicit 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
DTC::ArtworkInfo::InitializeCustomTypes
static void InitializeCustomTypes()
Definition: artworkInfo.h:60
SERVICE_PUBLIC
#define SERVICE_PUBLIC
Definition: serviceexp.h:9
datacontracthelper.h
serviceexp.h
DTC
Definition: datacontracthelper.h:123
DTC::ArtworkInfo
Definition: artworkInfo.h:24
StorageGroup
Definition: storagegroup.h:11
PROPERTYIMP_REF
#define PROPERTYIMP_REF(type, name)
Definition: datacontracthelper.h:70
DTC::ArtworkInfo::Copy
void Copy(const ArtworkInfo *src)
Definition: artworkInfo.h:48