aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/configurabletypeentry.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-11-25 12:53:02 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2023-02-22 08:33:10 +0100
commit76b9c085dcc73dc631483609f59140dba1cf87e4 (patch)
treeb546a282eacec356c9c36cbce728919385e6d231 /sources/shiboken6/ApiExtractor/configurabletypeentry.h
parent2c795c34e4a8a1689fe6ac6a1099011e017893ed (diff)
Add support for excluding classes by a preprocessor condition in the module headers
Task-number: PYSIDE-962 Change-Id: I5796d10bda9b760a3fd5d71dc750b3f5f7f29e94 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/configurabletypeentry.h')
-rw-r--r--sources/shiboken6/ApiExtractor/configurabletypeentry.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/configurabletypeentry.h b/sources/shiboken6/ApiExtractor/configurabletypeentry.h
new file mode 100644
index 000000000..59522e16c
--- /dev/null
+++ b/sources/shiboken6/ApiExtractor/configurabletypeentry.h
@@ -0,0 +1,28 @@
+// Copyright (C) 2023 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
+#ifndef CONFIGURABLETYPEENTRY_H
+#define CONFIGURABLETYPEENTRY_H
+
+#include "typesystem.h"
+
+class ConfigurableTypeEntryPrivate;
+
+class ConfigurableTypeEntry : public TypeEntry
+{
+public:
+ explicit ConfigurableTypeEntry(const QString &entryName, Type t,
+ const QVersionNumber &vr,
+ const TypeEntryCPtr &parent);
+
+ TypeEntry *clone() const override;
+
+ QString configCondition() const;
+ void setConfigCondition(const QString &c);
+ bool hasConfigCondition() const;
+
+protected:
+ explicit ConfigurableTypeEntry(ConfigurableTypeEntryPrivate *d);
+};
+
+#endif // CONFIGURABLETYPEENTRY_H