MythTV master
mythinputdevicehandler.h
Go to the documentation of this file.
1#ifndef MYTHINPUTDEVICEHANDLER_H
2#define MYTHINPUTDEVICEHANDLER_H
3
4#include "libmythbase/mythconfig.h"
5
6// Qt
7#include <QObject>
8
9// MythTV
10#if CONFIG_LIBCEC
12#endif
13
14class LIRC;
15class MythMainWindow;
17class AppleRemote;
19
20class MythInputDeviceHandler : public QObject
21{
22 Q_OBJECT
23
24 public:
25 explicit MythInputDeviceHandler(MythMainWindow* Parent);
26 ~MythInputDeviceHandler() override;
27
28 void Start (void);
29 void Stop (bool Finishing = true);
30 void Reset (void);
31 void Event (QEvent *Event) const;
32 void Action (const QString &Action);
33 void IgnoreKeys (bool Ignore);
34
35 public slots:
36 void MainWindowReady (void);
37 void customEvent (QEvent *Event) override;
38
39 private:
40 Q_DISABLE_COPY(MythInputDeviceHandler)
41
43 bool m_ignoreKeys { false };
44
45#if CONFIG_LIRC
46 LIRC *m_lircThread { nullptr };
47#endif
48
49#if CONFIG_LIBCEC
50 MythCECAdapter m_cecAdapter;
51#endif
52
53#if CONFIG_JOYSTICK_MENU
54 JoystickMenuThread *m_joystickThread { nullptr };
55#endif
56
57#if CONFIG_APPLEREMOTE
58 AppleRemoteListener *m_appleRemoteListener { nullptr };
59 AppleRemote *m_appleRemote { nullptr };
60#endif
61};
62
63#endif
An action (for this plugin) consists of a description, and a set of key sequences.
Definition: action.h:41
Event details.
Definition: zmdefines.h:28
Main object for injecting key strokes based on joystick movements.
Definition: jsmenu.h:88
Interface between mythtv and lircd.
Definition: lirc.h:26
A wrapper around sundry external input devices.
void customEvent(QEvent *Event) override
MythInputDeviceHandler(MythMainWindow *Parent)
void Action(const QString &Action)
void Event(QEvent *Event) const
void Stop(bool Finishing=true)