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
unsigned int slots[4]
Definition: element.c:38
QHash< QString, Action * > Context
Definition: action.h:75
static int SendMessage(const MythUtilCommandLineParser &cmdline)
unsigned int uint
Definition: compat.h:140
An action (for this plugin) consists of a description, and a set of key sequences.
Definition: action.h:38
#define SERVICE_PUBLIC
Definition: serviceexp.h:9
static void InitializeCustomTypes()
static void InitializeCustomTypes()
FrontendServices(QObject *parent=nullptr)
Definition: image.h:30