[Tracker] firefox bookmark indexing



Hi, guys
I want to write code to support firefox bookmark indexing.
After a quick evaluation, I got some idea, but still have some problem.


1. There is no document tell us how to add a new service.
I have to look into code to find how.
here is my understanding, if I am wrong or missing sth, please correct me.
I hope that this could be a useful doc for new comer to support a new
service


Add a new service need to do things below.
(1) add key for tracker configuration tools (optional)
(2) add this service and its metadata into tracker-search-tool
(3) modify data/service/default.service to add section for this new service
(4) add a new function to extract its metadata,
we can write a new program like tracker-extract-mp3.c,
so tracker-extract can get its metadata.

(5) add a new function inside index_entity to insert the extracted data
into database.

and yes, above all,
we need to define how many data this new service has, and how to stored
these data in DB.




2. Just for mozilla/firefox bookmarks,
it is just a plain RDF file, I don't want to do like beagle to write a
firefox extension to store bookmarks into another file, just write a
simple parser to get its data directly.

But for firefox bookmarks, every bookmark has metadata as
"link,title,add_date,last_visit,last_modify,last_charset".
how to store them?

one bookmark file have multiple bookmarks,


I need to insert a new record in table ServiceType, each record into
table Service for every bookmark entry,
but how to manage multiple bookmark information ,they are from one
single html file,
Use childService?






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]