|
|
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.
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]
Generated by: faure on ftp.kde.com on Wed Jun 20 13:26:37 2001, using kdoc 2.0a53. |