| 1 | /* |
| 2 | SPDX-FileCopyrightText: 2024 Akseli Lahtinen <akselmo@akselmo.dev> |
| 3 | SPDX-License-Identifier: LGPL-2.0-or-later |
| 4 | */ |
| 5 | #pragma once |
| 6 | |
| 7 | #include <kio/job.h> |
| 8 | |
| 9 | namespace KIO |
| 10 | { |
| 11 | |
| 12 | class StandardThumbnailJob : public KIO::Job |
| 13 | { |
| 14 | Q_OBJECT |
| 15 | |
| 16 | public: |
| 17 | StandardThumbnailJob(const QString &execString, int width, const QString &inputFile, const QString &outputFile); |
| 18 | ~StandardThumbnailJob() override; |
| 19 | |
| 20 | void start() override; |
| 21 | bool doKill() override; |
| 22 | |
| 23 | Q_SIGNALS: |
| 24 | void data(KIO::Job *job, const QImage &thumb); |
| 25 | |
| 26 | private: |
| 27 | class Private; |
| 28 | std::unique_ptr<Private> const d; |
| 29 | Q_DISABLE_COPY(StandardThumbnailJob) |
| 30 | }; |
| 31 | |
| 32 | } |
| 33 | |