File indexing completed on 2025-04-20 04:02:14
0001 /* 0002 * SPDX-FileCopyrightText: (C) 2012-2015 Vishesh Handa <vhanda@kde.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 0007 #ifndef FILESYSTEMIMAGEFETCHER_H 0008 #define FILESYSTEMIMAGEFETCHER_H 0009 0010 #include "koko_export.h" 0011 #include <QObject> 0012 0013 class KOKO_EXPORT FileSystemImageFetcher : public QObject 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit FileSystemImageFetcher(const QString &folder, QObject *parent = nullptr); 0018 void fetch(); 0019 0020 signals: 0021 void imageResult(const QString &filePath); 0022 void finished(); 0023 0024 private slots: 0025 void slotProcess(); 0026 0027 private: 0028 QString m_folder; 0029 }; 0030 0031 #endif // FILESYSTEMIMAGEFETCHER_H