MythTV  master
frontendServices.h
Go to the documentation of this file.
1 #ifndef FRONTENDSERVICES_H
2 #define FRONTENDSERVICES_H
3 
4 #include "service.h"
7 
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  {
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
FrontendServices::GetContextList
virtual QStringList GetContextList(void)=0
DTC::FrontendActionList::InitializeCustomTypes
static void InitializeCustomTypes()
Definition: frontendActionList.h:36
frontendActionList.h
service.h
FrontendServices
Definition: frontendServices.h:9
FrontendServices::SendAction
virtual bool SendAction(const QString &Action, const QString &Value, uint Width, uint Height)=0
Context
QHash< QString, Action * > Context
Definition: action.h:77
slots
unsigned int slots[4]
Definition: element.cpp:38
frontendStatus.h
Image
Definition: image.h:31
SERVICE_PUBLIC
#define SERVICE_PUBLIC
Definition: serviceexp.h:9
FrontendServices::SendMessage
virtual bool SendMessage(const QString &Message, uint Timeout)=0
Action
An action (for this plugin) consists of a description, and a set of key sequences.
Definition: action.h:41
FrontendServices::PlayRecording
virtual bool PlayRecording(int RecordedId, int ChanId, const QDateTime &StartTime)=0
Service
Definition: service.h:43
FrontendServices::SendKey
virtual bool SendKey(const QString &Key)=0
FrontendServices::GetActionList
virtual DTC::FrontendActionList * GetActionList(const QString &Context)=0
FrontendServices::Q_CLASSINFO
Q_CLASSINFO("version", "2.1")
FrontendServices::PlayVideo
virtual bool PlayVideo(const QString &Id, bool UseBookmark)=0
DTC::FrontendStatus::InitializeCustomTypes
static void InitializeCustomTypes()
Definition: frontendStatus.h:78
uint
unsigned int uint
Definition: compat.h:140
DTC::FrontendStatus
Definition: frontendStatus.h:10
DTC::FrontendActionList
Definition: frontendActionList.h:10
FrontendServices::GetStatus
virtual DTC::FrontendStatus * GetStatus(void)=0
FrontendServices::SendNotification
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
Priority
Definition: channelsettings.cpp:192