Changeset View
Changeset View
Standalone View
Standalone View
src/engine/termgenerator.h
Show All 36 Lines | 36 | void setDocument(Document& doc) { | |||
---|---|---|---|---|---|
37 | m_doc = doc; | 37 | m_doc = doc; | ||
38 | } | 38 | } | ||
39 | 39 | | |||
40 | void indexText(const QString& text); | 40 | void indexText(const QString& text); | ||
41 | void indexText(const QString& text, const QByteArray& prefix); | 41 | void indexText(const QString& text, const QByteArray& prefix); | ||
42 | 42 | | |||
43 | void indexXattrText(const QString& text, const QByteArray& prefix); | 43 | void indexXattrText(const QString& text, const QByteArray& prefix); | ||
44 | void indexFileNameText(const QString& text); | 44 | void indexFileNameText(const QString& text); | ||
45 | void indexFileNameText(const QString& text, const QByteArray& prefix); | | |||
46 | 45 | | |||
47 | void setPosition(int position); | 46 | void setPosition(int position); | ||
48 | int position() const; | 47 | int position() const; | ||
49 | 48 | | |||
50 | static QByteArrayList termList(const QString& text); | 49 | static QByteArrayList termList(const QString& text); | ||
51 | 50 | | |||
52 | // Trim all terms to this size | 51 | // Trim all terms to this size | ||
53 | const static int maxTermSize = 25; | 52 | const static int maxTermSize = 25; | ||
54 | private: | 53 | private: | ||
55 | Document& m_doc; | 54 | Document& m_doc; | ||
56 | int m_position; | 55 | int m_position; | ||
57 | }; | 56 | }; | ||
58 | } | 57 | } | ||
59 | 58 | | |||
60 | #endif // BALOO_TERMGENERATOR_H | 59 | #endif // BALOO_TERMGENERATOR_H |