processthread.h 880 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. bool serverConfig();
  12. Q_SIGNALS:
  13. void messageBox(const QString &text,
  14. const QVariant &messageBoxPointX,
  15. const QVariant &messageBoxPointY,
  16. const QVariant &messageTitle);
  17. private:
  18. bool upDataProcessSql();
  19. protected:
  20. void run() override;
  21. void sendExitTime(qint64 updataTime);
  22. void sendToServer(const QSet<QString> &filter, qint64 updataTime);
  23. ProcessMonitor processMonitor;
  24. private:
  25. QVariant messageBoxPointX;
  26. QVariant messageBoxPointY;
  27. QVariant messageText;
  28. QVariant gameMessageText;
  29. QVariant messageTitle;
  30. };
  31. #endif // PROCESSTHREAD_H