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

KDECore

  • kdecore
  • services
kservicetypefactory.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright (C) 1998, 1999 Torben Weis <weis@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 as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef __k_service_type_factory_h__
21 #define __k_service_type_factory_h__
22 
23 #include <assert.h>
24 
25 #include <QtCore/QStringList>
26 
27 #include "ksycocafactory.h"
28 #include "kservicetype.h"
29 
30 class KSycoca;
31 
32 class KServiceType;
33 
43 class KDECORE_EXPORT KServiceTypeFactory : public KSycocaFactory
44 {
45  K_SYCOCAFACTORY( KST_KServiceTypeFactory )
46 public:
50  KServiceTypeFactory();
51 
52  virtual ~KServiceTypeFactory();
53 
57  virtual KSycocaEntry *createEntry(const QString &, const char *) const
58  { assert(0); return 0; }
59 
64  virtual KServiceType::Ptr findServiceTypeByName(const QString &_name);
65 
69  QVariant::Type findPropertyTypeByName(const QString &_name);
70 
75  KServiceType::List allServiceTypes();
76 
80  static KServiceTypeFactory * self();
81 
82 protected:
83  virtual KServiceType *createEntry(int offset) const;
84 
85  // protected for KBuildServiceTypeFactory
86  QMap<QString,int> m_propertyTypeDict;
87 
88 protected:
89  virtual void virtual_hook( int id, void* data );
90 private:
91  class KServiceTypeFactoryPrivate* d;
92 };
93 
94 #endif
KSharedPtr< KServiceType >
KFileSystemType::Type
Type
Definition: kfilesystemtype_p.h:28
KServiceTypeFactory::m_propertyTypeDict
QMap< QString, int > m_propertyTypeDict
Definition: kservicetypefactory.h:86
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.
KServiceType
A service type is, well, a type of service, where a service is an application or plugin.
Definition: kservicetype.h:43
QString
KServiceTypeFactory
Definition: kservicetypefactory.h:43
KSycocaFactory
Definition: ksycocafactory.h:36
KSycocaEntry
Base class for all Sycoca entries.
Definition: ksycocaentry.h:41
KSycocaFactory::virtual_hook
virtual void virtual_hook(int id, void *data)
Virtual hook, used to add new &quot;virtual&quot; functions while maintaining binary compatibility.
Definition: ksycocafactory.cpp:246
KServiceTypeFactory::createEntry
virtual KSycocaEntry * createEntry(const QString &, const char *) const
Not meant to be called at this level.
Definition: kservicetypefactory.h:57
kservicetype.h
K_SYCOCAFACTORY
#define K_SYCOCAFACTORY(factory_id)
Definition: ksycocatype.h:52
ksycocafactory.h
KST_KServiceTypeFactory
Definition: ksycocatype.h:45
QMap
QList< Ptr >
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Wed Sep 11 2019 22:37:55 by doxygen 1.8.5 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.8 API Reference

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