File indexing completed on 2024-09-22 05:02:10
0001 /* 0002 SPDX-FileCopyrightText: 2007 Paolo Capriotti <p.capriotti@gmail.com> 0003 SPDX-FileCopyrightText: 2022 Fushan Wen <qydwhotmail@gmail.com> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #pragma once 0009 0010 #include <QObject> 0011 #include <QRunnable> 0012 0013 /** 0014 * A runnable that finds all available images in the specified paths. 0015 */ 0016 class ImageFinder : public QObject, public QRunnable 0017 { 0018 Q_OBJECT 0019 0020 public: 0021 explicit ImageFinder(const QStringList &paths, QObject *parent = nullptr); 0022 0023 void run() override; 0024 0025 Q_SIGNALS: 0026 void imageFound(const QStringList &paths); 0027 0028 private: 0029 QStringList m_paths; 0030 };