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

KDECore

KServiceGroupFactory Class Reference

#include <kservicegroupfactory.h>

Inheritance diagram for KServiceGroupFactory:
KSycocaFactory

List of all members.

Public Member Functions

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)
 KServiceGroupFactory ()
virtual ~KServiceGroupFactory ()

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 Attributes

KSycocaDict * m_baseGroupDict
int m_baseGroupDictOffset

Detailed Description

For internal use only.

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

KServiceGroup * KServiceGroupFactory::createEntry ( int  offset  )  const [protected, virtual]

Read an entry from the database.

Implements KSycocaFactory.

Definition at line 128 of file kservicegroupfactory.cpp.

virtual KSycocaEntry* KServiceGroupFactory::createEntry ( const QString &  ,
const char *   
) const [inline, virtual]

Construct a KServiceGroup from a config file.

Implements KSycocaFactory.

Definition at line 51 of file kservicegroupfactory.h.

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 
) [protected, virtual]

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

KDECore

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal