Baloo

basicindexingjob.h
1 /*
2  This file is part of the KDE Baloo Project
3  SPDX-FileCopyrightText: 2013 Vishesh Handa <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6 */
7 
8 #ifndef BASICINDEXINGJOB_H
9 #define BASICINDEXINGJOB_H
10 
11 #include "document.h"
12 
13 namespace Baloo {
14 
15 class BasicIndexingJob
16 {
17 public:
18  enum IndexingLevel {
19  NoLevel,
20  MarkForContentIndexing,
21  };
22 
23  BasicIndexingJob(const QString& filePath, const QString& mimetype,
24  IndexingLevel level = MarkForContentIndexing);
25  ~BasicIndexingJob();
26 
27  bool index();
28 
29  Document document() { return m_doc; }
30 
31 private:
32  QString m_filePath;
33  QString m_mimetype;
34  IndexingLevel m_indexingLevel;
35 
36  Document m_doc;
37 
38  friend class BasicIndexingJobTest;
39 };
40 
41 }
42 
43 #endif // BASICINDEXINGJOB_H
Implements storage for docIds without any associated data Instantiated for:
Definition: coding.cpp:11
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Dec 11 2023 03:53:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.