2018-03-13 06:39:36 +00:00
|
|
|
#ifndef TURNAROUND_LOADER_H
|
|
|
|
#define TURNAROUND_LOADER_H
|
|
|
|
#include <QObject>
|
|
|
|
#include <QString>
|
|
|
|
#include <QSize>
|
|
|
|
#include <QImage>
|
|
|
|
|
|
|
|
class TurnaroundLoader : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
TurnaroundLoader(const QString &filename, QSize viewSize);
|
2018-04-07 08:44:39 +00:00
|
|
|
TurnaroundLoader(const QImage &image, QSize viewSize);
|
2018-03-13 06:39:36 +00:00
|
|
|
~TurnaroundLoader();
|
|
|
|
QImage *takeResultImage();
|
|
|
|
signals:
|
|
|
|
void finished();
|
|
|
|
public slots:
|
|
|
|
void process();
|
|
|
|
private:
|
|
|
|
QImage *m_resultImage;
|
2018-04-07 08:44:39 +00:00
|
|
|
QImage m_inputImage;
|
2018-03-13 06:39:36 +00:00
|
|
|
QString m_filename;
|
|
|
|
QSize m_viewSize;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|