KServiceGroup Class Reference
This class is typically used like this:. More...
#include <kservicegroup.h>
Inheritance diagram for KServiceGroup:

Public Methods | |
| KServiceGroup (const QString &name) | |
Construct a dummy servicegroup indexed with name
| |
| KServiceGroup (const QString &_fullpath, const QString &_relpath) | |
| Construct a service and take all informations from a config file. | |
| bool | isValid () const |
| virtual QString | name () const |
| Name used for indexing. | |
| QString | caption () const |
| QString | icon () const |
| QString | comment () const |
| int | childCount () |
| bool | noDisplay () const |
| virtual List | entries (bool sorted, bool excludeNoDisplay) |
| List of all Services and ServiceGroups within this ServiceGroup. | |
| virtual List | entries (bool sorted=false) |
| As above with excludeNoDisplay true. | |
| QString | baseGroupName () const |
Static Public Methods | |
| Ptr | baseGroup (const QString &baseGroupName) |
| Ptr | childGroup (const QString &parent) |
Detailed Description
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
", 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.
Constructor & Destructor Documentation
|
|
Construct a dummy servicegroup indexed with
Definition at line 40 of file kservicegroup.cpp. |
|
||||||||||||
|
Construct a service and take all informations from a config file.
Definition at line 47 of file kservicegroup.cpp. References QString::findRev(), QString::isEmpty(), QString::left(), QString::length(), QString::mid(), and QString::right(). |
Member Function Documentation
|
|
Definition at line 97 of file kservicegroup.h. |
|
|
Name used for indexing.
Definition at line 102 of file kservicegroup.h. References KSycocaEntry::entryPath(). Referenced by entries(). |
|
|
Definition at line 108 of file kservicegroup.h. |
|
|
Definition at line 113 of file kservicegroup.h. |
|
|
Definition at line 118 of file kservicegroup.h. |
|
|
Definition at line 93 of file kservicegroup.cpp. References QValueList< SPtr >::begin(), QValueList< SPtr >::end(), and KService::noDisplay(). |
|
|
Definition at line 120 of file kservicegroup.cpp. Referenced by entries(). |
|
||||||||||||
|
List of all Services and ServiceGroups within this ServiceGroup.
Definition at line 202 of file kservicegroup.cpp. References QValueList< SPtr >::append(), QValueList< SPtr >::begin(), QValueList< SPtr >::end(), QString::findRev(), QString::fromUtf8(), KSortableValueList< T, Key >::insert(), KStdAccel::key(), QString::length(), QString::local8Bit(), m_serviceList, QString::mid(), KSycocaEntry::name(), name(), KService::noDisplay(), noDisplay(), QValueList< SPtr >::remove(), QCString::resize(), KSortableValueList< T, Key >::sort(), and QString::truncate(). Referenced by entries(). |
|
|
As above with excludeNoDisplay true.
Definition at line 196 of file kservicegroup.cpp. References entries(). |
|
|
Definition at line 165 of file kservicegroup.h. |
|
|
Definition at line 331 of file kservicegroup.cpp. |
|
|
Definition at line 350 of file kservicegroup.cpp. |
The documentation for this class was generated from the following files:
