#ifndef HGX11NET_H #define HGX11NET_H #include #include #include #include #include class hgx11net : public QObject { Q_OBJECT public: QString imgWidth; QString imgHeight; hgx11net(const char *, ushort); ~hgx11net(); void clearLeds(); void setLedColor(quint8, quint8, quint8); private: QTcpSocket *_sock_p; QByteArray _cmd_m; const char *_host_m; quint16 _port_m; void _connectHost(); bool _isConnected(); public slots: void sendImage(QByteArray *); private slots: void _disconnected(); }; #endif // HGX11NET_H