17 #include <QtCore/QObject> 18 #include <QtCore/QHash> 19 #include <QtCore/QSharedPointer> 34 explicit Event(
int eventType);
45 QHash<int, QSharedPointer<EventCodeInterface>> mEventCodes;
Class that emits events from event device with specific event type and event code.
Definition: eventCodeInterface.h:27
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.
Definition: event.cpp:37
Implementation of an event that can be emitted by event device.
Definition: event.h:27
Event(int eventType)
Consructor.
Definition: event.cpp:21
Represents event that can be produced by event device.
Definition: eventInterface.h:27
Definition: trikCommunicator.h:27
EventCodeInterface * code(int codeNum) override
Returns object that emits only events with specific code.
Definition: event.cpp:26