KDECore
#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) |
| Public Member Functions inherited from KSycocaFactory | |
| virtual | ~KSycocaFactory () |
| virtual void | addEntry (const KSycocaEntry::Ptr &newEntry) |
| virtual KSycocaEntry::List | allEntries () const |
| KSycocaEntryDict * | entryDict () |
| virtual KSycocaFactoryId | factoryId () const =0 |
| bool | isEmpty () const |
| int | offset () const |
| void | removeEntry (const QString &entryName) |
| const KSycocaResourceList * | resourceList () const |
| virtual void | save (QDataStream &str) |
| virtual void | saveHeader (QDataStream &str) |
| const KSycocaDict * | sycocaDict () const |
Static Public Member Functions | |
| static KMimeTypeFactory * | self () |
Protected Member Functions | |
| virtual MimeTypeEntry * | createEntry (int offset) const |
| Protected Member Functions inherited from KSycocaFactory | |
| KSycocaFactory (KSycocaFactoryId factory_id) | |
| QDataStream * | stream () const |
| virtual void | virtual_hook (int id, void *data) |
Additional Inherited Members | |
| Protected Attributes inherited from KSycocaFactory | |
| KSycocaEntryDict * | m_entryDict |
| KSycocaResourceList * | m_resourceList |
| Related Symbols inherited from KSycocaFactory | |
| enum | KSycocaFactoryId |
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::KMimeTypeFactory | ( | ) |
Create factory.
Definition at line 29 of file kmimetypefactory.cpp.
◆ ~KMimeTypeFactory()
|
virtual |
Definition at line 35 of file kmimetypefactory.cpp.
Member Function Documentation
◆ allMimeTypes()
| QStringList KMimeTypeFactory::allMimeTypes | ( | ) |
- Returns
- all mimetypes Slow and memory consuming, avoid using
Definition at line 103 of file kmimetypefactory.cpp.
◆ createEntry() [1/2]
|
inlinevirtual |
Not meant to be called at this level.
Implements KSycocaFactory.
Definition at line 53 of file kmimetypefactory.h.
◆ createEntry() [2/2]
|
protectedvirtual |
Read an entry from the database.
Implements KSycocaFactory.
Definition at line 72 of file kmimetypefactory.cpp.
◆ entryOffset()
| int KMimeTypeFactory::entryOffset | ( | const QString & | mimeTypeName | ) |
Returns the possible offset for a given mimetype entry.
Definition at line 46 of file kmimetypefactory.cpp.
◆ self()
|
static |
- Returns
- the unique mimetype factory, creating it if necessary
Definition at line 41 of file kmimetypefactory.cpp.
◆ serviceOffersOffset()
| 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:
Documentation copyright © 1996-2026 The KDE developers.
Generated on by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.