MythTV
master
programs
mythbackend
servicesv2
v2labelValue.h
Go to the documentation of this file.
1
// Program Name: labelValue.h
3
//
4
// Licensed under the GPL v2 or later, see COPYING for details
5
//
7
8
#ifndef V2LABELVALUE_H_
9
#define V2LABELVALUE_H_
10
11
#include "
libmythbase/http/mythhttpservice.h
"
12
13
class
V2LabelValue
:
public
QObject
14
{
15
Q_OBJECT
16
Q_CLASSINFO
(
"version"
,
"1.0"
);
17
18
SERVICE_PROPERTY2
( QString , Label )
19
SERVICE_PROPERTY2
( QString , Value )
20
SERVICE_PROPERTY2
( QString , Description )
21
SERVICE_PROPERTY2
(
bool
, Active )
22
SERVICE_PROPERTY2
(
bool
, Selected );
23
24
public
:
25
26
Q_INVOKABLE
V2LabelValue
(QObject *parent =
nullptr
)
27
: QObject( parent )
28
{
29
}
30
31
void
Copy
(
const
V2LabelValue
*src )
32
{
33
m_Label = src->m_Label ;
34
m_Value = src->m_Value ;
35
m_Description = src->m_Description ;
36
m_Active = src->m_Active ;
37
m_Selected = src->m_Selected ;
38
}
39
40
private
:
41
Q_DISABLE_COPY
(
V2LabelValue
);
42
};
43
44
Q_DECLARE_METATYPE
(
V2LabelValue
*)
45
46
#endif
V2LabelValue::V2LabelValue
Q_INVOKABLE V2LabelValue(QObject *parent=nullptr)
Definition:
v2labelValue.h:26
V2LabelValue::Q_DISABLE_COPY
Q_DISABLE_COPY(V2LabelValue)
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(StandardSetting *)
V2LabelValue
Definition:
v2labelValue.h:13
mythhttpservice.h
V2LabelValue::Q_CLASSINFO
Q_CLASSINFO("version", "1.0")
V2LabelValue::SERVICE_PROPERTY2
SERVICE_PROPERTY2(bool, Selected)
V2LabelValue::Copy
void Copy(const V2LabelValue *src)
Definition:
v2labelValue.h:31
Generated on Wed Jun 7 2023 03:23:11 for MythTV by
1.8.17