KDED
#include <kbuildservicegroupfactory.h>
Public Member Functions | |
KBuildServiceGroupFactory () | |
virtual | ~KBuildServiceGroupFactory () |
virtual void | addEntry (const KSycocaEntry::Ptr &newEntry) |
KServiceGroup::Ptr | addNew (const QString &menuName, const QString &file, KServiceGroup::Ptr entry, bool isDeleted) |
void | addNewChild (const QString &parent, const KSycocaEntry::Ptr &newEntry) |
void | addNewEntryTo (const QString &menuName, const KService::Ptr &newEntry) |
virtual KServiceGroup * | createEntry (const QString &, const char *) const |
virtual KServiceGroup * | createEntry (int) const |
virtual KServiceGroup::Ptr | findGroupByDesktopPath (const QString &_name, bool deep=true) |
virtual void | save (QDataStream &str) |
virtual void | saveHeader (QDataStream &str) |
Public Member Functions inherited from KServiceGroupFactory | |
KServiceGroupFactory () | |
virtual | ~KServiceGroupFactory () |
KServiceGroup::Ptr | findBaseGroup (const QString &_baseGroupName, bool deep=true) |
Static Public Member Functions | |
static QStringList | resourceTypes () |
Static Public Member Functions inherited from KServiceGroupFactory | |
static KServiceGroupFactory * | self () |
Additional Inherited Members | |
Protected Member Functions inherited from KServiceGroupFactory | |
KServiceGroup * | createGroup (int offset, bool deep) const |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes inherited from KServiceGroupFactory | |
KSycocaDict * | m_baseGroupDict |
int | m_baseGroupDictOffset |
Detailed Description
Service group factory for building ksycoca.
Definition at line 30 of file kbuildservicegroupfactory.h.
Constructor & Destructor Documentation
KBuildServiceGroupFactory::KBuildServiceGroupFactory | ( | ) |
Create factory.
Definition at line 32 of file kbuildservicegroupfactory.cpp.
|
virtual |
Definition at line 48 of file kbuildservicegroupfactory.cpp.
Member Function Documentation
|
virtual |
Add a new menu entry.
Definition at line 144 of file kbuildservicegroupfactory.cpp.
KServiceGroup::Ptr KBuildServiceGroupFactory::addNew | ( | const QString & | menuName, |
const QString & | file, | ||
KServiceGroup::Ptr | entry, | ||
bool | isDeleted | ||
) |
Add new menu menuName
defined by file
When entry
is non-null it is re-used, otherwise a new group is created.
A pointer to the group is returned.
Definition at line 78 of file kbuildservicegroupfactory.cpp.
void KBuildServiceGroupFactory::addNewChild | ( | const QString & | parent, |
const KSycocaEntry::Ptr & | newEntry | ||
) |
Adds the entry newEntry
to the "parent group" parent
, creating the group if necassery.
A "parent group" is a group of services that all have the same "X-KDE-ParentApp".
Definition at line 125 of file kbuildservicegroupfactory.cpp.
void KBuildServiceGroupFactory::addNewEntryTo | ( | const QString & | menuName, |
const KService::Ptr & | newEntry | ||
) |
Adds the entry newEntry
to the menu menuName
.
Definition at line 62 of file kbuildservicegroupfactory.cpp.
|
virtual |
Create new entry.
Reimplemented from KServiceGroupFactory.
Definition at line 54 of file kbuildservicegroupfactory.cpp.
|
inlinevirtual |
Reimplemented from KServiceGroupFactory.
Definition at line 45 of file kbuildservicegroupfactory.h.
|
virtual |
Find a group ( by desktop path, e.g.
"Applications/Editors")
Reimplemented from KServiceGroupFactory.
Definition at line 182 of file kbuildservicegroupfactory.cpp.
|
static |
Returns all resource types for this service factory.
Definition at line 43 of file kbuildservicegroupfactory.cpp.
|
virtual |
Write out servicegroup specific index files.
Definition at line 166 of file kbuildservicegroupfactory.cpp.
|
virtual |
Write out header information.
Definition at line 158 of file kbuildservicegroupfactory.cpp.
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:51:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.