/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt for Python.
**
** $QT_BEGIN_LICENSE:LGPL$
** 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 Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 3 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL3 included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 3 requirements
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 2.0 or (at your option) the GNU General
** Public license version 3 or any later version approved by the KDE Free
** Qt Foundation. The licenses are as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
** 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-2.0.html and
** https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/

//workaround to access protected functions
#define protected public

// default includes
#include <shiboken.h>
#ifndef QT_NO_VERSION_TAGGING
#  define QT_NO_VERSION_TAGGING
#endif
#include <QDebug>
#include <pysidesignal.h>
#include <pysideproperty.h>
#include <pyside.h>
#include <pysideqenum.h>
#include <feature_select.h>
QT_WARNING_DISABLE_DEPRECATED

#include <typeinfo>
#include <iterator>

// module include
#include "pyside6_qtbluetooth_python.h"

// main header
#include "qlowenergycharacteristicdata_wrapper.h"

// inner classes

// Extra includes
#include <QList>
#include <QtBluetooth/qbluetoothuuid.h>
#include <QtBluetooth/qlowenergycharacteristicdata.h>
#include <QtBluetooth/qlowenergydescriptordata.h>
#include <qbytearray.h>


#include <cctype>
#include <cstring>



template <class T>
static const char *typeNameOf(const T &t)
{
    const char *typeName =  typeid(t).name();
    auto size = std::strlen(typeName);
#if defined(Q_CC_MSVC) // MSVC: "class QPaintDevice * __ptr64"
    if (auto lastStar = strchr(typeName, '*')) {
        // MSVC: "class QPaintDevice * __ptr64"
        while (*--lastStar == ' ') {
        }
        size = lastStar - typeName + 1;
    }
#else // g++, Clang: "QPaintDevice *" -> "P12QPaintDevice"
    if (size > 2 && typeName[0] == 'P' && std::isdigit(typeName[1])) {
        ++typeName;
        --size;
    }
#endif
    char *result = new char[size + 1];
    result[size] = '\0';
    memcpy(result, typeName, size);
    return result;
}


// Target ---------------------------------------------------------

extern "C" {
static int
Sbk_QLowEnergyCharacteristicData_Init(PyObject *self, PyObject *args, PyObject *kwds)
{
    SbkObject *sbkSelf = reinterpret_cast<SbkObject *>(self);
    PySide::Feature::Select(self);
    if (Shiboken::Object::isUserType(self) && !Shiboken::ObjectType::canCallConstructor(self->ob_type, Shiboken::SbkType< ::QLowEnergyCharacteristicData >()))
        return -1;

    ::QLowEnergyCharacteristicData *cptr{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtBluetooth.QLowEnergyCharacteristicData.__init__";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp[1];
    SBK_UNUSED(pythonToCpp)
    const Py_ssize_t numArgs = PyTuple_GET_SIZE(args);
    SBK_UNUSED(numArgs)
    PyObject *pyArgs[] = {0};

    // invalid argument lengths


    if (!PyArg_UnpackTuple(args, "QLowEnergyCharacteristicData", 0, 1, &(pyArgs[0])))
        return -1;


    // Overloaded function decisor
    // 0: QLowEnergyCharacteristicData::QLowEnergyCharacteristicData()
    // 1: QLowEnergyCharacteristicData::QLowEnergyCharacteristicData(QLowEnergyCharacteristicData)
    if (numArgs == 0) {
        overloadId = 0; // QLowEnergyCharacteristicData()
    } else if (numArgs == 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCHARACTERISTICDATA_IDX], (pyArgs[0])))) {
        overloadId = 1; // QLowEnergyCharacteristicData(QLowEnergyCharacteristicData)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QLowEnergyCharacteristicData_Init_TypeError;

    // Call function/method
    switch (overloadId) {
        case 0: // QLowEnergyCharacteristicData()
        {

            if (!PyErr_Occurred()) {
                // QLowEnergyCharacteristicData()
                cptr = new ::QLowEnergyCharacteristicData();
            }
            break;
        }
        case 1: // QLowEnergyCharacteristicData(const QLowEnergyCharacteristicData & other)
        {
            if (!Shiboken::Object::isValid(pyArgs[0]))
                return -1;
            ::QLowEnergyCharacteristicData *cppArg0;
            pythonToCpp[0](pyArgs[0], &cppArg0);

            if (!PyErr_Occurred()) {
                // QLowEnergyCharacteristicData(QLowEnergyCharacteristicData)
                cptr = new ::QLowEnergyCharacteristicData(*cppArg0);
            }
            break;
        }
    }

    if (PyErr_Occurred() || !Shiboken::Object::setCppPointer(sbkSelf, Shiboken::SbkType< ::QLowEnergyCharacteristicData >(), cptr)) {
        delete cptr;
        return -1;
    }
    if (!cptr) goto Sbk_QLowEnergyCharacteristicData_Init_TypeError;

    Shiboken::Object::setValidCpp(sbkSelf, true);
    if (Shiboken::BindingManager::instance().hasWrapper(cptr)) {
        Shiboken::BindingManager::instance().releaseWrapper(Shiboken::BindingManager::instance().retrieveWrapper(cptr));
    }
    Shiboken::BindingManager::instance().registerWrapper(sbkSelf, cptr);


    return 1;

    Sbk_QLowEnergyCharacteristicData_Init_TypeError:
        Shiboken::setErrorAboutWrongArguments(args, fullName, errInfo);
        return -1;
}

