17 #include <QtCore/QScopedPointer> 19 #include <QSocketNotifier> 40 bool close()
override;
47 void tryOpenEventFile();
54 int mEventFileDescriptor = -1;
57 const QString mFileName;
64 QScopedPointer<QEventLoop> mInitWaitingLoop;
67 QScopedPointer<QSocketNotifier> mSocketNotifier;
Real implementation of event file.
Definition: trikEventFile.h:28
Event file abstraction. Can be opened or closed, when opened can emit signal containing event data...
Definition: eventFileInterface.h:27
bool open() override
Opens event file and starts listening for events.
Definition: trikEventFile.cpp:39
bool isOpened() const override
Returns true if a file is opened.
Definition: trikEventFile.cpp:133
TrikEventFile(const QString &fileName, QThread &thread)
Constructor.
Definition: trikEventFile.cpp:32
QString fileName() const override
Returns name of an event file.
Definition: trikEventFile.cpp:107
void cancelWaiting() override
Abort all pending synchronous event loops.
Definition: trikEventFile.cpp:102
~TrikEventFile() override
Definition: trikEventFile.h:37
bool close() override
Closes event file and stops listening for events.
Definition: trikEventFile.cpp:82
Definition: brickFactory.h:21