Baloo

newfileindexer.h
1 /*
2  SPDX-FileCopyrightText: 2015 Vishesh Handa <[email protected]>
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
Q_OBJECTQ_OBJECT
Does not check the folder path or the mtime of the file.
Implements storage for docIds without any associated data Instantiated for:
Definition: coding.cpp:11
Active config class which emits signals if the config was changed, for example if the KCM saved the c...
KSharedConfigPtr config()
Q_SIGNALSQ_SIGNALS
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Nov 29 2023 03:56:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.