Go to the documentation of this file.
4 #include "libmythbase/mythconfig.h"
6 #include <QScriptEngine>
23 uint TimeoutInt)
override;
26 const QString &Message,
27 const QString &Origin,
28 const QString &Description,
31 const QString &ProgressText,
41 const QDateTime &StartTime)
override;
42 bool PlayVideo(
const QString &Id,
bool UseBookmark)
override;
49 bool SendKey(
const QString &Key)
override;
72 class ScriptableFrontend :
public QObject
78 QScriptEngine *m_pEngine;
81 Q_INVOKABLE
explicit ScriptableFrontend( QScriptEngine *pEngine, QObject *parent =
nullptr )
82 : QObject( parent ), m_pEngine(pEngine)
DTC::FrontendStatus * GetStatus(void) override
bool SendMessage(const QString &Message, uint TimeoutInt) override
bool PlayVideo(const QString &Id, bool UseBookmark) override
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
An action (for this plugin) consists of a description, and a set of key sequences.
DTC::FrontendActionList * GetActionList(const QString &Context) override
#define Q_SCRIPT_DECLARE_QMETAOBJECT_MYTHTV(T, _Arg1)
bool SendKey(const QString &Key) override
#define SCRIPT_CATCH_EXCEPTION(default, code)
static QStringList gActionList
QStringList GetContextList(void) override
bool PlayRecording(int RecordedId, int ChanId, const QDateTime &StartTime) override
static QHash< QString, QStringList > gActionDescriptions
Q_INVOKABLE Frontend(QObject *parent=nullptr)
bool SendAction(const QString &Action, const QString &Value, uint Width, uint Height) override
static bool IsValidAction(const QString &action)
static void InitialiseActions(void)