importproducer.h 719 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef IMPORTPRODUCER_H
  2. #define IMPORTPRODUCER_H
  3. #include <QtCore>
  4. #include "snccore.h"
  5. class ImportProducer : public QThread
  6. {
  7. Q_OBJECT
  8. public:
  9. explicit ImportProducer(QStringList fetchList,QList<QStringList> *buffer,QMutex *mutex);
  10. void setBuildType(NumberBuildType buildType);
  11. ~ImportProducer();
  12. protected:
  13. void run();
  14. signals:
  15. void produced(int progress);
  16. void producerFinished();
  17. void bufferAppended();
  18. public slots:
  19. private:
  20. void fetchFromFile();
  21. void fetchFromContent();
  22. private:
  23. QStringList fetchList;
  24. QList<QStringList> *buffer;
  25. bool stop;
  26. QMutex *mutex;
  27. NumberBuildType buildType;
  28. };
  29. #endif // IMPORTPRODUCER_H