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_INDEXCLEANER_H 0008 #define BALOO_INDEXCLEANER_H 0009 0010 #include <QRunnable> 0011 #include <QObject> 0012 0013 namespace Baloo { 0014 0015 class Database; 0016 class FileIndexerConfig; 0017 0018 class IndexCleaner : public QObject, public QRunnable 0019 { 0020 Q_OBJECT 0021 public: 0022 IndexCleaner(Database* db, FileIndexerConfig* config); 0023 void run() override; 0024 0025 Q_SIGNALS: 0026 void done(); 0027 0028 private: 0029 Database* m_db; 0030 FileIndexerConfig* m_config; 0031 }; 0032 } 0033 0034 #endif // BALOO_INDEXCLEANER_H