| 1234567891011121314151617181920212223242526272829303132 |
- #ifndef IMPORTCONSUMER_H
- #define IMPORTCONSUMER_H
- #include <QtCore>
- #include "snccore.h"
- class ImportConsumer : public QThread
- {
- Q_OBJECT
- public:
- explicit ImportConsumer(QList<QStringList> *buffer,QMutex *mutex);
- ~ImportConsumer();
- void setBuildType(NumberBuildType buildType);
- void abort();
- protected:
- void run();
- private:
- QStringList extractFromLine(QString line);
- bool checkLine(QString line);
- signals:
- void childTaskFinished(QStringList segments,QList<QStringList> numberslist);
- void threadDestroy();
- void bufferTaked();
- public slots:
- private:
- QList<QStringList> *buffer;
- QStringList segments;
- QList<QStringList> numbers;
- bool stop;
- QMutex *mutex;
- NumberBuildType buildType;
- };
- #endif // IMPORTCONSUMER_H
|