diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-10-11 18:34:48 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-10-11 18:34:48 +0200 |
commit | acb25f74631597b2b24dca2c16da9dbb9ed2ecb1 (patch) | |
tree | 3eb6151054551a1586eeb1dbd67cda23dc2e47b2 /client/esp/mytcpsocket.h | |
parent | 1d385074e33f831e88499603c46e25170b770ada (diff) | |
parent | 8c1381da90da1d8c972ee6065dfe5d0ee5e5f1e1 (diff) |
Merge branch 'QT_ESP' of https://github.com/NielsCoding/avans-whether-station into esp
Diffstat (limited to 'client/esp/mytcpsocket.h')
-rw-r--r-- | client/esp/mytcpsocket.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/client/esp/mytcpsocket.h b/client/esp/mytcpsocket.h new file mode 100644 index 0000000..4a7e543 --- /dev/null +++ b/client/esp/mytcpsocket.h @@ -0,0 +1,32 @@ +#ifndef MYTCPSOCKET_H +#define MYTCPSOCKET_H + +#include <QObject> +#include <QTcpSocket> +#include <QAbstractSocket> +#include <QDebug> + +class MyTcpSocket : public QObject +{ + Q_OBJECT +public: + explicit MyTcpSocket(QObject *parent = 0); + + void doConnect(); +signals: +public slots: + void connected(); + void disconnected(); + void bytesWritten(qint64 bytes); + void readyRead(); +private: + QTcpSocket *socket; + + + + + +}; + + +#endif // MYTCPSOCKET_H |