1 | /* |
2 | This file is part of the KDE Baloo Project |
3 | SPDX-FileCopyrightText: 2015 Pinak Ahuja <pinak.ahuja@gmail.com> |
4 | |
5 | SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
6 | */ |
7 | |
8 | #ifndef BALOO_UNINDEXEDFILEINDEXER |
9 | #define BALOO_UNINDEXEDFILEINDEXER |
10 | |
11 | #include <QRunnable> |
12 | #include <QObject> |
13 | |
14 | namespace Baloo { |
15 | |
16 | class Database; |
17 | class FileIndexerConfig; |
18 | |
19 | class UnindexedFileIndexer : public QObject, public QRunnable |
20 | { |
21 | Q_OBJECT |
22 | public: |
23 | UnindexedFileIndexer(Database* db, const FileIndexerConfig* config); |
24 | |
25 | void run() override; |
26 | |
27 | Q_SIGNALS: |
28 | void done(); |
29 | |
30 | private: |
31 | Database* m_db; |
32 | const FileIndexerConfig* m_config; |
33 | }; |
34 | } |
35 | |
36 | #endif //BALOO_UNINDEXEDFILEINDEXER |
37 | |