diff options
Diffstat (limited to 'qt/RGBController/server.h')
-rw-r--r-- | qt/RGBController/server.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/qt/RGBController/server.h b/qt/RGBController/server.h new file mode 100644 index 0000000..8d46539 --- /dev/null +++ b/qt/RGBController/server.h @@ -0,0 +1,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 |