2022-01-03 22:59:44 +01:00
|
|
|
#ifndef PREVIEWGENERATOR_H
|
|
|
|
#define PREVIEWGENERATOR_H
|
|
|
|
#include <QVector>
|
|
|
|
#include <QSharedPointer>
|
2022-04-24 12:22:59 +02:00
|
|
|
#include <QFileInfo>
|
2022-01-03 22:59:44 +01:00
|
|
|
#include "previewresult.h"
|
|
|
|
#include "renderconfig.h"
|
|
|
|
|
|
|
|
class PreviewGenerator
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual PreviewResult *generate(RenderConfig config, QString documentPath, unsigned int page) = 0;
|
|
|
|
virtual ~PreviewGenerator()
|
|
|
|
{
|
|
|
|
}
|
2022-04-24 12:22:59 +02:00
|
|
|
|
|
|
|
static PreviewGenerator *get(QFileInfo &info);
|
2022-01-03 22:59:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PREVIEWGENERATOR_H
|