Changeset View
Changeset View
Standalone View
Standalone View
src/file/basicindexingjob.h
Show All 38 Lines | 33 | public: | |||
---|---|---|---|---|---|
39 | BasicIndexingJob(const QString& filePath, const QString& mimetype, | 39 | BasicIndexingJob(const QString& filePath, const QString& mimetype, | ||
40 | IndexingLevel level = MarkForContentIndexing); | 40 | IndexingLevel level = MarkForContentIndexing); | ||
41 | ~BasicIndexingJob(); | 41 | ~BasicIndexingJob(); | ||
42 | 42 | | |||
43 | bool index(); | 43 | bool index(); | ||
44 | 44 | | |||
45 | Document document() { return m_doc; } | 45 | Document document() { return m_doc; } | ||
46 | 46 | | |||
47 | /** | | |||
48 | * Adds the data for all the extended attributes of \p url | | |||
49 | * in the document \p doc | | |||
50 | * | | |||
51 | * \return Returns true if the \p doc was modified | | |||
52 | */ | | |||
53 | static bool indexXAttr(const QString& url, Document& doc); | | |||
54 | | ||||
55 | private: | 47 | private: | ||
56 | static QVector<KFileMetaData::Type::Type> typesForMimeType(const QString& mimeType); | 48 | static QVector<KFileMetaData::Type::Type> typesForMimeType(const QString& mimeType); | ||
57 | 49 | | |||
58 | QString m_filePath; | 50 | QString m_filePath; | ||
59 | QString m_mimetype; | 51 | QString m_mimetype; | ||
60 | IndexingLevel m_indexingLevel; | 52 | IndexingLevel m_indexingLevel; | ||
61 | 53 | | |||
62 | Document m_doc; | 54 | Document m_doc; | ||
63 | 55 | | |||
64 | friend class BasicIndexingJobTest; | 56 | friend class BasicIndexingJobTest; | ||
65 | }; | 57 | }; | ||
66 | 58 | | |||
67 | } | 59 | } | ||
68 | 60 | | |||
69 | #endif // BASICINDEXINGJOB_H | 61 | #endif // BASICINDEXINGJOB_H |