Changeset View
Changeset View
Standalone View
Standalone View
src/kconfig_compiler/KConfigParameters.h
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | This file is part of KDE. | ||||
3 | Copyright (C) 2020 Tomaz Cananbrava (tcanabrava@kde.org) | ||||
4 | Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org> | ||||
5 | Copyright (c) 2003 Waldo Bastian <bastian@kde.org> | ||||
6 | Copyright (c) 2003 Zack Rusin <zack@kde.org> | ||||
7 | Copyright (c) 2006 Michaël Larouche <michael.larouche@kdemail.net> | ||||
8 | Copyright (c) 2008 Allen Winter <winter@kde.org> | ||||
9 | Copyright (C) 2020 Tomaz Cananbrava (tcanabrava@kde.org) | ||||
10 | | ||||
11 | This library is free software; you can redistribute it and/or | ||||
12 | modify it under the terms of the GNU Library General Public | ||||
13 | License as published by the Free Software Foundation; either | ||||
14 | version 2 of the License, or (at your option) any later version. | ||||
15 | | ||||
16 | This library is distributed in the hope that it will be useful, | ||||
17 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||||
19 | Library General Public License for more details. | ||||
20 | | ||||
21 | You should have received a copy of the GNU Library General Public License | ||||
22 | along with this library; see the file COPYING.LIB. If not, write to | ||||
23 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||||
24 | Boston, MA 02110-1301, USA. | ||||
25 | */ | ||||
26 | | ||||
27 | #ifndef KCONFIGXTPARAMETERS_H | ||||
28 | #define KCONFIGXTPARAMETERS_H | ||||
29 | | ||||
30 | #include <QSettings> | ||||
31 | #include <QString> | ||||
32 | #include <QStringList> | ||||
33 | | ||||
34 | /** | ||||
35 | Configuration Compiler Configuration | ||||
36 | */ | ||||
37 | class KConfigParameters | ||||
38 | { | ||||
39 | public: | ||||
40 | KConfigParameters(const QString &codegenFilename); | ||||
41 | | ||||
42 | public: | ||||
43 | enum TranslationSystem { | ||||
44 | QtTranslation, | ||||
45 | KdeTranslation | ||||
46 | }; | ||||
47 | | ||||
48 | // These are read from the .kcfgc configuration file | ||||
49 | QString nameSpace; // The namespace for the class to be generated | ||||
50 | QString className; // The class name to be generated | ||||
51 | QString inherits; // The class the generated class inherits (if empty, from KConfigSkeleton) | ||||
52 | QString visibility; | ||||
53 | bool parentInConstructor; // The class has the optional parent parameter in its constructor | ||||
54 | bool forceStringFilename; | ||||
55 | bool singleton; // The class will be a singleton | ||||
56 | bool staticAccessors; // provide or not static accessors | ||||
57 | bool customAddons; | ||||
58 | QString memberVariables; | ||||
59 | QStringList headerIncludes; | ||||
60 | QStringList sourceIncludes; | ||||
61 | QStringList mutators; | ||||
62 | QStringList defaultGetters; | ||||
63 | QStringList notifiers; | ||||
64 | QString qCategoryLoggingName; | ||||
65 | QString headerExtension; | ||||
66 | QString sourceExtension; | ||||
67 | bool allMutators; | ||||
68 | bool setUserTexts; | ||||
69 | bool allDefaultGetters; | ||||
70 | bool dpointer; | ||||
71 | bool globalEnums; | ||||
72 | bool useEnumTypes; | ||||
73 | bool itemAccessors; | ||||
74 | bool allNotifiers; | ||||
75 | TranslationSystem translationSystem; | ||||
76 | QString translationDomain; | ||||
77 | bool generateProperties; | ||||
78 | QString baseName; | ||||
79 | }; | ||||
80 | | ||||
81 | #endif |