trikRuntime
|
Empty implementation of event file, it only logs calls to its methods and doen't emit any signals. More...
#include <stubEventFile.h>
Public Member Functions | |
StubEventFile (const QString &fileName) | |
Constructor. More... | |
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... | |
Empty implementation of event file, it only logs calls to its methods and doen't emit any signals.
StubEventFile::StubEventFile | ( | const QString & | fileName | ) |
Constructor.
fileName | - file name (with path, relative or absolute) of an event file. |
|
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.