trikRuntime
|
Implementation of an event that can be emitted by event device. More...
#include <event.h>
Public Slots | |
void | onEvent (int onEvent, int code, int value, int eventTime) |
Supposed to be called by event device when new event is emitted by event device file. More... | |
Public Slots inherited from trikControl::EventInterface |
Public Member Functions | |
Event (int eventType) | |
Consructor. More... | |
EventCodeInterface * | code (int codeNum) override |
Returns object that emits only events with specific code. More... | |
Additional Inherited Members | |
Signals inherited from trikControl::EventInterface | |
void | on (int code, int value, int eventTime) |
Emitted when there is new event in an event file. More... | |
Implementation of an event that can be emitted by event device.
|
explicit |
Consructor.
eventType | - type of an event to emit. It is a number shown next to the event in evtest output. |
|
overridevirtual |
Returns object that emits only events with specific code.
See evtest output for a list of codes for specific device.
Implements trikControl::EventInterface.
|
slot |
Supposed to be called by event device when new event is emitted by event device file.
Filters events by type and re-emits signal.