Changeset View
Changeset View
Standalone View
Standalone View
src/file/extractor/result.h
Show All 36 Lines | 33 | public: | |||
---|---|---|---|---|---|
37 | void add(KFileMetaData::Property::Property property, const QVariant& value) override; | 37 | void add(KFileMetaData::Property::Property property, const QVariant& value) override; | ||
38 | void append(const QString& text) override; | 38 | void append(const QString& text) override; | ||
39 | void addType(KFileMetaData::Type::Type type) override; | 39 | void addType(KFileMetaData::Type::Type type) override; | ||
40 | 40 | | |||
41 | void setDocument(const Baloo::Document& doc); | 41 | void setDocument(const Baloo::Document& doc); | ||
42 | 42 | | |||
43 | QVariantMap map() const; | 43 | QVariantMap map() const; | ||
44 | 44 | | |||
45 | Baloo::Document& document() { | 45 | Baloo::Document& document(); | ||
46 | return m_doc; | | |||
47 | } | | |||
48 | 46 | | |||
49 | /** | 47 | /** | ||
50 | * Applies the finishing touches on the document, and makes | 48 | * Applies the finishing touches on the document, and makes | ||
51 | * it ready to be pushed into the db | 49 | * it ready to be pushed into the db | ||
52 | */ | 50 | */ | ||
53 | void finish(); | 51 | void finish(); | ||
54 | 52 | | |||
55 | private: | 53 | private: | ||
56 | Baloo::Document m_doc; | 54 | Baloo::Document m_doc; | ||
57 | Baloo::TermGenerator m_termGen; | 55 | Baloo::TermGenerator m_termGen; | ||
58 | Baloo::TermGenerator m_termGenForText; | 56 | Baloo::TermGenerator m_termGenForText; | ||
59 | 57 | | |||
60 | QVariantMap m_map; | 58 | QVariantMap m_map; | ||
61 | }; | 59 | }; | ||
62 | 60 | | |||
63 | #endif // EXTRACTIONRESULT_H | 61 | #endif // EXTRACTIONRESULT_H |