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

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