summaryrefslogtreecommitdiff
path: root/pluginRoutingInterfaceTCP/TcpServer.h
blob: 32f9745eaeb9d7228e7a8ff1d81a792e268b1c44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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_ */