MythTV  master
cutting.h
Go to the documentation of this file.
1 // Program Name: cutting.h
3 // Created : Mar. 09, 2014
4 //
5 // Copyright (c) 2014 team MythTV
6 //
7 // Licensed under the GPL v2 or later, see LICENSE for details
8 //
10 
11 #ifndef CUTTING_H_
12 #define CUTTING_H_
13 
14 #include <QString>
15 #include <QVariantList>
16 
17 #include "serviceexp.h"
18 #include "datacontracthelper.h"
19 
20 namespace DTC
21 {
22 
23 class SERVICE_PUBLIC Cutting : public QObject
24 {
25  Q_OBJECT
26  Q_CLASSINFO( "version" , "1.0" );
27 
28  Q_PROPERTY( int Mark READ Mark WRITE setMark )
29  Q_PROPERTY( qlonglong Offset READ Offset WRITE setOffset )
30 
31  PROPERTYIMP ( int , Mark )
32  PROPERTYIMP ( qlonglong , Offset )
33 
34  public:
35 
36  static inline void InitializeCustomTypes();
37 
38  Q_INVOKABLE Cutting(QObject *parent = nullptr)
39  : QObject( parent ), m_Mark(0), m_Offset(0)
40  {
41  }
42 
43  void Copy( const Cutting *src )
44  {
45  m_Mark = src->m_Mark ;
46  m_Offset = src->m_Offset ;
47  }
48 
49  private:
50  Q_DISABLE_COPY(Cutting);
51 };
52 
54 {
55  qRegisterMetaType< Cutting* >();
56 }
57 
58 } // namespace DTC
59 
60 #endif
SERVICE_PUBLIC
#define SERVICE_PUBLIC
Definition: serviceexp.h:9
DTC::Cutting
Definition: cutting.h:23
DTC::Cutting::InitializeCustomTypes
static void InitializeCustomTypes()
Definition: cutting.h:53
DTC::Cutting::Copy
void Copy(const Cutting *src)
Definition: cutting.h:43
datacontracthelper.h
serviceexp.h
PROPERTYIMP
#define PROPERTYIMP(type, name)
Definition: datacontracthelper.h:56
DTC
Definition: datacontracthelper.h:123