• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDECore

KServiceTypeFactory Class Reference

#include <kservicetypefactory.h>

Inheritance diagram for KServiceTypeFactory:
KSycocaFactory

List of all members.

Public Member Functions

KServiceType::List allServiceTypes ()
virtual KSycocaEntry * createEntry (const QString &, const char *) const
QVariant::Type findPropertyTypeByName (const QString &_name)
virtual KServiceType::Ptr findServiceTypeByName (const QString &_name)
 KServiceTypeFactory ()
virtual ~KServiceTypeFactory ()

Static Public Member Functions

static KServiceTypeFactory * self ()

Protected Member Functions

virtual KServiceType * createEntry (int offset) const
virtual void virtual_hook (int id, void *data)

Protected Attributes

QMap< QString, int > m_propertyTypeDict

Detailed Description

For internal use only.

A sycoca factory for service types It loads the service types from parsing directories (e.g. servicetypes/) but can also create service types from data streams or single config files

See also:
KServiceType

Exported for kbuildsycoca, but not installed.

Definition at line 43 of file kservicetypefactory.h.


Constructor & Destructor Documentation

KServiceTypeFactory::KServiceTypeFactory (  ) 

Create factory.

Definition at line 30 of file kservicetypefactory.cpp.

KServiceTypeFactory::~KServiceTypeFactory (  )  [virtual]

Definition at line 56 of file kservicetypefactory.cpp.


Member Function Documentation

KServiceType::List KServiceTypeFactory::allServiceTypes (  ) 
Returns:
all servicetypes Slow and memory consuming, avoid using

Definition at line 95 of file kservicetypefactory.cpp.

KServiceType * KServiceTypeFactory::createEntry ( int  offset  )  const [protected, virtual]

Read an entry from the database.

Implements KSycocaFactory.

Definition at line 111 of file kservicetypefactory.cpp.

virtual KSycocaEntry* KServiceTypeFactory::createEntry ( const QString &  ,
const char *   
) const [inline, virtual]

Not meant to be called at this level.

Implements KSycocaFactory.

Definition at line 57 of file kservicetypefactory.h.

QVariant::Type KServiceTypeFactory::findPropertyTypeByName ( const QString &  _name  ) 

Find a the property type of a named property.

Definition at line 85 of file kservicetypefactory.cpp.

KServiceType::Ptr KServiceTypeFactory::findServiceTypeByName ( const QString &  _name  )  [virtual]

Find a service type in the database file (allocates it) Overloaded by KBuildServiceTypeFactory to return a memory one.

Definition at line 68 of file kservicetypefactory.cpp.

KServiceTypeFactory * KServiceTypeFactory::self (  )  [static]
Returns:
the unique servicetype factory, creating it if necessary

Definition at line 63 of file kservicetypefactory.cpp.

void KServiceTypeFactory::virtual_hook ( int  id,
void *  data 
) [protected, virtual]

Virtual hook, used to add new "virtual" functions while maintaining binary compatibility.

Unused in this class.

Reimplemented from KSycocaFactory.

Definition at line 136 of file kservicetypefactory.cpp.


Member Data Documentation

QMap<QString,int> KServiceTypeFactory::m_propertyTypeDict [protected]

Definition at line 86 of file kservicetypefactory.h.


The documentation for this class was generated from the following files:
  • kservicetypefactory.h
  • kservicetypefactory.cpp

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal