KDED
#include <kbuildmimetypefactory.h>
Public Member Functions | |
KBuildMimeTypeFactory () | |
virtual | ~KBuildMimeTypeFactory () |
virtual KSycocaEntry::List | allEntries () const |
virtual KSycocaEntry * | createEntry (const QString &file, const char *resource) const |
virtual MimeTypeEntry * | createEntry (int) const |
void | createFakeMimeType (const QString &name) |
MimeTypeEntry::Ptr | findMimeTypeEntryByName (const QString &_name, KMimeType::FindByNameOption options=KMimeType::DontResolveAlias) |
virtual void | save (QDataStream &str) |
virtual void | saveHeader (QDataStream &str) |
Public Member Functions inherited from KMimeTypeFactory | |
KMimeTypeFactory () | |
virtual | ~KMimeTypeFactory () |
virtual | ~KSycocaFactory () |
virtual void | addEntry (const KSycocaEntry::Ptr &newEntry) |
QStringList | allMimeTypes () |
KSycocaEntryDict * | entryDict () |
int | entryOffset (const QString &mimeTypeName) |
virtual KSycocaFactoryId | factoryId () const =0 |
bool | isEmpty () const |
int | offset () const |
void | removeEntry (const QString &entryName) |
const KSycocaResourceList * | resourceList () const |
int | serviceOffersOffset (const QString &mimeTypeName) |
const KSycocaDict * | sycocaDict () const |
Static Public Member Functions | |
static QStringList | resourceTypes () |
Static Public Member Functions inherited from KMimeTypeFactory | |
static KMimeTypeFactory * | self () |
Additional Inherited Members | |
Public Types inherited from KMimeTypeFactory | |
enum | KSycocaFactoryId |
Protected Member Functions inherited from KMimeTypeFactory | |
KSycocaFactory (KSycocaFactoryId factory_id) | |
QDataStream * | stream () const |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes inherited from KMimeTypeFactory | |
KSycocaEntryDict * | m_entryDict |
KSycocaResourceList * | m_resourceList |
Detailed Description
Mime-type factory for building ksycoca.
Definition at line 32 of file kbuildmimetypefactory.h.
Constructor & Destructor Documentation
KBuildMimeTypeFactory::KBuildMimeTypeFactory | ( | ) |
Create factory.
Definition at line 33 of file kbuildmimetypefactory.cpp.
|
virtual |
Definition at line 48 of file kbuildmimetypefactory.cpp.
Member Function Documentation
|
virtual |
Reimplemented from KMimeTypeFactory.
Definition at line 67 of file kbuildmimetypefactory.cpp.
|
virtual |
Construct a KMimeType from a config file.
Reimplemented from KMimeTypeFactory.
Definition at line 78 of file kbuildmimetypefactory.cpp.
|
inlinevirtual |
Reimplemented from KMimeTypeFactory.
Definition at line 55 of file kbuildmimetypefactory.h.
void KBuildMimeTypeFactory::createFakeMimeType | ( | const QString & | name | ) |
Definition at line 121 of file kbuildmimetypefactory.cpp.
KMimeTypeFactory::MimeTypeEntry::Ptr KBuildMimeTypeFactory::findMimeTypeEntryByName | ( | const QString & | _name, |
KMimeType::FindByNameOption | options = KMimeType::DontResolveAlias |
||
) |
Find a mime type entry in the database file.
- Returns
- a pointer to the mimetype in the memory dict (don't free!)
Definition at line 53 of file kbuildmimetypefactory.cpp.
|
static |
Returns all resource types for this factory.
Definition at line 43 of file kbuildmimetypefactory.cpp.
|
virtual |
Write out mime type specific index files.
Reimplemented from KMimeTypeFactory.
Definition at line 106 of file kbuildmimetypefactory.cpp.
|
virtual |
Write out header information.
Don't forget to call the parent first when you override this function.
Reimplemented from KMimeTypeFactory.
Definition at line 101 of file kbuildmimetypefactory.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.