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

KDED

  • sources
  • kde-4.14
  • kdelibs
  • kded
kbuildservicegroupfactory.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright (C) 2000 Waldo Bastian <bastian@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 
19 #ifndef KDED_KBUILD_SERVICE_GROUP_FACTORY_H
20 #define KDED_KBUILD_SERVICE_GROUP_FACTORY_H
21 
22 #include <kservice.h>
23 #include <kservicegroupfactory.h>
24 #include <QtCore/QStringList>
25 
30 class KBuildServiceGroupFactory : public KServiceGroupFactory
31 {
32 public:
36  KBuildServiceGroupFactory();
37 
38  virtual ~KBuildServiceGroupFactory();
39 
43  virtual KServiceGroup * createEntry(const QString &, const char *) const;
44 
45  virtual KServiceGroup * createEntry(int) const { assert(0); return 0L; }
46 
50  void addNewEntryTo( const QString &menuName, const KService::Ptr& newEntry);
51 
58  void addNewChild( const QString &parent, const KSycocaEntry::Ptr& newEntry);
59 
65  KServiceGroup::Ptr addNew( const QString &menuName, const QString& file, KServiceGroup::Ptr entry, bool isDeleted);
66 
70  virtual KServiceGroup::Ptr findGroupByDesktopPath( const QString &_name, bool deep = true );
71 
75  virtual void addEntry(const KSycocaEntry::Ptr& newEntry);
76 
80  virtual void save(QDataStream &str);
81 
85  virtual void saveHeader(QDataStream &str);
86 
90  static QStringList resourceTypes();
91 };
92 
93 #endif
KSharedPtr< KService >
KServiceGroup
kservicegroupfactory.h
QDataStream
KBuildServiceGroupFactory::resourceTypes
static QStringList resourceTypes()
Returns all resource types for this service factory.
Definition: kbuildservicegroupfactory.cpp:43
KBuildServiceGroupFactory::addNewChild
void addNewChild(const QString &parent, const KSycocaEntry::Ptr &newEntry)
Adds the entry newEntry to the "parent group" parent, creating the group if necassery.
Definition: kbuildservicegroupfactory.cpp:125
KBuildServiceGroupFactory::KBuildServiceGroupFactory
KBuildServiceGroupFactory()
Create factory.
Definition: kbuildservicegroupfactory.cpp:32
KBuildServiceGroupFactory::saveHeader
virtual void saveHeader(QDataStream &str)
Write out header information.
Definition: kbuildservicegroupfactory.cpp:158
KBuildServiceGroupFactory::createEntry
virtual KServiceGroup * createEntry(const QString &, const char *) const
Create new entry.
Definition: kbuildservicegroupfactory.cpp:54
KBuildServiceGroupFactory::~KBuildServiceGroupFactory
virtual ~KBuildServiceGroupFactory()
Definition: kbuildservicegroupfactory.cpp:48
KServiceGroupFactory
KBuildServiceGroupFactory::save
virtual void save(QDataStream &str)
Write out servicegroup specific index files.
Definition: kbuildservicegroupfactory.cpp:166
QString
KBuildServiceGroupFactory
Service group factory for building ksycoca.
Definition: kbuildservicegroupfactory.h:30
QStringList
kservice.h
KBuildServiceGroupFactory::addNew
KServiceGroup::Ptr 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 ...
Definition: kbuildservicegroupfactory.cpp:78
KBuildServiceGroupFactory::createEntry
virtual KServiceGroup * createEntry(int) const
Definition: kbuildservicegroupfactory.h:45
KBuildServiceGroupFactory::addEntry
virtual void addEntry(const KSycocaEntry::Ptr &newEntry)
Add a new menu entry.
Definition: kbuildservicegroupfactory.cpp:144
KBuildServiceGroupFactory::findGroupByDesktopPath
virtual KServiceGroup::Ptr findGroupByDesktopPath(const QString &_name, bool deep=true)
Find a group ( by desktop path, e.g.
Definition: kbuildservicegroupfactory.cpp:182
KBuildServiceGroupFactory::addNewEntryTo
void addNewEntryTo(const QString &menuName, const KService::Ptr &newEntry)
Adds the entry newEntry to the menu menuName.
Definition: kbuildservicegroupfactory.cpp:62
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDED

Skip menu "KDED"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal