2018-08-12 16:45:39 +02:00
|
|
|
#ifndef PDFWORKER_H
|
|
|
|
#define PDFWORKER_H
|
|
|
|
#include <QObject>
|
|
|
|
#include <QImage>
|
|
|
|
#include <QHash>
|
2018-08-30 21:54:29 +02:00
|
|
|
#include <QThread>
|
|
|
|
#include <QMutex>
|
|
|
|
#include <QWaitCondition>
|
2019-04-29 20:50:52 +02:00
|
|
|
#include <QMutex>
|
|
|
|
#include <QFuture>
|
2018-08-12 16:45:39 +02:00
|
|
|
#include <poppler-qt5.h>
|
|
|
|
#include "pdfpreview.h"
|
|
|
|
#include "searchresult.h"
|
2019-04-29 20:50:52 +02:00
|
|
|
|
|
|
|
|
2018-08-12 16:45:39 +02:00
|
|
|
class PdfWorker : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2019-04-29 23:01:11 +02:00
|
|
|
QFuture<PdfPreview> generatePreviews(const QVector<SearchResult> paths, double scalefactor);
|
2018-08-12 16:45:39 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PDFWORKER_H
|