class KServiceGroup |
|
KServiceGroup represents a group of service, for example
screensavers.
This class is typically used like this:
// Lookup screensaver group KServiceGroup.Ptr group = KServiceGroup.baseGroup("screensavers"); if (!group || !group->isValid()) return;Represents a group of services |
|
Construct a dummy servicegroup indexed with name.
name - the name of the service group |
|
Construct a service and take all information from a config file
_fullpath - full path to the config file _relpath - relative path to the config file |
|
Internal construct a service from a stream. The stream must already be positionned at the correct offset |
|
Internal Add a service to this group |
|
Returns true if we allow to inline menu. |
|
Returns the group for the given baseGroupName. Can return 0 if the directory (or the .directory file) was deleted. Returns the base group with the given name, or 0 if not available. |
|
Returns a non-empty string if the group is a special base group.
By default, "Settings/" is the kcontrol base group ("settings")
and "System/Screensavers/" is the screensavers base group ("screensavers").
This allows moving the groups without breaking those apps.
The base group is defined by the X-KDE-BaseGroup key in the .directory file. Returns the base group name, or null if no base group |
|
Returns the caption of this group. Returns the caption of this group |
|
Returns the total number of displayable services in this group and any of its subgroups. Returns the number of child services |
|
Returns the group of services that have X-KDE-ParentApp equal
to parent (siblings).
parent - the name of the service's parent Returns the services group |
|
Returns the comment about this service group. Returns the descriptive comment for the group, if there is one, or QString() if not set |
|
Returns a path to the .directory file describing this service group. The path is either absolute or relative to the "apps" resource. |
|
List of all Services and ServiceGroups within this
ServiceGroup.
sorted - true to sort items excludeNoDisplay - true to exclude items marked "NoDisplay" allowSeparators - true to allow separator items to be included sortByGenericName - true to sort GenericName+Name instead of Name+GenericName Returns the list of entries |
|
|
List of all Services and ServiceGroups within this
ServiceGroup.
sorted - true to sort items Returns the list of entried |
|
Returns the group with the given relative path.
relPath - the path of the service group Returns the group with the given relative path name. |
|
subgroups for this service group |
|
Returns the name of the icon associated with the group. Returns the name of the icon associated with the group, or QString() if not set |
|
Returns true to show an inline alias item into menu |
|
Returns inline limite value |
|
Internal Returns information related to the layout of services in this group. |
|
Returns true if the NoDisplay flag was set, i.e. if this group should be hidden from menus, while still being in ksycoca. Returns true to hide this service group, false to display it |
|
Returns the relative path of the service group. Returns the service group's relative path |
|
Returns the root service group. Returns the root service group |
|
entries of this service group |
|
|
|
|
Internal Sets information related to the layout of services in this group. |
|
|
|
Return true if we want to display empty menu entry Returns true to show this service group as menu entry is empty, false to hide it |
|
Returns true to show an inline header into menu |
|
Returns a list of untranslated generic names that should be be suppressed when showing this group. E.g. The group "Games/Arcade" might want to suppress the generic name "Arcade Game" since it's redundant in this particular context. |
options for groupEntries and serviceEntries
NoOptions | - 0x0 | - | ||
SortEntries | - 0x1 | - | ||
ExcludeNoDisplay | - 0x2 | - | ||
AllowSeparators | - 0x4 | - | ||
SortByGenericName | - 0x8 | - |