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) |
Public Member Functions inherited from KSycocaFactory | |
virtual | ~KSycocaFactory () |
virtual void | addEntry (const KSycocaEntry::Ptr &newEntry) |
virtual KSycocaEntry::List | allEntries () const |
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) |
Protected Member Functions inherited from KSycocaFactory | |
KSycocaFactory (KSycocaFactoryId factory_id) | |
QDataStream * | stream () const |
Protected Attributes | |
QMap< QString, int > | m_propertyTypeDict |
Protected Attributes inherited from KSycocaFactory | |
KSycocaEntryDict * | m_entryDict |
KSycocaResourceList * | m_resourceList |
Additional Inherited Members | |
Related Functions inherited from KSycocaFactory | |
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 | ( | ) |
Create factory.
Definition at line 30 of file kservicetypefactory.cpp.
|
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.
|
inlinevirtual |
Not meant to be called at this level.
Implements KSycocaFactory.
Definition at line 57 of file kservicetypefactory.h.
|
protectedvirtual |
Read an entry from the database.
Implements KSycocaFactory.
Definition at line 111 of file kservicetypefactory.cpp.
QVariant::Type KServiceTypeFactory::findPropertyTypeByName | ( | const QString & | _name | ) |
Find a the property type of a named property.
Definition at line 85 of file kservicetypefactory.cpp.
|
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.
|
static |
- Returns
- the unique servicetype factory, creating it if necessary
Definition at line 63 of file kservicetypefactory.cpp.
|
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
Definition at line 86 of file kservicetypefactory.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.