processthread.h 628 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef PROCESSTHREAD_H
  2. #define PROCESSTHREAD_H
  3. #include <QObject>
  4. #include <QThread>
  5. #include "processmonitor.h"
  6. class ProcessThread : public QThread
  7. {
  8. Q_OBJECT
  9. public:
  10. explicit ProcessThread(QObject *parent = nullptr);
  11. Q_SIGNALS:
  12. void messageBox(const QString &text,
  13. const QVariant &messageBoxPointX,
  14. const QVariant &messageBoxPointY,
  15. const QVariant &messageTitle);
  16. private:
  17. bool upDataProcessSql();
  18. protected:
  19. void run() override;
  20. void sendExitTime(qint64 updataTime);
  21. ProcessMonitor processMonitor;
  22. };
  23. #endif // PROCESSTHREAD_H