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_INDEXCLEANER_H |
8 | #define BALOO_INDEXCLEANER_H |
9 | |
10 | #include <QRunnable> |
11 | #include <QObject> |
12 | |
13 | namespace Baloo { |
14 | |
15 | class Database; |
16 | class FileIndexerConfig; |
17 | |
18 | class IndexCleaner : public QObject, public QRunnable |
19 | { |
20 | Q_OBJECT |
21 | public: |
22 | IndexCleaner(Database* db, FileIndexerConfig* config); |
23 | void run() override; |
24 | |
25 | Q_SIGNALS: |
26 | void done(); |
27 | |
28 | private: |
29 | Database* m_db; |
30 | FileIndexerConfig* m_config; |
31 | }; |
32 | } |
33 | |
34 | #endif // BALOO_INDEXCLEANER_H |
35 | |