kbuildservicegroupfactory.h
/* This file is part of the KDE project
Copyright (C) 2000 Waldo Bastian <bastian@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef __k_build_service_group_factory_h__
#define __k_build_service_group_factory_h__
#include <kservicegroupfactory.h>
#include <qdict.h>
#include <qstringlist.h>
class KBuildServiceGroupFactory : public KServiceGroupFactory
{
public:
KBuildServiceGroupFactory();
virtual ~KBuildServiceGroupFactory();
virtual KServiceGroup * createEntry(const QString &, const char *);
virtual KServiceGroup * createEntry(int) { assert(0); return 0L; }
void addNewEntryTo( const QString &menuName, KService *newEntry);
KServiceGroup *addNewChild( const QString &parent, const char *resource, KSycocaEntry *newEntry);
KServiceGroup *addNew( const QString &menuName, const QString& file, KServiceGroup *entry, bool isDeleted);
virtual void addEntry( KSycocaEntry *newEntry, const char *resource );
virtual void save(QDataStream &str);
virtual void saveHeader(QDataStream &str);
static QStringList resourceTypes();
};
#endif
KBuildServiceGroupFactory::addEntry
virtual void addEntry(KSycocaEntry *newEntry, const char *resource)
Add a new menu entry.
Definition: kbuildservicegroupfactory.cpp:143
KBuildServiceGroupFactory::resourceTypes
static QStringList resourceTypes()
Returns all resource types for this service factory.
Definition: kbuildservicegroupfactory.cpp:40
KBuildServiceGroupFactory::KBuildServiceGroupFactory
KBuildServiceGroupFactory()
Create factory.
Definition: kbuildservicegroupfactory.cpp:31
KBuildServiceGroupFactory::saveHeader
virtual void saveHeader(QDataStream &str)
Write out header information.
Definition: kbuildservicegroupfactory.cpp:156
KBuildServiceGroupFactory::addNewEntryTo
void addNewEntryTo(const QString &menuName, KService *newEntry)
Adds the entry newEntry to the menu menuName.
Definition: kbuildservicegroupfactory.cpp:59
KBuildServiceGroupFactory::save
virtual void save(QDataStream &str)
Write out servicegroup specific index files.
Definition: kbuildservicegroupfactory.cpp:164
KBuildServiceGroupFactory
Service group factory for building ksycoca.
Definition: kbuildservicegroupfactory.h:30
KBuildServiceGroupFactory::addNewChild
KServiceGroup * addNewChild(const QString &parent, const char *resource, KSycocaEntry *newEntry)
Adds the entry newEntry to the "parent group" parent, creating the group if necassery.
Definition: kbuildservicegroupfactory.cpp:121
KBuildServiceGroupFactory::createEntry
virtual KServiceGroup * createEntry(const QString &, const char *)
Create new entry.
Definition: kbuildservicegroupfactory.cpp:51
KBuildServiceGroupFactory::addNew
KServiceGroup * 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 ...
Definition: kbuildservicegroupfactory.cpp:75

KDE Home | KDE Accessibility Home | Description of Access Keys