matlabbe e6fcc961b8 Added DetectionInfo object for easier serialization/deserialization of the detection results.
Added filename property in json files
Added JsonWritter class for convenience

git-svn-id: http://find-object.googlecode.com/svn/trunk/find_object@369 620bd6b2-0a58-f614-fd9a-1bd335dccda9
2014-08-04 01:33:52 +00:00

37 lines
615 B
C++

/*
* TCPServer.h
*
* Created on: 2014-05-05
* Author: mathieu
*/
#ifndef TCPSERVER_H_
#define TCPSERVER_H_
#include "find_object/FindObjectExp.h" // DLL export/import defines
#include "find_object/DetectionInfo.h"
#include <QtNetwork/QTcpServer>
class QNetworkSession;
class FINDOBJECT_EXP TcpServer : public QTcpServer
{
Q_OBJECT
public:
TcpServer(quint16 port = 0, QObject * parent = 0);
QHostAddress getHostAddress() const;
quint16 getPort() const;
public Q_SLOTS:
void publishDetectionInfo(const DetectionInfo & info);
private Q_SLOTS:
void addClient();
};
#endif /* TCPSERVER_H_ */