File indexing completed on 2024-04-14 03:49:46

0001 /*
0002     SPDX-FileCopyrightText: 2015 Vishesh Handa <vhanda@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-or-later
0005 */
0006 
0007 #ifndef BALOO_FIRSTRUNINDEXER_H
0008 #define BALOO_FIRSTRUNINDEXER_H
0009 
0010 #include <QRunnable>
0011 #include <QObject>
0012 #include <QStringList>
0013 
0014 namespace Baloo {
0015 
0016 class Database;
0017 class FileIndexerConfig;
0018 
0019 class FirstRunIndexer : public QObject, public QRunnable
0020 {
0021     Q_OBJECT
0022 public:
0023     FirstRunIndexer(Database* db, FileIndexerConfig* config, const QStringList& folders);
0024 
0025     void run() override;
0026 
0027 Q_SIGNALS:
0028     void done();
0029 
0030 private:
0031     Database* m_db;
0032     FileIndexerConfig* m_config;
0033 
0034     QStringList m_folders;
0035 };
0036 }
0037 
0038 #endif // BALOO_FIRSTRUNINDEXER_H