|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kde.koala.KShared
org.kde.koala.KSycocaEntry
org.kde.koala.KServiceType
public class KServiceType
A service type is the generic notion for a mimetype, a type of service instead of a type of file. For instance, KOfficeFilter is a service type. It is associated to services according to the user profile (kuserprofile.h). Service types are stored as desktop files in $KDEHOME/share/servicetypes.
KService
Constructor Summary | |
---|---|
protected |
KServiceType(java.lang.Class dummy)
|
|
KServiceType(KDesktopFile config)
Construct a service type and take all informations from a deskop file. |
|
KServiceType(org.kde.qt.QDataStream _str,
int offset)
The stream must already be positionned at the correct offset |
|
KServiceType(java.lang.String _fullpath)
Construct a service type and take all informations from a config file. |
|
KServiceType(java.lang.String _fullpath,
java.lang.String _name,
java.lang.String _icon,
java.lang.String _comment)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
comment()
Returns the descriptive comment associated, if any. |
java.lang.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 |
java.lang.String |
icon()
Returns the icon associated with this service type. |
boolean |
inherits(java.lang.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(org.kde.qt.QDataStream arg1)
Load ourselves from the data stream. |
java.lang.String |
name()
Returns the name of this service type. |
java.lang.String |
parentServiceType()
If this service type inherits from another service type, return the name of the parent. |
org.kde.qt.QVariant |
property(java.lang.String _name)
Returns the requested property. |
int |
propertyDef(java.lang.String _name)
Returns the type of the property with the given _name. |
java.util.ArrayList |
propertyDefNames()
|
java.util.ArrayList |
propertyNames()
Returns the list of all properties of this service type. |
void |
save(org.kde.qt.QDataStream arg1)
Save ourselves to the data stream. |
Methods inherited from class org.kde.koala.KSycocaEntry |
---|
entryPath, isDeleted, isType, offset, read, read, sycocaType |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected KServiceType(java.lang.Class dummy)
public KServiceType(java.lang.String _fullpath, java.lang.String _name, java.lang.String _icon, java.lang.String _comment)
_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)public KServiceType(java.lang.String _fullpath)
_fullpath
- path of the desktop file, set to "" if calling from
a inherited constructor.public KServiceType(KDesktopFile config)
config
- the configuration filepublic KServiceType(org.kde.qt.QDataStream _str, int offset)
Method Detail |
---|
public java.lang.String icon()
public java.lang.String comment()
public java.lang.String name()
name
in class KSycocaEntry
public java.lang.String desktopEntryPath()
public boolean isDerived()
parentServiceType()
public java.lang.String parentServiceType()
isDerived()
public boolean inherits(java.lang.String servTypeName)
servTypeName.
servTypeName
public org.kde.qt.QVariant property(java.lang.String _name)
_name
- the name of the property
public java.util.ArrayList propertyNames()
public boolean isValid()
isValid
in class KSycocaEntry
public int propertyDef(java.lang.String _name)
_name.
_name
- the name of the property
public java.util.ArrayList propertyDefNames()
public void save(org.kde.qt.QDataStream arg1)
save
in class KSycocaEntry
public void load(org.kde.qt.QDataStream arg1)
load
in class KSycocaEntry
protected void init(KDesktopFile config)
protected void finalize() throws java.lang.InternalError
finalize
in class java.lang.Object
java.lang.InternalError
public void dispose()
public boolean isDisposed()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |