| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #ifndef IMPORTFILE_H
- #define IMPORTFILE_H
- #include <QtCore>
- #include "numberlistmodel.h"
- #include "snccore.h"
- #include "SNCCore_global.h"
- #include <QThread>
- class ImportFile : public QThread
- {
- Q_OBJECT
- public:
- explicit ImportFile(NumberListModel *oldModel);
- ~ImportFile();
- void setFileList(QStringList list);
- void setBuildType(NumberBuildType buildType);
- void abort();
- signals:
- void progressMaxUpdated(int max);
- void progressUpdated(int i);
- void numberBuilt(NumberListModel *newModel);
- protected:
- void run();
- private:
- void appendModel();
- void setFetchMaxSize();
- private:
- bool stop;
- QStringList fileList;
- QStringList segments;
- QList<QStringList> numbers;
- NumberListModel *oldModel;
- NumberListModel *newModel;
- int all_file_size;
- int current_file_size;
- int step1Progress;
- int step2Progress;
- public slots:
-
- };
- #endif // IMPORTFILE_H
|