worker.h 442 B

123456789101112131415161718192021222324252627282930
  1. #ifndef WORKER_H
  2. #define WORKER_H
  3. #include <QObject>
  4. #include "Common/ccommon.h"
  5. #include "QDebug"
  6. enum WORK_TYPE {
  7. WORK_DB_QUERY = 0,
  8. WORK_DB_RUN
  9. };
  10. class Worker : public QObject
  11. {
  12. Q_OBJECT
  13. public:
  14. explicit Worker(QObject *parent = nullptr);
  15. signals:
  16. void resultReady(const RstData &rstData);
  17. public slots:
  18. void doWork(const int type, const QString &func, const QString &cmd);
  19. private:
  20. };
  21. #endif // WORKER_H