Warning: That file was not part of the compilation database. It may have many parsing errors.
1 | /* This file is part of the KDE project |
---|---|
2 | Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
3 | Waldo Bastian <bastian@kde.org> |
4 | |
5 | This library is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Library General Public |
7 | License as published by the Free Software Foundation; either |
8 | version 2 of the License, or (at your option) any later version. |
9 | |
10 | This library is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Library General Public License for more details. |
14 | |
15 | You should have received a copy of the GNU Library General Public License |
16 | along with this library; see the file COPYING.LIB. If not, write to |
17 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 | Boston, MA 02110-1301, USA. |
19 | */ |
20 | |
21 | #ifndef KSYCOCATYPE_H |
22 | #define KSYCOCATYPE_H |
23 | |
24 | /** |
25 | * \relates KSycocaEntry |
26 | * A KSycocaType is a code (out of the KSycocaType enum) assigned to each |
27 | * class type derived from KSycocaEntry . |
28 | * To use it, call the macro K_SYCOCATYPE( your_typecode, parent_class ) |
29 | * at the top of your class definition. |
30 | */ |
31 | enum KSycocaType { KST_KSycocaEntry = 0, KST_KService = 1, KST_KServiceType = 2, KST_KMimeType = 3, |
32 | KST_KFolderMimeType = 4, KST_KDEDesktopMimeType = 5 /*compat*/, KST_KMimeTypeEntry = 6 /*internal*/, |
33 | KST_KServiceGroup = 7, KST_KImageIOFormat = 8, KST_KProtocolInfo = 9, |
34 | KST_KServiceSeparator = 10, |
35 | KST_KCustom = 1000 }; |
36 | |
37 | /** |
38 | * \relates KSycocaFactory |
39 | * A KSycocaFactoryId is a code (out of the KSycocaFactoryId enum) |
40 | * assigned to each class type derived from KSycocaFactory. |
41 | * To use it, call the macro K_SYCOCAFACTORY( your_factory_id ) |
42 | * at the top of your class definition. |
43 | */ |
44 | enum KSycocaFactoryId { KST_KServiceFactory = 1, |
45 | KST_KServiceTypeFactory = 2, |
46 | KST_KServiceGroupFactory = 3, |
47 | KST_KImageIO = 4, // unused, KDE5: remove |
48 | KST_KProtocolInfoFactory = 5, |
49 | KST_KMimeTypeFactory = 6, |
50 | KST_CTimeInfo = 100 }; |
51 | |
52 | #define K_SYCOCAFACTORY( factory_id ) \ |
53 | public: \ |
54 | virtual KSycocaFactoryId factoryId() const { return factory_id; } \ |
55 | private: |
56 | |
57 | #endif |
58 |
Warning: That file was not part of the compilation database. It may have many parsing errors.