|
|
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
KServiceTypeFactory ()
| KServiceTypeFactory |
Create factory
~KServiceTypeFactory ()
| ~KServiceTypeFactory |
[virtual]
KSycocaEntry * createEntry (const QString &, const char *)
| createEntry |
[virtual]
Not meant to be called at this level
Reimplemented from KSycocaFactory.
KServiceType * findServiceTypeByName (const QString &_name)
| findServiceTypeByName |
[virtual]
Find a service type in the database file (allocates it) Overloaded by KBuildServiceTypeFactory to return a memory one.
QVariant::Type findPropertyTypeByName (const QString &_name)
| findPropertyTypeByName |
Find a the property type of a named property.
KMimeType * findFromPattern (const QString &_filename)
| findFromPattern |
Find a mimetype from a filename (using the pattern list)
KMimeType::List allMimeTypes ()
| allMimeTypes |
Returns: all mimetypes Slow and memory consuming, avoid using
KServiceType::List allServiceTypes ()
| allServiceTypes |
Returns: all servicetypes Slow and memory consuming, avoid using
bool checkMimeTypes ()
| checkMimeTypes |
Returns: true if at least one mimetype is present Safety test
KServiceTypeFactory * self ()
| self |
[static]
Returns: the unique servicetype factory, creating it if necessary
KServiceType * createEntry (int offset)
| createEntry |
[protected virtual]
Reimplemented from KSycocaFactory.
int m_fastPatternOffset | m_fastPatternOffset |
[protected]
int m_otherPatternOffset | m_otherPatternOffset |
[protected]
QMap<QString,int> m_propertyTypeDict | m_propertyTypeDict |
[protected]
void virtual_hook ( int id, void* data )
| virtual_hook |
[protected virtual]
Reimplemented from KSycocaFactory.
Generated by: caleb on tcdevel on Tue Jan 28 12:54:15 2003, using kdoc $. |