class KServiceFactory

More...

Internal Use Only
Definition#include <kservicefactory.h>
InheritsKSycocaFactory (kdecore) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods

Protected Methods

Protected Members


Detailed Description

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

 KServiceFactory ()

KServiceFactory

Create factory

 ~KServiceFactory ()

~KServiceFactory

[virtual]

KSycocaEntrycreateEntry (const QString &, const char *)

createEntry

[virtual]

Construct a KService from a config file.

Reimplemented from KSycocaFactory.

KService *  findServiceByName ( const QString &_name )

findServiceByName

Find a service (by name, e.g. "Terminal")

KService *  findServiceByDesktopName ( const QString &_name )

findServiceByDesktopName

Find a service (by desktop file name, e.g. "konsole")

KService *  findServiceByDesktopPath ( const QString &_name )

findServiceByDesktopPath

Find a service ( by desktop path, e.g. "System/konsole.desktop")

KService::List  offers ( int serviceTypeOffset )

offers

Returns: the services supporting the given service type

KService::List  allServices ()

allServices

Returns: all services. Very memory consuming, avoid using.

KService::List  allInitServices ()

allInitServices

Returns: all services which have a "X-KDE-Init" line.

KServiceFactory *  self ()

self

[static]

Returns: the unique service factory, creating it if necessary

KService *  createEntry (int offset)

createEntry

[protected virtual]

Reimplemented from KSycocaFactory.

int m_offerListOffset

m_offerListOffset

[protected]

int m_initListOffset

m_initListOffset

[protected]

KSycocaDict * m_nameDict

m_nameDict

[protected]

int m_nameDictOffset

m_nameDictOffset

[protected]

KSycocaDict * m_relNameDict

m_relNameDict

[protected]

int m_relNameDictOffset

m_relNameDictOffset

[protected]

void  virtual_hook ( int id, void* data )

virtual_hook

[protected virtual]

Reimplemented from KSycocaFactory.


Generated by: caleb on tcdevel on Tue Jan 28 12:54:15 2003, using kdoc $.