/****************************************************************************
**
** 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 <signalmanager.h>
#include <pysidemetafunction.h>
#include <iterator>

// module include
#include "pyside6_qtbluetooth_python.h"

// main header
#include "qlowenergycontroller_wrapper.h"

// inner classes

#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;
}

// Native ---------------------------------------------------------

void QLowEnergyControllerWrapper::resetPyMethodCache()
{
    std::fill_n(m_PyMethodCache, sizeof(m_PyMethodCache) / sizeof(m_PyMethodCache[0]), false);
}

void QLowEnergyControllerWrapper::childEvent(QChildEvent * event)
{
    if (m_PyMethodCache[0]) {
        return this->::QObject::childEvent(event);
    }
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "childEvent";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[0] = true;
        return this->::QObject::childEvent(event);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(N)",
        Shiboken::Conversions::pointerToPython(SbkPySide6_QtCoreTypes[SBK_QCHILDEVENT_IDX], event)
    ));
    bool invalidateArg1 = PyTuple_GET_ITEM(pyArgs, 0)->ob_refcnt == 1;

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (invalidateArg1)
        Shiboken::Object::invalidate(PyTuple_GET_ITEM(pyArgs, 0));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return;
    }
}

void QLowEnergyControllerWrapper::connectNotify(const QMetaMethod & signal)
{
    if (m_PyMethodCache[1]) {
        return this->::QObject::connectNotify(signal);
    }
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "connectNotify";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[1] = true;
        return this->::QObject::connectNotify(signal);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(N)",
        Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QMETAMETHOD_IDX], &signal)
    ));

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return;
    }
}

void QLowEnergyControllerWrapper::customEvent(QEvent * event)
{
    if (m_PyMethodCache[2]) {
        return this->::QObject::customEvent(event);
    }
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "customEvent";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[2] = true;
        return this->::QObject::customEvent(event);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(N)",
        Shiboken::Conversions::pointerToPython(SbkPySide6_QtCoreTypes[SBK_QEVENT_IDX], event)
    ));
    bool invalidateArg1 = PyTuple_GET_ITEM(pyArgs, 0)->ob_refcnt == 1;

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (invalidateArg1)
        Shiboken::Object::invalidate(PyTuple_GET_ITEM(pyArgs, 0));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return;
    }
}

void QLowEnergyControllerWrapper::disconnectNotify(const QMetaMethod & signal)
{
    if (m_PyMethodCache[3]) {
        return this->::QObject::disconnectNotify(signal);
    }
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "disconnectNotify";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[3] = true;
        return this->::QObject::disconnectNotify(signal);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(N)",
        Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QMETAMETHOD_IDX], &signal)
    ));

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return;
    }
}

bool QLowEnergyControllerWrapper::event(QEvent * event)
{
    if (m_PyMethodCache[4])
        return this->::QObject::event(event);
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return false;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "event";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[4] = true;
        return this->::QObject::event(event);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(N)",
        Shiboken::Conversions::pointerToPython(SbkPySide6_QtCoreTypes[SBK_QEVENT_IDX], event)
    ));
    bool invalidateArg1 = PyTuple_GET_ITEM(pyArgs, 0)->ob_refcnt == 1;

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (invalidateArg1)
        Shiboken::Object::invalidate(PyTuple_GET_ITEM(pyArgs, 0));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return false;
    }
    // Check return type
    Shiboken::Conversions::PythonToCppConversion pythonToCpp =
        Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), pyResult);
    if (!pythonToCpp) {
        Shiboken::warning(PyExc_RuntimeWarning, 2,
            "Invalid return value in function %s, expected %s, got %s.",
            "QLowEnergyController.event",
            "bool",
            Py_TYPE(pyResult)->tp_name);
        return false;
    }
    bool cppResult;
    pythonToCpp(pyResult, &cppResult);
    return cppResult;
}

bool QLowEnergyControllerWrapper::eventFilter(QObject * watched, QEvent * event)
{
    if (m_PyMethodCache[5])
        return this->::QObject::eventFilter(watched, event);
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return false;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "eventFilter";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[5] = true;
        return this->::QObject::eventFilter(watched, event);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(NN)",
        Shiboken::Conversions::pointerToPython(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], watched),
        Shiboken::Conversions::pointerToPython(SbkPySide6_QtCoreTypes[SBK_QEVENT_IDX], event)
    ));
    bool invalidateArg2 = PyTuple_GET_ITEM(pyArgs, 1)->ob_refcnt == 1;

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (invalidateArg2)
        Shiboken::Object::invalidate(PyTuple_GET_ITEM(pyArgs, 1));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return false;
    }
    // Check return type
    Shiboken::Conversions::PythonToCppConversion pythonToCpp =
        Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), pyResult);
    if (!pythonToCpp) {
        Shiboken::warning(PyExc_RuntimeWarning, 2,
            "Invalid return value in function %s, expected %s, got %s.",
            "QLowEnergyController.eventFilter",
            "bool",
            Py_TYPE(pyResult)->tp_name);
        return false;
    }
    bool cppResult;
    pythonToCpp(pyResult, &cppResult);
    return cppResult;
}

void QLowEnergyControllerWrapper::timerEvent(QTimerEvent * event)
{
    if (m_PyMethodCache[7]) {
        return this->::QObject::timerEvent(event);
    }
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "timerEvent";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[7] = true;
        return this->::QObject::timerEvent(event);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(N)",
        Shiboken::Conversions::pointerToPython(SbkPySide6_QtCoreTypes[SBK_QTIMEREVENT_IDX], event)
    ));
    bool invalidateArg1 = PyTuple_GET_ITEM(pyArgs, 0)->ob_refcnt == 1;

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (invalidateArg1)
        Shiboken::Object::invalidate(PyTuple_GET_ITEM(pyArgs, 0));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return;
    }
}

const QMetaObject *QLowEnergyControllerWrapper::metaObject() const
{
    if (QObject::d_ptr->metaObject)
        return QObject::d_ptr->dynamicMetaObject();
    SbkObject *pySelf = Shiboken::BindingManager::instance().retrieveWrapper(this);
    if (pySelf == nullptr)
        return QLowEnergyController::metaObject();
    return PySide::SignalManager::retrieveMetaObject(reinterpret_cast<PyObject *>(pySelf));
}

int QLowEnergyControllerWrapper::qt_metacall(QMetaObject::Call call, int id, void **args)
{
    int result = QLowEnergyController::qt_metacall(call, id, args);
    return result < 0 ? result : PySide::SignalManager::qt_metacall(this, call, id, args);
}

void *QLowEnergyControllerWrapper::qt_metacast(const char *_clname)
{
    if (!_clname)
        return {};
    SbkObject *pySelf = Shiboken::BindingManager::instance().retrieveWrapper(this);
    if (pySelf && PySide::inherits(Py_TYPE(pySelf), _clname))
        return static_cast<void *>(const_cast< QLowEnergyControllerWrapper *>(this));
    return QLowEnergyController::qt_metacast(_clname);
}

QLowEnergyControllerWrapper::~QLowEnergyControllerWrapper()
{
    SbkObject *wrapper = Shiboken::BindingManager::instance().retrieveWrapper(this);
    Shiboken::Object::destroy(wrapper, this);
}

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

extern "C" {
static PyObject *Sbk_QLowEnergyControllerFunc_addService(PyObject *self, PyObject *args, PyObject *kwds)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QLowEnergyController *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtBluetooth.QLowEnergyController.addService";
    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 (numArgs > 2) {
        static PyObject *const too_many = Shiboken::String::createStaticString(">");
        errInfo.reset(too_many);
        Py_INCREF(errInfo.object());
        goto Sbk_QLowEnergyControllerFunc_addService_TypeError;
    } else if (numArgs < 1) {
        static PyObject *const too_few = Shiboken::String::createStaticString("<");
        errInfo.reset(too_few);
        Py_INCREF(errInfo.object());
        goto Sbk_QLowEnergyControllerFunc_addService_TypeError;
    }

    if (!PyArg_ParseTuple(args, "|OO:addService", &(pyArgs[0]), &(pyArgs[1])))
        return {};


    // Overloaded function decisor
    // 0: QLowEnergyController::addService(QLowEnergyServiceData,QObject*)->QLowEnergyService*
    if (numArgs >= 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYSERVICEDATA_IDX], (pyArgs[0])))) {
        if (numArgs == 1) {
            overloadId = 0; // addService(QLowEnergyServiceData,QObject*)
        } else if (numArgs >= 2
            && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[1])))) {
            overloadId = 0; // addService(QLowEnergyServiceData,QObject*)
        }
    }

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

    // Call function/method
    {
        if (kwds && PyDict_Size(kwds) > 0) {
            PyObject *value{};
            Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
            static PyObject *const key_parent = Shiboken::String::createStaticString("parent");
            if (PyDict_Contains(kwds, key_parent)) {
                value = PyDict_GetItem(kwds, key_parent);
                if (value && pyArgs[1]) {
                    errInfo.reset(key_parent);
                    Py_INCREF(errInfo.object());
                    goto Sbk_QLowEnergyControllerFunc_addService_TypeError;
                }
                if (value) {
                    pyArgs[1] = value;
                    if (!(pythonToCpp[1] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[1]))))
                        goto Sbk_QLowEnergyControllerFunc_addService_TypeError;
                }
                PyDict_DelItem(kwds_dup, key_parent);
            }
            if (PyDict_Size(kwds_dup) > 0) {
                errInfo.reset(kwds_dup.release());
                goto Sbk_QLowEnergyControllerFunc_addService_TypeError;
            }
        }
        if (!Shiboken::Object::isValid(pyArgs[0]))
            return {};
        ::QLowEnergyServiceData cppArg0_local;
        ::QLowEnergyServiceData *cppArg0 = &cppArg0_local;
        if (pythonToCpp[0].isValue())
            pythonToCpp[0](pyArgs[0], &cppArg0_local);
        else
            pythonToCpp[0](pyArgs[0], &cppArg0);

        if (!Shiboken::Object::isValid(pyArgs[1]))
            return {};
        ::QObject *cppArg1 = nullptr;
        if (pythonToCpp[1])
            pythonToCpp[1](pyArgs[1], &cppArg1);

        if (!PyErr_Occurred()) {
            // addService(QLowEnergyServiceData,QObject*)
            QLowEnergyService * cppResult = cppSelf->addService(*cppArg0, cppArg1);
            pyResult = Shiboken::Conversions::pointerToPython(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYSERVICE_IDX], cppResult);
            Shiboken::Object::setParent(self, pyResult);
        }
    }

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

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // connectToDevice()
            cppSelf->connectToDevice();
        }
    }

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

static PyObject *Sbk_QLowEnergyControllerFunc_createCentral(PyObject *self, PyObject *args, PyObject *kwds)
{
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtBluetooth.QLowEnergyController.createCentral";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp[3];
    SBK_UNUSED(pythonToCpp)
    const Py_ssize_t numArgs = PyTuple_GET_SIZE(args);
    SBK_UNUSED(numArgs)
    PyObject *pyArgs[] = {0, 0, 0};

    // invalid argument lengths
    if (numArgs > 3) {
        static PyObject *const too_many = Shiboken::String::createStaticString(">");
        errInfo.reset(too_many);
        Py_INCREF(errInfo.object());
        goto Sbk_QLowEnergyControllerFunc_createCentral_TypeError;
    } else if (numArgs < 1) {
        static PyObject *const too_few = Shiboken::String::createStaticString("<");
        errInfo.reset(too_few);
        Py_INCREF(errInfo.object());
        goto Sbk_QLowEnergyControllerFunc_createCentral_TypeError;
    }

    if (!PyArg_ParseTuple(args, "|OOO:createCentral", &(pyArgs[0]), &(pyArgs[1]), &(pyArgs[2])))
        return {};


    // Overloaded function decisor
    // 0: static QLowEnergyController::createCentral(QBluetoothDeviceInfo,QObject*)->QLowEnergyController*
    // 1: static QLowEnergyController::createCentral(QBluetoothDeviceInfo,QBluetoothAddress,QObject*)->QLowEnergyController*
    if (numArgs >= 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtBluetoothTypes[SBK_QBLUETOOTHDEVICEINFO_IDX], (pyArgs[0])))) {
        if (numArgs == 1) {
            overloadId = 0; // createCentral(QBluetoothDeviceInfo,QObject*)
        } else if (numArgs >= 2
            && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtBluetoothTypes[SBK_QBLUETOOTHADDRESS_IDX], (pyArgs[1])))) {
            if (numArgs == 2) {
                overloadId = 1; // createCentral(QBluetoothDeviceInfo,QBluetoothAddress,QObject*)
            } else if (numArgs >= 3
                && (pythonToCpp[2] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[2])))) {
                overloadId = 1; // createCentral(QBluetoothDeviceInfo,QBluetoothAddress,QObject*)
            }
        } else if (numArgs >= 2
            && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[1])))) {
            overloadId = 0; // createCentral(QBluetoothDeviceInfo,QObject*)
        }
    }

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

    // Call function/method
    switch (overloadId) {
        case 0: // createCentral(const QBluetoothDeviceInfo & remoteDevice, QObject * parent)
        {
            if (kwds && PyDict_Size(kwds) > 0) {
                PyObject *value{};
                Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
                static PyObject *const key_parent = Shiboken::String::createStaticString("parent");
                if (PyDict_Contains(kwds, key_parent)) {
                    value = PyDict_GetItem(kwds, key_parent);
                    if (value && pyArgs[1]) {
                        errInfo.reset(key_parent);
                        Py_INCREF(errInfo.object());
                        goto Sbk_QLowEnergyControllerFunc_createCentral_TypeError;
                    }
                    if (value) {
                        pyArgs[1] = value;
                        if (!(pythonToCpp[1] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[1]))))
                            goto Sbk_QLowEnergyControllerFunc_createCentral_TypeError;
                    }
                    PyDict_DelItem(kwds_dup, key_parent);
                }
                if (PyDict_Size(kwds_dup) > 0) {
                    errInfo.reset(kwds_dup.release());
                    goto Sbk_QLowEnergyControllerFunc_createCentral_TypeError;
                }
            }
            if (!Shiboken::Object::isValid(pyArgs[0]))
                return {};
            ::QBluetoothDeviceInfo cppArg0_local;
            ::QBluetoothDeviceInfo *cppArg0 = &cppArg0_local;
            if (pythonToCpp[0].isValue())
                pythonToCpp[0](pyArgs[0], &cppArg0_local);
            else
                pythonToCpp[0](pyArgs[0], &cppArg0);

            if (!Shiboken::Object::isValid(pyArgs[1]))
                return {};
            ::QObject *cppArg1 = nullptr;
            if (pythonToCpp[1])
                pythonToCpp[1](pyArgs[1], &cppArg1);

            if (!PyErr_Occurred()) {
                // createCentral(QBluetoothDeviceInfo,QObject*)
                QLowEnergyController * cppResult = ::QLowEnergyController::createCentral(*cppArg0, cppArg1);
                pyResult = Shiboken::Conversions::pointerToPython(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_IDX], cppResult);
            }
            break;
        }
        case 1: // createCentral(const QBluetoothDeviceInfo & remoteDevice, const QBluetoothAddress & localDevice, QObject * parent)
        {
            if (kwds && PyDict_Size(kwds) > 0) {
                PyObject *value{};
                Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
                static PyObject *const key_parent = Shiboken::String::createStaticString("parent");
                if (PyDict_Contains(kwds, key_parent)) {
                    value = PyDict_GetItem(kwds, key_parent);
                    if (value && pyArgs[2]) {
                        errInfo.reset(key_parent);
                        Py_INCREF(errInfo.object());
                        goto Sbk_QLowEnergyControllerFunc_createCentral_TypeError;
                    }
                    if (value) {
                        pyArgs[2] = value;
                        if (!(pythonToCpp[2] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[2]))))
                            goto Sbk_QLowEnergyControllerFunc_createCentral_TypeError;
                    }
                    PyDict_DelItem(kwds_dup, key_parent);
                }
                if (PyDict_Size(kwds_dup) > 0) {
                    errInfo.reset(kwds_dup.release());
                    goto Sbk_QLowEnergyControllerFunc_createCentral_TypeError;
                }
            }
            if (!Shiboken::Object::isValid(pyArgs[0]))
                return {};
            ::QBluetoothDeviceInfo cppArg0_local;
            ::QBluetoothDeviceInfo *cppArg0 = &cppArg0_local;
            if (pythonToCpp[0].isValue())
                pythonToCpp[0](pyArgs[0], &cppArg0_local);
            else
                pythonToCpp[0](pyArgs[0], &cppArg0);

            if (!Shiboken::Object::isValid(pyArgs[1]))
                return {};
            ::QBluetoothAddress cppArg1_local;
            ::QBluetoothAddress *cppArg1 = &cppArg1_local;
            if (pythonToCpp[1].isValue())
                pythonToCpp[1](pyArgs[1], &cppArg1_local);
            else
                pythonToCpp[1](pyArgs[1], &cppArg1);

            if (!Shiboken::Object::isValid(pyArgs[2]))
                return {};
            ::QObject *cppArg2 = nullptr;
            if (pythonToCpp[2])
                pythonToCpp[2](pyArgs[2], &cppArg2);

            if (!PyErr_Occurred()) {
                // createCentral(QBluetoothDeviceInfo,QBluetoothAddress,QObject*)
                QLowEnergyController * cppResult = ::QLowEnergyController::createCentral(*cppArg0, *cppArg1, cppArg2);
                pyResult = Shiboken::Conversions::pointerToPython(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_IDX], cppResult);
            }
            break;
        }
    }

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

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

static PyObject *Sbk_QLowEnergyControllerFunc_createPeripheral(PyObject *self, PyObject *args, PyObject *kwds)
{
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtBluetooth.QLowEnergyController.createPeripheral";
    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 (numArgs > 2) {
        static PyObject *const too_many = Shiboken::String::createStaticString(">");
        errInfo.reset(too_many);
        Py_INCREF(errInfo.object());
        goto Sbk_QLowEnergyControllerFunc_createPeripheral_TypeError;
    }

    if (!PyArg_ParseTuple(args, "|OO:createPeripheral", &(pyArgs[0]), &(pyArgs[1])))
        return {};


    // Overloaded function decisor
    // 0: static QLowEnergyController::createPeripheral(QObject*)->QLowEnergyController*
    // 1: static QLowEnergyController::createPeripheral(QBluetoothAddress,QObject*)->QLowEnergyController*
    if (numArgs == 0) {
        overloadId = 0; // createPeripheral(QObject*)
    } else if (numArgs >= 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtBluetoothTypes[SBK_QBLUETOOTHADDRESS_IDX], (pyArgs[0])))) {
        if (numArgs == 1) {
            overloadId = 1; // createPeripheral(QBluetoothAddress,QObject*)
        } else if (numArgs >= 2
            && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[1])))) {
            overloadId = 1; // createPeripheral(QBluetoothAddress,QObject*)
        }
    } else if (numArgs >= 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[0])))) {
        overloadId = 0; // createPeripheral(QObject*)
    }

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

    // Call function/method
    switch (overloadId) {
        case 0: // createPeripheral(QObject * parent)
        {
            if (kwds && PyDict_Size(kwds) > 0) {
                PyObject *value{};
                Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
                static PyObject *const key_parent = Shiboken::String::createStaticString("parent");
                if (PyDict_Contains(kwds, key_parent)) {
                    value = PyDict_GetItem(kwds, key_parent);
                    if (value && pyArgs[0]) {
                        errInfo.reset(key_parent);
                        Py_INCREF(errInfo.object());
                        goto Sbk_QLowEnergyControllerFunc_createPeripheral_TypeError;
                    }
                    if (value) {
                        pyArgs[0] = value;
                        if (!(pythonToCpp[0] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[0]))))
                            goto Sbk_QLowEnergyControllerFunc_createPeripheral_TypeError;
                    }
                    PyDict_DelItem(kwds_dup, key_parent);
                }
                if (PyDict_Size(kwds_dup) > 0) {
                    errInfo.reset(kwds_dup.release());
                    goto Sbk_QLowEnergyControllerFunc_createPeripheral_TypeError;
                }
            }
            if (!Shiboken::Object::isValid(pyArgs[0]))
                return {};
            ::QObject *cppArg0 = nullptr;
            if (pythonToCpp[0])
                pythonToCpp[0](pyArgs[0], &cppArg0);

            if (!PyErr_Occurred()) {
                // createPeripheral(QObject*)
                QLowEnergyController * cppResult = ::QLowEnergyController::createPeripheral(cppArg0);
                pyResult = Shiboken::Conversions::pointerToPython(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_IDX], cppResult);
            }
            break;
        }
        case 1: // createPeripheral(const QBluetoothAddress & localDevice, QObject * parent)
        {
            if (kwds && PyDict_Size(kwds) > 0) {
                PyObject *value{};
                Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
                static PyObject *const key_parent = Shiboken::String::createStaticString("parent");
                if (PyDict_Contains(kwds, key_parent)) {
                    value = PyDict_GetItem(kwds, key_parent);
                    if (value && pyArgs[1]) {
                        errInfo.reset(key_parent);
                        Py_INCREF(errInfo.object());
                        goto Sbk_QLowEnergyControllerFunc_createPeripheral_TypeError;
                    }
                    if (value) {
                        pyArgs[1] = value;
                        if (!(pythonToCpp[1] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[1]))))
                            goto Sbk_QLowEnergyControllerFunc_createPeripheral_TypeError;
                    }
                    PyDict_DelItem(kwds_dup, key_parent);
                }
                if (PyDict_Size(kwds_dup) > 0) {
                    errInfo.reset(kwds_dup.release());
                    goto Sbk_QLowEnergyControllerFunc_createPeripheral_TypeError;
                }
            }
            if (!Shiboken::Object::isValid(pyArgs[0]))
                return {};
            ::QBluetoothAddress cppArg0_local;
            ::QBluetoothAddress *cppArg0 = &cppArg0_local;
            if (pythonToCpp[0].isValue())
                pythonToCpp[0](pyArgs[0], &cppArg0_local);
            else
                pythonToCpp[0](pyArgs[0], &cppArg0);

            if (!Shiboken::Object::isValid(pyArgs[1]))
                return {};
            ::QObject *cppArg1 = nullptr;
            if (pythonToCpp[1])
                pythonToCpp[1](pyArgs[1], &cppArg1);

            if (!PyErr_Occurred()) {
                // createPeripheral(QBluetoothAddress,QObject*)
                QLowEnergyController * cppResult = ::QLowEnergyController::createPeripheral(*cppArg0, cppArg1);
                pyResult = Shiboken::Conversions::pointerToPython(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_IDX], cppResult);
            }
            break;
        }
    }

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

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

static PyObject *Sbk_QLowEnergyControllerFunc_createServiceObject(PyObject *self, PyObject *args, PyObject *kwds)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QLowEnergyController *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtBluetooth.QLowEnergyController.createServiceObject";
    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 (numArgs > 2) {
        static PyObject *const too_many = Shiboken::String::createStaticString(">");
        errInfo.reset(too_many);
        Py_INCREF(errInfo.object());
        goto Sbk_QLowEnergyControllerFunc_createServiceObject_TypeError;
    } else if (numArgs < 1) {
        static PyObject *const too_few = Shiboken::String::createStaticString("<");
        errInfo.reset(too_few);
        Py_INCREF(errInfo.object());
        goto Sbk_QLowEnergyControllerFunc_createServiceObject_TypeError;
    }

    if (!PyArg_ParseTuple(args, "|OO:createServiceObject", &(pyArgs[0]), &(pyArgs[1])))
        return {};


    // Overloaded function decisor
    // 0: QLowEnergyController::createServiceObject(QBluetoothUuid,QObject*)->QLowEnergyService*
    if (numArgs >= 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtBluetoothTypes[SBK_QBLUETOOTHUUID_IDX], (pyArgs[0])))) {
        if (numArgs == 1) {
            overloadId = 0; // createServiceObject(QBluetoothUuid,QObject*)
        } else if (numArgs >= 2
            && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[1])))) {
            overloadId = 0; // createServiceObject(QBluetoothUuid,QObject*)
        }
    }

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

    // Call function/method
    {
        if (kwds && PyDict_Size(kwds) > 0) {
            PyObject *value{};
            Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
            static PyObject *const key_parent = Shiboken::String::createStaticString("parent");
            if (PyDict_Contains(kwds, key_parent)) {
                value = PyDict_GetItem(kwds, key_parent);
                if (value && pyArgs[1]) {
                    errInfo.reset(key_parent);
                    Py_INCREF(errInfo.object());
                    goto Sbk_QLowEnergyControllerFunc_createServiceObject_TypeError;
                }
                if (value) {
                    pyArgs[1] = value;
                    if (!(pythonToCpp[1] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[1]))))
                        goto Sbk_QLowEnergyControllerFunc_createServiceObject_TypeError;
                }
                PyDict_DelItem(kwds_dup, key_parent);
            }
            if (PyDict_Size(kwds_dup) > 0) {
                errInfo.reset(kwds_dup.release());
                goto Sbk_QLowEnergyControllerFunc_createServiceObject_TypeError;
            }
        }
        if (!Shiboken::Object::isValid(pyArgs[0]))
            return {};
        ::QBluetoothUuid cppArg0_local;
        ::QBluetoothUuid *cppArg0 = &cppArg0_local;
        if (pythonToCpp[0].isValue())
            pythonToCpp[0](pyArgs[0], &cppArg0_local);
        else
            pythonToCpp[0](pyArgs[0], &cppArg0);

        if (!Shiboken::Object::isValid(pyArgs[1]))
            return {};
        ::QObject *cppArg1 = nullptr;
        if (pythonToCpp[1])
            pythonToCpp[1](pyArgs[1], &cppArg1);

        if (!PyErr_Occurred()) {
            // createServiceObject(QBluetoothUuid,QObject*)
            QLowEnergyService * cppResult = cppSelf->createServiceObject(*cppArg0, cppArg1);
            pyResult = Shiboken::Conversions::pointerToPython(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYSERVICE_IDX], cppResult);
            Shiboken::Object::setParent(self, pyResult);
        }
    }

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

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // disconnectFromDevice()
            cppSelf->disconnectFromDevice();
        }
    }

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // discoverServices()
            cppSelf->discoverServices();
        }
    }

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // error()const
            QLowEnergyController::Error cppResult = const_cast<const ::QLowEnergyController *>(cppSelf)->error();
            pyResult = Shiboken::Conversions::copyToPython(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_ERROR_IDX]))->converter, &cppResult);
        }
    }

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // errorString()const
            QString cppResult = const_cast<const ::QLowEnergyController *>(cppSelf)->errorString();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], &cppResult);
        }
    }

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // localAddress()const
            QBluetoothAddress cppResult = const_cast<const ::QLowEnergyController *>(cppSelf)->localAddress();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtBluetoothTypes[SBK_QBLUETOOTHADDRESS_IDX], &cppResult);
        }
    }

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

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

    // Call function/method
    {

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

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // remoteAddress()const
            QBluetoothAddress cppResult = const_cast<const ::QLowEnergyController *>(cppSelf)->remoteAddress();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtBluetoothTypes[SBK_QBLUETOOTHADDRESS_IDX], &cppResult);
        }
    }

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // remoteAddressType()const
            QLowEnergyController::RemoteAddressType cppResult = const_cast<const ::QLowEnergyController *>(cppSelf)->remoteAddressType();
            pyResult = Shiboken::Conversions::copyToPython(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_REMOTEADDRESSTYPE_IDX]))->converter, &cppResult);
        }
    }

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

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

    // Call function/method
    {

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

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // remoteName()const
            QString cppResult = const_cast<const ::QLowEnergyController *>(cppSelf)->remoteName();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], &cppResult);
        }
    }

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

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

    // Overloaded function decisor
    // 0: QLowEnergyController::requestConnectionUpdate(QLowEnergyConnectionParameters)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONNECTIONPARAMETERS_IDX], (pyArg)))) {
        overloadId = 0; // requestConnectionUpdate(QLowEnergyConnectionParameters)
    }

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

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


        if (!PyErr_Occurred()) {
            // requestConnectionUpdate(QLowEnergyConnectionParameters)
            cppSelf->requestConnectionUpdate(*cppArg0);
        }
    }

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

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // role()const
            QLowEnergyController::Role cppResult = const_cast<const ::QLowEnergyController *>(cppSelf)->role();
            pyResult = Shiboken::Conversions::copyToPython(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_ROLE_IDX]))->converter, &cppResult);
        }
    }

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // services()const
            QList<QBluetoothUuid > cppResult = const_cast<const ::QLowEnergyController *>(cppSelf)->services();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtBluetoothTypeConverters[SBK_QTBLUETOOTH_QLIST_QBLUETOOTHUUID_IDX], &cppResult);
        }
    }

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

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

    // Overloaded function decisor
    // 0: QLowEnergyController::setRemoteAddressType(QLowEnergyController::RemoteAddressType)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_REMOTEADDRESSTYPE_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // setRemoteAddressType(QLowEnergyController::RemoteAddressType)
    }

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

    // Call function/method
    {
        ::QLowEnergyController::RemoteAddressType cppArg0{QLowEnergyController::PublicAddress};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setRemoteAddressType(QLowEnergyController::RemoteAddressType)
            cppSelf->setRemoteAddressType(cppArg0);
        }
    }

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

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

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

    // invalid argument lengths
    if (numArgs > 3) {
        static PyObject *const too_many = Shiboken::String::createStaticString(">");
        errInfo.reset(too_many);
        Py_INCREF(errInfo.object());
        goto Sbk_QLowEnergyControllerFunc_startAdvertising_TypeError;
    } else if (numArgs < 2) {
        static PyObject *const too_few = Shiboken::String::createStaticString("<");
        errInfo.reset(too_few);
        Py_INCREF(errInfo.object());
        goto Sbk_QLowEnergyControllerFunc_startAdvertising_TypeError;
    }

    if (!PyArg_ParseTuple(args, "|OOO:startAdvertising", &(pyArgs[0]), &(pyArgs[1]), &(pyArgs[2])))
        return {};


    // Overloaded function decisor
    // 0: QLowEnergyController::startAdvertising(QLowEnergyAdvertisingParameters,QLowEnergyAdvertisingData,QLowEnergyAdvertisingData)
    if (numArgs >= 2
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYADVERTISINGPARAMETERS_IDX], (pyArgs[0])))
        && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYADVERTISINGDATA_IDX], (pyArgs[1])))) {
        if (numArgs == 2) {
            overloadId = 0; // startAdvertising(QLowEnergyAdvertisingParameters,QLowEnergyAdvertisingData,QLowEnergyAdvertisingData)
        } else if (numArgs >= 3
            && (pythonToCpp[2] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYADVERTISINGDATA_IDX], (pyArgs[2])))) {
            overloadId = 0; // startAdvertising(QLowEnergyAdvertisingParameters,QLowEnergyAdvertisingData,QLowEnergyAdvertisingData)
        }
    }

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

    // Call function/method
    {
        if (kwds && PyDict_Size(kwds) > 0) {
            PyObject *value{};
            Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
            static PyObject *const key_scanResponseData = Shiboken::String::createStaticString("scanResponseData");
            if (PyDict_Contains(kwds, key_scanResponseData)) {
                value = PyDict_GetItem(kwds, key_scanResponseData);
                if (value && pyArgs[2]) {
                    errInfo.reset(key_scanResponseData);
                    Py_INCREF(errInfo.object());
                    goto Sbk_QLowEnergyControllerFunc_startAdvertising_TypeError;
                }
                if (value) {
                    pyArgs[2] = value;
                    if (!(pythonToCpp[2] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYADVERTISINGDATA_IDX], (pyArgs[2]))))
                        goto Sbk_QLowEnergyControllerFunc_startAdvertising_TypeError;
                }
                PyDict_DelItem(kwds_dup, key_scanResponseData);
            }
            if (PyDict_Size(kwds_dup) > 0) {
                errInfo.reset(kwds_dup.release());
                goto Sbk_QLowEnergyControllerFunc_startAdvertising_TypeError;
            }
        }
        if (!Shiboken::Object::isValid(pyArgs[0]))
            return {};
        ::QLowEnergyAdvertisingParameters cppArg0_local;
        ::QLowEnergyAdvertisingParameters *cppArg0 = &cppArg0_local;
        if (pythonToCpp[0].isValue())
            pythonToCpp[0](pyArgs[0], &cppArg0_local);
        else
            pythonToCpp[0](pyArgs[0], &cppArg0);

        if (!Shiboken::Object::isValid(pyArgs[1]))
            return {};
        ::QLowEnergyAdvertisingData cppArg1_local;
        ::QLowEnergyAdvertisingData *cppArg1 = &cppArg1_local;
        if (pythonToCpp[1].isValue())
            pythonToCpp[1](pyArgs[1], &cppArg1_local);
        else
            pythonToCpp[1](pyArgs[1], &cppArg1);

        if (!Shiboken::Object::isValid(pyArgs[2]))
            return {};
        ::QLowEnergyAdvertisingData cppArg2_local = QLowEnergyAdvertisingData();
        ::QLowEnergyAdvertisingData *cppArg2 = &cppArg2_local;
        if (pythonToCpp[2]) {
            if (pythonToCpp[2].isValue())
                pythonToCpp[2](pyArgs[2], &cppArg2_local);
            else
                pythonToCpp[2](pyArgs[2], &cppArg2);
            }

        if (!PyErr_Occurred()) {
            // startAdvertising(QLowEnergyAdvertisingParameters,QLowEnergyAdvertisingData,QLowEnergyAdvertisingData)
            cppSelf->startAdvertising(*cppArg0, *cppArg1, *cppArg2);
        }
    }

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

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // state()const
            QLowEnergyController::ControllerState cppResult = const_cast<const ::QLowEnergyController *>(cppSelf)->state();
            pyResult = Shiboken::Conversions::copyToPython(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_CONTROLLERSTATE_IDX]))->converter, &cppResult);
        }
    }

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // stopAdvertising()
            cppSelf->stopAdvertising();
        }
    }

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


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

static PyMethodDef Sbk_QLowEnergyController_methods[] = {
    {"addService", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyControllerFunc_addService), METH_VARARGS|METH_KEYWORDS},
    {"connectToDevice", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyControllerFunc_connectToDevice), METH_NOARGS},
    {"createCentral", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyControllerFunc_createCentral), METH_VARARGS|METH_KEYWORDS|METH_STATIC},
    {"createPeripheral", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyControllerFunc_createPeripheral), METH_VARARGS|METH_KEYWORDS|METH_STATIC},
    {"createServiceObject", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyControllerFunc_createServiceObject), METH_VARARGS|METH_KEYWORDS},
    {"disconnectFromDevice", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyControllerFunc_disconnectFromDevice), METH_NOARGS},
    {"discoverServices", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyControllerFunc_discoverServices), METH_NOARGS},
    {"error", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyControllerFunc_error), METH_NOARGS},
    {"errorString", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyControllerFunc_errorString), METH_NOARGS},
    {"localAddress", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyControllerFunc_localAddress), METH_NOARGS},
    {"mtu", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyControllerFunc_mtu), METH_NOARGS},
    {"remoteAddress", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyControllerFunc_remoteAddress), METH_NOARGS},
    {"remoteAddressType", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyControllerFunc_remoteAddressType), METH_NOARGS},
    {"remoteDeviceUuid", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyControllerFunc_remoteDeviceUuid), METH_NOARGS},
    {"remoteName", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyControllerFunc_remoteName), METH_NOARGS},
    {"requestConnectionUpdate", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyControllerFunc_requestConnectionUpdate), METH_O},
    {"role", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyControllerFunc_role), METH_NOARGS},
    {"services", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyControllerFunc_services), METH_NOARGS},
    {"setRemoteAddressType", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyControllerFunc_setRemoteAddressType), METH_O},
    {"startAdvertising", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyControllerFunc_startAdvertising), METH_VARARGS|METH_KEYWORDS},
    {"state", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyControllerFunc_state), METH_NOARGS},
    {"stopAdvertising", reinterpret_cast<PyCFunction>(Sbk_QLowEnergyControllerFunc_stopAdvertising), METH_NOARGS},

    {nullptr, nullptr} // Sentinel
};

static int Sbk_QLowEnergyController_setattro(PyObject *self, PyObject *name, PyObject *value)
{
    PySide::Feature::Select(self);
    if (value && PyCallable_Check(value)) {
        auto plain_inst = reinterpret_cast< ::QLowEnergyController *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_IDX], reinterpret_cast<SbkObject *>(self)));
        auto inst = dynamic_cast<QLowEnergyControllerWrapper *>(plain_inst);
        if (inst)
            inst->resetPyMethodCache();
    }
    Shiboken::AutoDecRef pp(reinterpret_cast<PyObject *>(PySide::Property::getObject(self, name)));
    if (!pp.isNull())
        return PySide::Property::setValue(reinterpret_cast<PySideProperty *>(pp.object()), self, value);
    return PyObject_GenericSetAttr(self, name, value);
}

} // extern "C"

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

static PyType_Slot Sbk_QLowEnergyController_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,    reinterpret_cast<void *>(Sbk_QLowEnergyController_setattro)},
    {Py_tp_traverse,    reinterpret_cast<void *>(Sbk_QLowEnergyController_traverse)},
    {Py_tp_clear,       reinterpret_cast<void *>(Sbk_QLowEnergyController_clear)},
    {Py_tp_richcompare, nullptr},
    {Py_tp_iter,        nullptr},
    {Py_tp_iternext,    nullptr},
    {Py_tp_methods,     reinterpret_cast<void *>(Sbk_QLowEnergyController_methods)},
    {Py_tp_getset,      nullptr},
    {Py_tp_init,        nullptr},
    {Py_tp_new,         reinterpret_cast<void *>(SbkObjectTpNew)},
    {0, nullptr}
};
static PyType_Spec Sbk_QLowEnergyController_spec = {
    "2:PySide6.QtBluetooth.QLowEnergyController",
    sizeof(SbkObject),
    0,
    Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
    Sbk_QLowEnergyController_slots
};

} //extern "C"

static void *Sbk_QLowEnergyController_typeDiscovery(void *cptr, PyTypeObject *instanceType)
{
    if (instanceType == Shiboken::SbkType< ::QObject >())
        return dynamic_cast< ::QLowEnergyController *>(reinterpret_cast< ::QObject *>(cptr));
    return {};
}


// Type conversion functions.

// Python to C++ enum conversion.
static void QLowEnergyController_Error_PythonToCpp_QLowEnergyController_Error(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QLowEnergyController::Error *>(cppOut) =
        static_cast<::QLowEnergyController::Error>(Shiboken::Enum::getValue(pyIn));

}
static PythonToCppFunc is_QLowEnergyController_Error_PythonToCpp_QLowEnergyController_Error_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_ERROR_IDX]))
        return QLowEnergyController_Error_PythonToCpp_QLowEnergyController_Error;
    return {};
}
static PyObject *QLowEnergyController_Error_CppToPython_QLowEnergyController_Error(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QLowEnergyController::Error *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_ERROR_IDX], castCppIn);

}

static void QLowEnergyController_ControllerState_PythonToCpp_QLowEnergyController_ControllerState(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QLowEnergyController::ControllerState *>(cppOut) =
        static_cast<::QLowEnergyController::ControllerState>(Shiboken::Enum::getValue(pyIn));

}
static PythonToCppFunc is_QLowEnergyController_ControllerState_PythonToCpp_QLowEnergyController_ControllerState_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_CONTROLLERSTATE_IDX]))
        return QLowEnergyController_ControllerState_PythonToCpp_QLowEnergyController_ControllerState;
    return {};
}
static PyObject *QLowEnergyController_ControllerState_CppToPython_QLowEnergyController_ControllerState(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QLowEnergyController::ControllerState *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_CONTROLLERSTATE_IDX], castCppIn);

}

static void QLowEnergyController_RemoteAddressType_PythonToCpp_QLowEnergyController_RemoteAddressType(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QLowEnergyController::RemoteAddressType *>(cppOut) =
        static_cast<::QLowEnergyController::RemoteAddressType>(Shiboken::Enum::getValue(pyIn));

}
static PythonToCppFunc is_QLowEnergyController_RemoteAddressType_PythonToCpp_QLowEnergyController_RemoteAddressType_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_REMOTEADDRESSTYPE_IDX]))
        return QLowEnergyController_RemoteAddressType_PythonToCpp_QLowEnergyController_RemoteAddressType;
    return {};
}
static PyObject *QLowEnergyController_RemoteAddressType_CppToPython_QLowEnergyController_RemoteAddressType(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QLowEnergyController::RemoteAddressType *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_REMOTEADDRESSTYPE_IDX], castCppIn);

}

static void QLowEnergyController_Role_PythonToCpp_QLowEnergyController_Role(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QLowEnergyController::Role *>(cppOut) =
        static_cast<::QLowEnergyController::Role>(Shiboken::Enum::getValue(pyIn));

}
static PythonToCppFunc is_QLowEnergyController_Role_PythonToCpp_QLowEnergyController_Role_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_ROLE_IDX]))
        return QLowEnergyController_Role_PythonToCpp_QLowEnergyController_Role;
    return {};
}
static PyObject *QLowEnergyController_Role_CppToPython_QLowEnergyController_Role(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QLowEnergyController::Role *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_ROLE_IDX], castCppIn);

}

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

// C++ to Python pointer conversion - tries to find the Python wrapper for the C++ object (keeps object identity).
static PyObject *QLowEnergyController_PTR_CppToPython_QLowEnergyController(const void *cppIn)
{
    return PySide::getWrapperForQObject(reinterpret_cast<::QLowEnergyController *>(const_cast<void *>(cppIn)), Sbk_QLowEnergyController_TypeF());

}

// The signatures string for the functions.
// Multiple signatures have their index "n:" in front.
static const char *QLowEnergyController_SignatureStrings[] = {
    "PySide6.QtBluetooth.QLowEnergyController.addService(self,service:PySide6.QtBluetooth.QLowEnergyServiceData,parent:PySide6.QtCore.QObject=nullptr)->PySide6.QtBluetooth.QLowEnergyService",
    "PySide6.QtBluetooth.QLowEnergyController.connectToDevice(self)",
    "1:PySide6.QtBluetooth.QLowEnergyController.createCentral(remoteDevice:PySide6.QtBluetooth.QBluetoothDeviceInfo,parent:PySide6.QtCore.QObject=nullptr)->PySide6.QtBluetooth.QLowEnergyController",
    "0:PySide6.QtBluetooth.QLowEnergyController.createCentral(remoteDevice:PySide6.QtBluetooth.QBluetoothDeviceInfo,localDevice:PySide6.QtBluetooth.QBluetoothAddress,parent:PySide6.QtCore.QObject=nullptr)->PySide6.QtBluetooth.QLowEnergyController",
    "1:PySide6.QtBluetooth.QLowEnergyController.createPeripheral(parent:PySide6.QtCore.QObject=nullptr)->PySide6.QtBluetooth.QLowEnergyController",
    "0:PySide6.QtBluetooth.QLowEnergyController.createPeripheral(localDevice:PySide6.QtBluetooth.QBluetoothAddress,parent:PySide6.QtCore.QObject=nullptr)->PySide6.QtBluetooth.QLowEnergyController",
    "PySide6.QtBluetooth.QLowEnergyController.createServiceObject(self,service:typing.Union[PySide6.QtBluetooth.QBluetoothUuid, PySide6.QtBluetooth.QBluetoothUuid.CharacteristicType, PySide6.QtBluetooth.QBluetoothUuid.DescriptorType, PySide6.QtBluetooth.QBluetoothUuid.ProtocolUuid, PySide6.QtBluetooth.QBluetoothUuid.ServiceClassUuid, PySide6.QtCore.QUuid],parent:PySide6.QtCore.QObject=nullptr)->PySide6.QtBluetooth.QLowEnergyService",
    "PySide6.QtBluetooth.QLowEnergyController.disconnectFromDevice(self)",
    "PySide6.QtBluetooth.QLowEnergyController.discoverServices(self)",
    "PySide6.QtBluetooth.QLowEnergyController.error(self)->PySide6.QtBluetooth.QLowEnergyController.Error",
    "PySide6.QtBluetooth.QLowEnergyController.errorString(self)->QString",
    "PySide6.QtBluetooth.QLowEnergyController.localAddress(self)->PySide6.QtBluetooth.QBluetoothAddress",
    "PySide6.QtBluetooth.QLowEnergyController.mtu(self)->int",
    "PySide6.QtBluetooth.QLowEnergyController.remoteAddress(self)->PySide6.QtBluetooth.QBluetoothAddress",
    "PySide6.QtBluetooth.QLowEnergyController.remoteAddressType(self)->PySide6.QtBluetooth.QLowEnergyController.RemoteAddressType",
    "PySide6.QtBluetooth.QLowEnergyController.remoteDeviceUuid(self)->PySide6.QtBluetooth.QBluetoothUuid",
    "PySide6.QtBluetooth.QLowEnergyController.remoteName(self)->QString",
    "PySide6.QtBluetooth.QLowEnergyController.requestConnectionUpdate(self,parameters:PySide6.QtBluetooth.QLowEnergyConnectionParameters)",
    "PySide6.QtBluetooth.QLowEnergyController.role(self)->PySide6.QtBluetooth.QLowEnergyController.Role",
    "PySide6.QtBluetooth.QLowEnergyController.services(self)->QList[PySide6.QtBluetooth.QBluetoothUuid]",
    "PySide6.QtBluetooth.QLowEnergyController.setRemoteAddressType(self,type:PySide6.QtBluetooth.QLowEnergyController.RemoteAddressType)",
    "PySide6.QtBluetooth.QLowEnergyController.startAdvertising(self,parameters:PySide6.QtBluetooth.QLowEnergyAdvertisingParameters,advertisingData:PySide6.QtBluetooth.QLowEnergyAdvertisingData,scanResponseData:PySide6.QtBluetooth.QLowEnergyAdvertisingData=QLowEnergyAdvertisingData())",
    "PySide6.QtBluetooth.QLowEnergyController.state(self)->PySide6.QtBluetooth.QLowEnergyController.ControllerState",
    "PySide6.QtBluetooth.QLowEnergyController.stopAdvertising(self)",
    nullptr}; // Sentinel

void init_QLowEnergyController(PyObject *module)
{
    _Sbk_QLowEnergyController_Type = Shiboken::ObjectType::introduceWrapperType(
        module,
        "QLowEnergyController",
        "QLowEnergyController*",
        &Sbk_QLowEnergyController_spec,
        &Shiboken::callCppDestructor< ::QLowEnergyController >,
        SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX],
        0,
        0);
    auto *pyType = Sbk_QLowEnergyController_TypeF(); // references _Sbk_QLowEnergyController_Type
    InitSignatureStrings(pyType, QLowEnergyController_SignatureStrings);
    SbkObjectType_SetPropertyStrings(reinterpret_cast<PyTypeObject *>(_Sbk_QLowEnergyController_Type), Sbk_QLowEnergyController_PropertyStrings);
    SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_IDX]
        = Sbk_QLowEnergyController_TypeF();

    // Register Converter
    SbkConverter *converter = Shiboken::Conversions::createConverter(Sbk_QLowEnergyController_TypeF(),
        QLowEnergyController_PythonToCpp_QLowEnergyController_PTR,
        is_QLowEnergyController_PythonToCpp_QLowEnergyController_PTR_Convertible,
        QLowEnergyController_PTR_CppToPython_QLowEnergyController);

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


    Shiboken::ObjectType::setTypeDiscoveryFunctionV2(Sbk_QLowEnergyController_TypeF(), &Sbk_QLowEnergyController_typeDiscovery);

    // Initialization of enums.

    // Initialization of enum 'Error'.
    SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_ERROR_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QLowEnergyController_TypeF(),
        "Error",
        "2:PySide6.QtBluetooth.QLowEnergyController.Error",
        "QLowEnergyController::Error");
    if (!SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_ERROR_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_ERROR_IDX],
        Sbk_QLowEnergyController_TypeF(), "NoError", (long) QLowEnergyController::Error::NoError))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_ERROR_IDX],
        Sbk_QLowEnergyController_TypeF(), "UnknownError", (long) QLowEnergyController::Error::UnknownError))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_ERROR_IDX],
        Sbk_QLowEnergyController_TypeF(), "UnknownRemoteDeviceError", (long) QLowEnergyController::Error::UnknownRemoteDeviceError))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_ERROR_IDX],
        Sbk_QLowEnergyController_TypeF(), "NetworkError", (long) QLowEnergyController::Error::NetworkError))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_ERROR_IDX],
        Sbk_QLowEnergyController_TypeF(), "InvalidBluetoothAdapterError", (long) QLowEnergyController::Error::InvalidBluetoothAdapterError))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_ERROR_IDX],
        Sbk_QLowEnergyController_TypeF(), "ConnectionError", (long) QLowEnergyController::Error::ConnectionError))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_ERROR_IDX],
        Sbk_QLowEnergyController_TypeF(), "AdvertisingError", (long) QLowEnergyController::Error::AdvertisingError))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_ERROR_IDX],
        Sbk_QLowEnergyController_TypeF(), "RemoteHostClosedError", (long) QLowEnergyController::Error::RemoteHostClosedError))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_ERROR_IDX],
        Sbk_QLowEnergyController_TypeF(), "AuthorizationError", (long) QLowEnergyController::Error::AuthorizationError))
        return;
    // Register converter for enum 'QLowEnergyController::Error'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_ERROR_IDX],
            QLowEnergyController_Error_CppToPython_QLowEnergyController_Error);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QLowEnergyController_Error_PythonToCpp_QLowEnergyController_Error,
            is_QLowEnergyController_Error_PythonToCpp_QLowEnergyController_Error_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_ERROR_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QLowEnergyController::Error");
        Shiboken::Conversions::registerConverterName(converter, "Error");
    }
    // End of 'Error' enum.

    // Initialization of enum 'ControllerState'.
    SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_CONTROLLERSTATE_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QLowEnergyController_TypeF(),
        "ControllerState",
        "2:PySide6.QtBluetooth.QLowEnergyController.ControllerState",
        "QLowEnergyController::ControllerState");
    if (!SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_CONTROLLERSTATE_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_CONTROLLERSTATE_IDX],
        Sbk_QLowEnergyController_TypeF(), "UnconnectedState", (long) QLowEnergyController::ControllerState::UnconnectedState))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_CONTROLLERSTATE_IDX],
        Sbk_QLowEnergyController_TypeF(), "ConnectingState", (long) QLowEnergyController::ControllerState::ConnectingState))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_CONTROLLERSTATE_IDX],
        Sbk_QLowEnergyController_TypeF(), "ConnectedState", (long) QLowEnergyController::ControllerState::ConnectedState))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_CONTROLLERSTATE_IDX],
        Sbk_QLowEnergyController_TypeF(), "DiscoveringState", (long) QLowEnergyController::ControllerState::DiscoveringState))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_CONTROLLERSTATE_IDX],
        Sbk_QLowEnergyController_TypeF(), "DiscoveredState", (long) QLowEnergyController::ControllerState::DiscoveredState))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_CONTROLLERSTATE_IDX],
        Sbk_QLowEnergyController_TypeF(), "ClosingState", (long) QLowEnergyController::ControllerState::ClosingState))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_CONTROLLERSTATE_IDX],
        Sbk_QLowEnergyController_TypeF(), "AdvertisingState", (long) QLowEnergyController::ControllerState::AdvertisingState))
        return;
    // Register converter for enum 'QLowEnergyController::ControllerState'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_CONTROLLERSTATE_IDX],
            QLowEnergyController_ControllerState_CppToPython_QLowEnergyController_ControllerState);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QLowEnergyController_ControllerState_PythonToCpp_QLowEnergyController_ControllerState,
            is_QLowEnergyController_ControllerState_PythonToCpp_QLowEnergyController_ControllerState_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_CONTROLLERSTATE_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QLowEnergyController::ControllerState");
        Shiboken::Conversions::registerConverterName(converter, "ControllerState");
    }
    // End of 'ControllerState' enum.

    // Initialization of enum 'RemoteAddressType'.
    SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_REMOTEADDRESSTYPE_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QLowEnergyController_TypeF(),
        "RemoteAddressType",
        "2:PySide6.QtBluetooth.QLowEnergyController.RemoteAddressType",
        "QLowEnergyController::RemoteAddressType");
    if (!SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_REMOTEADDRESSTYPE_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_REMOTEADDRESSTYPE_IDX],
        Sbk_QLowEnergyController_TypeF(), "PublicAddress", (long) QLowEnergyController::RemoteAddressType::PublicAddress))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_REMOTEADDRESSTYPE_IDX],
        Sbk_QLowEnergyController_TypeF(), "RandomAddress", (long) QLowEnergyController::RemoteAddressType::RandomAddress))
        return;
    // Register converter for enum 'QLowEnergyController::RemoteAddressType'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_REMOTEADDRESSTYPE_IDX],
            QLowEnergyController_RemoteAddressType_CppToPython_QLowEnergyController_RemoteAddressType);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QLowEnergyController_RemoteAddressType_PythonToCpp_QLowEnergyController_RemoteAddressType,
            is_QLowEnergyController_RemoteAddressType_PythonToCpp_QLowEnergyController_RemoteAddressType_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_REMOTEADDRESSTYPE_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QLowEnergyController::RemoteAddressType");
        Shiboken::Conversions::registerConverterName(converter, "RemoteAddressType");
    }
    // End of 'RemoteAddressType' enum.

    // Initialization of enum 'Role'.
    SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_ROLE_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QLowEnergyController_TypeF(),
        "Role",
        "2:PySide6.QtBluetooth.QLowEnergyController.Role",
        "QLowEnergyController::Role");
    if (!SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_ROLE_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_ROLE_IDX],
        Sbk_QLowEnergyController_TypeF(), "CentralRole", (long) QLowEnergyController::Role::CentralRole))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_ROLE_IDX],
        Sbk_QLowEnergyController_TypeF(), "PeripheralRole", (long) QLowEnergyController::Role::PeripheralRole))
        return;
    // Register converter for enum 'QLowEnergyController::Role'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_ROLE_IDX],
            QLowEnergyController_Role_CppToPython_QLowEnergyController_Role);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QLowEnergyController_Role_PythonToCpp_QLowEnergyController_Role,
            is_QLowEnergyController_Role_PythonToCpp_QLowEnergyController_Role_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtBluetoothTypes[SBK_QLOWENERGYCONTROLLER_ROLE_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QLowEnergyController::Role");
        Shiboken::Conversions::registerConverterName(converter, "Role");
    }
    // End of 'Role' enum.

    PySide::Signal::registerSignals(Sbk_QLowEnergyController_TypeF(), &::QLowEnergyController::staticMetaObject);
    qRegisterMetaType< ::QLowEnergyController::Error >("QLowEnergyController::Error");
    qRegisterMetaType< ::QLowEnergyController::ControllerState >("QLowEnergyController::ControllerState");
    qRegisterMetaType< ::QLowEnergyController::RemoteAddressType >("QLowEnergyController::RemoteAddressType");
    qRegisterMetaType< ::QLowEnergyController::Role >("QLowEnergyController::Role");
    Shiboken::ObjectType::setSubTypeInitHook(Sbk_QLowEnergyController_TypeF(), &PySide::initQObjectSubType);
    PySide::initDynamicMetaObject(Sbk_QLowEnergyController_TypeF(), &::QLowEnergyController::staticMetaObject, sizeof(QLowEnergyControllerWrapper));
}
