class KServiceType |
|
|
A service type is, well, a type of service, where a service is an application or plugin. For instance, "KOfficeFilter", which is the type of all koffice filters, is a service type. In order to discover services of a given type, using KServiceTypeTrader. Service types are stored as desktop files in $KDEDIR/share/servicetypes. See also KService, KServiceTypeTrader |
|
Construct a service type and take all information from a desktop file. config - the configuration file |
|
Internal construct a service from a stream. The stream must already be positionned at the correct offset |
|
Internal construct a service from a stream. The stream must already be positionned at the correct offset |
|
Constructor for KMimeType. _fullpath - the path of the service type's desktop file _name - the name of the service type _comment - a comment (can be empty) |
|
|
Returns a list of all the supported servicetypes. Useful for showing the list of available servicetypes in a listbox, for example. More memory consuming than the ones above, don't use unless really necessary. Returns the list of all services |
|
Returns the descriptive comment associated, if any. Returns the comment, or QString() |
|
Returns the relative path to the desktop entry file responsible for this servicetype. For instance inode/directory.desktop, or kpart.desktop Returns the path of the desktop file |
|
Checks whether this service type is or inherits from servTypeName. Returns true if this servicetype is or inherits from servTypeName |
|
Checks whether this service type inherits another one. Returns true if this service type inherits another one See also parentServiceType() |
|
Checks whether the service type is valid. Returns true if the service is valid (e.g. name is not empty) |
|
Internal Load ourselves from the data stream. |
|
Returns the name of this service type. Returns the name of the service type |
|
If this service type inherits from another service type, return the name of the parent. Returns the parent service type, or QString. null if not set See also isDerived() |
|
Internal Pointer to parent service type |
|
Returns the requested property. Some often used properties have convenience access functions like name(), comment().
_name - the name of the property Returns the property, or invalid if not found |
|
Returns the type of the property definition with the given _name.
_name - the name of the property Returns the property type, or null if not found See also propertyDefNames |
|
Returns the list of all property definitions for this servicetype. Those are properties of the services implementing this servicetype. For instance, [PropertyDef.X-KDevelop-Version] Type=intmeans that all kdevelop plugins have in their .desktop file a line like X-KDevelop-Version= |
|
Internal ( for KBuildServiceTypeFactory ) |
|
Returns the list of all properties of this service type. Properties, apart from Name, and Comment, are defined in the servicetype .desktop file using [Property.MyPropertyName] Type= Returns the list of properties |
|
Internal Save ourselves to the data stream. |
|
Internal |
|
Returns a pointer to the servicetype '_name' or 0L if the service type is unknown. VERY IMPORTANT : don't store the result in a KServiceType * ! _name - the name of the service type to search Returns the pointer to the service type, or 0 |
|
Internal only used by kbuildsycoca Register offset into offers list |