Changeset View
Changeset View
Standalone View
Standalone View
src/file/extractor/result.h
Show All 22 Lines | |||||
23 | #ifndef EXTRACTIONRESULT_H | 23 | #ifndef EXTRACTIONRESULT_H | ||
24 | #define EXTRACTIONRESULT_H | 24 | #define EXTRACTIONRESULT_H | ||
25 | 25 | | |||
26 | #include <KFileMetaData/ExtractionResult> | 26 | #include <KFileMetaData/ExtractionResult> | ||
27 | 27 | | |||
28 | #include "document.h" | 28 | #include "document.h" | ||
29 | #include "termgenerator.h" | 29 | #include "termgenerator.h" | ||
30 | 30 | | |||
31 | namespace Baloo | ||||
32 | { | ||||
33 | | ||||
31 | class Result : public KFileMetaData::ExtractionResult | 34 | class Result : public KFileMetaData::ExtractionResult | ||
32 | { | 35 | { | ||
33 | public: | 36 | public: | ||
34 | Result(); | 37 | Result(); | ||
35 | Result(const QString& url, const QString& mimetype, const Flags& flags = ExtractEverything); | 38 | Result(const QString& url, const QString& mimetype, const Flags& flags = ExtractEverything); | ||
36 | 39 | | |||
37 | void add(KFileMetaData::Property::Property property, const QVariant& value) override; | 40 | void add(KFileMetaData::Property::Property property, const QVariant& value) override; | ||
38 | void append(const QString& text) override; | 41 | void append(const QString& text) override; | ||
Show All 18 Lines | 59 | private: | |||
57 | quint64 m_docId; | 60 | quint64 m_docId; | ||
58 | Baloo::Document m_doc; | 61 | Baloo::Document m_doc; | ||
59 | Baloo::TermGenerator m_termGen; | 62 | Baloo::TermGenerator m_termGen; | ||
60 | Baloo::TermGenerator m_termGenForText; | 63 | Baloo::TermGenerator m_termGenForText; | ||
61 | 64 | | |||
62 | QVariantMap m_map; | 65 | QVariantMap m_map; | ||
63 | }; | 66 | }; | ||
64 | 67 | | |||
68 | } | ||||
65 | #endif // EXTRACTIONRESULT_H | 69 | #endif // EXTRACTIONRESULT_H |