#ifndef IPCPREVIEWWORKER_H #define IPCPREVIEWWORKER_H #include #include #include "renderconfig.h" #include "rendertarget.h" #include "previewgenerator.h" class IPCPreviewWorker : public QObject { Q_OBJECT private: QFutureWatcher previewWorkerWatcher; QLocalSocket *peer; bool cleaned = false; public: IPCPreviewWorker(QLocalSocket *peer); void start(RenderConfig config, const QVector &targets); void stop(); private slots: void shutdownSocket(); signals: void finished(); }; #endif // IPCPREVIEWWORKER_H