From ce3329047d378a14006ce74ec273ac59e3375303 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 12 May 2010 19:42:27 +0200 Subject: initial import of latest svn version --- src/net/pvsLocalhostCommunicator.h | 51 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/net/pvsLocalhostCommunicator.h (limited to 'src/net/pvsLocalhostCommunicator.h') diff --git a/src/net/pvsLocalhostCommunicator.h b/src/net/pvsLocalhostCommunicator.h new file mode 100644 index 0000000..425cc37 --- /dev/null +++ b/src/net/pvsLocalhostCommunicator.h @@ -0,0 +1,51 @@ +/// test documentation +/// whatever +//! and one more + + + +#ifndef _PVSLocalhostCommunicator_H_ +#define _PVSLocalhostCommunicator_H_ +#include +#include + + +class PVSMsg; + +class PVSLocalhostCommunicator : public QObject +{ + Q_OBJECT +public: + PVSLocalhostCommunicator(QString path); + void run(); + bool server() + { + return _isServer; + }; + bool running() + { + return _isRunning; + }; + void stop(); + void sendCommand(QString ident, QString cmd); + EventIdentDispatcher* getDispatcher() + { + return &_daemonDispatcher; + }; + +private Q_SLOTS: + void sock_dataArrival(); + +private: + + bool _isServer, _isRunning; + QUdpSocket* _sock; + + + + EventIdentDispatcher _daemonDispatcher; //!< Dispatcher for Daemon Commands +}; + +typedef PVSLocalhostCommunicator PVSUDSC; + +#endif -- cgit v1.2.3-55-g7522