2011-02-19 03:53:06 +00:00
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
class QTcpServer;
|
|
|
|
|
|
|
|
class Server : public QObject {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2012-05-04 17:56:21 +00:00
|
|
|
Server(QObject *parent);
|
2011-02-19 03:53:06 +00:00
|
|
|
bool start();
|
2011-05-30 04:36:03 +00:00
|
|
|
quint16 server_port() const;
|
2011-02-19 03:53:06 +00:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
void handleConnection();
|
|
|
|
|
|
|
|
private:
|
|
|
|
QTcpServer *m_tcp_server;
|
|
|
|
};
|
|
|
|
|