MythTV
master
libs
libmythservicecontracts
datacontracts
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 LICENSE for details
8
//
10
11
#ifndef LOGINFO_H_
12
#define LOGINFO_H_
13
14
#include <QString>
15
16
#include "
libmythservicecontracts/serviceexp.h
"
17
#include "
libmythservicecontracts/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_REF
( 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
:
49
Q_DISABLE_COPY(
LogInfo
);
50
};
51
52
using
LogInfoPtr
=
LogInfo
*;
53
54
inline
void
LogInfo::InitializeCustomTypes
()
55
{
56
qRegisterMetaType< LogInfo* >();
57
}
58
59
}
// namespace DTC
60
61
#endif
DTC::LogInfo::LogInfo
Q_INVOKABLE LogInfo(QObject *parent=nullptr)
Definition:
logInfo.h:37
DTC::LogInfo::InitializeCustomTypes
static void InitializeCustomTypes()
Definition:
logInfo.h:54
DTC::LogInfo
Definition:
logInfo.h:22
SERVICE_PUBLIC
#define SERVICE_PUBLIC
Definition:
serviceexp.h:9
datacontracthelper.h
serviceexp.h
DTC::LogInfo::Copy
void Copy(const LogInfo *src)
Definition:
logInfo.h:43
DTC
Definition:
datacontracthelper.h:123
PROPERTYIMP_REF
#define PROPERTYIMP_REF(type, name)
Definition:
datacontracthelper.h:70
Generated on Wed Oct 4 2023 03:21:51 for MythTV by
1.8.17