MythTV  master
Public Slots | Public Member Functions | Private Attributes | List of all members
MythInputDeviceHandler Class Reference

A wrapper around sundry external input devices. More...

#include <libmythui/devices/mythinputdevicehandler.h>

Inheritance diagram for MythInputDeviceHandler:
[legend]
Collaboration diagram for MythInputDeviceHandler:
[legend]

Public Slots

void MainWindowReady (void)
 
void customEvent (QEvent *Event) override
 

Public Member Functions

 MythInputDeviceHandler (MythMainWindow *Parent)
 
 ~MythInputDeviceHandler () override
 
void Start (void)
 
void Stop (bool Finishing=true)
 
void Reset (void)
 
void Event (QEvent *Event) const
 
void Action (const QString &Action)
 
void IgnoreKeys (bool Ignore)
 

Private Attributes

MythMainWindowm_parent { nullptr }
 
bool m_ignoreKeys { false }
 
LIRCm_lircThread { nullptr }
 
JoystickMenuThreadm_joystickThread { nullptr }
 
AppleRemoteListenerm_appleRemoteListener { nullptr }
 
AppleRemotem_appleRemote { nullptr }
 

Detailed Description

A wrapper around sundry external input devices.

Todo:
This could be better implemented with a framework/standardised API and factory methods to simplify adding new devices.

Definition at line 18 of file mythinputdevicehandler.h.

Constructor & Destructor Documentation

◆ MythInputDeviceHandler()

MythInputDeviceHandler::MythInputDeviceHandler ( MythMainWindow Parent)
explicit

Definition at line 41 of file mythinputdevicehandler.cpp.

◆ ~MythInputDeviceHandler()

MythInputDeviceHandler::~MythInputDeviceHandler ( )
override

Definition at line 47 of file mythinputdevicehandler.cpp.

Member Function Documentation

◆ Start()

void MythInputDeviceHandler::Start ( void  )

Definition at line 52 of file mythinputdevicehandler.cpp.

Referenced by MythInputDeviceHandler(), and Reset().

◆ Stop()

void MythInputDeviceHandler::Stop ( bool  Finishing = true)

Definition at line 115 of file mythinputdevicehandler.cpp.

Referenced by Reset(), and ~MythInputDeviceHandler().

◆ Reset()

void MythInputDeviceHandler::Reset ( void  )

Definition at line 156 of file mythinputdevicehandler.cpp.

Referenced by MythMainWindow::RestartInputHandlers().

◆ Event()

void MythInputDeviceHandler::Event ( QEvent *  Event) const

Definition at line 163 of file mythinputdevicehandler.cpp.

Referenced by customEvent(), and MythMainWindow::event().

◆ Action()

void MythInputDeviceHandler::Action ( const QString &  Action)

Definition at line 179 of file mythinputdevicehandler.cpp.

Referenced by MythMainWindow::HandleTVAction().

◆ IgnoreKeys()

void MythInputDeviceHandler::IgnoreKeys ( bool  Ignore)

Definition at line 186 of file mythinputdevicehandler.cpp.

Referenced by MythMainWindow::customEvent().

◆ MainWindowReady

void MythInputDeviceHandler::MainWindowReady ( void  )
slot

Definition at line 198 of file mythinputdevicehandler.cpp.

Referenced by MythMainWindow::MythMainWindow().

◆ customEvent

void MythInputDeviceHandler::customEvent ( QEvent *  Event)
overrideslot

Definition at line 208 of file mythinputdevicehandler.cpp.

Member Data Documentation

◆ m_parent

MythMainWindow* MythInputDeviceHandler::m_parent { nullptr }
private

Definition at line 40 of file mythinputdevicehandler.h.

Referenced by customEvent(), and MainWindowReady().

◆ m_ignoreKeys

bool MythInputDeviceHandler::m_ignoreKeys { false }
private

Definition at line 41 of file mythinputdevicehandler.h.

Referenced by customEvent(), and IgnoreKeys().

◆ m_lircThread

LIRC* MythInputDeviceHandler::m_lircThread { nullptr }
private

Definition at line 44 of file mythinputdevicehandler.h.

Referenced by Start(), and Stop().

◆ m_joystickThread

JoystickMenuThread* MythInputDeviceHandler::m_joystickThread { nullptr }
private

Definition at line 52 of file mythinputdevicehandler.h.

Referenced by Start(), and Stop().

◆ m_appleRemoteListener

AppleRemoteListener* MythInputDeviceHandler::m_appleRemoteListener { nullptr }
private

Definition at line 56 of file mythinputdevicehandler.h.

Referenced by Start(), and Stop().

◆ m_appleRemote

AppleRemote* MythInputDeviceHandler::m_appleRemote { nullptr }
private

Definition at line 57 of file mythinputdevicehandler.h.

Referenced by Event(), Start(), and Stop().


The documentation for this class was generated from the following files: