cutter/src/AnalThread.h
2018-03-09 13:57:57 +01:00

40 lines
652 B
C++

#ifndef ANALTHREAD_H
#define ANALTHREAD_H
#include <QThread>
class CutterCore;
class MainWindow;
class OptionsDialog;
class AnalThread : public QThread
{
Q_OBJECT
public:
explicit AnalThread(OptionsDialog *parent = 0);
~AnalThread();
void start(MainWindow *main, int level, QList<QString> advanced);
void interruptAndWait();
bool isInterrupted() { return interrupted; }
protected:
void run();
using QThread::start;
signals:
void updateProgress(QString str);
private:
int level;
QList<QString> advanced;
MainWindow *main;
CutterCore *core;
bool interrupted;
};
#endif // ANALTHREAD_H