trikRuntime
|
Event file abstraction. Can be opened or closed, when opened can emit signal containing event data. More...
#include <eventFileInterface.h>
Signals | |
void | newEvent (int eventType, int code, int value, const trikKernel::TimeVal &eventTime) |
Emitted when there is new event in an event file. More... | |
Public Member Functions | |
virtual bool | open ()=0 |
Opens event file and starts listening for events. More... | |
virtual bool | close ()=0 |
Closes event file and stops listening for events. More... | |
virtual void | cancelWaiting ()=0 |
Abort all pending synchronous event loops. More... | |
virtual QString | fileName () const =0 |
Returns name of an event file. More... | |
virtual bool | isOpened () const =0 |
Returns true if a file is opened. More... | |
Event file abstraction. Can be opened or closed, when opened can emit signal containing event data.
|
pure virtual |
Abort all pending synchronous event loops.
Implemented in trikHal::trik::TrikEventFile, and trikHal::stub::StubEventFile.
|
pure virtual |
Closes event file and stops listening for events.
Implemented in trikHal::trik::TrikEventFile, and trikHal::stub::StubEventFile.
|
pure virtual |
Returns name of an event file.
Implemented in trikHal::trik::TrikEventFile, and trikHal::stub::StubEventFile.
|
pure virtual |
Returns true if a file is opened.
Implemented in trikHal::trik::TrikEventFile, and trikHal::stub::StubEventFile.
|
signal |
Emitted when there is new event in an event file.
eventType | - low-level type of an event. |
code | - low-level event code. |
value | - low-level event value. |
|
pure virtual |
Opens event file and starts listening for events.
Implemented in trikHal::trik::TrikEventFile, and trikHal::stub::StubEventFile.