| 123456789101112131415161718192021222324252627282930 | 
							- #ifndef WORKER_H
 
- #define WORKER_H
 
- #include <QObject>
 
- #include "Common/ccommon.h"
 
- #include "QDebug"
 
- enum WORK_TYPE {
 
-     WORK_DB_QUERY = 0,
 
-     WORK_DB_RUN
 
- };
 
- class Worker : public QObject
 
- {
 
-     Q_OBJECT
 
- public:
 
-     explicit Worker(QObject *parent = nullptr);
 
- signals:
 
-     void resultReady(const RstData &rstData);
 
- public slots:
 
-     void doWork(const int type, const QString &func, const QString &cmd);
 
- private:
 
- };
 
- #endif // WORKER_H
 
 
  |