12345678910111213141516171819202122232425262728 |
- #ifndef WATERSERVER3_H
- #define WATERSERVER3_H
- #include <QTcpServer>
- #include <QHostAddress>
- #include "sensorthread3.h"
- class waterserver3 : public QTcpServer
- {
- Q_OBJECT
- public:
- explicit waterserver3(QObject *parent = nullptr);
- void start();
- signals:
- void getOnLine(int deviceidx, bool flag, QDateTime t);
- void getValue(int deviceidx, QString d1, int d2, int d3, double d4, QString d5, QDateTime t);
- void getAlarm(int deviceidx, QString d1, int d2, int d3, double d4, QString d5, QString note, QDateTime t);
- void getCommData(QString data);
- public slots:
- void incomingConnection(qintptr socketDescriptor) override;
- void egetOnLine(int deviceidx, bool flag, QDateTime t);
- void egetValue(int deviceidx, QString d1, int d2, int d3, double d4, QString d5, QDateTime t);
- void egetAlarm(int deviceidx, QString d1, int d2, int d3, double d4, QString d5, QString note, QDateTime t);
- void egetCommData(QString data);
- };
- #endif // WATERSERVER3_H
|