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

KDED

Public Member Functions | Static Public Member Functions | List of all members
KBuildServiceTypeFactory Class Reference

#include <kbuildservicetypefactory.h>

Inheritance diagram for KBuildServiceTypeFactory:
KServiceTypeFactory KSycocaFactory

Public Member Functions

 KBuildServiceTypeFactory ()
 
virtual ~KBuildServiceTypeFactory ()
 
virtual void addEntry (const KSycocaEntry::Ptr &newEntry)
 
virtual KSycocaEntry * createEntry (const QString &file, const char *resource) const
 
virtual KServiceType * createEntry (int) const
 
virtual KServiceType::Ptr findServiceTypeByName (const QString &_name)
 
virtual void save (QDataStream &str)
 
virtual void saveHeader (QDataStream &str)
 
- Public Member Functions inherited from KServiceTypeFactory
 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 QStringList resourceTypes ()
 
- Static Public Member Functions inherited from KServiceTypeFactory
static KServiceTypeFactory * self ()
 

Additional Inherited Members

- Public Types inherited from KSycocaFactory
enum  KSycocaFactoryId
 
- Protected Member Functions inherited from KServiceTypeFactory
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 inherited from KServiceTypeFactory
QMap< QString, int > m_propertyTypeDict
 
- Protected Attributes inherited from KSycocaFactory
KSycocaEntryDict * m_entryDict
 
KSycocaResourceList * m_resourceList
 

Detailed Description

Service-type factory for building ksycoca.

Definition at line 30 of file kbuildservicetypefactory.h.

Constructor & Destructor Documentation

◆ KBuildServiceTypeFactory()

KBuildServiceTypeFactory::KBuildServiceTypeFactory ( )

Create factory.

Definition at line 33 of file kbuildservicetypefactory.cpp.

◆ ~KBuildServiceTypeFactory()

KBuildServiceTypeFactory::~KBuildServiceTypeFactory ( )
virtual

Definition at line 47 of file kbuildservicetypefactory.cpp.

Member Function Documentation

◆ addEntry()

void KBuildServiceTypeFactory::addEntry ( const KSycocaEntry::Ptr &  newEntry)
virtual

Add entry.

Reimplemented from KSycocaFactory.

Definition at line 133 of file kbuildservicetypefactory.cpp.

◆ createEntry() [1/2]

KSycocaEntry * KBuildServiceTypeFactory::createEntry ( const QString &  file,
const char *  resource 
) const
virtual

Construct a KServiceType from a config file.

Reimplemented from KServiceTypeFactory.

Definition at line 61 of file kbuildservicetypefactory.cpp.

◆ createEntry() [2/2]

virtual KServiceType * KBuildServiceTypeFactory::createEntry ( int  ) const
inlinevirtual

Reimplemented from KServiceTypeFactory.

Definition at line 51 of file kbuildservicetypefactory.h.

◆ findServiceTypeByName()

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

Find a service type in the database file.

Returns
a pointer to the servicetype in the memory dict (don't free!)

Reimplemented from KServiceTypeFactory.

Definition at line 52 of file kbuildservicetypefactory.cpp.

◆ resourceTypes()

QStringList KBuildServiceTypeFactory::resourceTypes ( )
static

Returns all resource types for this factory.

Definition at line 42 of file kbuildservicetypefactory.cpp.

◆ save()

void KBuildServiceTypeFactory::save ( QDataStream &  str)
virtual

Write out service type specific index files.

Reimplemented from KSycocaFactory.

Definition at line 118 of file kbuildservicetypefactory.cpp.

◆ saveHeader()

void KBuildServiceTypeFactory::saveHeader ( QDataStream &  str)
virtual

Write out header information.

Don't forget to call the parent first when you override this function.

Reimplemented from KSycocaFactory.

Definition at line 108 of file kbuildservicetypefactory.cpp.


The documentation for this class was generated from the following files:
  • kbuildservicetypefactory.h
  • kbuildservicetypefactory.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.

KDED

Skip menu "KDED"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • 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