| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #ifndef NUMBEREXPORT_H
- #define NUMBEREXPORT_H
- #include <QtCore>
- #include "snccore.h"
- #include "numberreg.h"
- #include "numberlistmodel.h"
- #include "SNCCore_global.h"
- class SNCCORESHARED_EXPORT NumberExport : public QThread
- {
- Q_OBJECT
- public:
- NumberExport(NumberListModel *model,QString fileNamePrefix,enum NumberExportType type);
- ~NumberExport();
- void setBatchSize(int batchSize);
- void setCityOrProvince(bool isCity);
- void setGroupSate(bool isAll);
- void setSegment(int len);
- void abort();
- signals:
- void progressMaxUpdated(int max);
- void progressUpdated(int i);
- void exportFinished();
- protected:
- void run();
- private:
- void exportByAll();
- void exportByBatch();
- void exportByCorp();
- void exportByRegion();
- void exportByDuplicate();
- void exportBySegment();
- void exportBySegmentByLen(int len);
- // QStringList segments;
- // QList<QStringList> numbers;
- QString fileNamePrefix;
- int batchSize;
- int len;
- bool isAll;
- bool isCity;
- bool stop;
- enum NumberExportType exportType;
- NumberListModel *model;
- };
- #endif // NUMBEREXPORT_H
|