TDengine.cpp 346 B

123456789101112131415161718192021
  1. #include "TDengine.h"
  2. #include <QDebug>
  3. TDengine::TDengine() {}
  4. void TDengine::Run()
  5. {
  6. start();
  7. }
  8. void TDengine::OnData(QString user, QString key, QVariant val)
  9. {
  10. qDebug() << user << key << val;
  11. }
  12. void TDengine::run()
  13. {
  14. while (!isInterruptionRequested()) {
  15. //check connection
  16. sleep(1);
  17. }
  18. }