org.kde.koala
public class KServiceGroup extends KSycocaEntry
// Lookup screensaver group KServiceGroup.Ptr group = KServiceGroup.baseGroup("screensavers"); if (!group || !group.isValid()) return; KServiceGroup.List list = group.entries(); // Iterate over all entries in the group for( KServiceGroup.List.ConstIterator it = list.begin(); it != list.end(); it++) { KSycocaEntry p = (it); if (p.isType(KST_KService)) { KService s = (KService)(p); printf("Name = %s\n", s.name().latin1()); } else if (p.isType(KST_KServiceGroup)) { KServiceGroup g = (KServiceGroup)(p); // Sub group ... } }
UNKNOWN: Represents a group of services.
Constructor Summary | |
---|---|
protected | KServiceGroup(Class dummy) |
KServiceGroup(String name)
Construct a dummy servicegroup indexed with name. | |
KServiceGroup(String _fullpath, String _relpath)
Construct a service and take all informations from a config file | |
KServiceGroup(QDataStream _str, int offset, boolean deep)
The stream must already be positionned at the correct offset |
Method Summary | |
---|---|
protected void | addEntry(KSycocaEntry entry)
Add a service to this group |
boolean | allowInline() |
String | baseGroupName()
Returns a non-empty string if the group is a special base group.
|
String | caption()
Returns the caption of this group. |
int | childCount()
Returns the total number of displayable services in this group and
any of its subgroups. |
String | comment()
Returns the comment about this service group. |
String | directoryEntryPath()
Returns a path to the .directory file describing this service group.
|
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected void | finalize() Deletes the wrapped C++ instance |
String | icon()
Returns the name of the icon associated with the group. |
boolean | inlineAlias() |
int | inlineValue() |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
boolean | isValid()
Checks whether the entry is valid, returns always true. |
ArrayList | layoutInfo()
Returns information related to the layout of services in this group. |
void | load(QDataStream arg1)
Load the service from a stream. |
String | name()
Name used for indexing. |
boolean | noDisplay()
Returns true if the NoDisplay flag was set, i.e. if this
group should be hidden from menus, while still being in ksycoca. |
void | parseAttribute(String item, boolean showEmptyMenu, boolean showInline, boolean showInlineHeader, boolean showInlineAlias, int[] inlineValue)
This function parse attributes into menu |
String | relPath()
Returns the relative path of the service group. |
void | save(QDataStream arg1)
Save the service to a stream. |
void | setAllowInline(boolean _b) |
void | setInlineAlias(boolean _b) |
void | setInlineValue(int _val) |
void | setLayoutInfo(String[] layout)
Sets information related to the layout of services in this group. |
void | setShowEmptyMenu(boolean b) |
void | setShowInlineHeader(boolean _b) |
boolean | showEmptyMenu()
Return true if we want to display empty menu entry |
boolean | showInlineHeader() |
ArrayList | suppressGenericNames()
Returns a list of untranslated generic names that should be
be supressed when showing this group.
|
name.
Parameters: name the name of the service group
UNKNOWN: Construct a dummy servicegroup indexed with name.
Parameters: _fullpath full path to the config file _relpath relative path to the config file
UNKNOWN: Construct a service and take all informations from a config file
UNKNOWN:
UNKNOWN:
Returns: true if we allow to inline menu.
UNKNOWN:
Returns: the base group name, or null if no base group
UNKNOWN: Returns a non-empty string if the group is a special base group.
Returns: the caption of this group
UNKNOWN: Returns the caption of this group.
Returns: the number of child services
UNKNOWN: Returns the total number of displayable services in this group and any of its subgroups.
Returns: the descriptive comment for the group, if there is one, or null if not set
UNKNOWN: Returns the comment about this service group.
UNKNOWN: Returns a path to the .
Returns: the name of the icon associated with the group, or null if not set
UNKNOWN: Returns the name of the icon associated with the group.
Returns: true to show an inline alias item into menu
UNKNOWN:
Returns: inline limite value
UNKNOWN:
Returns: true
UNKNOWN: Checks whether the entry is valid, returns always true.
UNKNOWN:
UNKNOWN:
Returns: the service group's name
UNKNOWN: Name used for indexing.
Returns: true to hide this service group, false to display it
UNKNOWN: Returns true if the NoDisplay flag was set, i.
UNKNOWN: This function parse attributes into menu
Returns: the service group's relative path
UNKNOWN: Returns the relative path of the service group.
UNKNOWN:
UNKNOWN:
Returns: true to show this service group as menu entry is empty, false to hide it
UNKNOWN: Return true if we want to display empty menu entry
Returns: true to show an inline header into menu
UNKNOWN:
UNKNOWN: Returns a list of untranslated generic names that should be be supressed when showing this group.