| 12345678910111213141516171819202122232425262728293031 |
- #ifndef IMPORTPRODUCER_H
- #define IMPORTPRODUCER_H
- #include <QtCore>
- #include "snccore.h"
- class ImportProducer : public QThread
- {
- Q_OBJECT
- public:
- explicit ImportProducer(QStringList fetchList,QList<QStringList> *buffer,QMutex *mutex);
- void setBuildType(NumberBuildType buildType);
- ~ImportProducer();
- protected:
- void run();
-
- signals:
- void produced(int progress);
- void producerFinished();
- void bufferAppended();
- public slots:
- private:
- void fetchFromFile();
- void fetchFromContent();
- private:
- QStringList fetchList;
- QList<QStringList> *buffer;
- bool stop;
- QMutex *mutex;
- NumberBuildType buildType;
- };
- #endif // IMPORTPRODUCER_H
|