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
38 protected:
39 void customEvent (QEvent *Event) override;
40
41 private:
42 Q_DISABLE_COPY(MythInputDeviceHandler)
43
45 bool m_ignoreKeys { false };
46
47#if CONFIG_LIRC
48 LIRC *m_lircThread { nullptr };
49#endif
50
51#if CONFIG_LIBCEC
52 MythCECAdapter m_cecAdapter;
53#endif
54
55#if CONFIG_JOYSTICK_MENU
56 JoystickMenuThread *m_joystickThread { nullptr };
57#endif
58
59#if CONFIG_APPLEREMOTE
60 AppleRemoteListener *m_appleRemoteListener { nullptr };
61 AppleRemote *m_appleRemote { nullptr };
62#endif
63};
64
65#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:91
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)