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_NEWFILEINDEXER_H |
8 | #define BALOO_NEWFILEINDEXER_H |
9 | |
10 | #include <QRunnable> |
11 | #include <QStringList> |
12 | #include <QObject> |
13 | |
14 | namespace Baloo { |
15 | |
16 | class Database; |
17 | class FileIndexerConfig; |
18 | |
19 | /** |
20 | * Does not check the folder path or the mtime of the file |
21 | */ |
22 | class NewFileIndexer : public QObject, public QRunnable |
23 | { |
24 | Q_OBJECT |
25 | public: |
26 | NewFileIndexer(Database* db, const FileIndexerConfig* config, const QStringList& newFiles); |
27 | |
28 | void run() override; |
29 | |
30 | Q_SIGNALS: |
31 | void done(); |
32 | |
33 | private: |
34 | Database* m_db; |
35 | const FileIndexerConfig* m_config; |
36 | QStringList m_files; |
37 | }; |
38 | |
39 | } |
40 | |
41 | #endif // BALOO_NEWFILEINDEXER_H |
42 | |