1 #ifndef MYTHFRONTENDSERVICE_H
2 #define MYTHFRONTENDSERVICE_H
7 #define FRONTEND_SERVICE QString("/Frontend/")
8 #define FRONTEND_HANDLE QString("Frontend")
13 Q_CLASSINFO(
"Version",
"1.1")
14 Q_CLASSINFO(
"State",
"type=QString")
15 Q_CLASSINFO(
"ChapterTimes",
"type=QString;name=Chapter")
16 Q_CLASSINFO(
"SubtitleTracks",
"type=QString;name=Track")
17 Q_CLASSINFO(
"AudioTracks",
"type=QString;name=Track")
27 : QObject ( parent ) {};
36 Q_CLASSINFO(
"Version",
"1.0")
37 Q_CLASSINFO(
"ActionList",
"type=QString;name=Action")
42 : QObject ( parent ) {};
51 Q_CLASSINFO(
"Version",
"2.1")
52 Q_CLASSINFO(
"SendAction",
"methods=POST")
53 Q_CLASSINFO(
"SendKey",
"methods=POST")
54 Q_CLASSINFO(
"PlayVideo",
"methods=POST")
55 Q_CLASSINFO(
"PlayRecording",
"methods=POST")
56 Q_CLASSINFO(
"SendMessage",
"methods=POST")
57 Q_CLASSINFO(
"SendNotification",
"methods=POST")
58 Q_CLASSINFO(
"GetContextList",
"name=StringList")
61 static bool SendAction (
const QString&
Action,
const QString& Value,
uint Width,
uint Height);
62 static bool SendKey (
const QString& Key);
64 static QStringList GetContextList ();
66 static bool PlayVideo (
const QString& Id,
bool UseBookmark);
67 static bool PlayRecording (
int RecordedId,
int ChanId,
const QDateTime& StartTime);
69 static bool SendNotification(
bool Error,
const QString& Type,
70 const QString& Message,
const QString& Origin,
71 const QString& Description,
const QString&
Image,
72 const QString& Extra,
const QString& ProgressText,
73 float Progress, std::chrono::seconds Timeout,
74 bool Fullscreen,
uint Visibility,
80 static void RegisterCustomTypes();
83 static bool IsValidAction(
const QString&
Action);