MythTV master
mythsystemevent.h
Go to the documentation of this file.
1#ifndef MYTH_SYSTEM_EVENT_H_
2#define MYTH_SYSTEM_EVENT_H_
3
4#include <QEvent>
5#include <QObject>
6
9#include "recordinginfo.h"
10
11// Helper commands for formatting and sending a MythSystemEvent
12MTV_PUBLIC void SendMythSystemRecEvent(const QString &msg,
13 const RecordingInfo *pginfo);
14MTV_PUBLIC void SendMythSystemPlayEvent(const QString &msg,
15 const ProgramInfo *pginfo);
16
24class MTV_PUBLIC MythSystemEventHandler : public QObject
25{
26 Q_OBJECT
27
28 public:
29 // Constructor
31
32 // Destructor
33 ~MythSystemEventHandler() override;
34
35 private:
36 // Helpers for converting incoming events to command lines
37 static void SubstituteMatches(const QStringList &tokens, QString &command);
38 static QString EventNameToSetting(const QString &name);
39
40 // Custom Event Handler
41 void customEvent(QEvent *e) override; // QObject
42};
43
51{
52 Q_OBJECT
53
54 public:
55 explicit MythSystemEventEditor(MythScreenStack *parent, const char *name = nullptr);
56 static void createSettingList(QMap <QString, QString> &settings);
57};
58
59#endif
60
61/* vim: set expandtab tabstop=4 shiftwidth=4: */
An editor for MythSystemEvent handler commands.
Handles incoming MythSystemEvent messages.
Holds information on recordings and videos.
Definition: programinfo.h:68
An editor screen that allows manipulation of raw settings values.
Holds information on a TV Program one might wish to record.
Definition: recordinginfo.h:36
MTV_PUBLIC void SendMythSystemRecEvent(const QString &msg, const RecordingInfo *pginfo)
MTV_PUBLIC void SendMythSystemPlayEvent(const QString &msg, const ProgramInfo *pginfo)
#define MTV_PUBLIC
Definition: mythtvexp.h:15