KDECore
#include <kservicegroupfactory.h>
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.
|
virtual |
Definition at line 53 of file kservicegroupfactory.cpp.
Member Function Documentation
|
inlinevirtual |
Construct a KServiceGroup from a config file.
Implements KSycocaFactory.
Definition at line 51 of file kservicegroupfactory.h.
|
protectedvirtual |
Read an entry from the database.
Implements KSycocaFactory.
Definition at line 128 of file kservicegroupfactory.cpp.
|
protected |
Definition at line 104 of file kservicegroupfactory.cpp.
KServiceGroup::Ptr KServiceGroupFactory::findBaseGroup | ( | const QString & | _baseGroupName, |
bool | deep = true |
||
) |
|
virtual |
Find a group ( by desktop path, e.g.
"Applications/Editors")
Definition at line 65 of file kservicegroupfactory.cpp.
|
static |
- Returns
- the unique service group factory, creating it if necessary
Definition at line 60 of file kservicegroupfactory.cpp.
|
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
|
protected |
Definition at line 71 of file kservicegroupfactory.h.
|
protected |
Definition at line 72 of file kservicegroupfactory.h.
The documentation for this class was generated from the following files:
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.