MythTV  master
imageSyncInfo.h
Go to the documentation of this file.
1 #ifndef IMAGESYNCINFO_H
2 #define IMAGESYNCINFO_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 ImageSyncInfo : public QObject
15 {
16  Q_OBJECT
17  Q_CLASSINFO( "version" , "1.00" )
18 
19  Q_PROPERTY( bool Running READ Running WRITE setRunning )
20  Q_PROPERTY( int Current READ Current WRITE setCurrent )
21  Q_PROPERTY( int Total READ Total WRITE setTotal )
22 
23  PROPERTYIMP ( bool , Running )
24  PROPERTYIMP ( int , Current )
25  PROPERTYIMP ( int , Total )
26 
27  public:
28 
29  static inline void InitializeCustomTypes();
30 
31  Q_INVOKABLE ImageSyncInfo(QObject *parent = nullptr)
32  : QObject ( parent ),
33  m_Running ( false ),
34  m_Current ( 0 ),
35  m_Total ( 0 )
36  {
37  }
38 
39  void Copy( const ImageSyncInfo *src )
40  {
41  m_Running = src->m_Running;
42  m_Current = src->m_Current;
43  m_Total = src->m_Total;
44  }
45 
46  private:
47  Q_DISABLE_COPY(ImageSyncInfo);
48 };
49 
51 {
52  qRegisterMetaType< ImageSyncInfo* >();
53 }
54 
55 } // namespace DTC
56 
57 #endif // IMAGESYNCINFO_H
#define PROPERTYIMP(type, name)
#define SERVICE_PUBLIC
Definition: serviceexp.h:9
VERBOSE_PREAMBLE false
Definition: verbosedefs.h:85
void Copy(const ImageSyncInfo *src)
Definition: imageSyncInfo.h:39
static void InitializeCustomTypes()
Definition: imageSyncInfo.h:50