MythTV
master
mythtv
programs
mythbackend
servicesv2
v2castMember.h
Go to the documentation of this file.
1
// Program Name: castMember.h
3
// Created : Nov. 25, 2013
4
//
5
// Copyright (c) 2013 Stuart Morgan <smorgan@mythtv.org>
6
//
7
// Licensed under the GPL v2 or later, see COPYING for details
8
//
10
11
#ifndef V2CASTMEMBER_H_
12
#define V2CASTMEMBER_H_
13
14
#include <QObject>
15
#include <QString>
16
17
#include "
libmythbase/http/mythhttpservice.h
"
18
19
class
V2CastMember
:
public
QObject
20
{
21
Q_OBJECT
22
Q_CLASSINFO
(
"Version"
,
"0.99"
);
23
24
// Q_CLASSINFO Used to augment Metadata for properties.
25
// See mythhttpservice.h for details
26
27
SERVICE_PROPERTY2
( QString ,
Name
)
28
SERVICE_PROPERTY2
( QString , CharacterName )
29
SERVICE_PROPERTY2
( QString , Role )
30
SERVICE_PROPERTY2
( QString , TranslatedRole )
31
32
public
:
33
34
Q_INVOKABLE
V2CastMember
(QObject *parent =
nullptr
)
35
: QObject ( parent )
36
{
37
}
38
39
void
Copy
(
const
V2CastMember
*src )
40
{
41
m_Name = src->m_Name ;
42
m_CharacterName = src->m_CharacterName ;
43
m_Role = src->m_Role ;
44
m_TranslatedRole = src->m_TranslatedRole;
45
}
46
47
private
:
48
Q_DISABLE_COPY
(
V2CastMember
);
49
};
50
51
Q_DECLARE_METATYPE
(
V2CastMember
*)
52
53
#endif
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(std::chrono::seconds)
SERVICE_PROPERTY2
#define SERVICE_PROPERTY2(Type, Name)
Definition:
mythhttpservice.h:72
V2CastMember::V2CastMember
Q_INVOKABLE V2CastMember(QObject *parent=nullptr)
Definition:
v2castMember.h:34
mythhttpservice.h
V2CastMember::Q_DISABLE_COPY
Q_DISABLE_COPY(V2CastMember)
V2CastMember::Copy
void Copy(const V2CastMember *src)
Definition:
v2castMember.h:39
V2CastMember
Definition:
v2castMember.h:19
Name
Definition:
channelsettings.cpp:71
V2CastMember::Q_CLASSINFO
Q_CLASSINFO("Version", "0.99")
Generated on Mon Jan 6 2025 03:16:56 for MythTV by
1.8.17