trikRuntime
|
Real implementation of event file. More...
#include <trikEventFile.h>
Public Member Functions | |
TrikEventFile (const QString &fileName, QThread &thread) | |
Constructor. More... | |
~TrikEventFile () override | |
bool | open () override |
Opens event file and starts listening for events. More... | |
bool | close () override |
Closes event file and stops listening for events. More... | |
void | cancelWaiting () override |
Abort all pending synchronous event loops. More... | |
QString | fileName () const override |
Returns name of an event file. More... | |
bool | isOpened () const override |
Returns true if a file is opened. More... | |
Additional Inherited Members | |
Signals inherited from trikHal::EventFileInterface | |
void | newEvent (int eventType, int code, int value, const trikKernel::TimeVal &eventTime) |
Emitted when there is new event in an event file. More... | |
Real implementation of event file.
TrikEventFile::TrikEventFile | ( | const QString & | fileName, |
QThread & | thread | ||
) |
Constructor.
fileName | - file name (with path, relative or absolute) of an event file. |
thread | - background thread where all socket events will be processed. |
|
inlineoverride |
|
overridevirtual |
Abort all pending synchronous event loops.
Implements trikHal::EventFileInterface.
|
overridevirtual |
Closes event file and stops listening for events.
Implements trikHal::EventFileInterface.
|
overridevirtual |
Returns name of an event file.
Implements trikHal::EventFileInterface.
|
overridevirtual |
Returns true if a file is opened.
Implements trikHal::EventFileInterface.
|
overridevirtual |
Opens event file and starts listening for events.
Implements trikHal::EventFileInterface.