Web lists-archives.com

Re: Help about Baloo and refresh




On jeudi 17 mars 2016 23:53:01 CET Vishesh Handa wrote:
> Hey Matthieu

Hello Vishesh,

Thanks for your answer.

> 
> There is a dbus signal you can monitor, but no proper API. Have a look
> at 'baloo/src/kioslaves/kded/baloosearchmodule.cpp'.
> 

I had a look to that code.
I am able to listen to two signals from baloo file indexer:
* at path /fileindexer for interface org.kde.baloo.fileindexer and the signal 
finishedIndexingFile.

* at path /files for interface org.kde and the signal changed.

The information I am not able to get are about files removed for example.

I had a look at code (filewatch.cpp, extractor/app.cpp, ...) but was unable to 
locate such a dbus signal.

Is it something I could write as a patch for baloo ?

> 
> On Thu, Mar 17, 2016 at 5:46 PM, Matthieu Gallien
> 
> <matthieu_gallien@xxxxxxxx> wrote:
> > Hello Vishesh and kde-devel,
> > 
> > I am working on a music player fetching its track through Baloo (in a
> > scratch repository git@xxxxxxxxxxx:scratch/mgallien/elisa).
> > 
> > I have tried looking at ways from public APIs of getting notifications
> > when
> > modifications are happening (i.e. the result of the query I am doing is
> > modified). I did not found something like that.
> > 
> > This is why I am asking for help on the best way to achieve that.
> > 
> > Thanks in advance
> > 
> > Best regards
> > 
> > --
> > Matthieu Gallien

Thanks for your help

Sorry for the delay to answer to you

Best regards

--
Matthieu Gallien