org.kde.koala
public class KServiceType extends KSycocaEntry
See Also: KService
UNKNOWN: A service type is the generic notion for a mimetype, a type of service instead of a type of file.
Constructor Summary | |
---|---|
protected | KServiceType(Class dummy) |
KServiceType(String _fullpath, String _name, String _icon, String _comment)
Constructor. | |
KServiceType(String _fullpath)
Construct a service type and take all informations from a config file. | |
KServiceType(KDesktopFile config)
Construct a service type and take all informations from a deskop file. | |
KServiceType(QDataStream _str, int offset)
The stream must already be positionned at the correct offset |
Method Summary | |
---|---|
String | comment()
Returns the descriptive comment associated, if any. |
String | desktopEntryPath()
Returns the relative path to the desktop entry file responsible for
this servicetype.
|
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected void | finalize() Deletes the wrapped C++ instance |
String | icon()
Returns the icon associated with this service type. |
boolean | inherits(String servTypeName)
Checks whether this service type is or inherits from servTypeName. |
protected void | init(KDesktopFile config)
Returns a list of all the supported servicetypes. |
boolean | isDerived()
Checks whether this service type inherits another one. |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
boolean | isValid()
Checks whether the service type is valid. |
void | load(QDataStream arg1)
Load ourselves from the data stream. |
String | name()
Returns the name of this service type. |
String | parentServiceType()
If this service type inherits from another service type,
return the name of the parent. |
QVariant | property(String _name)
Returns the requested property. |
int | propertyDef(String _name)
Returns the type of the property with the given _name. |
ArrayList | propertyDefNames() |
ArrayList | propertyNames()
Returns the list of all properties of this service type. |
void | save(QDataStream arg1)
Save ourselves to the data stream. |
Parameters: _fullpath the path of the service type's desktop file _name the name of the service type _icon the icon name of the service type (can be null) _comment a comment (can be null)
UNKNOWN: Constructor.
Parameters: _fullpath path of the desktop file, set to "" if calling from a inherited constructor.
UNKNOWN: Construct a service type and take all informations from a config file.
Parameters: config the configuration file
UNKNOWN: Construct a service type and take all informations from a deskop file.
UNKNOWN:
Returns: the comment, or null
UNKNOWN: Returns the descriptive comment associated, if any.
Returns: the path of the desktop file
UNKNOWN: Returns the relative path to the desktop entry file responsible for this servicetype.
Returns: the name of the icon, can be null.
UNKNOWN: Returns the icon associated with this service type.
servTypeName.
Returns: true if this servicetype is or inherits from servTypeName
UNKNOWN: Checks whether this service type is or inherits from servTypeName.
Returns: the list of all services
UNKNOWN: Returns a list of all the supported servicetypes.
Returns: true if this service type inherits another one
See Also: KServiceType
UNKNOWN: Checks whether this service type inherits another one.
Returns: true if the service is valid (e.g. name is not empty)
UNKNOWN: Checks whether the service type is valid.
UNKNOWN:
Returns: the name of the service type
UNKNOWN: Returns the name of this service type.
Returns: the parent service type, or String. null if not set
See Also: KServiceType
UNKNOWN: If this service type inherits from another service type, return the name of the parent.
Parameters: _name the name of the property
Returns: the property, or invalid if not found
UNKNOWN: Returns the requested property.
_name.
Parameters: _name the name of the property
Returns: the property type, or null if not found
UNKNOWN: Returns the type of the property with the given _name.
Returns: the list of properties
UNKNOWN: Returns the list of all properties of this service type.
UNKNOWN: