numberoutorder.h 607 B

12345678910111213141516171819202122232425
  1. #ifndef NUMBEROUTORDER_H
  2. #define NUMBEROUTORDER_H
  3. #include <QtCore>
  4. #include "snccore.h"
  5. #include "numberlistmodel.h"
  6. #include "SNCCore_global.h"
  7. class SNCCORESHARED_EXPORT NumberOutOrder : public QThread
  8. {
  9. Q_OBJECT
  10. public:
  11. NumberOutOrder(NumberListModel *oldModel);
  12. ~NumberOutOrder();
  13. void abort();
  14. signals:
  15. void progressMaxUpdated(int max);
  16. void progressUpdated(int i);
  17. void numberProcessed(NumberListModel *newModel);
  18. protected:
  19. void run();
  20. private:
  21. bool stop;
  22. NumberListModel *oldModel;
  23. NumberListModel *newModel;
  24. };
  25. #endif // NUMBEROUTORDER_H