[Nepomuk] Nepomuk::Query::QueryServiceClient::syncQuery in a KIO::SlaveBase

Daniele E. Domenichelli daniele.domenichelli at gmail.com
Tue Jun 29 11:55:54 CEST 2010


On 06/28/2010 08:16 PM, Sebastian Trüg wrote:
> I advise against that. To be honest i do not remember exactly why but
> there are several situations in which your method will fail one or the
> other way.
> You could have a look at the nepomuksearch kio slave and how it does
> handle the searching using a separate thread. This is the recommended
> method from the KIO gods. ;)

Ok, I will have a look to nepomuksearch and I'll try to use a separate
thread. Thanks KIO gods for your infinite knowledge ;)



> Actually: in case you are listing query results using your kio slave I
> would recommend forwarding to nepomuksearch using
> Nepomuk::Query::Query::toQueryUrl() since that gives you all the
> features it provides including proper stats, gets, previews and all that
> stuff.
> In any case I am very much interested in what you are doing.

I'm trying to create a kio slave for telepathy. It will allow, for
example, to send a file to a contact using drag and drop or starting
CopyJob to an address like "telepathy:/contact/<name>" like if it was a
folder.

What I was trying to do is to show a folder "telepathy:/contact" that
shows all the contacts, each with its avatar and an overlay showing the
status. Maybe later it should show a custom right click menu, showing
allowed actions (start chat, send file, share desktop, etc.)

We are storing all telepathy information on nepomuk using
telepathy-integration-daemon, so most of the work just requires to do
the right queries

I didn't think about forwarding query to nepomuksearch using
Nepomuk::Query::Query::toQueryUrl(), do you think I will be able to show
avatars and statuses (and later right click menu) in that way?
Anyway it could be used just for listing directories, but not for the
queries needed by file transfers.

Regards,
 Daniele


More information about the Nepomuk mailing list