trikRuntime
trikControl::EventDeviceInterface Class Referenceabstract

Generic event device. More...

#include <eventDeviceInterface.h>

Inheritance diagram for trikControl::EventDeviceInterface:
Collaboration diagram for trikControl::EventDeviceInterface:

Public Slots

virtual EventInterfaceonEvent (int eventType)=0
 Returns object that allows to selectively subscribe only to event with given code. More...
 

Signals

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

Additional Inherited Members

- Public Types inherited from trikControl::DeviceInterface
enum  Status {
  Status::permanentFailure, Status::temporaryFailure, Status::off, Status::starting,
  Status::ready, Status::stopping
}
 Device status. More...
 
- Public Member Functions inherited from trikControl::DeviceInterface
 DeviceInterface ()=default
 
virtual ~DeviceInterface ()=default
 
virtual Status status () const =0
 Returns current status of the device. More...
 
- Static Public Member Functions inherited from trikControl::DeviceInterface
static Status combine (const DeviceInterface &underlying, const DeviceInterface::Status &dependent)
 Helper method to return status of a device relying on other device to work. More...
 

Detailed Description

Generic event device.

Member Function Documentation

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

Emitted when there is new event in an event file.

Parameters
event- type of the event.
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).
virtual EventInterface* trikControl::EventDeviceInterface::onEvent ( int  eventType)
pure virtualslot

Returns object that allows to selectively subscribe only to event with given code.

Implemented in trikControl::EventDevice.


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