mirror of
https://github.com/rizinorg/cutter.git
synced 2025-02-24 07:24:46 +00:00

Sometimes it is not necessary to include the whole Cutter.h file Hence, it's been splitted so you can include only what you require E.g. #include "core/CutterCommon.h" to have access to the common types
41 lines
726 B
C++
41 lines
726 B
C++
#ifndef ANALTHREAD_H
|
|
#define ANALTHREAD_H
|
|
|
|
#include "common/AsyncTask.h"
|
|
#include "core/Cutter.h"
|
|
#include "common/InitialOptions.h"
|
|
|
|
class CutterCore;
|
|
class MainWindow;
|
|
class InitialOptionsDialog;
|
|
|
|
class AnalTask : public AsyncTask
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit AnalTask();
|
|
~AnalTask();
|
|
|
|
QString getTitle() override { return tr("Initial Analysis"); }
|
|
|
|
void setOptions(const InitialOptions &options) { this->options = options; }
|
|
|
|
void interrupt() override;
|
|
|
|
bool getOpenFileFailed() { return openFailed; }
|
|
|
|
protected:
|
|
void runTask() override;
|
|
|
|
signals:
|
|
void openFileFailed();
|
|
|
|
private:
|
|
InitialOptions options;
|
|
|
|
bool openFailed = false;
|
|
};
|
|
|
|
#endif // ANALTHREAD_H
|