/*
SPDX-FileCopyrightText: 2007 Paolo Capriotti
SPDX-FileCopyrightText: 2022 Fushan Wen
SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include
#include
/**
* A runnable that finds all available images in the specified paths.
*/
class ImageFinder : public QObject, public QRunnable
{
Q_OBJECT
public:
explicit ImageFinder(const QStringList &paths, QObject *parent = nullptr);
void run() override;
Q_SIGNALS:
void imageFound(const QStringList &paths);
private:
QStringList m_paths;
};