cutter/src/AnalTask.h

36 lines
609 B
C
Raw Normal View History

#ifndef ANALTHREAD_H
#define ANALTHREAD_H
2018-05-26 18:09:20 +00:00
#include "utils/AsyncTask.h"
2017-09-25 12:55:41 +00:00
class CutterCore;
class MainWindow;
class OptionsDialog;
2018-05-26 18:09:20 +00:00
class AnalTask : public AsyncTask
{
2017-04-09 19:55:06 +00:00
Q_OBJECT
2018-05-26 18:09:20 +00:00
public:
2018-05-26 18:09:20 +00:00
explicit AnalTask(OptionsDialog *parent = nullptr);
~AnalTask();
2018-05-26 18:09:20 +00:00
void setSettings(MainWindow *main, int level, QList<QString> advanced);
void interrupt() override;
void interruptAndWait();
protected:
2018-05-26 18:09:20 +00:00
void runTask();
signals:
void updateProgress(QString str);
void openFileFailed();
private:
int level;
QList<QString> advanced;
MainWindow *main;
};
#endif // ANALTHREAD_H