• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.2 API Reference
  • KDE Home
  • Contact Us
 

KDECore

Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions
KMimeTypeFactory Class Reference

#include <kmimetypefactory.h>

Inheritance diagram for KMimeTypeFactory:
KSycocaFactory

List of all members.

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 Functions 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 ( )

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
inlinevirtual

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
protectedvirtual

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:
  • kmimetypefactory.h
  • kmimetypefactory.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sun Apr 28 2013 14:24:01 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs-4.10.2 API Reference

Skip menu "kdelibs-4.10.2 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal