kio
KServiceFactory Class Reference
#include <kservicefactory.h>
Public Member Functions | |
KService::List | allInitServices () |
KService::List | allServices () |
virtual KSycocaEntry * | createEntry (const QString &, const char *) |
KService * | findServiceByDesktopName (const QString &_name) |
KService * | findServiceByDesktopPath (const QString &_name) |
KService * | findServiceByMenuId (const QString &_menuId) |
KService * | findServiceByName (const QString &_name) |
KServiceFactory () | |
KService::List | offers (int serviceTypeOffset) |
virtual | ~KServiceFactory () |
Static Public Member Functions | |
static KServiceFactory * | self () |
Protected Member Functions | |
virtual KService * | createEntry (int offset) |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
int | m_initListOffset |
KSycocaDict * | m_menuIdDict |
int | m_menuIdDictOffset |
KSycocaDict * | m_nameDict |
int | m_nameDictOffset |
int | m_offerListOffset |
KSycocaDict * | m_relNameDict |
int | m_relNameDictOffset |
Detailed Description
For internal use only.
A sycoca factory for services (e.g. applications) It loads the services from parsing directories (e.g. applnk/) but can also create service from data streams or single config files
Definition at line 38 of file kservicefactory.h.
Constructor & Destructor Documentation
KServiceFactory::KServiceFactory | ( | ) |
KServiceFactory::~KServiceFactory | ( | ) | [virtual] |
Definition at line 74 of file kservicefactory.cpp.
Member Function Documentation
KService::List KServiceFactory::allInitServices | ( | ) |
- Returns:
- all services which have a "X-KDE-Init" line.
Definition at line 221 of file kservicefactory.cpp.
KService::List KServiceFactory::allServices | ( | ) |
- Returns:
- all services. Very memory consuming, avoid using.
Definition at line 206 of file kservicefactory.cpp.
KService * KServiceFactory::createEntry | ( | int | offset | ) | [protected, virtual] |
Definition at line 182 of file kservicefactory.cpp.
virtual KSycocaEntry* KServiceFactory::createEntry | ( | const QString & | , | |
const char * | ||||
) | [inline, virtual] |
Find a service (by desktop file name, e.g.
"konsole")
Definition at line 113 of file kservicefactory.cpp.
Find a service ( by desktop path, e.g.
"System/konsole.desktop")
Definition at line 136 of file kservicefactory.cpp.
Find a service ( by menu id, e.g.
"kde-konsole.desktop")
Definition at line 159 of file kservicefactory.cpp.
KService::List KServiceFactory::offers | ( | int | serviceTypeOffset | ) |
- Returns:
- the services supporting the given service type
Definition at line 250 of file kservicefactory.cpp.
KServiceFactory * KServiceFactory::self | ( | ) | [static] |
- Returns:
- the unique service factory, creating it if necessary
Definition at line 82 of file kservicefactory.cpp.
void KServiceFactory::virtual_hook | ( | int | id, | |
void * | data | |||
) | [protected, virtual] |
Definition at line 289 of file kservicefactory.cpp.
Member Data Documentation
int KServiceFactory::m_initListOffset [protected] |
Definition at line 97 of file kservicefactory.h.
KSycocaDict* KServiceFactory::m_menuIdDict [protected] |
Definition at line 102 of file kservicefactory.h.
int KServiceFactory::m_menuIdDictOffset [protected] |
Definition at line 103 of file kservicefactory.h.
KSycocaDict* KServiceFactory::m_nameDict [protected] |
Definition at line 98 of file kservicefactory.h.
int KServiceFactory::m_nameDictOffset [protected] |
Definition at line 99 of file kservicefactory.h.
int KServiceFactory::m_offerListOffset [protected] |
Definition at line 96 of file kservicefactory.h.
KSycocaDict* KServiceFactory::m_relNameDict [protected] |
Definition at line 100 of file kservicefactory.h.
int KServiceFactory::m_relNameDictOffset [protected] |
Definition at line 101 of file kservicefactory.h.
The documentation for this class was generated from the following files: