kio
KServiceTypeFactory Class Reference
#include <kservicetypefactory.h>
Public Member Functions | |
KMimeType::List | allMimeTypes () |
KServiceType::List | allServiceTypes () |
bool | checkMimeTypes () |
virtual KSycocaEntry * | createEntry (const QString &, const char *) |
KMimeType * | findFromPattern (const QString &_filename, QString *match=0) |
QVariant::Type | findPropertyTypeByName (const QString &_name) |
virtual KServiceType * | findServiceTypeByName (const QString &_name) |
KServiceTypeFactory () | |
virtual | ~KServiceTypeFactory () |
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 |
Detailed Description
For internal use only.
A sycoca factory for service types (e.g. mimetypes) It loads the service types from parsing directories (e.g. mimelnk/) but can also create service types from data streams or single config files
Definition at line 45 of file kservicetypefactory.h.
Constructor & Destructor Documentation
KServiceTypeFactory::KServiceTypeFactory | ( | ) |
KServiceTypeFactory::~KServiceTypeFactory | ( | ) | [virtual] |
Definition at line 67 of file kservicetypefactory.cpp.
Member Function Documentation
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.
KServiceType * KServiceTypeFactory::createEntry | ( | int | offset | ) | [protected, virtual] |
Definition at line 257 of file kservicetypefactory.cpp.
virtual KSycocaEntry* KServiceTypeFactory::createEntry | ( | const QString & | , | |
const char * | ||||
) | [inline, virtual] |
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.
QVariant::Type KServiceTypeFactory::findPropertyTypeByName | ( | const QString & | _name | ) |
Find a the property type of a named property.
Definition at line 98 of file kservicetypefactory.cpp.
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.
KServiceTypeFactory * KServiceTypeFactory::self | ( | ) | [static] |
- Returns:
- the unique servicetype factory, creating it if necessary
Definition at line 73 of file kservicetypefactory.cpp.
void KServiceTypeFactory::virtual_hook | ( | int | id, | |
void * | data | |||
) | [protected, virtual] |
Definition at line 297 of file kservicetypefactory.cpp.
Member Data Documentation
int KServiceTypeFactory::m_fastPatternOffset [protected] |
Definition at line 110 of file kservicetypefactory.h.
int KServiceTypeFactory::m_otherPatternOffset [protected] |
Definition at line 111 of file kservicetypefactory.h.
QMap<QString,int> KServiceTypeFactory::m_propertyTypeDict [protected] |
Definition at line 112 of file kservicetypefactory.h.
The documentation for this class was generated from the following files: