MythTV  master
frontendServices.h
Go to the documentation of this file.
1 #ifndef FRONTENDSERVICES_H
2 #define FRONTENDSERVICES_H
3 
5 
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
frontendActionList.h
service.h
FrontendServices
Definition: frontendServices.h:9
frontendStatus.h
Image
Definition: image.h:33
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
DTC::FrontendActionList::InitializeCustomTypes
static void InitializeCustomTypes()
Definition: frontendActionList.h:36
SendMessage
static int SendMessage(const MythUtilCommandLineParser &cmdline)
Definition: messageutils.cpp:55
Service
Definition: service.h:42
uint
unsigned int uint
Definition: compat.h:79
DTC::FrontendStatus
Definition: frontendStatus.h:9
DTC::FrontendActionList
Definition: frontendActionList.h:9
DTC::FrontendStatus::InitializeCustomTypes
static void InitializeCustomTypes()
Definition: frontendStatus.h:93
FrontendServices::FrontendServices
FrontendServices(QObject *parent=nullptr)
Definition: frontendServices.h:22
Priority
Definition: channelsettings.cpp:192