KService

ksycocatype.h
1 /*
2  This file is part of the KDE project
3  SPDX-FileCopyrightText: 1998, 1999 Torben Weis <[email protected]>
4  SPDX-FileCopyrightText: 1998, 1999 Waldo Bastian <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #ifndef KSYCOCATYPE_H
10 #define KSYCOCATYPE_H
11 
12 /**
13  * \relates KSycocaEntry
14  * A KSycocaType is a code (out of the KSycocaType enum) assigned to each
15  * class type derived from KSycocaEntry .
16  * To use it, call the macro K_SYCOCATYPE( your_typecode, parent_class )
17  * at the top of your class definition.
18  */
19 enum KSycocaType { KST_KSycocaEntry = 0, KST_KService = 1, KST_KServiceType = 2, KST_KMimeType = 3,
20  KST_KMimeTypeEntry = 6 /*internal*/,
21  KST_KServiceGroup = 7,
22  // 8 was KST_KImageIOFormat in kdelibs4
23  // 9 was KST_KProtocolInfo in kdelibs4
24  KST_KServiceSeparator = 10,
25  KST_KCustom = 1000
26  };
27 
28 /**
29  * \relates KSycocaFactory
30  * A KSycocaFactoryId is a code (out of the KSycocaFactoryId enum)
31  * assigned to each class type derived from KSycocaFactory.
32  * To use it, call the macro K_SYCOCAFACTORY( your_factory_id )
33  * at the top of your class definition.
34  */
35 enum KSycocaFactoryId { KST_KServiceFactory = 1,
36  KST_KServiceTypeFactory = 2,
37  KST_KServiceGroupFactory = 3,
38  // 4 was KST_KImageIO in kdelibs4
39  // 5 was KST_KProtocolInfoFactory in kdelibs4
40  KST_KMimeTypeFactory = 6,
41  KST_CTimeInfo = 100
42  };
43 
44 #define K_SYCOCAFACTORY( factory_id ) \
45  public: \
46  KSycocaFactoryId factoryId() const override { return factory_id; } \
47  private:
48 
49 #endif
KSycocaFactoryId
Definition: ksycocatype.h:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Mar 2 2021 23:45:00 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.