You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
663 B
33 lines
663 B
/* |
|
SPDX-FileCopyrightText: 2007 Paolo Capriotti <p.capriotti@gmail.com> |
|
SPDX-FileCopyrightText: 2022 Fushan Wen <qydwhotmail@gmail.com> |
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later |
|
*/ |
|
|
|
#ifndef IMAGEFINDER_H |
|
#define IMAGEFINDER_H |
|
|
|
#include <QObject> |
|
#include <QRunnable> |
|
|
|
/** |
|
* 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; |
|
}; |
|
|
|
#endif // IMAGEFINDER_H
|
|
|