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

KDECore

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

#include <kservicegroupfactory.h>

Inheritance diagram for KServiceGroupFactory:
Inheritance graph
[legend]

Public Member Functions

 KServiceGroupFactory ()
 
virtual ~KServiceGroupFactory ()
 
virtual KSycocaEntry * createEntry (const QString &, const char *) const
 
KServiceGroup::Ptr findBaseGroup (const QString &_baseGroupName, bool deep=true)
 
virtual KServiceGroup::Ptr findGroupByDesktopPath (const QString &_name, bool deep=true)
 
- 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 KServiceGroupFactory * self ()
 

Protected Member Functions

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

Protected Attributes

KSycocaDict * m_baseGroupDict
 
int m_baseGroupDictOffset
 
- 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 groups (e.g. list of applications) It loads the services from parsing directories (e.g. applnk/)

Exported for kbuildsycoca, but not installed.

Definition at line 38 of file kservicegroupfactory.h.

Constructor & Destructor Documentation

KServiceGroupFactory::KServiceGroupFactory ( )

Create factory.

Definition at line 34 of file kservicegroupfactory.cpp.

KServiceGroupFactory::~KServiceGroupFactory ( )
virtual

Definition at line 53 of file kservicegroupfactory.cpp.

Member Function Documentation

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

Construct a KServiceGroup from a config file.

Implements KSycocaFactory.

Definition at line 51 of file kservicegroupfactory.h.

KServiceGroup * KServiceGroupFactory::createEntry ( int  offset) const
protectedvirtual

Read an entry from the database.

Implements KSycocaFactory.

Definition at line 128 of file kservicegroupfactory.cpp.

KServiceGroup * KServiceGroupFactory::createGroup ( int  offset,
bool  deep 
) const
protected

Definition at line 104 of file kservicegroupfactory.cpp.

KServiceGroup::Ptr KServiceGroupFactory::findBaseGroup ( const QString &  _baseGroupName,
bool  deep = true 
)

Find a base group by name, e.g.

"settings"

Definition at line 82 of file kservicegroupfactory.cpp.

KServiceGroup::Ptr KServiceGroupFactory::findGroupByDesktopPath ( const QString &  _name,
bool  deep = true 
)
virtual

Find a group ( by desktop path, e.g.

"Applications/Editors")

Definition at line 65 of file kservicegroupfactory.cpp.

KServiceGroupFactory * KServiceGroupFactory::self ( )
static
Returns
the unique service group factory, creating it if necessary

Definition at line 60 of file kservicegroupfactory.cpp.

void KServiceGroupFactory::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 133 of file kservicegroupfactory.cpp.

Member Data Documentation

KSycocaDict* KServiceGroupFactory::m_baseGroupDict
protected

Definition at line 71 of file kservicegroupfactory.h.

int KServiceGroupFactory::m_baseGroupDictOffset
protected

Definition at line 72 of file kservicegroupfactory.h.


The documentation for this class was generated from the following files:
  • kservicegroupfactory.h
  • kservicegroupfactory.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:11 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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