| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- #ifndef NUMBERBUILD_H
- #define NUMBERBUILD_H
- #include <QtCore>
- #include "numberlistmodel.h"
- #include "SNCCore_global.h"
- #include <QThread>
- class SNCCORESHARED_EXPORT NumberBuild : public QThread
- {
- Q_OBJECT
- public:
- NumberBuild();
- ~NumberBuild();
- void setList(QStringList list);
- void setRegList(QStringList regList);
- void setRelation(int relation);
- signals:
- void progressMaxUpdated(int max);
- void progressUpdated(int i);
- void numberBuilt(NumberListModel *newModel);
- protected:
- void run();
- private:
- void appendModel();
- void buildByAnd();
- void buildByOr();
- private:
- bool stop;
- int relation;
- QStringList regList;
- QStringList segments;
- QList<QStringList> numbers;
- NumberListModel *newModel;
- public slots:
- void abort();
-
- };
- #endif // NUMBERBUILD_H
|