Missing KServiceType Info

David Faure faure at kde.org
Mon Feb 7 10:57:54 GMT 2005


On Sunday 06 February 2005 20:05, Ian Reinhart Geiser wrote:
> Greetings,
> 	I am trying to get a list of propties for a given service type using the 
> servicetype info from the KServiceType class.  But for the life of me I 
> cannot figure out where stuff like X-KDE-Library is defined. 
As I found out myself the hard way, and documented in the KTrader online doc, 
X-KDE-Library is a bit special because it is published as "Library" in the service
properties, and not "X-KDE-Library" like one would expect.

The answer to "where" is: kservice.cpp

> The other  
> question I  have is why do we bother adding custom values to some service 
> types?  
So that we know which type they have.

> Its very unclear how this operates since I would think that any KPart  
> should have an X-KDE-Library value, but its not defined.  
It's called Library.

> Do we add these buggers automagicly somewhere?  Do we need to update our service type files?
No and no :)

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list