printerthreadhandle.h 805 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef PRINTERTHREADHANDLE_H
  2. #define PRINTERTHREADHANDLE_H
  3. #include <QObject>
  4. #include <QThread>
  5. #include "printer/printermanger.h"
  6. // 单独线程处理打印事件,不出现批量卡机
  7. class PrinterThreadHandle : public QObject
  8. {
  9. Q_OBJECT
  10. public:
  11. explicit PrinterThreadHandle(QObject *parent = nullptr);
  12. signals:
  13. void printerBox(QSharedPointer<BoxInfo> info);
  14. void printerBox1(QSharedPointer<BoxInfo> info);
  15. void printerBoxModel(QSharedPointer<BoxInfo> info,int ModelIndex);
  16. void printerPack(QSharedPointer<PackInfo> info);
  17. void printerPackModel(QSharedPointer<PackInfo> info,int ModelIndex);
  18. public slots:
  19. void start();
  20. private slots:
  21. void updateConfig();
  22. private:
  23. PrinterManger * manger;
  24. QThread * thread;
  25. };
  26. #endif // PRINTERTHREADHANDLE_H