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

KDECore

ksycocatype.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                             Waldo Bastian <bastian@kde.org>
00004  
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009  
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014  
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018    Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef __ksycocatype_h__
00022 #define __ksycocatype_h__
00023 
00031 enum KSycocaType { KST_KSycocaEntry = 0, KST_KService = 1, KST_KServiceType = 2, KST_KMimeType = 3,
00032          KST_KFolderType = 4, KST_KDEDesktopMimeType = 5, KST_KExecMimeType = 6,
00033          KST_KServiceGroup = 7, KST_KImageIOFormat = 8, KST_KProtocolInfo = 9,
00034          KST_KServiceSeparator = 10,
00035          KST_KCustom = 1000 };
00036 
00037 #define K_SYCOCATYPE( type, baseclass ) \
00038 public: \
00039  virtual bool isType(KSycocaType t) const { if (t == type) return true; return baseclass::isType(t);} \
00040  virtual KSycocaType sycocaType() const { return type; } \
00041 private:
00042 
00050 enum KSycocaFactoryId { KST_KServiceFactory = 1, 
00051                         KST_KServiceTypeFactory = 2,
00052                         KST_KServiceGroupFactory = 3,
00053                         KST_KImageIO = 4,
00054                         KST_KProtocolInfoFactory = 5,
00055                         KST_CTimeInfo = 100 };
00056 
00057 #define K_SYCOCAFACTORY( factory_id ) \
00058 public: \
00059  virtual KSycocaFactoryId factoryId() const { return factory_id; } \
00060 private:
00061 
00062 
00063 
00064 #endif

KDECore

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

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
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