AntiMicroX
Public Slots | Public Member Functions | Private Attributes
JoySensorIoThreadHelper Class Reference

Some helper methods which run in the IO thread and are called from the GUI thread. More...

#include <joysensoriothreadhelper.h>

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

Public Slots

void setFromPendingSlots ()
 Applies pending slot values to the buttons Should be called via QMetaObject::invokeMethod. More...
 
void clearButtonsSlotsEventReset ()
 Calls JoyButton::clearSlotEventReset on all JoyButtons of the underlying sensor. Should be called via QMetaObject::invokeMethod. More...
 

Public Member Functions

 JoySensorIoThreadHelper (JoySensor *sensor, QObject *parent=nullptr)
 
void setPendingSlots (QHash< JoySensorDirection, JoyButtonSlot * > *tempSlots)
 Sets pending slot values The values are applied to the buttons by calling setFromPendingSlots. More...
 
void clearPendingSlots ()
 Clears pending slot values. More...
 

Private Attributes

JoySensorm_sensor
 
QHash< JoySensorDirection, JoyButtonSlot * > m_pending_slots
 

Detailed Description

Some helper methods which run in the IO thread and are called from the GUI thread.

Constructor & Destructor Documentation

◆ JoySensorIoThreadHelper()

JoySensorIoThreadHelper::JoySensorIoThreadHelper ( JoySensor sensor,
QObject *  parent = nullptr 
)
explicit

Member Function Documentation

◆ clearButtonsSlotsEventReset

void JoySensorIoThreadHelper::clearButtonsSlotsEventReset ( )
slot

Calls JoyButton::clearSlotEventReset on all JoyButtons of the underlying sensor. Should be called via QMetaObject::invokeMethod.

Here is the call graph for this function:

◆ clearPendingSlots()

void JoySensorIoThreadHelper::clearPendingSlots ( )

Clears pending slot values.

◆ setFromPendingSlots

void JoySensorIoThreadHelper::setFromPendingSlots ( )
slot

Applies pending slot values to the buttons Should be called via QMetaObject::invokeMethod.

Here is the call graph for this function:

◆ setPendingSlots()

void JoySensorIoThreadHelper::setPendingSlots ( QHash< JoySensorDirection, JoyButtonSlot * > *  tempSlots)

Sets pending slot values The values are applied to the buttons by calling setFromPendingSlots.

Parameters
[in]tempSlotsQHash of new pending slot values. Buttons that are absent from the hash will be left unchanged.
Here is the caller graph for this function:

Field Documentation

◆ m_pending_slots

QHash<JoySensorDirection, JoyButtonSlot *> JoySensorIoThreadHelper::m_pending_slots
private

◆ m_sensor

JoySensor* JoySensorIoThreadHelper::m_sensor
private

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