MythTV  master
logInfo.h
Go to the documentation of this file.
1 // Program Name: logInfo.h
3 // Created : Dec. 15, 2015
4 //
5 // Copyright (c) 2015 Bill Meek, from: 2010 David Blain <dblain@mythtv.org>
6 //
7 // Licensed under the GPL v2 or later, see COPYING for details
8 //
10 
11 #ifndef LOGINFO_H_
12 #define LOGINFO_H_
13 
14 #include <QString>
15 
16 #include "serviceexp.h"
17 #include "datacontracthelper.h"
18 
19 namespace DTC
20 {
21 
22 class SERVICE_PUBLIC LogInfo : public QObject
23 {
24  Q_OBJECT
25 
26  Q_CLASSINFO( "version" , "1.0" );
27  Q_CLASSINFO( "defaultProp", "LogArgs" );
28 
29  Q_PROPERTY( QString LogArgs READ LogArgs WRITE setLogArgs )
30 
31  PROPERTYIMP( QString, LogArgs );
32 
33  public:
34 
35  static inline void InitializeCustomTypes();
36 
37  Q_INVOKABLE LogInfo(QObject *parent = nullptr)
38  : QObject ( parent ),
39  m_LogArgs ( "" )
40  {
41  }
42 
43  void Copy( const LogInfo *src )
44  {
45  m_LogArgs = src->m_LogArgs ;
46  }
47 
48  private:
50 };
51 
53 
55 {
56  qRegisterMetaType< LogInfo* >();
57 }
58 
59 } // namespace DTC
60 
61 #endif
DTC::LogInfo::Q_DISABLE_COPY
Q_DISABLE_COPY(LogInfo)
DTC::LogInfo::InitializeCustomTypes
static void InitializeCustomTypes()
Definition: logInfo.h:54
DTC::LogInfo
Definition: logInfo.h:23
SERVICE_PUBLIC
#define SERVICE_PUBLIC
Definition: serviceexp.h:9
datacontracthelper.h
serviceexp.h
DTC::LogInfo::Q_CLASSINFO
Q_CLASSINFO("defaultProp", "LogArgs")
DTC::LogInfo::Copy
void Copy(const LogInfo *src)
Definition: logInfo.h:43
DTC::LogInfo::Q_CLASSINFO
Q_CLASSINFO("version", "1.0")
PROPERTYIMP
#define PROPERTYIMP(type, name)
Definition: datacontracthelper.h:56
DTC
Definition: datacontracthelper.h:110