KServiceTypeFactory Class Reference
List of all members.Detailed Description
Definition at line 45 of file kservicetypefactory.h.
Public Member Functions | |
KServiceTypeFactory () | |
virtual | ~KServiceTypeFactory () |
virtual KSycocaEntry * | createEntry (const QString &, const char *) |
virtual KServiceType * | findServiceTypeByName (const QString &_name) |
QVariant::Type | findPropertyTypeByName (const QString &_name) |
KMimeType * | findFromPattern (const QString &_filename, QString *match=0) |
KMimeType::List | allMimeTypes () |
KServiceType::List | allServiceTypes () |
bool | checkMimeTypes () |
Static Public Member Functions | |
static KServiceTypeFactory * | self () |
Protected Member Functions | |
virtual KServiceType * | createEntry (int offset) |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
int | m_fastPatternOffset |
int | m_otherPatternOffset |
QMap< QString, int > | m_propertyTypeDict |
Constructor & Destructor Documentation
KServiceTypeFactory::KServiceTypeFactory | ( | ) |
Member Function Documentation
virtual KSycocaEntry* KServiceTypeFactory::createEntry | ( | const QString & | , | |
const char * | ||||
) | [inline, virtual] |
KServiceType * 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 80 of file kservicetypefactory.cpp.
QVariant::Type KServiceTypeFactory::findPropertyTypeByName | ( | const QString & | _name | ) |
Find a the property type of a named property.
Definition at line 98 of file kservicetypefactory.cpp.
Find a mimetype from a filename (using the pattern list).
- Parameters:
-
_filename filename to check. match if provided, returns the pattern that matched.
Definition at line 113 of file kservicetypefactory.cpp.
KMimeType::List KServiceTypeFactory::allMimeTypes | ( | ) |
- Returns:
- all mimetypes Slow and memory consuming, avoid using
Definition at line 214 of file kservicetypefactory.cpp.
KServiceType::List KServiceTypeFactory::allServiceTypes | ( | ) |
- Returns:
- all servicetypes Slow and memory consuming, avoid using
Definition at line 229 of file kservicetypefactory.cpp.
bool KServiceTypeFactory::checkMimeTypes | ( | ) |
- Returns:
- true if at least one mimetype is present Safety test
Definition at line 248 of file kservicetypefactory.cpp.
KServiceTypeFactory * KServiceTypeFactory::self | ( | ) | [static] |
- Returns:
- the unique servicetype factory, creating it if necessary
Definition at line 73 of file kservicetypefactory.cpp.
The documentation for this class was generated from the following files: