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 
7 #include "programinfo.h"
8 #include "recordinginfo.h"
9 #include "rawsettingseditor.h"
10 
11 // Helper commands for formatting and sending a MythSystemEvent
12 MTV_PUBLIC void SendMythSystemRecEvent(const QString &msg,
13  const RecordingInfo *pginfo);
14 MTV_PUBLIC void SendMythSystemPlayEvent(const QString &msg,
15  const ProgramInfo *pginfo);
16 
24 class MTV_PUBLIC MythSystemEventHandler : public QObject
25 {
26  Q_OBJECT
27 
28  public:
29  // Constructor
31 
32  // Destructor
34 
35  private:
36  // Helpers for converting incoming events to command lines
37  void SubstituteMatches(const QStringList &tokens, QString &command);
38  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  MythSystemEventEditor(MythScreenStack *parent, const char *name = nullptr);
56 };
57 
58 #endif
59 
60 /* vim: set expandtab tabstop=4 shiftwidth=4: */
MTV_PUBLIC void SendMythSystemRecEvent(const QString &msg, const RecordingInfo *pginfo)
MTV_PUBLIC void SendMythSystemPlayEvent(const QString &msg, const ProgramInfo *pginfo)
Holds information on a TV Program one might wish to record.
Definition: recordinginfo.h:34
Holds information on recordings and videos.
Definition: programinfo.h:66
#define MTV_PUBLIC
Definition: mythtvexp.h:15
const char * name
Definition: ParseText.cpp:328
An editor screen that allows manipulation of raw settings values.
An editor for MythSystemEvent handler commands.
Handles incoming MythSystemEvent messages.