• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 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
30class KSycoca;
31
32class KServiceType;
33
43class KDECORE_EXPORT KServiceTypeFactory : public KSycocaFactory
44{
45 K_SYCOCAFACTORY( KST_KServiceTypeFactory )
46public:
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
82protected:
83 virtual KServiceType *createEntry(int offset) const;
84
85 // protected for KBuildServiceTypeFactory
86 QMap<QString,int> m_propertyTypeDict;
87
88protected:
89 virtual void virtual_hook( int id, void* data );
90private:
91 class KServiceTypeFactoryPrivate* d;
92};
93
94#endif
KServiceTypeFactory
Definition: kservicetypefactory.h:44
KServiceTypeFactory::createEntry
virtual KSycocaEntry * createEntry(const QString &, const char *) const
Not meant to be called at this level.
Definition: kservicetypefactory.h:57
KServiceTypeFactory::m_propertyTypeDict
QMap< QString, int > m_propertyTypeDict
Definition: kservicetypefactory.h:86
KServiceType
A service type is, well, a type of service, where a service is an application or plugin.
Definition: kservicetype.h:44
KSharedPtr< KServiceType >
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
QList< Ptr >
QMap
QString
kservicetype.h
ksycocafactory.h
KST_KServiceTypeFactory
@ KST_KServiceTypeFactory
Definition: ksycocatype.h:45
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