cutter/src/AnalTask.h

41 lines
721 B
C
Raw Normal View History

#ifndef ANALTHREAD_H
#define ANALTHREAD_H
2018-10-17 07:55:53 +00:00
#include "common/AsyncTask.h"
#include "Cutter.h"
2018-10-17 07:55:53 +00:00
#include "common/InitialOptions.h"
2017-09-25 12:55:41 +00:00
class CutterCore;
class MainWindow;
class InitialOptionsDialog;
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-28 14:19:04 +00:00
explicit AnalTask();
2018-05-26 18:09:20 +00:00
~AnalTask();
QString getTitle() override { return tr("Initial Analysis"); }
void setOptions(const InitialOptions &options) { this->options = options; }
2018-05-26 18:09:20 +00:00
void interrupt() override;
bool getOpenFileFailed() { return openFailed; }
protected:
2018-05-26 18:49:57 +00:00
void runTask() override;
signals:
void openFileFailed();
private:
InitialOptions options;
bool openFailed = false;
};
#endif // ANALTHREAD_H