dmpdataserver.h 681 B

1234567891011121314151617181920212223242526
  1. #ifndef DMPDATASERVER_H
  2. #define DMPDATASERVER_H
  3. #include <QTcpServer>
  4. #include "dmpcommthread.h"
  5. class DMPDataServer : public QTcpServer
  6. {
  7. Q_OBJECT
  8. public:
  9. explicit DMPDataServer(QObject *parent = nullptr);
  10. void start();
  11. signals:
  12. void CommData(QString data);
  13. void DatabaseData(QString sql);
  14. void getERealtimeValue(QString DeviceCode, QString bstr, QString pointstr, QDateTime t);
  15. public slots:
  16. void incomingConnection(qintptr socketDescriptor) override;
  17. void eCommData(QString data);
  18. void eDatabaseData(QString sql);
  19. void egetERealtimeValue(QString DeviceCode, QString bstr, QString pointstr, QDateTime t);
  20. };
  21. #endif // DMPDATASERVER_H