trikRuntime
trikControl::EventCode Class Reference

Implementation of event code filter for event devices. More...

#include <eventCode.h>

Inheritance diagram for trikControl::EventCode:
Collaboration diagram for trikControl::EventCode:

Public Slots

void onEvent (int code, int value, int eventTime)
 Supposed to be called by event type filter when new event is emitted. More...
 

Public Member Functions

 EventCode (int code)
 Constructor. More...
 

Additional Inherited Members

- Signals inherited from trikControl::EventCodeInterface
void on (int value, int eventTime)
 Emitted when there is new event with specific type and code in an event file. More...
 

Detailed Description

Implementation of event code filter for event devices.

Constructor & Destructor Documentation

EventCode::EventCode ( int  code)
explicit

Constructor.

Parameters
code- code of the event to filter, see evtest output for a list of codes for specific device.

Member Function Documentation

void EventCode::onEvent ( int  code,
int  value,
int  eventTime 
)
slot

Supposed to be called by event type filter when new event is emitted.

Filters events of this type by code and re-emits signal.


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