![]() |
VR-Forces Developer's Guide
|
The DtFileCommChannel class is a simple class that will use two files based on the given output file for communication. An Output file to place messages to be "sent" to a listening application and an Input file that can be used for the listening application to send messages to this channel. Once the messages are received a signal will be emitted and the file in question erased. This object is run as a thread so it can check file contents every so often.

Public Member Functions | |
| DtFileCommChannel (const QString &file, bool listener=false) | |
| virtual | ~DtFileCommChannel () |
| virtual void | sendMessage (const QString &) |
| virtual void | done () |
Public Attributes | |
| boost::signals2::signal< void(const QStringList &)> | signal_commFileMessagesReceived |
Protected Member Functions | |
| virtual void | run () |
Protected Attributes | |
| QString | myFileCommChannel |
| bool | myIsListener |
| bool | myIsDone |
| makVrf::DtFileCommChannel::DtFileCommChannel | ( | const QString & | file, |
| bool | listener = false |
||
| ) |
Constructor.
|
virtual |
DTOR.
|
virtual |
Writes a message to the output channel.
|
virtual |
Call when done to cleanup cleanly.
|
protectedvirtual |
| boost::signals2::signal<void (const QStringList&)> makVrf::DtFileCommChannel::signal_commFileMessagesReceived |
|
protected |
|
protected |
|
protected |