Changeset View
Changeset View
Standalone View
Standalone View
src/file/extractor/result.h
Show All 34 Lines | 33 | public: | |||
---|---|---|---|---|---|
35 | Result(const QString& url, const QString& mimetype, const Flags& flags = ExtractEverything); | 35 | Result(const QString& url, const QString& mimetype, const Flags& flags = ExtractEverything); | ||
36 | 36 | | |||
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 | quint64 id() const; | | |||
44 | QVariantMap map() const; | 43 | QVariantMap map() const; | ||
45 | 44 | | |||
46 | Baloo::Document& document() { | 45 | Baloo::Document& document() { | ||
47 | return m_doc; | 46 | return m_doc; | ||
48 | } | 47 | } | ||
49 | 48 | | |||
50 | /** | 49 | /** | ||
51 | * Applies the finishing touches on the document, and makes | 50 | * Applies the finishing touches on the document, and makes | ||
52 | * it ready to be pushed into the db | 51 | * it ready to be pushed into the db | ||
53 | */ | 52 | */ | ||
54 | void finish(); | 53 | void finish(); | ||
55 | 54 | | |||
56 | private: | 55 | private: | ||
57 | quint64 m_docId; | | |||
58 | Baloo::Document m_doc; | 56 | Baloo::Document m_doc; | ||
59 | Baloo::TermGenerator m_termGen; | 57 | Baloo::TermGenerator m_termGen; | ||
60 | Baloo::TermGenerator m_termGenForText; | 58 | Baloo::TermGenerator m_termGenForText; | ||
61 | 59 | | |||
62 | QVariantMap m_map; | 60 | QVariantMap m_map; | ||
63 | }; | 61 | }; | ||
64 | 62 | | |||
65 | #endif // EXTRACTIONRESULT_H | 63 | #endif // EXTRACTIONRESULT_H |