static PyObject *Sbk_QLowEnergyCharacteristicDataFunc_addDescriptor(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QLowEnergyCharacteristicData *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCHARACTERISTICDATA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtBluetooth.QLowEnergyCharacteristicData.addDescriptor";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QLowEnergyCharacteristicData::addDescriptor(QLowEnergyDescriptorData)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYDESCRIPTORDATA_IDX], (pyArg)))) {
        overloadId = 0; // addDescriptor(QLowEnergyDescriptorData)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QLowEnergyCharacteristicDataFunc_addDescriptor_TypeError;

    // Call function/method
    {
        if (!Shiboken::Object::isValid(pyArg))
            return {};
        ::QLowEnergyDescriptorData *cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // addDescriptor(QLowEnergyDescriptorData)
            cppSelf->addDescriptor(*cppArg0);
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QLowEnergyCharacteristicDataFunc_addDescriptor_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QLowEnergyCharacteristicDataFunc_descriptors(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QLowEnergyCharacteristicData *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCHARACTERISTICDATA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtBluetooth.QLowEnergyCharacteristicData.descriptors";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // descriptors()const
            QList<QLowEnergyDescriptorData > cppResult = const_cast<const ::QLowEnergyCharacteristicData *>(cppSelf)->descriptors();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtBluetoothTypeConverters[SBK_QTBLUETOOTH_QLIST_QLOWENERGYDESCRIPTORDATA_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QLowEnergyCharacteristicDataFunc_isValid(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QLowEnergyCharacteristicData *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCHARACTERISTICDATA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtBluetooth.QLowEnergyCharacteristicData.isValid";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // isValid()const
            bool cppResult = const_cast<const ::QLowEnergyCharacteristicData *>(cppSelf)->isValid();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QLowEnergyCharacteristicDataFunc_maximumValueLength(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QLowEnergyCharacteristicData *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCHARACTERISTICDATA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtBluetooth.QLowEnergyCharacteristicData.maximumValueLength";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // maximumValueLength()const
            int cppResult = const_cast<const ::QLowEnergyCharacteristicData *>(cppSelf)->maximumValueLength();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<int>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QLowEnergyCharacteristicDataFunc_minimumValueLength(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QLowEnergyCharacteristicData *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCHARACTERISTICDATA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtBluetooth.QLowEnergyCharacteristicData.minimumValueLength";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // minimumValueLength()const
            int cppResult = const_cast<const ::QLowEnergyCharacteristicData *>(cppSelf)->minimumValueLength();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<int>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QLowEnergyCharacteristicDataFunc_properties(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QLowEnergyCharacteristicData *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCHARACTERISTICDATA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtBluetooth.QLowEnergyCharacteristicData.properties";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // properties()const
            QFlags<QLowEnergyCharacteristic::PropertyType> cppResult = const_cast<const ::QLowEnergyCharacteristicData *>(cppSelf)->properties();
            pyResult = Shiboken::Conversions::copyToPython(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtBluetoothTypes[SBK_QFLAGS_QLOWENERGYCHARACTERISTIC_PROPERTYTYPE_IDX]))->converter, &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QLowEnergyCharacteristicDataFunc_readConstraints(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QLowEnergyCharacteristicData *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCHARACTERISTICDATA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtBluetooth.QLowEnergyCharacteristicData.readConstraints";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // readConstraints()const
            QFlags<QBluetooth::AttAccessConstraint> cppResult = const_cast<const ::QLowEnergyCharacteristicData *>(cppSelf)->readConstraints();
            pyResult = Shiboken::Conversions::copyToPython(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtBluetoothTypes[SBK_QFLAGS_QBLUETOOTH_ATTACCESSCONSTRAINT_IDX]))->converter, &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QLowEnergyCharacteristicDataFunc_setDescriptors(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QLowEnergyCharacteristicData *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCHARACTERISTICDATA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtBluetooth.QLowEnergyCharacteristicData.setDescriptors";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QLowEnergyCharacteristicData::setDescriptors(QList<QLowEnergyDescriptorData>)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtBluetoothTypeConverters[SBK_QTBLUETOOTH_QLIST_QLOWENERGYDESCRIPTORDATA_IDX], (pyArg)))) {
        overloadId = 0; // setDescriptors(QList<QLowEnergyDescriptorData>)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QLowEnergyCharacteristicDataFunc_setDescriptors_TypeError;

    // Call function/method
    {
        ::QList<QLowEnergyDescriptorData > cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setDescriptors(QList<QLowEnergyDescriptorData>)
            cppSelf->setDescriptors(cppArg0);
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QLowEnergyCharacteristicDataFunc_setDescriptors_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QLowEnergyCharacteristicDataFunc_setProperties(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QLowEnergyCharacteristicData *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCHARACTERISTICDATA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtBluetooth.QLowEnergyCharacteristicData.setProperties";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QLowEnergyCharacteristicData::setProperties(QFlags<QLowEnergyCharacteristic::PropertyType>)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtBluetoothTypes[SBK_QFLAGS_QLOWENERGYCHARACTERISTIC_PROPERTYTYPE_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // setProperties(QFlags<QLowEnergyCharacteristic::PropertyType>)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QLowEnergyCharacteristicDataFunc_setProperties_TypeError;

    // Call function/method
    {
        ::QFlags<QLowEnergyCharacteristic::PropertyType> cppArg0 = QFlags<QLowEnergyCharacteristic::PropertyType>(0);
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setProperties(QFlags<QLowEnergyCharacteristic::PropertyType>)
            cppSelf->setProperties(cppArg0);
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QLowEnergyCharacteristicDataFunc_setProperties_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QLowEnergyCharacteristicDataFunc_setReadConstraints(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QLowEnergyCharacteristicData *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCHARACTERISTICDATA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtBluetooth.QLowEnergyCharacteristicData.setReadConstraints";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QLowEnergyCharacteristicData::setReadConstraints(QFlags<QBluetooth::AttAccessConstraint>)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtBluetoothTypes[SBK_QFLAGS_QBLUETOOTH_ATTACCESSCONSTRAINT_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // setReadConstraints(QFlags<QBluetooth::AttAccessConstraint>)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QLowEnergyCharacteristicDataFunc_setReadConstraints_TypeError;

    // Call function/method
    {
        ::QFlags<QBluetooth::AttAccessConstraint> cppArg0 = QFlags<QBluetooth::AttAccessConstraint>(0);
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setReadConstraints(QFlags<QBluetooth::AttAccessConstraint>)
            cppSelf->setReadConstraints(cppArg0);
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QLowEnergyCharacteristicDataFunc_setReadConstraints_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QLowEnergyCharacteristicDataFunc_setUuid(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QLowEnergyCharacteristicData *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCHARACTERISTICDATA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtBluetooth.QLowEnergyCharacteristicData.setUuid";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QLowEnergyCharacteristicData::setUuid(QBluetoothUuid)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtBluetoothTypes[SBK_QBLUETOOTHUUID_IDX], (pyArg)))) {
        overloadId = 0; // setUuid(QBluetoothUuid)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QLowEnergyCharacteristicDataFunc_setUuid_TypeError;

    // Call function/method
    {
        if (!Shiboken::Object::isValid(pyArg))
            return {};
        ::QBluetoothUuid cppArg0_local;
        ::QBluetoothUuid *cppArg0 = &cppArg0_local;
        if (pythonToCpp.isValue())
            pythonToCpp(pyArg, &cppArg0_local);
        else
            pythonToCpp(pyArg, &cppArg0);


        if (!PyErr_Occurred()) {
            // setUuid(QBluetoothUuid)
            cppSelf->setUuid(*cppArg0);
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QLowEnergyCharacteristicDataFunc_setUuid_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QLowEnergyCharacteristicDataFunc_setValue(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QLowEnergyCharacteristicData *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCHARACTERISTICDATA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtBluetooth.QLowEnergyCharacteristicData.setValue";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QLowEnergyCharacteristicData::setValue(QByteArray)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtCoreTypes[SBK_QBYTEARRAY_IDX], (pyArg)))) {
        overloadId = 0; // setValue(QByteArray)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QLowEnergyCharacteristicDataFunc_setValue_TypeError;

    // Call function/method
    {
        if (!Shiboken::Object::isValid(pyArg))
            return {};
        ::QByteArray cppArg0_local;
        ::QByteArray *cppArg0 = &cppArg0_local;
        if (pythonToCpp.isValue())
            pythonToCpp(pyArg, &cppArg0_local);
        else
            pythonToCpp(pyArg, &cppArg0);


        if (!PyErr_Occurred()) {
            // setValue(QByteArray)
            cppSelf->setValue(*cppArg0);
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QLowEnergyCharacteristicDataFunc_setValue_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QLowEnergyCharacteristicDataFunc_setValueLength(PyObject *self, PyObject *args)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QLowEnergyCharacteristicData *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCHARACTERISTICDATA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtBluetooth.QLowEnergyCharacteristicData.setValueLength";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp[2];
    SBK_UNUSED(pythonToCpp)
    const Py_ssize_t numArgs = PyTuple_GET_SIZE(args);
    SBK_UNUSED(numArgs)
    PyObject *pyArgs[] = {0, 0};

    // invalid argument lengths


    if (!PyArg_UnpackTuple(args, "setValueLength", 2, 2, &(pyArgs[0]), &(pyArgs[1])))
        return {};


    // Overloaded function decisor
    // 0: QLowEnergyCharacteristicData::setValueLength(int,int)
    if (numArgs == 2
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<int>(), (pyArgs[0])))
        && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<int>(), (pyArgs[1])))) {
        overloadId = 0; // setValueLength(int,int)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QLowEnergyCharacteristicDataFunc_setValueLength_TypeError;

    // Call function/method
    {
        int cppArg0;
        pythonToCpp[0](pyArgs[0], &cppArg0);
        int cppArg1;
        pythonToCpp[1](pyArgs[1], &cppArg1);

        if (!PyErr_Occurred()) {
            // setValueLength(int,int)
            cppSelf->setValueLength(cppArg0, cppArg1);
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QLowEnergyCharacteristicDataFunc_setValueLength_TypeError:
        Shiboken::setErrorAboutWrongArguments(args, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QLowEnergyCharacteristicDataFunc_setWriteConstraints(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QLowEnergyCharacteristicData *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCHARACTERISTICDATA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtBluetooth.QLowEnergyCharacteristicData.setWriteConstraints";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QLowEnergyCharacteristicData::setWriteConstraints(QFlags<QBluetooth::AttAccessConstraint>)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtBluetoothTypes[SBK_QFLAGS_QBLUETOOTH_ATTACCESSCONSTRAINT_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // setWriteConstraints(QFlags<QBluetooth::AttAccessConstraint>)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QLowEnergyCharacteristicDataFunc_setWriteConstraints_TypeError;

    // Call function/method
    {
        ::QFlags<QBluetooth::AttAccessConstraint> cppArg0 = QFlags<QBluetooth::AttAccessConstraint>(0);
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setWriteConstraints(QFlags<QBluetooth::AttAccessConstraint>)
            cppSelf->setWriteConstraints(cppArg0);
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QLowEnergyCharacteristicDataFunc_setWriteConstraints_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QLowEnergyCharacteristicDataFunc_swap(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QLowEnergyCharacteristicData *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCHARACTERISTICDATA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtBluetooth.QLowEnergyCharacteristicData.swap";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QLowEnergyCharacteristicData::swap(QLowEnergyCharacteristicData&)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCHARACTERISTICDATA_IDX], (pyArg)))) {
        overloadId = 0; // swap(QLowEnergyCharacteristicData&)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QLowEnergyCharacteristicDataFunc_swap_TypeError;

    // Call function/method
    {
        if (!Shiboken::Object::isValid(pyArg))
            return {};
        ::QLowEnergyCharacteristicData *cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // swap(QLowEnergyCharacteristicData&)
            cppSelf->swap(*cppArg0);
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QLowEnergyCharacteristicDataFunc_swap_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QLowEnergyCharacteristicDataFunc_uuid(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QLowEnergyCharacteristicData *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCHARACTERISTICDATA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtBluetooth.QLowEnergyCharacteristicData.uuid";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // uuid()const
            QBluetoothUuid cppResult = const_cast<const ::QLowEnergyCharacteristicData *>(cppSelf)->uuid();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtBluetoothTypes[SBK_QBLUETOOTHUUID_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QLowEnergyCharacteristicDataFunc_value(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QLowEnergyCharacteristicData *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCHARACTERISTICDATA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtBluetooth.QLowEnergyCharacteristicData.value";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // value()const
            QByteArray cppResult = const_cast<const ::QLowEnergyCharacteristicData *>(cppSelf)->value();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QBYTEARRAY_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QLowEnergyCharacteristicDataFunc_writeConstraints(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QLowEnergyCharacteristicData *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCHARACTERISTICDATA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtBluetooth.QLowEnergyCharacteristicData.writeConstraints";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // writeConstraints()const
            QFlags<QBluetooth::AttAccessConstraint> cppResult = const_cast<const ::QLowEnergyCharacteristicData *>(cppSelf)->writeConstraints();
            pyResult = Shiboken::Conversions::copyToPython(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtBluetoothTypes[SBK_QFLAGS_QBLUETOOTH_ATTACCESSCONSTRAINT_IDX]))->converter, &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}


static const char *Sbk_QLowEnergyCharacteristicData_PropertyStrings[] = {
    nullptr // Sentinel
};

static PyMethodDef Sbk_QLowEnergyCharacteristicData_methods[] = {
    {"addDescriptor", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyCharacteristicDataFunc_addDescriptor), METH_O},
    {"descriptors", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyCharacteristicDataFunc_descriptors), METH_NOARGS},
    {"isValid", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyCharacteristicDataFunc_isValid), METH_NOARGS},
    {"maximumValueLength", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyCharacteristicDataFunc_maximumValueLength), METH_NOARGS},
    {"minimumValueLength", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyCharacteristicDataFunc_minimumValueLength), METH_NOARGS},
    {"properties", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyCharacteristicDataFunc_properties), METH_NOARGS},
    {"readConstraints", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyCharacteristicDataFunc_readConstraints), METH_NOARGS},
    {"setDescriptors", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyCharacteristicDataFunc_setDescriptors), METH_O},
    {"setProperties", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyCharacteristicDataFunc_setProperties), METH_O},
    {"setReadConstraints", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyCharacteristicDataFunc_setReadConstraints), METH_O},
    {"setUuid", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyCharacteristicDataFunc_setUuid), METH_O},
    {"setValue", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyCharacteristicDataFunc_setValue), METH_O},
    {"setValueLength", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyCharacteristicDataFunc_setValueLength), METH_VARARGS},
    {"setWriteConstraints", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyCharacteristicDataFunc_setWriteConstraints), METH_O},
    {"swap", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyCharacteristicDataFunc_swap), METH_O},
    {"uuid", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyCharacteristicDataFunc_uuid), METH_NOARGS},
    {"value", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyCharacteristicDataFunc_value), METH_NOARGS},
    {"writeConstraints", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyCharacteristicDataFunc_writeConstraints), METH_NOARGS},

    {nullptr, nullptr} // Sentinel
};

// Rich comparison
static PyObject * Sbk_QLowEnergyCharacteristicData_richcompare(PyObject *self, PyObject *pyArg, int op)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto &cppSelf = *reinterpret_cast< ::QLowEnergyCharacteristicData *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCHARACTERISTICDATA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    switch (op) {
        case Py_NE:
            if ((pythonToCpp = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCHARACTERISTICDATA_IDX], (pyArg)))) {
                // operator!=(const QLowEnergyCharacteristicData & b)
                if (!Shiboken::Object::isValid(pyArg))
                    return {};
                ::QLowEnergyCharacteristicData *cppArg0;
                pythonToCpp(pyArg, &cppArg0);
                bool cppResult = cppSelf !=(*cppArg0);
                pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
            } else {
                pyResult = Py_True;
                Py_INCREF(pyResult);
            }

            break;
        case Py_EQ:
            if ((pythonToCpp = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCHARACTERISTICDATA_IDX], (pyArg)))) {
                // operator==(const QLowEnergyCharacteristicData & b)
                if (!Shiboken::Object::isValid(pyArg))
                    return {};
                ::QLowEnergyCharacteristicData *cppArg0;
                pythonToCpp(pyArg, &cppArg0);
                bool cppResult = cppSelf ==(*cppArg0);
                pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
            } else {
                pyResult = Py_False;
                Py_INCREF(pyResult);
            }

            break;
        default:
            // PYSIDE-74: By default, we redirect to object's tp_richcompare (which is `==`, `!=`).
            return FallbackRichCompare(self, pyArg, op);
            goto Sbk_QLowEnergyCharacteristicData_RichComparison_TypeError;
    }

    if (pyResult && !PyErr_Occurred())
        return pyResult;
    Sbk_QLowEnergyCharacteristicData_RichComparison_TypeError:
    PyErr_SetString(PyExc_NotImplementedError, "operator not implemented.");
    return {};

}

} // extern "C"

static int Sbk_QLowEnergyCharacteristicData_traverse(PyObject *self, visitproc visit, void *arg)
{
    return SbkObject_TypeF()->tp_traverse(self, visit, arg);
}
static int Sbk_QLowEnergyCharacteristicData_clear(PyObject *self)
{
    return reinterpret_cast<PyTypeObject *>(SbkObject_TypeF())->tp_clear(self);
}
// Class Definition -----------------------------------------------
extern "C" {
static PyTypeObject *_Sbk_QLowEnergyCharacteristicData_Type = nullptr;
static PyTypeObject *Sbk_QLowEnergyCharacteristicData_TypeF(void)
{
    return _Sbk_QLowEnergyCharacteristicData_Type;
}

static PyType_Slot Sbk_QLowEnergyCharacteristicData_slots[] = {
    {Py_tp_base,        nullptr}, // inserted by introduceWrapperType
    {Py_tp_dealloc,     reinterpret_cast<void *>(&SbkDeallocWrapper)},
    {Py_tp_repr,        nullptr},
    {Py_tp_hash,        nullptr},
    {Py_tp_call,        nullptr},
    {Py_tp_str,         nullptr},
    {Py_tp_getattro,    nullptr},
    {Py_tp_setattro,    nullptr},
    {Py_tp_traverse,    reinterpret_cast<void *>(Sbk_QLowEnergyCharacteristicData_traverse)},
    {Py_tp_clear,       reinterpret_cast<void *>(Sbk_QLowEnergyCharacteristicData_clear)},
    {Py_tp_richcompare, reinterpret_cast<void *>(Sbk_QLowEnergyCharacteristicData_richcompare)},
    {Py_tp_iter,        nullptr},
    {Py_tp_iternext,    nullptr},
    {Py_tp_methods,     reinterpret_cast<void *>(Sbk_QLowEnergyCharacteristicData_methods)},
    {Py_tp_getset,      nullptr},
    {Py_tp_init,        reinterpret_cast<void *>(Sbk_QLowEnergyCharacteristicData_Init)},
    {Py_tp_new,         reinterpret_cast<void *>(SbkObjectTpNew)},
    {0, nullptr}
};
static PyType_Spec Sbk_QLowEnergyCharacteristicData_spec = {
    "2:PySide6.QtBluetooth.QLowEnergyCharacteristicData",
    sizeof(SbkObject),
    0,
    Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
    Sbk_QLowEnergyCharacteristicData_slots
};

} //extern "C"


// Type conversion functions.

// Python to C++ pointer conversion - returns the C++ object of the Python wrapper (keeps object identity).
static void QLowEnergyCharacteristicData_PythonToCpp_QLowEnergyCharacteristicData_PTR(PyObject *pyIn, void *cppOut)
{
    Shiboken::Conversions::pythonToCppPointer(Sbk_QLowEnergyCharacteristicData_TypeF(), pyIn, cppOut);
}
static PythonToCppFunc is_QLowEnergyCharacteristicData_PythonToCpp_QLowEnergyCharacteristicData_PTR_Convertible(PyObject *pyIn)
{
    if (pyIn == Py_None)
        return Shiboken::Conversions::nonePythonToCppNullPtr;
    if (PyObject_TypeCheck(pyIn, reinterpret_cast<PyTypeObject *>(Sbk_QLowEnergyCharacteristicData_TypeF())))
        return QLowEnergyCharacteristicData_PythonToCpp_QLowEnergyCharacteristicData_PTR;
    return {};
}

// C++ to Python pointer conversion - tries to find the Python wrapper for the C++ object (keeps object identity).
static PyObject *QLowEnergyCharacteristicData_PTR_CppToPython_QLowEnergyCharacteristicData(const void *cppIn)
{
    auto pyOut = reinterpret_cast<PyObject *>(Shiboken::BindingManager::instance().retrieveWrapper(cppIn));
    if (pyOut) {
        Py_INCREF(pyOut);
        return pyOut;
    }
    bool changedTypeName = false;
    auto tCppIn = reinterpret_cast<const ::QLowEnergyCharacteristicData *>(cppIn);
    const char *typeName = typeid(*tCppIn).name();
    auto sbkType = Shiboken::ObjectType::typeForTypeName(typeName);
    if (sbkType && Shiboken::ObjectType::hasSpecialCastFunction(sbkType)) {
        typeName = typeNameOf(tCppIn);
        changedTypeName = true;
    }
    PyObject *result = Shiboken::Object::newObject(Sbk_QLowEnergyCharacteristicData_TypeF(), const_cast<void *>(cppIn), false, /* exactType */ changedTypeName, typeName);
    if (changedTypeName)
        delete [] typeName;
    return result;
}

// The signatures string for the functions.
// Multiple signatures have their index "n:" in front.
static const char *QLowEnergyCharacteristicData_SignatureStrings[] = {
    "1:PySide6.QtBluetooth.QLowEnergyCharacteristicData(self)",
    "0:PySide6.QtBluetooth.QLowEnergyCharacteristicData(self,other:PySide6.QtBluetooth.QLowEnergyCharacteristicData)",
    "PySide6.QtBluetooth.QLowEnergyCharacteristicData.addDescriptor(self,descriptor:PySide6.QtBluetooth.QLowEnergyDescriptorData)",
    "PySide6.QtBluetooth.QLowEnergyCharacteristicData.descriptors(self)->QList[PySide6.QtBluetooth.QLowEnergyDescriptorData]",
    "PySide6.QtBluetooth.QLowEnergyCharacteristicData.isValid(self)->bool",
    "PySide6.QtBluetooth.QLowEnergyCharacteristicData.maximumValueLength(self)->int",
    "PySide6.QtBluetooth.QLowEnergyCharacteristicData.minimumValueLength(self)->int",
    "PySide6.QtBluetooth.QLowEnergyCharacteristicData.properties(self)->PySide6.QtBluetooth.QLowEnergyCharacteristic.PropertyTypes",
    "PySide6.QtBluetooth.QLowEnergyCharacteristicData.readConstraints(self)->PySide6.QtBluetooth.QBluetooth.AttAccessConstraints",
    "PySide6.QtBluetooth.QLowEnergyCharacteristicData.setDescriptors(self,descriptors:QList[PySide6.QtBluetooth.QLowEnergyDescriptorData])",
    "PySide6.QtBluetooth.QLowEnergyCharacteristicData.setProperties(self,properties:PySide6.QtBluetooth.QLowEnergyCharacteristic.PropertyTypes)",
    "PySide6.QtBluetooth.QLowEnergyCharacteristicData.setReadConstraints(self,constraints:PySide6.QtBluetooth.QBluetooth.AttAccessConstraints)",
    "PySide6.QtBluetooth.QLowEnergyCharacteristicData.setUuid(self,uuid:typing.Union[PySide6.QtBluetooth.QBluetoothUuid, PySide6.QtBluetooth.QBluetoothUuid.CharacteristicType, PySide6.QtBluetooth.QBluetoothUuid.DescriptorType, PySide6.QtBluetooth.QBluetoothUuid.ProtocolUuid, PySide6.QtBluetooth.QBluetoothUuid.ServiceClassUuid, PySide6.QtCore.QUuid])",
    "PySide6.QtBluetooth.QLowEnergyCharacteristicData.setValue(self,value:typing.Union[PySide6.QtCore.QByteArray, char*])",
    "PySide6.QtBluetooth.QLowEnergyCharacteristicData.setValueLength(self,minimum:int,maximum:int)",
    "PySide6.QtBluetooth.QLowEnergyCharacteristicData.setWriteConstraints(self,constraints:PySide6.QtBluetooth.QBluetooth.AttAccessConstraints)",
    "PySide6.QtBluetooth.QLowEnergyCharacteristicData.swap(self,other:PySide6.QtBluetooth.QLowEnergyCharacteristicData)",
    "PySide6.QtBluetooth.QLowEnergyCharacteristicData.uuid(self)->PySide6.QtBluetooth.QBluetoothUuid",
    "PySide6.QtBluetooth.QLowEnergyCharacteristicData.value(self)->PySide6.QtCore.QByteArray",
    "PySide6.QtBluetooth.QLowEnergyCharacteristicData.writeConstraints(self)->PySide6.QtBluetooth.QBluetooth.AttAccessConstraints",
    nullptr}; // Sentinel

void init_QLowEnergyCharacteristicData(PyObject *module)
{
    _Sbk_QLowEnergyCharacteristicData_Type = Shiboken::ObjectType::introduceWrapperType(
        module,
        "QLowEnergyCharacteristicData",
        "QLowEnergyCharacteristicData*",
        &Sbk_QLowEnergyCharacteristicData_spec,
        &Shiboken::callCppDestructor< ::QLowEnergyCharacteristicData >,
        0,
        0,
        0);
    auto *pyType = Sbk_QLowEnergyCharacteristicData_TypeF(); // references _Sbk_QLowEnergyCharacteristicData_Type
    InitSignatureStrings(pyType, QLowEnergyCharacteristicData_SignatureStrings);
    SbkObjectType_SetPropertyStrings(reinterpret_cast<PyTypeObject *>(_Sbk_QLowEnergyCharacteristicData_Type), Sbk_QLowEnergyCharacteristicData_PropertyStrings);
    SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCHARACTERISTICDATA_IDX]
        = Sbk_QLowEnergyCharacteristicData_TypeF();

    // Register Converter
    SbkConverter *converter = Shiboken::Conversions::createConverter(Sbk_QLowEnergyCharacteristicData_TypeF(),
        QLowEnergyCharacteristicData_PythonToCpp_QLowEnergyCharacteristicData_PTR,
        is_QLowEnergyCharacteristicData_PythonToCpp_QLowEnergyCharacteristicData_PTR_Convertible,
        QLowEnergyCharacteristicData_PTR_CppToPython_QLowEnergyCharacteristicData);

    Shiboken::Conversions::registerConverterName(converter, "QLowEnergyCharacteristicData");
    Shiboken::Conversions::registerConverterName(converter, "QLowEnergyCharacteristicData*");
    Shiboken::Conversions::registerConverterName(converter, "QLowEnergyCharacteristicData&");
    Shiboken::Conversions::registerConverterName(converter, typeid(::QLowEnergyCharacteristicData).name());


}
