KDECore
KServiceTypeFactory Class Reference
#include <kservicetypefactory.h>

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
Definition at line 43 of file kservicetypefactory.h.
Constructor & Destructor Documentation
KServiceTypeFactory::KServiceTypeFactory | ( | ) |
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 96 of file kservicetypefactory.cpp.
KServiceType * KServiceTypeFactory::createEntry | ( | int | offset | ) | const [protected, virtual] |
Read an entry from the database.
Implements KSycocaFactory.
Definition at line 112 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 86 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 69 of file kservicetypefactory.cpp.
KServiceTypeFactory * KServiceTypeFactory::self | ( | ) | [static] |
- Returns:
- the unique servicetype factory, creating it if necessary
Definition at line 62 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 139 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: