File indexing completed on 2024-04-28 04:20:04
0001 /* 0002 SPDX-FileCopyrightText: 2022 Friedrich W. H. Kossebau <kossebau@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 0007 #ifndef KODASKANNA_IMAGESOURCE_READIMAGEFILERUNNER_HPP 0008 #define KODASKANNA_IMAGESOURCE_READIMAGEFILERUNNER_HPP 0009 0010 // Qt 0011 #include <QImage> 0012 #include <QObject> 0013 #include <QRunnable> 0014 0015 namespace Kodaskanna 0016 { 0017 0018 namespace ImageSource 0019 { 0020 0021 class ImageReadResult; 0022 0023 class ReadImageFileRunner : public QObject, public QRunnable 0024 { 0025 Q_OBJECT 0026 0027 public: 0028 explicit ReadImageFileRunner(const QString &localFileName); 0029 0030 public: // QRunnable API 0031 void run() override; 0032 0033 Q_SIGNALS: 0034 void readFinished(const Kodaskanna::ImageSource::ImageReadResult &imageReadResult); 0035 0036 private: 0037 const QString m_localFileName; 0038 }; 0039 0040 } 0041 } 0042 0043 #endif