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

KDECore

kservicetypefactory.h

Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002    Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef __k_service_type_factory_h__
00021 #define __k_service_type_factory_h__
00022 
00023 #include <assert.h>
00024 
00025 #include <QtCore/QStringList>
00026 
00027 #include "ksycocafactory.h"
00028 #include "kservicetype.h"
00029 
00030 class KSycoca;
00031 
00032 class KServiceType;
00033 
00043 class KDECORE_EXPORT KServiceTypeFactory : public KSycocaFactory
00044 {
00045   K_SYCOCAFACTORY( KST_KServiceTypeFactory )
00046 public:
00050   KServiceTypeFactory();
00051 
00052   virtual ~KServiceTypeFactory();
00053 
00057   virtual KSycocaEntry *createEntry(const QString &, const char *) const
00058     { assert(0); return 0; }
00059 
00064   virtual KServiceType::Ptr findServiceTypeByName(const QString &_name);
00065 
00069   QVariant::Type findPropertyTypeByName(const QString &_name);
00070 
00075   KServiceType::List allServiceTypes();
00076 
00080   static KServiceTypeFactory * self();
00081 
00082 protected:
00083   virtual KServiceType *createEntry(int offset) const;
00084 
00085   // protected for KBuildServiceTypeFactory
00086   QMap<QString,int> m_propertyTypeDict;
00087 
00088 private:
00089   static KServiceTypeFactory *_self;
00090 
00091 protected:
00092   virtual void virtual_hook( int id, void* data );
00093 private:
00094   class KServiceTypeFactoryPrivate* d;
00095 };
00096 
00097 #endif

KDECore

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal