18#ifndef HTMLGENERATORJOB_H
19#define HTMLGENERATORJOB_H
21#include "abstractjob.h"
22#include "htmlgenerator.h"
25#include <QTemporaryDir>
27class HtmlGeneratorJob :
public AbstractJob
31 HtmlGeneratorJob(
const QString &name,
33 const QString &outputPath,
35 QThread::Priority priority = QThread::HighPriority);
36 void start()
override;
39 void onFinished(
int exitCode, QProcess::ExitStatus exitStatus)
override;
40 void onReadyRead()
override;
43 void onAnimationFramesReady();
44 void onHtmlGeneratorProgress(
float progress);
45 void onOpenTriggered();
51 HtmlGenerator *m_generator;
52 std::unique_ptr<QTemporaryDir> m_tempDir;
53 QString m_htmlFilePath;
54 bool m_isGeneratingFrames;
55 int m_previousPercent;