/****************************************************************************
**
** 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_qtcore_python.h"

// main header
#include "qstringconverterbase_wrapper.h"

// inner classes
#include "qstringconverterbase_state_wrapper.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_QStringConverterBase_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< ::QStringConverterBase >()))
        return -1;

    ::QStringConverterBase *cptr{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtCore.QStringConverterBase.__init__";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // QStringConverterBase()
            cptr = new ::QStringConverterBase();
        }
    }

    if (PyErr_Occurred() || !Shiboken::Object::setCppPointer(sbkSelf, Shiboken::SbkType< ::QStringConverterBase >(), cptr)) {
        delete cptr;
        return -1;
    }
    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;
}


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

static PyMethodDef Sbk_QStringConverterBase_methods[] = {

    {nullptr, nullptr} // Sentinel
};

} // extern "C"

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

static PyType_Slot Sbk_QStringConverterBase_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_QStringConverterBase_traverse)},
    {Py_tp_clear,       reinterpret_cast<void *>(Sbk_QStringConverterBase_clear)},
    {Py_tp_richcompare, nullptr},
    {Py_tp_iter,        nullptr},
    {Py_tp_iternext,    nullptr},
    {Py_tp_methods,     reinterpret_cast<void *>(Sbk_QStringConverterBase_methods)},
    {Py_tp_getset,      nullptr},
    {Py_tp_init,        reinterpret_cast<void *>(Sbk_QStringConverterBase_Init)},
    {Py_tp_new,         reinterpret_cast<void *>(SbkObjectTpNew)},
    {0, nullptr}
};
static PyType_Spec Sbk_QStringConverterBase_spec = {
    "2:PySide6.QtCore.QStringConverterBase",
    sizeof(SbkObject),
    0,
    Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
    Sbk_QStringConverterBase_slots
};

} //extern "C"

PyObject *SbkPySide6_QtCore_QStringConverterBase_Flag___and__(PyObject *self, PyObject *pyArg)
{
    ::QStringConverterBase::Flags cppResult, cppSelf, cppArg;
    cppSelf = static_cast<::QStringConverterBase::Flags>(int(PyLong_AsLong(self)));
    if (PyErr_Occurred())
        return nullptr;
    cppArg = static_cast<QStringConverterBase::Flags>(int(PyLong_AsLong(pyArg)));
    if (PyErr_Occurred())
        return nullptr;
    cppResult = cppSelf & cppArg;
    return Shiboken::Conversions::copyToPython(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtCoreTypes[SBK_QFLAGS_QSTRINGCONVERTERBASE_FLAG_IDX]))->converter, &cppResult);
}

PyObject *SbkPySide6_QtCore_QStringConverterBase_Flag___or__(PyObject *self, PyObject *pyArg)
{
    ::QStringConverterBase::Flags cppResult, cppSelf, cppArg;
    cppSelf = static_cast<::QStringConverterBase::Flags>(int(PyLong_AsLong(self)));
    if (PyErr_Occurred())
        return nullptr;
    cppArg = static_cast<QStringConverterBase::Flags>(int(PyLong_AsLong(pyArg)));
    if (PyErr_Occurred())
        return nullptr;
    cppResult = cppSelf | cppArg;
    return Shiboken::Conversions::copyToPython(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtCoreTypes[SBK_QFLAGS_QSTRINGCONVERTERBASE_FLAG_IDX]))->converter, &cppResult);
}

PyObject *SbkPySide6_QtCore_QStringConverterBase_Flag___xor__(PyObject *self, PyObject *pyArg)
{
    ::QStringConverterBase::Flags cppResult, cppSelf, cppArg;
    cppSelf = static_cast<::QStringConverterBase::Flags>(int(PyLong_AsLong(self)));
    if (PyErr_Occurred())
        return nullptr;
    cppArg = static_cast<QStringConverterBase::Flags>(int(PyLong_AsLong(pyArg)));
    if (PyErr_Occurred())
        return nullptr;
    cppResult = cppSelf ^ cppArg;
    return Shiboken::Conversions::copyToPython(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtCoreTypes[SBK_QFLAGS_QSTRINGCONVERTERBASE_FLAG_IDX]))->converter, &cppResult);
}

PyObject *SbkPySide6_QtCore_QStringConverterBase_Flag___invert__(PyObject *self, PyObject *pyArg)
{
    ::QStringConverterBase::Flags cppSelf;
    Shiboken::Conversions::pythonToCppCopy(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtCoreTypes[SBK_QFLAGS_QSTRINGCONVERTERBASE_FLAG_IDX]))->converter, self, &cppSelf);
    ::QStringConverterBase::Flags cppResult = ~cppSelf;
    return Shiboken::Conversions::copyToPython(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtCoreTypes[SBK_QFLAGS_QSTRINGCONVERTERBASE_FLAG_IDX]))->converter, &cppResult);
}

static PyObject *SbkPySide6_QtCore_QStringConverterBase_Flag_long(PyObject *self)
{
    int val;
    Shiboken::Conversions::pythonToCppCopy(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtCoreTypes[SBK_QFLAGS_QSTRINGCONVERTERBASE_FLAG_IDX]))->converter, self, &val);
    return Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<int>(), &val);
}
static int SbkPySide6_QtCore_QStringConverterBase_Flag__nonzero(PyObject *self)
{
    int val;
    Shiboken::Conversions::pythonToCppCopy(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtCoreTypes[SBK_QFLAGS_QSTRINGCONVERTERBASE_FLAG_IDX]))->converter, self, &val);
    return val != 0;
}

static PyType_Slot SbkPySide6_QtCore_QStringConverterBase_Flag_number_slots[] = {
    {Py_nb_bool,    reinterpret_cast<void *>(SbkPySide6_QtCore_QStringConverterBase_Flag__nonzero)},
    {Py_nb_invert,  reinterpret_cast<void *>(SbkPySide6_QtCore_QStringConverterBase_Flag___invert__)},
    {Py_nb_and,     reinterpret_cast<void *>(SbkPySide6_QtCore_QStringConverterBase_Flag___and__)},
    {Py_nb_xor,     reinterpret_cast<void *>(SbkPySide6_QtCore_QStringConverterBase_Flag___xor__)},
    {Py_nb_or,      reinterpret_cast<void *>(SbkPySide6_QtCore_QStringConverterBase_Flag___or__)},
    {Py_nb_int,     reinterpret_cast<void *>(SbkPySide6_QtCore_QStringConverterBase_Flag_long)},
    {Py_nb_index,   reinterpret_cast<void *>(SbkPySide6_QtCore_QStringConverterBase_Flag_long)},
    {0, nullptr} // sentinel
};



// Type conversion functions.

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

}
static PythonToCppFunc is_QStringConverterBase_Flag_PythonToCpp_QStringConverterBase_Flag_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtCoreTypes[SBK_QSTRINGCONVERTERBASE_FLAG_IDX]))
        return QStringConverterBase_Flag_PythonToCpp_QStringConverterBase_Flag;
    return {};
}
static PyObject *QStringConverterBase_Flag_CppToPython_QStringConverterBase_Flag(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QStringConverterBase::Flag *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtCoreTypes[SBK_QSTRINGCONVERTERBASE_FLAG_IDX], castCppIn);

}

static void QFlags_QStringConverterBase_Flag__PythonToCpp_QFlags_QStringConverterBase_Flag_(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QFlags<QStringConverterBase::Flag> *>(cppOut) =
        ::QFlags<QStringConverterBase::Flag>(QFlag(int(PySide::QFlags::getValue(reinterpret_cast<PySideQFlagsObject *>(pyIn)))));

}
static PythonToCppFunc is_QFlags_QStringConverterBase_Flag__PythonToCpp_QFlags_QStringConverterBase_Flag__Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtCoreTypes[SBK_QFLAGS_QSTRINGCONVERTERBASE_FLAG_IDX]))
        return QFlags_QStringConverterBase_Flag__PythonToCpp_QFlags_QStringConverterBase_Flag_;
    return {};
}
static PyObject *QFlags_QStringConverterBase_Flag__CppToPython_QFlags_QStringConverterBase_Flag_(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QFlags<QStringConverterBase::Flag> *>(cppIn));
    return reinterpret_cast<PyObject *>(PySide::QFlags::newObject(castCppIn, SbkPySide6_QtCoreTypes[SBK_QFLAGS_QSTRINGCONVERTERBASE_FLAG_IDX]));

}

static void QStringConverterBase_Flag_PythonToCpp_QFlags_QStringConverterBase_Flag_(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QFlags<QStringConverterBase::Flag> *>(cppOut) =
        ::QFlags<QStringConverterBase::Flag>(QFlag(int(Shiboken::Enum::getValue(pyIn))));

}
static PythonToCppFunc is_QStringConverterBase_Flag_PythonToCpp_QFlags_QStringConverterBase_Flag__Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtCoreTypes[SBK_QSTRINGCONVERTERBASE_FLAG_IDX]))
        return QStringConverterBase_Flag_PythonToCpp_QFlags_QStringConverterBase_Flag_;
    return {};
}
static void number_PythonToCpp_QFlags_QStringConverterBase_Flag_(PyObject *pyIn, void *cppOut)
{
    Shiboken::AutoDecRef pyLong(PyNumber_Long(pyIn));
    *reinterpret_cast<::QFlags<QStringConverterBase::Flag> *>(cppOut) =
        ::QFlags<QStringConverterBase::Flag>(QFlag(int(PyLong_AsLong(pyLong.object()))));

}
static PythonToCppFunc is_number_PythonToCpp_QFlags_QStringConverterBase_Flag__Convertible(PyObject *pyIn)
{
    if (PyNumber_Check(pyIn) && PyObject_TypeCheck(pyIn, SbkPySide6_QtCoreTypes[SBK_QSTRINGCONVERTERBASE_FLAG_IDX]))
        return number_PythonToCpp_QFlags_QStringConverterBase_Flag_;
    return {};
}
// Python to C++ pointer conversion - returns the C++ object of the Python wrapper (keeps object identity).
static void QStringConverterBase_PythonToCpp_QStringConverterBase_PTR(PyObject *pyIn, void *cppOut)
{
    Shiboken::Conversions::pythonToCppPointer(Sbk_QStringConverterBase_TypeF(), pyIn, cppOut);
}
static PythonToCppFunc is_QStringConverterBase_PythonToCpp_QStringConverterBase_PTR_Convertible(PyObject *pyIn)
{
    if (pyIn == Py_None)
        return Shiboken::Conversions::nonePythonToCppNullPtr;
    if (PyObject_TypeCheck(pyIn, reinterpret_cast<PyTypeObject *>(Sbk_QStringConverterBase_TypeF())))
        return QStringConverterBase_PythonToCpp_QStringConverterBase_PTR;
    return {};
}

// C++ to Python pointer conversion - tries to find the Python wrapper for the C++ object (keeps object identity).
static PyObject *QStringConverterBase_PTR_CppToPython_QStringConverterBase(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 ::QStringConverterBase *>(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_QStringConverterBase_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 *QStringConverterBase_SignatureStrings[] = {
    "PySide6.QtCore.QStringConverterBase(self)",
    nullptr}; // Sentinel

void init_QStringConverterBase(PyObject *module)
{
    _Sbk_QStringConverterBase_Type = Shiboken::ObjectType::introduceWrapperType(
        module,
        "QStringConverterBase",
        "QStringConverterBase*",
        &Sbk_QStringConverterBase_spec,
        &Shiboken::callCppDestructor< ::QStringConverterBase >,
        0,
        0,
        0);
    auto *pyType = Sbk_QStringConverterBase_TypeF(); // references _Sbk_QStringConverterBase_Type
    InitSignatureStrings(pyType, QStringConverterBase_SignatureStrings);
    SbkObjectType_SetPropertyStrings(reinterpret_cast<PyTypeObject *>(_Sbk_QStringConverterBase_Type), Sbk_QStringConverterBase_PropertyStrings);
    SbkPySide6_QtCoreTypes[SBK_QSTRINGCONVERTERBASE_IDX]
        = Sbk_QStringConverterBase_TypeF();

    // Register Converter
    SbkConverter *converter = Shiboken::Conversions::createConverter(Sbk_QStringConverterBase_TypeF(),
        QStringConverterBase_PythonToCpp_QStringConverterBase_PTR,
        is_QStringConverterBase_PythonToCpp_QStringConverterBase_PTR_Convertible,
        QStringConverterBase_PTR_CppToPython_QStringConverterBase);

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


    // Initialization of enums.

    // Initialization of enum 'Flag'.
    SbkPySide6_QtCoreTypes[SBK_QFLAGS_QSTRINGCONVERTERBASE_FLAG_IDX] = PySide::QFlags::create("2:PySide6.QtCore.QStringConverterBase.Flags", SbkPySide6_QtCore_QStringConverterBase_Flag_number_slots);
    SbkPySide6_QtCoreTypes[SBK_QSTRINGCONVERTERBASE_FLAG_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QStringConverterBase_TypeF(),
        "Flag",
        "2:PySide6.QtCore.QStringConverterBase.Flag",
        "QStringConverterBase::Flag",
        SbkPySide6_QtCoreTypes[SBK_QFLAGS_QSTRINGCONVERTERBASE_FLAG_IDX]);
    if (!SbkPySide6_QtCoreTypes[SBK_QSTRINGCONVERTERBASE_FLAG_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtCoreTypes[SBK_QSTRINGCONVERTERBASE_FLAG_IDX],
        SbkPySide6_QtCoreTypes[SBK_QSTRINGCONVERTERBASE_FLAG_IDX], "Default", (long) QStringConverterBase::Flag::Default))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtCoreTypes[SBK_QSTRINGCONVERTERBASE_FLAG_IDX],
        SbkPySide6_QtCoreTypes[SBK_QSTRINGCONVERTERBASE_FLAG_IDX], "Stateless", (long) QStringConverterBase::Flag::Stateless))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtCoreTypes[SBK_QSTRINGCONVERTERBASE_FLAG_IDX],
        SbkPySide6_QtCoreTypes[SBK_QSTRINGCONVERTERBASE_FLAG_IDX], "ConvertInvalidToNull", (long) QStringConverterBase::Flag::ConvertInvalidToNull))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtCoreTypes[SBK_QSTRINGCONVERTERBASE_FLAG_IDX],
        SbkPySide6_QtCoreTypes[SBK_QSTRINGCONVERTERBASE_FLAG_IDX], "WriteBom", (long) QStringConverterBase::Flag::WriteBom))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtCoreTypes[SBK_QSTRINGCONVERTERBASE_FLAG_IDX],
        SbkPySide6_QtCoreTypes[SBK_QSTRINGCONVERTERBASE_FLAG_IDX], "ConvertInitialBom", (long) QStringConverterBase::Flag::ConvertInitialBom))
        return;
    // Register converter for enum 'QStringConverterBase::Flag'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtCoreTypes[SBK_QSTRINGCONVERTERBASE_FLAG_IDX],
            QStringConverterBase_Flag_CppToPython_QStringConverterBase_Flag);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QStringConverterBase_Flag_PythonToCpp_QStringConverterBase_Flag,
            is_QStringConverterBase_Flag_PythonToCpp_QStringConverterBase_Flag_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtCoreTypes[SBK_QSTRINGCONVERTERBASE_FLAG_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QStringConverterBase::Flag");
        Shiboken::Conversions::registerConverterName(converter, "Flag");
    }
    // Register converter for flag 'QFlags<QStringConverterBase::Flag>'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtCoreTypes[SBK_QFLAGS_QSTRINGCONVERTERBASE_FLAG_IDX],
            QFlags_QStringConverterBase_Flag__CppToPython_QFlags_QStringConverterBase_Flag_);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QStringConverterBase_Flag_PythonToCpp_QFlags_QStringConverterBase_Flag_,
            is_QStringConverterBase_Flag_PythonToCpp_QFlags_QStringConverterBase_Flag__Convertible);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QFlags_QStringConverterBase_Flag__PythonToCpp_QFlags_QStringConverterBase_Flag_,
            is_QFlags_QStringConverterBase_Flag__PythonToCpp_QFlags_QStringConverterBase_Flag__Convertible);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            number_PythonToCpp_QFlags_QStringConverterBase_Flag_,
            is_number_PythonToCpp_QFlags_QStringConverterBase_Flag__Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtCoreTypes[SBK_QFLAGS_QSTRINGCONVERTERBASE_FLAG_IDX], converter, true);
        Shiboken::Conversions::registerConverterName(converter, "QStringConverterBase::Flags");
        Shiboken::Conversions::registerConverterName(converter, "Flags");
        Shiboken::Conversions::registerConverterName(converter, "QFlags<QStringConverterBase::Flag>");
    }
    // End of 'Flag' enum/flags.

    qRegisterMetaType< ::QStringConverterBase::Flag >("QStringConverterBase::Flag");
    qRegisterMetaType< ::QStringConverterBase::Flags >("QStringConverterBase::Flags");
}
