ksycocatype.h
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
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.2.0.