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

source code of baloo/src/file/indexcleaner.h