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

KDECore

  • kdecore
  • services
kservicegroupfactory.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 2 as 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 KSERVICEGROUPFACTORY_H
20#define KSERVICEGROUPFACTORY_H
21
22#include <QtCore/QStringList>
23
24#include "kservicegroup.h"
25#include "ksycocafactory.h"
26#include <assert.h>
27
28class KSycoca;
29class KSycocaDict;
30
38class KDECORE_EXPORT KServiceGroupFactory : public KSycocaFactory
39{
40 K_SYCOCAFACTORY( KST_KServiceGroupFactory )
41public:
45 KServiceGroupFactory();
46 virtual ~KServiceGroupFactory();
47
51 virtual KSycocaEntry *createEntry(const QString &, const char *) const
52 { assert(0); return 0; }
53
57 virtual KServiceGroup::Ptr findGroupByDesktopPath( const QString &_name, bool deep = true );
58
62 KServiceGroup::Ptr findBaseGroup( const QString &_baseGroupName, bool deep = true );
63
67 static KServiceGroupFactory * self();
68protected:
69 KServiceGroup* createGroup(int offset, bool deep) const;
70 KServiceGroup* createEntry(int offset) const;
71 KSycocaDict *m_baseGroupDict;
72 int m_baseGroupDictOffset;
73
74protected:
75 virtual void virtual_hook( int id, void* data );
76private:
77 class KServiceGroupFactoryPrivate* d;
78};
79
80#endif
KServiceGroupFactory
Definition: kservicegroupfactory.h:39
KServiceGroupFactory::m_baseGroupDictOffset
int m_baseGroupDictOffset
Definition: kservicegroupfactory.h:72
KServiceGroupFactory::createEntry
virtual KSycocaEntry * createEntry(const QString &, const char *) const
Construct a KServiceGroup from a config file.
Definition: kservicegroupfactory.h:51
KServiceGroupFactory::m_baseGroupDict
KSycocaDict * m_baseGroupDict
Definition: kservicegroupfactory.h:71
KServiceGroup
KServiceGroup represents a group of service, for example screensavers.
Definition: kservicegroup.h:63
KSharedPtr
Can be used to control the lifetime of an object that has derived QSharedData.
Definition: ksharedptr.h:64
KSycocaDict
Definition: ksycocadict_p.h:37
KSycocaEntry
Base class for all Sycoca entries.
Definition: ksycocaentry.h:42
KSycocaFactory
Definition: ksycocafactory.h:37
KSycocaFactory::virtual_hook
virtual void virtual_hook(int id, void *data)
Virtual hook, used to add new "virtual" functions while maintaining binary compatibility.
Definition: ksycocafactory.cpp:246
KSycocaFactory::createEntry
virtual KSycocaEntry * createEntry(const QString &file, const char *resource) const =0
Construct an entry from a config file.
KSycoca
Definition: ksycoca.h:44
QString
kservicegroup.h
ksycocafactory.h
KST_KServiceGroupFactory
@ KST_KServiceGroupFactory
Definition: ksycocatype.h:46
K_SYCOCAFACTORY
#define K_SYCOCAFACTORY(factory_id)
Definition: ksycocatype.h:52
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
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