| # kdecore Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# 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
    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

This file is part of the documentation for kdecore Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:18:12 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003