VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Signals | Public Member Functions | Protected Member Functions | Protected Attributes
makVrf::DtFileCommChannel Class Reference

The DtFileCommChannel class is a simple class that will use two files based on the given output file for communication. More...

Inheritance diagram for makVrf::DtFileCommChannel:
Inheritance graph
[legend]

Signals

void commFileMessagesReceived (const QStringList &)

Public Member Functions

 DtFileCommChannel (const QString &file, bool listener=false)
 Constructor.
virtual ~DtFileCommChannel ()
 DTOR.
virtual void sendMessage (const QString &)
 Writes a message to the output channel.
virtual void done ()
 Call when done to cleanup cleanly.

Protected Member Functions

virtual void run ()

Protected Attributes

QString myFileCommChannel
bool myIsListener
bool myIsDone

Detailed Description

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

Constructor & Destructor Documentation

makVrf::DtFileCommChannel::DtFileCommChannel ( const QString &  file,
bool  listener = false 
)

Constructor.

virtual makVrf::DtFileCommChannel::~DtFileCommChannel ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrf::DtFileCommChannel::sendMessage ( const QString &  )
virtual

Writes a message to the output channel.

virtual void makVrf::DtFileCommChannel::done ( )
virtual

Call when done to cleanup cleanly.

void makVrf::DtFileCommChannel::commFileMessagesReceived ( const QStringList &  )
signal
virtual void makVrf::DtFileCommChannel::run ( )
protectedvirtual

Member Data Documentation

QString makVrf::DtFileCommChannel::myFileCommChannel
protected
bool makVrf::DtFileCommChannel::myIsListener
protected
bool makVrf::DtFileCommChannel::myIsDone
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)