File indexing completed on 2024-04-14 03:49:47

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