File indexing completed on 2024-04-21 03:51:44
0001 /* 0002 This file is part of the KDE Baloo Project 0003 SPDX-FileCopyrightText: 2013 Vishesh Handa <me@vhanda.in> 0004 0005 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0006 */ 0007 0008 #ifndef BASICINDEXINGJOB_H 0009 #define BASICINDEXINGJOB_H 0010 0011 #include "document.h" 0012 0013 namespace Baloo { 0014 0015 class BasicIndexingJob 0016 { 0017 public: 0018 enum IndexingLevel { 0019 NoLevel, 0020 MarkForContentIndexing, 0021 }; 0022 0023 BasicIndexingJob(const QString& filePath, const QString& mimetype, 0024 IndexingLevel level = MarkForContentIndexing); 0025 ~BasicIndexingJob(); 0026 0027 bool index(); 0028 0029 Document document() { return m_doc; } 0030 0031 private: 0032 QString m_filePath; 0033 QString m_mimetype; 0034 IndexingLevel m_indexingLevel; 0035 0036 Document m_doc; 0037 0038 friend class BasicIndexingJobTest; 0039 }; 0040 0041 } 0042 0043 #endif // BASICINDEXINGJOB_H