21 #ifndef __tdesycocatype_h__
22 #define __tdesycocatype_h__
31 enum KSycocaType { KST_KSycocaEntry = 0, KST_KService = 1, KST_KServiceType = 2, KST_KMimeType = 3,
32 KST_KFolderType = 4, KST_KDEDesktopMimeType = 5, KST_KExecMimeType = 6,
33 KST_KServiceGroup = 7, KST_KImageIOFormat = 8, KST_KProtocolInfo = 9,
34 KST_KServiceSeparator = 10,
37 #define K_SYCOCATYPE( type, baseclass ) \
39 virtual bool isType(KSycocaType t) const { if (t == type) return true; return baseclass::isType(t);} \
40 virtual KSycocaType sycocaType() const { return type; } \
50 enum KSycocaFactoryId { KST_KServiceFactory = 1,
51 KST_KServiceTypeFactory = 2,
52 KST_KServiceGroupFactory = 3,
54 KST_KProtocolInfoFactory = 5,
55 KST_CTimeInfo = 100 };
57 #define K_SYCOCAFACTORY( factory_id ) \
59 virtual KSycocaFactoryId factoryId() const { return factory_id; } \