trikRuntime
trikControl::EventInterface Class Referenceabstract

Represents event that can be produced by event device. More...

#include <eventInterface.h>

Inheritance diagram for trikControl::EventInterface:
Collaboration diagram for trikControl::EventInterface:

Public Slots

virtual EventCodeInterfacecode (int code)=0
 Returns object that emits only events with specific code. More...
 

Signals

void on (int code, int value, int eventTime)
 Emitted when there is new event in an event file. More...
 

Detailed Description

Represents event that can be produced by event device.

This class provides ability to subscribe to specific event of a device, and the ability to subscribe to event with specific code.

Member Function Documentation

virtual EventCodeInterface* trikControl::EventInterface::code ( int  code)
pure virtualslot

Returns object that emits only events with specific code.

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

Implemented in trikControl::Event.

void trikControl::EventInterface::on ( int  code,
int  value,
int  eventTime 
)
signal

Emitted when there is new event in an event file.

Parameters
code- code of the event inside a type.
value- value sent with the event.
eventTime- time stamp of the event, in milliseconds from start of the Unix time (modulo 2^32).

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