kdecore Library API Documentation

ksycocatype.h

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., 59 Temple Place - Suite 330,
00018    Boston, MA 02111-1307, USA.
00019 */
00020 
00021 #ifndef __ksycocatype_h__
00022 #define __ksycocatype_h__
00023 
00030 enum KSycocaType { KST_KSycocaEntry = 0, KST_KService = 1, KST_KServiceType = 2, KST_KMimeType = 3,
00031                  KST_KFolderType = 4, KST_KDEDesktopMimeType = 5, KST_KExecMimeType = 6,
00032                  KST_KServiceGroup = 7, KST_KImageIOFormat = 8, KST_KProtocolInfo = 9,
00033                  KST_KCustom = 1000 };
00034 
00035 #define K_SYCOCATYPE( type, baseclass ) \
00036 public: \
00037  virtual bool isType(KSycocaType t) const { if (t == type) return true; return baseclass::isType(t);} \
00038  virtual KSycocaType sycocaType() const { return type; } \
00039 private:
00040 
00047 enum KSycocaFactoryId { KST_KServiceFactory = 1, 
00048                         KST_KServiceTypeFactory = 2,
00049                         KST_KServiceGroupFactory = 3,
00050                         KST_KImageIO = 4,
00051                         KST_KProtocolInfoFactory = 5,
00052                         KST_CTimeInfo = 100 };
00053 
00054 #define K_SYCOCAFACTORY( factory_id ) \
00055 public: \
00056  virtual KSycocaFactoryId factoryId() const { return factory_id; } \
00057 private:
00058 
00059 
00060 
00061 #endif
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 12:46:58 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001