2 * Copyright 2010, Haiku.
3 * Distributed under the terms of the MIT License.
6 * Clemens Zeidler <haiku@clemens-zeidler.de>
8 #ifndef FULL_TEXT_ANALYSER_H
9 #define FULL_TEXT_ANALYSER_H
12 #include "IndexServerAddOn.h"
16 #include "TextDataBase.h"
19 const char* kFullTextDirectory
= "FullTextAnalyser";
22 class FullTextAnalyser
: public FileAnalyser
{
24 FullTextAnalyser(BString name
,
25 const BVolume
& volume
);
30 void AnalyseEntry(const entry_ref
& ref
);
31 void DeleteEntry(const entry_ref
& ref
);
32 void MoveEntry(const entry_ref
& oldRef
,
33 const entry_ref
& newRef
);
37 inline bool _InterestingEntry(const entry_ref
& ref
);
38 inline bool _IsInIndexDirectory(const entry_ref
& ref
);
40 TextWriteDataBase
* fWriteDataBase
;
47 class FullTextAddOn
: public IndexServerAddOn
{
49 FullTextAddOn(image_id id
, const char* name
);
51 FileAnalyser
* CreateFileAnalyser(const BVolume
& volume
);