1 | /* |
2 | SPDX-FileCopyrightText: 2015 Vishesh Handa <vhanda@kde.org> |
3 | |
4 | SPDX-License-Identifier: LGPL-2.1-or-later |
5 | */ |
6 | |
7 | #ifndef BALOO_FIRSTRUNINDEXER_H |
8 | #define BALOO_FIRSTRUNINDEXER_H |
9 | |
10 | #include <QRunnable> |
11 | #include <QObject> |
12 | #include <QStringList> |
13 | |
14 | namespace Baloo { |
15 | |
16 | class Database; |
17 | class FileIndexerConfig; |
18 | |
19 | class FirstRunIndexer : public QObject, public QRunnable |
20 | { |
21 | Q_OBJECT |
22 | public: |
23 | FirstRunIndexer(Database* db, FileIndexerConfig* config, const QStringList& folders); |
24 | |
25 | void run() override; |
26 | |
27 | Q_SIGNALS: |
28 | void done(); |
29 | |
30 | private: |
31 | Database* m_db; |
32 | FileIndexerConfig* m_config; |
33 | |
34 | QStringList m_folders; |
35 | }; |
36 | } |
37 | |
38 | #endif // BALOO_FIRSTRUNINDEXER_H |
39 | |