MythTV  master
recRuleFilter.h
Go to the documentation of this file.
1 #ifndef RECRULEFILTER_H_
2 #define RECRULEFILTER_H_
3 
4 #include <QString>
5 #include <QDateTime>
6 
9 
10 namespace DTC
11 {
12 
14 
15 class SERVICE_PUBLIC RecRuleFilter : public QObject
16 {
17  Q_OBJECT
18  Q_CLASSINFO( "version" , "1.0" );
19 
20  Q_PROPERTY( int Id READ Id WRITE setId )
21  Q_PROPERTY( QString Description READ Description WRITE setDescription )
22 
23  PROPERTYIMP ( int , Id )
24  PROPERTYIMP_REF( QString , Description )
25 
26  public:
27 
28  static inline void InitializeCustomTypes();
29 
30  Q_INVOKABLE RecRuleFilter(QObject *parent = nullptr)
31  : QObject ( parent ),
32  m_Id ( 0 )
33  {
34  }
35 
36  void Copy( const RecRuleFilter *src )
37  {
38  m_Id = src->m_Id ;
39  m_Description = src->m_Description ;
40  }
41 
42  private:
43  Q_DISABLE_COPY(RecRuleFilter);
44 };
45 
47 {
48  qRegisterMetaType< RecRuleFilter* >();
49 }
50 
51 } // namespace DTC
52 
53 #endif
54 
SERVICE_PUBLIC
#define SERVICE_PUBLIC
Definition: serviceexp.h:9
datacontracthelper.h
serviceexp.h
PROPERTYIMP
#define PROPERTYIMP(type, name)
Definition: datacontracthelper.h:56
DTC
Definition: datacontracthelper.h:123
DTC::RecRuleFilter::InitializeCustomTypes
static void InitializeCustomTypes()
Definition: recRuleFilter.h:46
PROPERTYIMP_REF
#define PROPERTYIMP_REF(type, name)
Definition: datacontracthelper.h:70
DTC::RecRuleFilter
Definition: recRuleFilter.h:15
DTC::RecRuleFilter::Copy
void Copy(const RecRuleFilter *src)
Definition: recRuleFilter.h:36