MythTV master
v2labelValue.h
Go to the documentation of this file.
1
2// 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
12
13class 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:
42};
43
45
46#endif
void Copy(const V2LabelValue *src)
Definition: v2labelValue.h:31
Q_CLASSINFO("version", "1.0")
Q_DISABLE_COPY(V2LabelValue)
SERVICE_PROPERTY2(bool, Selected)
Q_DECLARE_METATYPE(std::chrono::seconds)