|
|
This class is typically used like this:
// 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 = static_cast<KService *>(p); printf("Name = %s\n", s->name().latin1()); } else if (p->isType(KST_KServiceGroup)) { KServiceGroup *g = static_cast<KServiceGroup *>(p); // Sub group ... } }
| typedef KSharedPtr<KServiceGroup> |
| typedef KSharedPtr<KSycocaEntry> |
| typedef QValueList<SPtr> |
| |
Construct a service and take all informations from a config file
Parameters:
| _fullpath | full path to the config file |
| _relpath | relative path to the config file |
| |
The stream must already be positionned at the correct offset
| |
[virtual]
| bool |
[const]
Returns: true
Reimplemented from KSycocaEntry.
| QString |
[const virtual]
Name used for indexing.
Reimplemented from KSycocaEntry.
| QString |
[const virtual]
| QString |
[const]
Returns: the caption of this group
| QString |
[const]
Returns: the icon associated with the group.
| QString |
[const]
Returns: the descriptive comment for the group, if there is one.
| void |
[virtual]
Load the service from a stream.
Reimplemented from KSycocaEntry.
| void |
[virtual]
Save the service to a stream.
Reimplemented from KSycocaEntry.
| List |
[virtual]
List of all Services and ServiceGroups within this ServiceGroup
| QString |
[const]
The base group is defined by the X-KDE-BaseGroup key in the .directory file.
Returns: 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.
| Ptr |
[static]
Returns: the group for the given baseGroupName Can return 0L if the directory (or the .directory file) was deleted.
| Ptr |
[static]
| Ptr |
[static]
| void |
[protected: ]
Add a service to this group
| QString |
[protected: ]
| QString |
[protected: ]
| QString |
[protected: ]
| List |
[protected: ]
| bool |
[protected: ]
| QString |
[protected: ]
| Generated by: masato@ss10 on Wed Apr 11 11:58:49 2001, using kdoc 2.0a48. |