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

KDECore

Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
KServiceTypeFactory Class Reference

#include <kservicetypefactory.h>

Inheritance diagram for KServiceTypeFactory:
KSycocaFactory

Public Member Functions

 KServiceTypeFactory ()
 
virtual ~KServiceTypeFactory ()
 
KServiceType::List allServiceTypes ()
 
virtual KSycocaEntry * createEntry (const QString &, const char *) const
 
QVariant::Type findPropertyTypeByName (const QString &_name)
 
virtual KServiceType::Ptr findServiceTypeByName (const QString &_name)
 
- Public Member Functions inherited from KSycocaFactory
virtual ~KSycocaFactory ()
 
virtual void addEntry (const KSycocaEntry::Ptr &newEntry)
 
virtual KSycocaEntry::List allEntries () const
 
virtual KSycocaEntry * createEntry (const QString &file, const char *resource) const =0
 
virtual KSycocaEntry * createEntry (int offset) const =0
 
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 KServiceTypeFactory * self ()
 

Protected Member Functions

virtual KServiceType * createEntry (int offset) const
 
virtual void virtual_hook (int id, void *data)
 
- Protected Member Functions inherited from KSycocaFactory
 KSycocaFactory (KSycocaFactoryId factory_id)
 
QDataStream * stream () const
 
virtual void virtual_hook (int id, void *data)
 

Protected Attributes

QMap< QString, int > m_propertyTypeDict
 
- Protected Attributes inherited from KSycocaFactory
KSycocaEntryDict * m_entryDict
 
KSycocaResourceList * m_resourceList
 

Additional Inherited Members

- Related Functions inherited from KSycocaFactory
enum  KSycocaFactoryId
 

Detailed Description

A sycoca factory for service types It loads the service types from parsing directories (e.g. servicetypes/) but can also create service types from data streams or single config files

See also
KServiceType

Exported for kbuildsycoca, but not installed.

Definition at line 43 of file kservicetypefactory.h.

Constructor & Destructor Documentation

◆ KServiceTypeFactory()

KServiceTypeFactory::KServiceTypeFactory ( )

Create factory.

Definition at line 30 of file kservicetypefactory.cpp.

◆ ~KServiceTypeFactory()

KServiceTypeFactory::~KServiceTypeFactory ( )
virtual

Definition at line 56 of file kservicetypefactory.cpp.

Member Function Documentation

◆ allServiceTypes()

KServiceType::List KServiceTypeFactory::allServiceTypes ( )
Returns
all servicetypes Slow and memory consuming, avoid using

Definition at line 95 of file kservicetypefactory.cpp.

◆ createEntry() [1/2]

virtual KSycocaEntry * KServiceTypeFactory::createEntry ( const QString &  ,
const char *   
) const
inlinevirtual

Not meant to be called at this level.

Implements KSycocaFactory.

Definition at line 57 of file kservicetypefactory.h.

◆ createEntry() [2/2]

KServiceType * KServiceTypeFactory::createEntry ( int  offset) const
protectedvirtual

Read an entry from the database.

Implements KSycocaFactory.

Definition at line 111 of file kservicetypefactory.cpp.

◆ findPropertyTypeByName()

QVariant::Type KServiceTypeFactory::findPropertyTypeByName ( const QString &  _name)

Find a the property type of a named property.

Definition at line 85 of file kservicetypefactory.cpp.

◆ findServiceTypeByName()

KServiceType::Ptr KServiceTypeFactory::findServiceTypeByName ( const QString &  _name)
virtual

Find a service type in the database file (allocates it) Overloaded by KBuildServiceTypeFactory to return a memory one.

Definition at line 68 of file kservicetypefactory.cpp.

◆ self()

KServiceTypeFactory * KServiceTypeFactory::self ( )
static
Returns
the unique servicetype factory, creating it if necessary

Definition at line 63 of file kservicetypefactory.cpp.

◆ virtual_hook()

void KServiceTypeFactory::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

Virtual hook, used to add new "virtual" functions while maintaining binary compatibility.

Unused in this class.

Reimplemented from KSycocaFactory.

Definition at line 136 of file kservicetypefactory.cpp.

Member Data Documentation

◆ m_propertyTypeDict

QMap<QString,int> KServiceTypeFactory::m_propertyTypeDict
protected

Definition at line 86 of file kservicetypefactory.h.


The documentation for this class was generated from the following files:
  • kservicetypefactory.h
  • kservicetypefactory.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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.14.38 API Reference

Skip menu "kdelibs-4.14.38 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