2014-05-05 23:08:01 +00:00
|
|
|
/*
|
|
|
|
|
* TCPServer.h
|
|
|
|
|
*
|
|
|
|
|
* Created on: 2014-05-05
|
|
|
|
|
* Author: mathieu
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef TCPSERVER_H_
|
|
|
|
|
#define TCPSERVER_H_
|
|
|
|
|
|
|
|
|
|
#include <QtNetwork/QTcpServer>
|
|
|
|
|
|
|
|
|
|
class QNetworkSession;
|
|
|
|
|
|
|
|
|
|
class TcpServer : public QTcpServer
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
TcpServer(quint16 port = 0, QObject * parent = 0);
|
|
|
|
|
|
|
|
|
|
QHostAddress getHostAddress() const;
|
|
|
|
|
quint16 getPort() const;
|
|
|
|
|
|
2014-07-31 19:02:31 +00:00
|
|
|
public Q_SLOTS:
|
|
|
|
|
void publishObjects(const QMultiMap<int, QPair<QRect, QTransform> > & objects);
|
2014-05-05 23:08:01 +00:00
|
|
|
|
2014-07-08 19:55:03 +00:00
|
|
|
private Q_SLOTS:
|
2014-05-05 23:08:01 +00:00
|
|
|
void addClient();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif /* TCPSERVER_H_ */
|