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:
|
2022-05-27 09:28:21 +02:00
|
|
|
virtual QSharedPointer<PreviewResult> generate(RenderConfig config, QString documentPath, unsigned int page) = 0;
|
2022-01-03 22:59:44 +01:00
|
|
|
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
|