MythTV
master
libs
libmythservicecontracts
services
frontendServices.h
Go to the documentation of this file.
1
#ifndef FRONTENDSERVICES_H
2
#define FRONTENDSERVICES_H
3
4
#include "
service.h
"
5
#include "
datacontracts/frontendStatus.h
"
6
#include "
datacontracts/frontendActionList.h
"
7
8
class
SERVICE_PUBLIC
FrontendServices
:
public
Service
9
{
10
Q_OBJECT
11
Q_CLASSINFO(
"version"
,
"2.1"
);
12
Q_CLASSINFO(
"SendMessage_Method"
,
"POST"
)
13
Q_CLASSINFO(
"SendNotification_Method"
,
"POST"
)
14
Q_CLASSINFO(
"SendAction_Method"
,
"POST"
)
15
Q_CLASSINFO(
"PlayRecording_Method"
,
"POST"
)
16
Q_CLASSINFO(
"PlayVideo_Method"
,
"POST"
)
17
Q_CLASSINFO(
"SendKey_Method"
,
"POST"
)
18
19
20
public
:
21
explicit
FrontendServices
(QObject *parent =
nullptr
) :
Service
(parent)
22
{
23
DTC::FrontendStatus::InitializeCustomTypes
();
24
DTC::FrontendActionList::InitializeCustomTypes
();
25
}
26
27
public
slots:
28
virtual
DTC::FrontendStatus
* GetStatus(
void
) = 0;
29
virtual
bool
SendMessage
(
const
QString &Message,
30
uint
Timeout) = 0;
31
32
virtual
bool
SendNotification(
bool
Error,
33
const
QString &Type,
34
const
QString &Message,
35
const
QString &Origin,
36
const
QString &Description,
37
const
QString &
Image
,
38
const
QString &Extra,
39
const
QString &ProgressText,
40
float
Progress,
41
int
Timeout,
42
bool
Fullscreen,
43
uint
Visibility,
44
uint
Priority
) = 0;
45
virtual
bool
SendAction(
const
QString &
Action
,
46
const
QString &Value,
47
uint
Width,
uint
Height) = 0;
48
virtual
bool
PlayRecording(
int
RecordedId,
int
ChanId,
49
const
QDateTime &StartTime) = 0;
50
virtual
bool
PlayVideo(
const
QString &Id,
51
bool
UseBookmark) = 0;
52
virtual
QStringList GetContextList(
void
) = 0;
53
virtual
DTC::FrontendActionList
* GetActionList(
const
QString &Context) = 0;
54
virtual
bool
SendKey(
const
QString &Key) = 0;
55
56
57
};
58
59
#endif // FRONTENDSERVICES_H
DTC::FrontendActionList::InitializeCustomTypes
static void InitializeCustomTypes()
Definition:
frontendActionList.h:36
frontendActionList.h
service.h
FrontendServices
Definition:
frontendServices.h:8
frontendStatus.h
Image
Definition:
image.h:30
SERVICE_PUBLIC
#define SERVICE_PUBLIC
Definition:
serviceexp.h:9
Action
An action (for this plugin) consists of a description, and a set of key sequences.
Definition:
action.h:40
SendMessage
static int SendMessage(const MythUtilCommandLineParser &cmdline)
Definition:
messageutils.cpp:55
Service
Definition:
service.h:42
DTC::FrontendStatus::InitializeCustomTypes
static void InitializeCustomTypes()
Definition:
frontendStatus.h:78
uint
unsigned int uint
Definition:
compat.h:140
DTC::FrontendStatus
Definition:
frontendStatus.h:9
DTC::FrontendActionList
Definition:
frontendActionList.h:9
FrontendServices::FrontendServices
FrontendServices(QObject *parent=nullptr)
Definition:
frontendServices.h:21
Priority
Definition:
channelsettings.cpp:191
Generated on Tue Mar 2 2021 03:18:08 for MythTV by
1.8.17