On Mon, 2007-07-02 at 22:03 +0800, jerry tan wrote: > Yes, provide one client API to query tracker daemon's working status, > such as how much percent has been finished, working load, > > but is it easy to implement this? > tracker daemon does not calculate how many files under watched dir first.
tracker does not do a recursive count of the files (would take too long) instead it uses a dir queue where directories and not files are queued for processing. file_process_queue will only have the files in the currently indexed directory present as a result At best you could guestimate based on length of both dir_queue and file_process_queue - it wont be perfect but hopefully approximate enough > > > > > I also think it would be better to have a GetStatus method instead of an > > IsBusy so it can return a string for each of the possible status. > > > > For a client it might also be handy to know, if its indexing, the uri of > > the entity being indexed. > > > > We will also need a dbus signal StatusChanged to be emitted too but that > > can wait if you are busy > > > > jamie > > > > > > _______________________________________________ > > tracker-list mailing list > > [email protected] > > http://mail.gnome.org/mailman/listinfo/tracker-list > > > > _______________________________________________ tracker-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/tracker-list
