MythTV  master
v2backendInfo.h
Go to the documentation of this file.
1 // Program Name: backendInfo.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 V2BACKENDINFO_H_
12 #define V2BACKENDINFO_H_
13 
15 #include "v2buildInfo.h"
16 #include "v2envInfo.h"
17 #include "v2logInfo.h"
18 
19 class V2BackendInfo : public QObject
20 {
21  Q_OBJECT
22 
23  Q_CLASSINFO( "version" , "1.0" );
24 
25  Q_PROPERTY( QObject* Build READ Build USER true)
26  Q_PROPERTY( QObject* Env READ Env USER true)
27  Q_PROPERTY( QObject* Log READ Log USER true)
28 
32 
33  public:
34 
35  Q_INVOKABLE V2BackendInfo(QObject *parent = nullptr)
36  : QObject( parent )
37  {
38  }
39 
40  void Copy( const V2BackendInfo *src )
41  {
42  // We always need to make sure the child object is
43  // created with the correct parent *
44 
45  if (src->m_Build)
46  Build()->Copy( src->m_Build );
47 
48  if (src->m_Env)
49  Env()->Copy( src->m_Env );
50 
51  if (src->m_Log)
52  Log()->Copy( src->m_Log );
53 
54  }
55 
56  private:
58 };
59 
61 
63 
64 #endif
V2BackendInfo::SERVICE_PROPERTY_PTR
SERVICE_PROPERTY_PTR(V2LogInfo, Log)
V2EnvInfo
Definition: v2envInfo.h:16
V2LogInfo
Definition: v2logInfo.h:16
V2BackendInfo::Log
QObject Log
Definition: v2backendInfo.h:27
true
VERBOSE_PREAMBLE Most true
Definition: verbosedefs.h:95
V2BackendInfo
Definition: v2backendInfo.h:19
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(StandardSetting *)
v2buildInfo.h
V2BuildInfo
Definition: v2buildInfo.h:16
v2envInfo.h
v2logInfo.h
V2BackendInfo::Q_CLASSINFO
Q_CLASSINFO("version", "1.0")
mythhttpservice.h
V2BackendInfo::Copy
void Copy(const V2BackendInfo *src)
Definition: v2backendInfo.h:40
V2BackendInfo::Env
QObject Env
Definition: v2backendInfo.h:26
V2BackendInfo::Q_DISABLE_COPY
Q_DISABLE_COPY(V2BackendInfo)
V2BackendInfo::Build
QObject Build
Definition: v2backendInfo.h:25