MythTV master
v2backendInfo.h
Go to the documentation of this file.
1
2// 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
19class 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
QObject * Log
Definition: v2backendInfo.h:27
void Copy(const V2BackendInfo *src)
Definition: v2backendInfo.h:40
QObject * Env
Definition: v2backendInfo.h:26
SERVICE_PROPERTY_PTR(V2LogInfo, Log)
Q_CLASSINFO("version", "1.0")
Q_DISABLE_COPY(V2BackendInfo)
QObject * Build
Definition: v2backendInfo.h:25
Q_DECLARE_METATYPE(std::chrono::seconds)