cutter/src/AnalThread.h

42 lines
650 B
C
Raw Normal View History

#ifndef ANALTHREAD_H
#define ANALTHREAD_H
#include <QThread>
2017-09-25 12:55:41 +00:00
class CutterCore;
class MainWindow;
class OptionsDialog;
class AnalThread : public QThread
{
2017-04-09 19:55:06 +00:00
Q_OBJECT
public:
explicit AnalThread(OptionsDialog *parent = nullptr);
~AnalThread();
void start(MainWindow *main, int level, QList<QString> advanced);
void interruptAndWait();
2018-03-21 20:32:32 +00:00
bool isInterrupted()
{
return interrupted;
}
protected:
void run();
using QThread::start;
signals:
void updateProgress(QString str);
private:
int level;
QList<QString> advanced;
MainWindow *main;
bool interrupted;
};
#endif // ANALTHREAD_H