[Nepomuk] NAO:prefSymbol in the akonadi nepomuk feeders

Christian Mollekopf chrigi_1 at fastmail.fm
Thu Aug 4 21:58:28 UTC 2011


Hey,

Currently we're setting for every indexed item a NAO::prefSymbol(),
which is a NAO::FreeDesktopIcon with the name of the icon (i.e.  
"view-pim-calendar").
I intend to use this symbol in generic listviews, i.e. you have a list of  
random resources
and you can identify them with the little icon (same as in dolphin  
listview).

Now the problem is that Martin wants to set the photo of a contact as icon,
which makes sense in some views (think iconMode in dolphin), and not so  
much in others (think listview).

But since it would become difficult distinguishing multiple symbols (icon  
and photo),
for the view to decide what is used, I think we're better off going  
another route.

As Sebastian once suggested, we should add a mapping from resourcetype to  
the icon to the nepomukdb
(NCAL:Event <-> "view-pim-calendar").

So we wouldn't normally set any symbol, except for the contactfeeder where  
we set the photo as symbol.

So, are you aware of more suitable properties, or does this solution sound  
ok?

How can I add/query such a mapping to/from nepomuk?

Cheers,

Christian


More information about the Nepomuk mailing list