diff options
Diffstat (limited to 'sources/shiboken6/tests/libsample/objecttypeholder.h')
-rw-r--r-- | sources/shiboken6/tests/libsample/objecttypeholder.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/libsample/objecttypeholder.h b/sources/shiboken6/tests/libsample/objecttypeholder.h new file mode 100644 index 000000000..190664608 --- /dev/null +++ b/sources/shiboken6/tests/libsample/objecttypeholder.h @@ -0,0 +1,29 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 + +#ifndef OBJECTTYPEHOLDER_H +#define OBJECTTYPEHOLDER_H + +#include "libsamplemacros.h" +#include "objecttype.h" +#include "str.h" + +class LIBSAMPLE_API ObjectTypeHolder +{ +public: + LIBMINIMAL_DISABLE_COPY_MOVE(ObjectTypeHolder) + + explicit ObjectTypeHolder(const char *objectName); + explicit ObjectTypeHolder(const ObjectType *object) noexcept; + virtual ~ObjectTypeHolder(); + + const ObjectType *getObjectType() const { return m_objectType; } + + virtual Str passObjectTypeAsReference(const ObjectType &objectType); + Str callPassObjectTypeAsReference(); + +private: + const ObjectType *m_objectType; +}; + +#endif // OBJECTTYPEHOLDER_H |