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
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
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: */
RecordingInfo
Holds information on a TV Program one might wish to record.
Definition: recordinginfo.h:35
RawSettingsEditor
An editor screen that allows manipulation of raw settings values.
Definition: rawsettingseditor.h:25
MythScreenStack
Definition: mythscreenstack.h:16
programinfo.h
SendMythSystemRecEvent
MTV_PUBLIC void SendMythSystemRecEvent(const QString &msg, const RecordingInfo *pginfo)
Definition: mythsystemevent.cpp:324
MythSystemEventEditor
An editor for MythSystemEvent handler commands.
Definition: mythsystemevent.h:50
MTV_PUBLIC
#define MTV_PUBLIC
Definition: mythtvexp.h:15
recordinginfo.h
ProgramInfo
Holds information on recordings and videos.
Definition: programinfo.h:67
rawsettingseditor.h
MythSystemEventHandler
Handles incoming MythSystemEvent messages.
Definition: mythsystemevent.h:24
SendMythSystemPlayEvent
MTV_PUBLIC void SendMythSystemPlayEvent(const QString &msg, const ProgramInfo *pginfo)
Definition: mythsystemevent.cpp:352