#include <kservicegroup.h>
Inheritance diagram for KServiceGroup:

Public Types | |
| typedef KSharedPtr< KServiceGroup > | Ptr |
| typedef QValueList< SPtr > | List |
Public Methods | |
| KServiceGroup (const QString &name) | |
| KServiceGroup (const QString &_fullpath, const QString &_relpath) | |
| bool | isValid () const |
| virtual QString | name () const |
| QString | caption () const |
| QString | icon () const |
| QString | comment () const |
| int | childCount () |
| bool | noDisplay () const |
| virtual void | load (QDataStream &) |
| virtual void | save (QDataStream &) |
| virtual List | entries (bool sorted, bool excludeNoDisplay) |
| virtual List | entries (bool sorted=false) |
| QString | baseGroupName () const |
Static Public Methods | |
| Ptr | baseGroup (const QString &baseGroupName) |
| Ptr | childGroup (const QString &parent) |
Protected Methods | |
| virtual void | virtual_hook (int id, void *data) |
// 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
", s->name().latin1()); } else if (p->isType(KST_KServiceGroup)) { KServiceGroup *g = static_cast<KServiceGroup *>(p); // Sub group ... } }
Definition at line 63 of file kservicegroup.h.
|
|
Construct a dummy servicegroup indexed with
|
|
||||||||||||
|
Construct a service and take all informations from a config file
|
|
|
|
|
|
Definition at line 165 of file kservicegroup.h. |
|
|
Definition at line 108 of file kservicegroup.h. |
|
|
|
|
|
|
|
|
Definition at line 118 of file kservicegroup.h. |
|
|
As above with excludeNoDisplay true. |
|
||||||||||||
|
List of all Services and ServiceGroups within this ServiceGroup
|
|
|
Definition at line 113 of file kservicegroup.h. |
|
|
Implements KSycocaEntry. Definition at line 97 of file kservicegroup.h. |
|
|
Name used for indexing. Implements KSycocaEntry. Definition at line 102 of file kservicegroup.h. References KSycocaEntry::entryPath(). |
|
|
|
1.2.18