MythTV  master
v2buildInfo.h
Go to the documentation of this file.
1 // Program Name: buildInfo.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 V2BUILDINFO_H_
12 #define V2BUILDINFO_H_
13 
15 
16 class V2BuildInfo : public QObject
17 {
18  Q_OBJECT
19 
20  Q_CLASSINFO( "version" , "1.0" );
21 
22  SERVICE_PROPERTY2( QString , Version )
23  SERVICE_PROPERTY2( bool , LibX264 )
24  SERVICE_PROPERTY2( bool , LibDNS_SD );
25 
26  public:
27 
28  Q_INVOKABLE V2BuildInfo(QObject *parent = nullptr)
29  : QObject ( parent ),
30  m_Version ( "" )
31  {
32  }
33 
34  void Copy( const V2BuildInfo *src )
35  {
36  m_Version = src->m_Version ;
37  m_LibX264 = src->m_LibX264 ;
38  m_LibDNS_SD = src->m_LibDNS_SD;
39  }
40 
41  private:
43 };
44 
46 
48 
49 #endif
V2BuildInfo::Q_CLASSINFO
Q_CLASSINFO("version", "1.0")
V2BuildInfo::Copy
void Copy(const V2BuildInfo *src)
Definition: v2buildInfo.h:34
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(StandardSetting *)
V2BuildInfo
Definition: v2buildInfo.h:16
V2BuildInfo::V2BuildInfo
Q_INVOKABLE V2BuildInfo(QObject *parent=nullptr)
Definition: v2buildInfo.h:28
V2BuildInfo::SERVICE_PROPERTY2
SERVICE_PROPERTY2(bool, LibDNS_SD)
mythhttpservice.h
V2BuildInfo::Q_DISABLE_COPY
Q_DISABLE_COPY(V2BuildInfo)