KDECore
#include <kservicetypefactory.h>

Public Member Functions | |
KServiceTypeFactory () | |
virtual | ~KServiceTypeFactory () |
KServiceType::List | allServiceTypes () |
virtual KSycocaEntry * | createEntry (const QString &, const char *) const |
QVariant::Type | findPropertyTypeByName (const QString &_name) |
virtual KServiceType::Ptr | findServiceTypeByName (const QString &_name) |
![]() | |
virtual | ~KSycocaFactory () |
virtual void | addEntry (const KSycocaEntry::Ptr &newEntry) |
virtual KSycocaEntry::List | allEntries () const |
virtual KSycocaEntry * | createEntry (const QString &file, const char *resource) const =0 |
virtual KSycocaEntry * | createEntry (int offset) const =0 |
KSycocaEntryDict * | entryDict () |
virtual KSycocaFactoryId | factoryId () const =0 |
bool | isEmpty () const |
int | offset () const |
void | removeEntry (const QString &entryName) |
const KSycocaResourceList * | resourceList () const |
virtual void | save (QDataStream &str) |
virtual void | saveHeader (QDataStream &str) |
const KSycocaDict * | sycocaDict () const |
Static Public Member Functions | |
static KServiceTypeFactory * | self () |
Protected Member Functions | |
virtual KServiceType * | createEntry (int offset) const |
virtual void | virtual_hook (int id, void *data) |
![]() | |
KSycocaFactory (KSycocaFactoryId factory_id) | |
QDataStream * | stream () const |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
QMap< QString, int > | m_propertyTypeDict |
![]() | |
KSycocaEntryDict * | m_entryDict |
KSycocaResourceList * | m_resourceList |
Additional Inherited Members | |
![]() | |
enum | KSycocaFactoryId |
Detailed Description
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::KServiceTypeFactory | ( | ) |
Create factory.
Definition at line 30 of file kservicetypefactory.cpp.
◆ ~KServiceTypeFactory()
|
virtual |
Definition at line 56 of file kservicetypefactory.cpp.
Member Function Documentation
◆ allServiceTypes()
KServiceType::List KServiceTypeFactory::allServiceTypes | ( | ) |
- Returns
- all servicetypes Slow and memory consuming, avoid using
Definition at line 95 of file kservicetypefactory.cpp.
◆ createEntry() [1/2]
|
inlinevirtual |
Not meant to be called at this level.
Implements KSycocaFactory.
Definition at line 57 of file kservicetypefactory.h.
◆ createEntry() [2/2]
|
protectedvirtual |
Read an entry from the database.
Implements KSycocaFactory.
Definition at line 111 of file kservicetypefactory.cpp.
◆ findPropertyTypeByName()
QVariant::Type KServiceTypeFactory::findPropertyTypeByName | ( | const QString & | _name | ) |
Find a the property type of a named property.
Definition at line 85 of file kservicetypefactory.cpp.
◆ findServiceTypeByName()
|
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.
◆ self()
|
static |
- Returns
- the unique servicetype factory, creating it if necessary
Definition at line 63 of file kservicetypefactory.cpp.
◆ virtual_hook()
|
protectedvirtual |
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
◆ m_propertyTypeDict
Definition at line 86 of file kservicetypefactory.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.