diff options
Diffstat (limited to 'sources/shiboken2/tests/libother')
-rw-r--r-- | sources/shiboken2/tests/libother/CMakeLists.txt | 17 | ||||
-rw-r--r-- | sources/shiboken2/tests/libother/extendsnoimplicitconversion.h | 45 | ||||
-rw-r--r-- | sources/shiboken2/tests/libother/libothermacros.h | 46 | ||||
-rw-r--r-- | sources/shiboken2/tests/libother/number.cpp | 59 | ||||
-rw-r--r-- | sources/shiboken2/tests/libother/number.h | 57 | ||||
-rw-r--r-- | sources/shiboken2/tests/libother/otherderived.cpp | 64 | ||||
-rw-r--r-- | sources/shiboken2/tests/libother/otherderived.h | 68 | ||||
-rw-r--r-- | sources/shiboken2/tests/libother/othermultiplederived.cpp | 50 | ||||
-rw-r--r-- | sources/shiboken2/tests/libother/othermultiplederived.h | 46 | ||||
-rw-r--r-- | sources/shiboken2/tests/libother/otherobjecttype.cpp | 46 | ||||
-rw-r--r-- | sources/shiboken2/tests/libother/otherobjecttype.h | 52 | ||||
-rw-r--r-- | sources/shiboken2/tests/libother/smartptrtester.cpp | 55 | ||||
-rw-r--r-- | sources/shiboken2/tests/libother/smartptrtester.h | 49 |
13 files changed, 0 insertions, 654 deletions
diff --git a/sources/shiboken2/tests/libother/CMakeLists.txt b/sources/shiboken2/tests/libother/CMakeLists.txt deleted file mode 100644 index d1e4c4354..000000000 --- a/sources/shiboken2/tests/libother/CMakeLists.txt +++ /dev/null @@ -1,17 +0,0 @@ -project(libother) - -set(libother_SRC -number.cpp -otherderived.cpp -otherobjecttype.cpp -othermultiplederived.cpp -smartptrtester.cpp -) - -add_library(libother SHARED ${libother_SRC}) -target_include_directories(libother PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) -target_compile_definitions(libother PRIVATE LIBOTHER_BUILD) -target_link_libraries(libother PUBLIC libsample libsmart) -set_property(TARGET libother PROPERTY PREFIX "") - - diff --git a/sources/shiboken2/tests/libother/extendsnoimplicitconversion.h b/sources/shiboken2/tests/libother/extendsnoimplicitconversion.h deleted file mode 100644 index e1bcf0961..000000000 --- a/sources/shiboken2/tests/libother/extendsnoimplicitconversion.h +++ /dev/null @@ -1,45 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the test suite 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 EXTENDSNOIMPLICITCONVERSION_H -#define EXTENDSNOIMPLICITCONVERSION_H - -#include "libothermacros.h" -#include "noimplicitconversion.h" - -class ExtendsNoImplicitConversion -{ -public: - explicit ExtendsNoImplicitConversion(int objId) : m_objId(objId) {}; - inline int objId() const { return m_objId; } - inline operator NoImplicitConversion() const { return NoImplicitConversion(m_objId); } -private: - int m_objId; -}; -#endif // EXTENDSNOIMPLICITCONVERSION_H - diff --git a/sources/shiboken2/tests/libother/libothermacros.h b/sources/shiboken2/tests/libother/libothermacros.h deleted file mode 100644 index 757e9a304..000000000 --- a/sources/shiboken2/tests/libother/libothermacros.h +++ /dev/null @@ -1,46 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the test suite 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 LIBOTHERMACROS_H -#define LIBOTHERMACROS_H - -#if defined _WIN32 || defined __CYGWIN__ - #if LIBOTHER_BUILD - #define LIBOTHER_API __declspec(dllexport) - #else - #define LIBOTHER_API __declspec(dllimport) - #endif -#else -#if __GNUC__ >= 4 - #define LIBOTHER_API __attribute__ ((visibility("default"))) -#else - #define LIBOTHER_API -#endif -#endif - -#endif diff --git a/sources/shiboken2/tests/libother/number.cpp b/sources/shiboken2/tests/libother/number.cpp deleted file mode 100644 index bc97de6a6..000000000 --- a/sources/shiboken2/tests/libother/number.cpp +++ /dev/null @@ -1,59 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the test suite 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$ -** -****************************************************************************/ - -#include "number.h" -#include <cstring> -#include <sstream> - -using namespace std; - -Str -Number::toStr() const -{ - ostringstream in; - in << m_value; - return in.str().c_str(); -} - -Point -operator*(const Point& p, const Number& n) -{ - return Point(p.x() * n.value(), p.y() * n.value()); -} - -Complex -Number::toComplex() const -{ - return Complex(m_value); -} - -Number -Number::fromComplex(Complex cpx) -{ - return Number(cpx.real()); -} diff --git a/sources/shiboken2/tests/libother/number.h b/sources/shiboken2/tests/libother/number.h deleted file mode 100644 index 222c6e1a6..000000000 --- a/sources/shiboken2/tests/libother/number.h +++ /dev/null @@ -1,57 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the test suite 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 NUMBER_H -#define NUMBER_H - -#include "libothermacros.h" -#include "str.h" -#include "point.h" -#include "complex.h" - -class LIBOTHER_API Number -{ -public: - explicit Number(int value) : m_value(value) {}; - inline int value() const { return m_value; } - - Str toStr() const; - inline operator Str() const { return toStr(); } - - friend LIBOTHER_API Point operator*(const Point&, const Number&); - - Complex toComplex() const; - static Number fromComplex(Complex cpx); - -private: - int m_value; -}; - -LIBOTHER_API Point operator*(const Point&, const Number&); - -#endif // NUMBER_H diff --git a/sources/shiboken2/tests/libother/otherderived.cpp b/sources/shiboken2/tests/libother/otherderived.cpp deleted file mode 100644 index d23f6ad23..000000000 --- a/sources/shiboken2/tests/libother/otherderived.cpp +++ /dev/null @@ -1,64 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the test suite 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$ -** -****************************************************************************/ - -#include "otherderived.h" - -OtherDerived::OtherDerived(int id) : Abstract(id) -{ -} - -OtherDerived::~OtherDerived() -{ -} - -Abstract* -OtherDerived::createObject() -{ - static int id = 100; - return new OtherDerived(id++); -} - -void -OtherDerived::pureVirtual() -{ -} - -void* -OtherDerived::pureVirtualReturningVoidPtr() -{ - return nullptr; -} - -void -OtherDerived::unpureVirtual() -{ -} - -void OtherDerived::pureVirtualPrivate() -{ -} diff --git a/sources/shiboken2/tests/libother/otherderived.h b/sources/shiboken2/tests/libother/otherderived.h deleted file mode 100644 index 72e1e2302..000000000 --- a/sources/shiboken2/tests/libother/otherderived.h +++ /dev/null @@ -1,68 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the test suite 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 OTHERDERIVED_H -#define OTHERDERIVED_H - -#include "libothermacros.h" -#include "abstract.h" -#include "derived.h" -#include "objecttype.h" -#include "complex.h" - -class ObjectType; - -class LIBOTHER_API OtherDerived : public Abstract -{ -public: - OtherDerived(int id = -1); - ~OtherDerived() override; - void pureVirtual() override; - void* pureVirtualReturningVoidPtr() override; - void unpureVirtual() override; - PrintFormat returnAnEnum() override { return Short; } - - inline void useObjectTypeFromOtherModule(ObjectType*) {} - inline Event useValueTypeFromOtherModule(const Event& e) { return e; } - inline Complex useValueTypeFromOtherModule(const Complex& c) { return c; } - inline void useEnumTypeFromOtherModule(OverloadedFuncEnum) {} - - // factory method - static Abstract* createObject(); - - void hideFunction(HideType*) override {} - -protected: - inline const char* getClassName() { return className(); } - virtual const char* className() override { return "OtherDerived"; } - -private: - void pureVirtualPrivate() override; -}; -#endif // OTHERDERIVED_H - diff --git a/sources/shiboken2/tests/libother/othermultiplederived.cpp b/sources/shiboken2/tests/libother/othermultiplederived.cpp deleted file mode 100644 index e7ee4f96d..000000000 --- a/sources/shiboken2/tests/libother/othermultiplederived.cpp +++ /dev/null @@ -1,50 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the test suite 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$ -** -****************************************************************************/ - -#include "othermultiplederived.h" - -VirtualMethods OtherMultipleDerived::returnUselessClass() -{ - return VirtualMethods(); -} - -Base1* OtherMultipleDerived::createObject(const std::string& objName) -{ - if (objName == "Base1") - return new Base1; - else if (objName == "MDerived1") - return new MDerived1; - else if (objName == "SonOfMDerived1") - return new SonOfMDerived1; - else if (objName == "MDerived3") - return new MDerived3; - else if (objName == "OtherMultipleDerived") - return new OtherMultipleDerived; - return nullptr; -} - diff --git a/sources/shiboken2/tests/libother/othermultiplederived.h b/sources/shiboken2/tests/libother/othermultiplederived.h deleted file mode 100644 index 84a426ac9..000000000 --- a/sources/shiboken2/tests/libother/othermultiplederived.h +++ /dev/null @@ -1,46 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the test suite 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 OTHERMULTIPLEDERIVED_H -#define OTHERMULTIPLEDERIVED_H - -#include "libothermacros.h" -#include "multiple_derived.h" -#include "virtualmethods.h" - -class ObjectType; - -class LIBOTHER_API OtherMultipleDerived : public MDerived1 -{ -public: - // this will use CppCopier from other module (bug#142) - VirtualMethods returnUselessClass(); - static Base1* createObject(const std::string& objName); -}; - -#endif diff --git a/sources/shiboken2/tests/libother/otherobjecttype.cpp b/sources/shiboken2/tests/libother/otherobjecttype.cpp deleted file mode 100644 index 1f782ecd8..000000000 --- a/sources/shiboken2/tests/libother/otherobjecttype.cpp +++ /dev/null @@ -1,46 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the test suite 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$ -** -****************************************************************************/ - -#include "otherobjecttype.h" - -Collector& -operator<<(Collector& collector, const OtherObjectType& obj) -{ - collector << obj.identifier()*2; - return collector; -} - -int OtherObjectType::enumAsInt(SampleNamespace::SomeClass::PublicScopedEnum value) -{ - return static_cast<int>(value); -} - -int OtherObjectType::enumAsIntForInvisibleNamespace(Invisible::EnumOnNamespace value) -{ - return static_cast<int>(value); -} diff --git a/sources/shiboken2/tests/libother/otherobjecttype.h b/sources/shiboken2/tests/libother/otherobjecttype.h deleted file mode 100644 index efd394347..000000000 --- a/sources/shiboken2/tests/libother/otherobjecttype.h +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the test suite 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 OTHEROBJECTTYPE_H -#define OTHEROBJECTTYPE_H - -#include <list> -#include "str.h" - -#include "libothermacros.h" -#include "objecttype.h" -#include "collector.h" -#include "samplenamespace.h" - - -class LIBOTHER_API OtherObjectType : public ObjectType -{ -public: - static int enumAsInt(SampleNamespace::SomeClass::PublicScopedEnum value); - static int enumAsIntForInvisibleNamespace(Invisible::EnumOnNamespace value); -}; - - -LIBOTHER_API Collector& operator<<(Collector&, const OtherObjectType&); - -#endif // OTHEROBJECTTYPE_H - diff --git a/sources/shiboken2/tests/libother/smartptrtester.cpp b/sources/shiboken2/tests/libother/smartptrtester.cpp deleted file mode 100644 index 9636c7521..000000000 --- a/sources/shiboken2/tests/libother/smartptrtester.cpp +++ /dev/null @@ -1,55 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2019 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the test suite 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$ -** -****************************************************************************/ - -#include "smartptrtester.h" - -SharedPtr<Str> SmartPtrTester::createSharedPtrStr(const char *what) -{ - return SharedPtr<Str>(new Str(what)); -} - -std::string SmartPtrTester::valueOfSharedPtrStr(const SharedPtr<Str> &str) -{ - return str->cstring(); -} - -SharedPtr<Integer> SmartPtrTester::createSharedPtrInteger(int v) -{ - auto i = SharedPtr<Integer>(new Integer); - i->m_int = v; - return i; -} - -int SmartPtrTester::valueOfSharedPtrInteger(const SharedPtr<Integer> &v) -{ - return v->m_int; -} - -void SmartPtrTester::fiddleInt(const SharedPtr<int> &) // no binding, should not cause errors -{ -} diff --git a/sources/shiboken2/tests/libother/smartptrtester.h b/sources/shiboken2/tests/libother/smartptrtester.h deleted file mode 100644 index a560bcf2f..000000000 --- a/sources/shiboken2/tests/libother/smartptrtester.h +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2019 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the test suite 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 SMARTPTRTESTER_H -#define SMARTPTRTESTER_H - -#include "libothermacros.h" - -#include <smart.h> -#include <str.h> - -class LIBOTHER_API SmartPtrTester -{ -public: - SharedPtr<Str> createSharedPtrStr(const char *what); - std::string valueOfSharedPtrStr(const SharedPtr<Str> &); - - SharedPtr<Integer> createSharedPtrInteger(int v); - int valueOfSharedPtrInteger(const SharedPtr<Integer> &); - - void fiddleInt(const SharedPtr<int> &); -}; - -#endif // SMARTPTRTESTER_H |