blob: 8d465392add5e03042a3a2f0a2f7480fc2ce066b (
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
|
#ifndef SERVER_H
#define SERVER_H
#include <QTcpServer>
#include <QTcpSocket>
class server : public QObject
{
Q_OBJECT
public:
explicit server(QObject *parent = 0);
bool server_start();
bool server_stop();
private:
QTcpServer *srv;
void handle(QString msg);
private slots:
void new_connection();
signals:
void sendcmd(QString cmd);
public slots:
};
#endif // SERVER_H
|