Hi Christian, I would imagine that such a mapping exists outside of the Nepomuk db. It could be on the file-system level as links to fdo icons. Mimetype icons are also determined via file-name. Or it could be some mapping text file which we could cache in ksycoca. Just an idea...
Cheers, Sebastian On 08/04/2011 11:58 PM, Christian Mollekopf wrote: > 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 > _______________________________________________ > Nepomuk mailing list > [email protected] > https://mail.kde.org/mailman/listinfo/nepomuk > _______________________________________________ Nepomuk mailing list [email protected] https://mail.kde.org/mailman/listinfo/nepomuk
