diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-11-05 16:41:23 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-11-06 08:11:57 +0000 |
commit | 562edc619787d83b2d4418fa7a69c597a7b6945c (patch) | |
tree | 959812de4b3fc30b24a0e7637c5d917c53f1c676 /sources/shiboken6/ApiExtractor/enclosingclassmixin.h | |
parent | e21b3c5f6201c97a89b736cec17a1855870409e8 (diff) |
shiboken6: Split the abstractmetalang headers and sources
Split out enums, fields and functions. Only
AbstractMetaClass remains in abstractmetalang.h.
Change-Id: I49846f92fafc5969d83aa4a1767eb4ac23f39d1c
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/enclosingclassmixin.h')
-rw-r--r-- | sources/shiboken6/ApiExtractor/enclosingclassmixin.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/enclosingclassmixin.h b/sources/shiboken6/ApiExtractor/enclosingclassmixin.h new file mode 100644 index 000000000..61fbc816f --- /dev/null +++ b/sources/shiboken6/ApiExtractor/enclosingclassmixin.h @@ -0,0 +1,44 @@ +/**************************************************************************** +** +** Copyright (C) 2020 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of Qt for Python. +** +** $QT_BEGIN_LICENSE:GPL-EXCEPT$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 3 as published by the Free Software +** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT +** included in the packaging of this file. Please review the following +** information to ensure the GNU General Public License requirements will +** be met: https://www.gnu.org/licenses/gpl-3.0.html. +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef ENCLOSINGCLASSMIXIN_H +#define ENCLOSINGCLASSMIXIN_H + +class AbstractMetaClass; + +class EnclosingClassMixin { +public: + const AbstractMetaClass *enclosingClass() const { return m_enclosingClass; } + void setEnclosingClass(const AbstractMetaClass *cls) { m_enclosingClass = cls; } + const AbstractMetaClass *targetLangEnclosingClass() const; + +private: + const AbstractMetaClass *m_enclosingClass = nullptr; +}; + +#endif // ENCLOSINGCLASSMIXIN_H |