2017-03-29 10:18:37 +00:00
|
|
|
#ifndef ANALTHREAD_H
|
|
|
|
#define ANALTHREAD_H
|
|
|
|
|
2018-05-26 18:09:20 +00:00
|
|
|
#include "utils/AsyncTask.h"
|
2017-03-29 10:18:37 +00:00
|
|
|
|
2017-09-25 12:55:41 +00:00
|
|
|
class CutterCore;
|
2017-09-28 22:04:57 +00:00
|
|
|
class MainWindow;
|
|
|
|
class OptionsDialog;
|
2017-03-29 10:18:37 +00:00
|
|
|
|
2018-05-26 18:09:20 +00:00
|
|
|
class AnalTask : public AsyncTask
|
2017-03-29 10:18:37 +00:00
|
|
|
{
|
2017-04-09 19:55:06 +00:00
|
|
|
Q_OBJECT
|
2018-05-26 18:09:20 +00:00
|
|
|
|
2017-03-29 10:18:37 +00:00
|
|
|
public:
|
2018-05-26 18:09:20 +00:00
|
|
|
explicit AnalTask(OptionsDialog *parent = nullptr);
|
|
|
|
~AnalTask();
|
2017-03-31 22:43:12 +00:00
|
|
|
|
2018-05-26 18:09:20 +00:00
|
|
|
void setSettings(MainWindow *main, int level, QList<QString> advanced);
|
|
|
|
void interrupt() override;
|
2018-03-09 12:57:57 +00:00
|
|
|
void interruptAndWait();
|
|
|
|
|
2017-03-31 22:43:12 +00:00
|
|
|
protected:
|
2018-05-26 18:49:57 +00:00
|
|
|
void runTask() override;
|
2017-03-29 10:18:37 +00:00
|
|
|
|
2017-09-28 22:04:57 +00:00
|
|
|
signals:
|
2018-05-08 20:44:53 +00:00
|
|
|
void openFileFailed();
|
2017-09-28 22:04:57 +00:00
|
|
|
|
2017-03-31 22:43:12 +00:00
|
|
|
private:
|
|
|
|
int level;
|
2017-07-24 11:05:28 +00:00
|
|
|
QList<QString> advanced;
|
2017-09-28 22:04:57 +00:00
|
|
|
MainWindow *main;
|
2017-03-29 10:18:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ANALTHREAD_H
|