summaryrefslogtreecommitdiff
path: root/qt/consoleserver/server.h
blob: 9fd84dc9778aa91713c52ff9904a52b768325194 (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);


		public slots:
};

#endif // SERVER_H