2 * Copyright 2010, Haiku.
3 * Distributed under the terms of the MIT License.
6 * Clemens Zeidler <haiku@clemens-zeidler.de>
8 #ifndef ANALYSER_DISPATCHER
9 #define ANALYSER_DISPATCHER
15 #include "IndexServerAddOn.h"
21 class AnalyserDispatcher
: public BLooper
{
23 AnalyserDispatcher(const char* name
);
24 ~AnalyserDispatcher();
31 void AnalyseEntry(const entry_ref
& ref
);
32 void DeleteEntry(const entry_ref
& ref
);
33 void MoveEntry(const entry_ref
& oldRef
,
34 const entry_ref
& newRef
);
38 bool AddAnalyser(FileAnalyser
* analyser
);
39 bool RemoveAnalyser(const BString
& name
);
41 void WriteAnalyserSettings();
42 void SetSyncPosition(bigtime_t time
);
43 void SetWatchingStart(bigtime_t time
);
44 void SetWatchingPosition(bigtime_t time
);
47 FileAnalyserList fFileAnalyserList
;
50 FileAnalyser
* _FindAnalyser(const BString
& name
);
55 #endif // ANALYSER_DISPATCHER