MythTV master
frontend.h
Go to the documentation of this file.
1#ifndef FRONTEND_H
2#define FRONTEND_H
3
4#include "libmythbase/mythconfig.h"
7
8class Frontend : public FrontendServices
9{
10 friend class MythFEXML;
11
12 Q_OBJECT
13
14 public:
15 Q_INVOKABLE explicit Frontend(QObject *parent = nullptr) : FrontendServices(parent) { }
16
17 public:
18 DTC::FrontendStatus* GetStatus(void) override; // FrontendServices
19 bool SendMessage(const QString &Message,
20 uint TimeoutInt) override; // FrontendServices
21 bool SendNotification(bool Error,
22 const QString &Type,
23 const QString &Message,
24 const QString &Origin,
25 const QString &Description,
26 const QString &Image,
27 const QString &Extra,
28 const QString &ProgressText,
29 float Progress,
30 int Timeout,
31 bool Fullscreen,
32 uint Visibility, uint Priority) override; // FrontendServices
33
34 bool SendAction(const QString &Action,
35 const QString &Value,
36 uint Width, uint Height) override; // FrontendServices
37 bool PlayRecording(int RecordedId, int ChanId,
38 const QDateTime &StartTime) override; // FrontendServices
39 bool PlayVideo(const QString &Id, bool UseBookmark) override; // FrontendServices
40 QStringList GetContextList(void) override; // FrontendServices
41 DTC::FrontendActionList* GetActionList(const QString &Context) override; // FrontendServices
42
43
44 static bool IsValidAction(const QString &action);
45 static void InitialiseActions(void);
46 bool SendKey(const QString &Key) override; // FrontendServices
47
48 protected:
49 static QStringList gActionList;
50 static QHash<QString,QStringList> gActionDescriptions;
51};
52
53#endif // FRONTEND_H
An action (for this plugin) consists of a description, and a set of key sequences.
Definition: action.h:41
static void InitialiseActions(void)
Definition: frontend.cpp:305
static bool IsValidAction(const QString &action)
Definition: frontend.cpp:283
DTC::FrontendStatus * GetStatus(void) override
Definition: frontend.cpp:35
bool PlayVideo(const QString &Id, bool UseBookmark) override
Definition: frontend.cpp:197
DTC::FrontendActionList * GetActionList(const QString &Context) override
Definition: frontend.cpp:259
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) override
Definition: frontend.cpp:62
static QHash< QString, QStringList > gActionDescriptions
Definition: frontend.h:50
bool PlayRecording(int RecordedId, int ChanId, const QDateTime &StartTime) override
Definition: frontend.cpp:134
bool SendAction(const QString &Action, const QString &Value, uint Width, uint Height) override
Definition: frontend.cpp:91
bool SendMessage(const QString &Message, uint TimeoutInt) override
Definition: frontend.cpp:47
static QStringList gActionList
Definition: frontend.h:49
Q_INVOKABLE Frontend(QObject *parent=nullptr)
Definition: frontend.h:15
QStringList GetContextList(void) override
Definition: frontend.cpp:253
bool SendKey(const QString &Key) override
Definition: frontend.cpp:339
unsigned int uint
Definition: compat.h:60