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