trikRuntime
trikControl::Event Class Reference

Implementation of an event that can be emitted by event device. More...

#include <event.h>

Inheritance diagram for trikControl::Event:
Collaboration diagram for trikControl::Event:

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...
 
EventCodeInterfacecode (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...
 

Detailed Description

Implementation of an event that can be emitted by event device.

Constructor & Destructor Documentation

Event::Event ( int  eventType)
explicit

Consructor.

Parameters
eventType- type of an event to emit. It is a number shown next to the event in evtest output.

Member Function Documentation

EventCodeInterface * Event::code ( int  code)
overridevirtual

Returns object that emits only events with specific code.

See evtest output for a list of codes for specific device.

Implements trikControl::EventInterface.

void Event::onEvent ( int  onEvent,
int  code,
int  value,
int  eventTime 
)
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.


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