diff options
Diffstat (limited to 'pluginRoutingInterfaceTCP/TcpServer.h')
-rw-r--r-- | pluginRoutingInterfaceTCP/TcpServer.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pluginRoutingInterfaceTCP/TcpServer.h b/pluginRoutingInterfaceTCP/TcpServer.h new file mode 100644 index 0000000..32f9745 --- /dev/null +++ b/pluginRoutingInterfaceTCP/TcpServer.h @@ -0,0 +1,34 @@ +/* + * TcpServer.h + * + * Created on: Apr 6, 2011 + * Author: blacky + */ + +#ifndef I2CSERVER_H_ +#define I2CSERVER_H_ + +#include <QtNetwork> +#include <QObject> + +#include "routinginterface.h" +#include "tcpMessages.h" + +class TcpServer : public QTcpServer{ +Q_OBJECT +public: + TcpServer(int ListenPort); + virtual ~TcpServer(); + + void registerAudioManager(RoutingReceiveInterface *audiomanager_); + +public slots: + void receivedCommand(); + void startRead(); + +private: + QTcpSocket* socket; + RoutingReceiveInterface *audiomanager; +}; + +#endif /* I2CSERVER_H_ */ |