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

KDECore

  • sources
  • kde-4.12
  • kdelibs
  • 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 
28 class KSycoca;
29 class KSycocaDict;
30 
38 class KDECORE_EXPORT KServiceGroupFactory : public KSycocaFactory
39 {
40  K_SYCOCAFACTORY( KST_KServiceGroupFactory )
41 public:
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();
68 protected:
69  KServiceGroup* createGroup(int offset, bool deep) const;
70  KServiceGroup* createEntry(int offset) const;
71  KSycocaDict *m_baseGroupDict;
72  int m_baseGroupDictOffset;
73 
74 protected:
75  virtual void virtual_hook( int id, void* data );
76 private:
77  class KServiceGroupFactoryPrivate* d;
78 };
79 
80 #endif
KSycocaDict
Definition: ksycocadict_p.h:36
kservicegroup.h
KSharedPtr
Can be used to control the lifetime of an object that has derived QSharedData.
Definition: kconfiggroup.h:38
KServiceGroup
KServiceGroup represents a group of service, for example screensavers.
Definition: kservicegroup.h:62
KST_KServiceGroupFactory
Definition: ksycocatype.h:46
KSycoca
Definition: ksycoca.h:43
KSycocaFactory::createEntry
virtual KSycocaEntry * createEntry(const QString &file, const char *resource) const =0
Construct an entry from a config file.
QString
KSycocaFactory
Definition: ksycocafactory.h:36
KServiceGroupFactory::m_baseGroupDict
KSycocaDict * m_baseGroupDict
Definition: kservicegroupfactory.h:71
KSycocaEntry
Base class for all Sycoca entries.
Definition: ksycocaentry.h:41
KServiceGroupFactory
Definition: kservicegroupfactory.h:38
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
KServiceGroupFactory::m_baseGroupDictOffset
int m_baseGroupDictOffset
Definition: kservicegroupfactory.h:72
K_SYCOCAFACTORY
#define K_SYCOCAFACTORY(factory_id)
Definition: ksycocatype.h:52
ksycocafactory.h
KServiceGroupFactory::createEntry
virtual KSycocaEntry * createEntry(const QString &, const char *) const
Construct a KServiceGroup from a config file.
Definition: kservicegroupfactory.h:51
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:09 by doxygen 1.8.7 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 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • 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