#ifndef NUMBEREXPORT_H #define NUMBEREXPORT_H #include #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 numbers; QString fileNamePrefix; int batchSize; int len; bool isAll; bool isCity; bool stop; enum NumberExportType exportType; NumberListModel *model; }; #endif // NUMBEREXPORT_H