KMimeTypeFactory Class Reference
#include <kmimetypefactory.h>

Classes | |
| class | MimeTypeEntry |
Public Member Functions | |
| KMimeTypeFactory () | |
| virtual | ~KMimeTypeFactory () |
| QStringList | allMimeTypes () |
| virtual KSycocaEntry * | createEntry (const QString &, const char *) const |
| int | entryOffset (const QString &mimeTypeName) |
| int | serviceOffersOffset (const QString &mimeTypeName) |
Static Public Member Functions | |
| static KMimeTypeFactory * | self () |
Protected Member Functions | |
| virtual MimeTypeEntry * | createEntry (int offset) const |
Detailed Description
- this header is not installed
A sycoca factory for mimetype entries Since KDE 4.6, this is only used to point to the "service offers" in ksycoca for each mimetype.
- See also:
- KMimeType
Definition at line 39 of file kmimetypefactory.h.
Constructor & Destructor Documentation
| KMimeTypeFactory::KMimeTypeFactory | ( | ) |
Create factory.
Definition at line 29 of file kmimetypefactory.cpp.
| KMimeTypeFactory::~KMimeTypeFactory | ( | ) | [virtual] |
Definition at line 35 of file kmimetypefactory.cpp.
Member Function Documentation
| QStringList KMimeTypeFactory::allMimeTypes | ( | ) |
- Returns:
- all mimetypes Slow and memory consuming, avoid using
Definition at line 103 of file kmimetypefactory.cpp.
| virtual KSycocaEntry* KMimeTypeFactory::createEntry | ( | const QString & | , |
| const char * | |||
| ) | const [inline, virtual] |
Not meant to be called at this level.
Implements KSycocaFactory.
Definition at line 53 of file kmimetypefactory.h.
| KMimeTypeFactory::MimeTypeEntry * KMimeTypeFactory::createEntry | ( | int | offset | ) | const [protected, virtual] |
Read an entry from the database.
Implements KSycocaFactory.
Definition at line 72 of file kmimetypefactory.cpp.
| int KMimeTypeFactory::entryOffset | ( | const QString & | mimeTypeName | ) |
Returns the possible offset for a given mimetype entry.
Definition at line 46 of file kmimetypefactory.cpp.
| KMimeTypeFactory * KMimeTypeFactory::self | ( | ) | [static] |
- Returns:
- the unique mimetype factory, creating it if necessary
Definition at line 41 of file kmimetypefactory.cpp.
| int KMimeTypeFactory::serviceOffersOffset | ( | const QString & | mimeTypeName | ) |
Returns the offset into the service offers for a given mimetype.
Definition at line 55 of file kmimetypefactory.cpp.
The documentation for this class was generated from the following files:
KDE 4.6 API Reference