KDED
KBuildServiceGroupFactory Class Reference
Service group factory for building ksycoca. More...
#include <kbuildservicegroupfactory.h>
Public Member Functions | |
virtual void | addEntry (KSycocaEntry *newEntry, const char *resource) |
KServiceGroup * | addNew (const QString &menuName, const QString &file, KServiceGroup *entry, bool isDeleted) |
KServiceGroup * | addNewChild (const QString &parent, const char *resource, KSycocaEntry *newEntry) |
void | addNewEntryTo (const QString &menuName, KService *newEntry) |
virtual KServiceGroup * | createEntry (int) |
virtual KServiceGroup * | createEntry (const QString &, const char *) |
KBuildServiceGroupFactory () | |
virtual void | save (QDataStream &str) |
virtual void | saveHeader (QDataStream &str) |
virtual | ~KBuildServiceGroupFactory () |
Static Public Member Functions | |
static QStringList | resourceTypes () |
Detailed Description
Service group factory for building ksycoca.
For internal use only.
Definition at line 30 of file kbuildservicegroupfactory.h.
Constructor & Destructor Documentation
KBuildServiceGroupFactory::KBuildServiceGroupFactory | ( | ) |
KBuildServiceGroupFactory::~KBuildServiceGroupFactory | ( | ) | [virtual] |
Definition at line 45 of file kbuildservicegroupfactory.cpp.
Member Function Documentation
void KBuildServiceGroupFactory::addEntry | ( | KSycocaEntry * | newEntry, | |
const char * | resource | |||
) | [virtual] |
Add a new menu entry.
Reimplemented from KSycocaFactory.
Definition at line 143 of file kbuildservicegroupfactory.cpp.
KServiceGroup * KBuildServiceGroupFactory::addNew | ( | const QString & | menuName, | |
const QString & | file, | |||
KServiceGroup * | 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 75 of file kbuildservicegroupfactory.cpp.
KServiceGroup * KBuildServiceGroupFactory::addNewChild | ( | const QString & | parent, | |
const char * | resource, | |||
KSycocaEntry * | 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 121 of file kbuildservicegroupfactory.cpp.
Adds the entry newEntry
to the menu menuName
.
Definition at line 59 of file kbuildservicegroupfactory.cpp.
virtual KServiceGroup* KBuildServiceGroupFactory::createEntry | ( | int | ) | [inline, virtual] |
KServiceGroup * KBuildServiceGroupFactory::createEntry | ( | const QString & | , | |
const char * | ||||
) | [virtual] |
Create new entry.
Reimplemented from KServiceGroupFactory.
Definition at line 51 of file kbuildservicegroupfactory.cpp.
QStringList KBuildServiceGroupFactory::resourceTypes | ( | ) | [static] |
Returns all resource types for this service factory.
Definition at line 40 of file kbuildservicegroupfactory.cpp.
void KBuildServiceGroupFactory::save | ( | QDataStream & | str | ) | [virtual] |
Write out servicegroup specific index files.
Reimplemented from KSycocaFactory.
Definition at line 164 of file kbuildservicegroupfactory.cpp.
void KBuildServiceGroupFactory::saveHeader | ( | QDataStream & | str | ) | [virtual] |
Write out header information.
Reimplemented from KSycocaFactory.
Definition at line 156 of file kbuildservicegroupfactory.cpp.
The documentation for this class was generated from the following files: