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