| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #ifndef PROCESSTHREAD_H
- #define PROCESSTHREAD_H
- #include <QObject>
- #include <QThread>
- #include "processmonitor.h"
- class ProcessThread : public QThread
- {
- Q_OBJECT
- public:
- explicit ProcessThread(QObject *parent = nullptr);
- bool serverConfig();
- Q_SIGNALS:
- void messageBox(const QString &text,
- const QVariant &messageBoxPointX,
- const QVariant &messageBoxPointY,
- const QVariant &messageTitle);
- private:
- bool upDataProcessSql();
- protected:
- void run() override;
- void sendExitTime(qint64 updataTime);
- void sendToServer(const QSet<QString> &filter, qint64 updataTime);
- ProcessMonitor processMonitor;
- private:
- QVariant messageBoxPointX;
- QVariant messageBoxPointY;
- QVariant messageText;
- QVariant gameMessageText;
- QVariant messageTitle;
- };
- #endif // PROCESSTHREAD_H
|