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

// main header
#include "qcamera_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 QCameraWrapper::resetPyMethodCache()
{
    std::fill_n(m_PyMethodCache, sizeof(m_PyMethodCache) / sizeof(m_PyMethodCache[0]), false);
}

QCameraWrapper::QCameraWrapper(QCameraDevice::Position position, QObject * parent) : QCamera(position, parent)
{
    resetPyMethodCache();
    // ... middle
}

QCameraWrapper::QCameraWrapper(QObject * parent) : QCamera(parent)
{
    resetPyMethodCache();
    // ... middle
}

QCameraWrapper::QCameraWrapper(const QCameraDevice & cameraDevice, QObject * parent) : QCamera(cameraDevice, parent)
{
    resetPyMethodCache();
    // ... middle
}

void QCameraWrapper::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 QCameraWrapper::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 QCameraWrapper::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 QCameraWrapper::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 QCameraWrapper::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.",
            "QCamera.event",
            "bool",
            Py_TYPE(pyResult)->tp_name);
        return false;
    }
    bool cppResult;
    pythonToCpp(pyResult, &cppResult);
    return cppResult;
}

bool QCameraWrapper::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.",
            "QCamera.eventFilter",
            "bool",
            Py_TYPE(pyResult)->tp_name);
        return false;
    }
    bool cppResult;
    pythonToCpp(pyResult, &cppResult);
    return cppResult;
}

void QCameraWrapper::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 *QCameraWrapper::metaObject() const
{
    if (QObject::d_ptr->metaObject)
        return QObject::d_ptr->dynamicMetaObject();
    SbkObject *pySelf = Shiboken::BindingManager::instance().retrieveWrapper(this);
    if (pySelf == nullptr)
        return QCamera::metaObject();
    return PySide::SignalManager::retrieveMetaObject(reinterpret_cast<PyObject *>(pySelf));
}

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

void *QCameraWrapper::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< QCameraWrapper *>(this));
    return QCamera::qt_metacast(_clname);
}

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

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

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

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

    // invalid argument lengths


    if (!PyArg_ParseTuple(args, "|OO:QCamera", &(pyArgs[0]), &(pyArgs[1])))
        return -1;


    // Overloaded function decisor
    // 0: QCamera::QCamera(QCameraDevice::Position,QObject*)
    // 1: QCamera::QCamera(QObject*)
    // 2: QCamera::QCamera(QCameraDevice,QObject*)
    if (numArgs == 0) {
        overloadId = 1; // QCamera(QObject*)
    } else if (numArgs >= 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtMultimediaTypes[SBK_QCAMERADEVICE_IDX], (pyArgs[0])))) {
        if (numArgs == 1) {
            overloadId = 2; // QCamera(QCameraDevice,QObject*)
        } else if (numArgs >= 2
            && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[1])))) {
            overloadId = 2; // QCamera(QCameraDevice,QObject*)
        }
    } else if (numArgs >= 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[0])))) {
        overloadId = 1; // QCamera(QObject*)
    } else if (numArgs >= 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QCAMERADEVICE_POSITION_IDX]))->converter, (pyArgs[0])))) {
        if (numArgs == 1) {
            overloadId = 0; // QCamera(QCameraDevice::Position,QObject*)
        } else if (numArgs >= 2
            && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[1])))) {
            overloadId = 0; // QCamera(QCameraDevice::Position,QObject*)
        }
    }

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

    // Call function/method
    switch (overloadId) {
        case 0: // QCamera(QCameraDevice::Position position, 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_QCamera_Init_TypeError;
                    }
                    if (value) {
                        pyArgs[1] = value;
                        if (!(pythonToCpp[1] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[1]))))
                            goto Sbk_QCamera_Init_TypeError;
                    }
                    PyDict_DelItem(kwds_dup, key_parent);
                }
                if (PyDict_Size(kwds_dup) > 0) {
                    errInfo.reset(kwds_dup.release());
                    // fall through to handle extra keyword signals and properties
                }
            }
            ::QCameraDevice::Position cppArg0{QCameraDevice::UnspecifiedPosition};
            pythonToCpp[0](pyArgs[0], &cppArg0);
            if (!Shiboken::Object::isValid(pyArgs[1]))
                return -1;
            ::QObject *cppArg1 = nullptr;
            if (pythonToCpp[1])
                pythonToCpp[1](pyArgs[1], &cppArg1);

            if (!PyErr_Occurred()) {
                // QCamera(QCameraDevice::Position,QObject*)
                void *addr = PySide::nextQObjectMemoryAddr();
                if (addr) {
                    cptr = new (addr) ::QCameraWrapper(cppArg0, cppArg1);
                    PySide::setNextQObjectMemoryAddr(0);
                } else {
                    cptr = new ::QCameraWrapper(cppArg0, cppArg1);
                }

                Shiboken::Object::setParent(pyArgs[1], self);
            }
            break;
        }
        case 1: // QCamera(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_QCamera_Init_TypeError;
                    }
                    if (value) {
                        pyArgs[0] = value;
                        if (!(pythonToCpp[0] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[0]))))
                            goto Sbk_QCamera_Init_TypeError;
                    }
                    PyDict_DelItem(kwds_dup, key_parent);
                }
                if (PyDict_Size(kwds_dup) > 0) {
                    errInfo.reset(kwds_dup.release());
                    // fall through to handle extra keyword signals and properties
                }
            }
            if (!Shiboken::Object::isValid(pyArgs[0]))
                return -1;
            ::QObject *cppArg0 = nullptr;
            if (pythonToCpp[0])
                pythonToCpp[0](pyArgs[0], &cppArg0);

            if (!PyErr_Occurred()) {
                // QCamera(QObject*)
                void *addr = PySide::nextQObjectMemoryAddr();
                if (addr) {
                    cptr = new (addr) ::QCameraWrapper(cppArg0);
                    PySide::setNextQObjectMemoryAddr(0);
                } else {
                    cptr = new ::QCameraWrapper(cppArg0);
                }

                Shiboken::Object::setParent(pyArgs[0], self);
            }
            break;
        }
        case 2: // QCamera(const QCameraDevice & cameraDevice, 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_QCamera_Init_TypeError;
                    }
                    if (value) {
                        pyArgs[1] = value;
                        if (!(pythonToCpp[1] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[1]))))
                            goto Sbk_QCamera_Init_TypeError;
                    }
                    PyDict_DelItem(kwds_dup, key_parent);
                }
                if (PyDict_Size(kwds_dup) > 0) {
                    errInfo.reset(kwds_dup.release());
                    // fall through to handle extra keyword signals and properties
                }
            }
            if (!Shiboken::Object::isValid(pyArgs[0]))
                return -1;
            ::QCameraDevice cppArg0_local;
            ::QCameraDevice *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 -1;
            ::QObject *cppArg1 = nullptr;
            if (pythonToCpp[1])
                pythonToCpp[1](pyArgs[1], &cppArg1);

            if (!PyErr_Occurred()) {
                // QCamera(QCameraDevice,QObject*)
                void *addr = PySide::nextQObjectMemoryAddr();
                if (addr) {
                    cptr = new (addr) ::QCameraWrapper(*cppArg0, cppArg1);
                    PySide::setNextQObjectMemoryAddr(0);
                } else {
                    cptr = new ::QCameraWrapper(*cppArg0, cppArg1);
                }

                Shiboken::Object::setParent(pyArgs[1], self);
            }
            break;
        }
    }

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

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

    // QObject setup
    PySide::Signal::updateSourceObject(self);
    metaObject = cptr->metaObject(); // <- init python qt properties
    if (!errInfo.isNull() && PyDict_Check(errInfo.object())) {
        if (!PySide::fillQtProperties(self, metaObject, errInfo))
            goto Sbk_QCamera_Init_TypeError;
    };


    return 1;

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

static PyObject *Sbk_QCameraFunc_cameraDevice(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.cameraDevice";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // cameraDevice()const
            QCameraDevice cppResult = const_cast<const ::QCamera *>(cppSelf)->cameraDevice();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtMultimediaTypes[SBK_QCAMERADEVICE_IDX], &cppResult);
        }
    }

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

static PyObject *Sbk_QCameraFunc_cameraFormat(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.cameraFormat";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // cameraFormat()const
            QCameraFormat cppResult = const_cast<const ::QCamera *>(cppSelf)->cameraFormat();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtMultimediaTypes[SBK_QCAMERAFORMAT_IDX], &cppResult);
        }
    }

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

static PyObject *Sbk_QCameraFunc_captureSession(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.captureSession";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // captureSession()const
            QMediaCaptureSession * cppResult = const_cast<const ::QCamera *>(cppSelf)->captureSession();
            pyResult = Shiboken::Conversions::pointerToPython(SbkPySide6_QtMultimediaTypes[SBK_QMEDIACAPTURESESSION_IDX], cppResult);
            Shiboken::Object::setParent(self, pyResult);
        }
    }

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

static PyObject *Sbk_QCameraFunc_colorTemperature(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.colorTemperature";
    SBK_UNUSED(fullName)

    // Call function/method
    {

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

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

static PyObject *Sbk_QCameraFunc_customFocusPoint(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.customFocusPoint";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // customFocusPoint()const
            QPointF cppResult = const_cast<const ::QCamera *>(cppSelf)->customFocusPoint();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QPOINTF_IDX], &cppResult);
        }
    }

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

static PyObject *Sbk_QCameraFunc_error(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.error";
    SBK_UNUSED(fullName)

    // Call function/method
    {

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

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

static PyObject *Sbk_QCameraFunc_errorString(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.errorString";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // errorString()const
            QString cppResult = const_cast<const ::QCamera *>(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_QCameraFunc_exposureCompensation(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.exposureCompensation";
    SBK_UNUSED(fullName)

    // Call function/method
    {

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

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

static PyObject *Sbk_QCameraFunc_exposureMode(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.exposureMode";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // exposureMode()const
            QCamera::ExposureMode cppResult = const_cast<const ::QCamera *>(cppSelf)->exposureMode();
            pyResult = Shiboken::Conversions::copyToPython(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_EXPOSUREMODE_IDX]))->converter, &cppResult);
        }
    }

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

static PyObject *Sbk_QCameraFunc_exposureTime(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.exposureTime";
    SBK_UNUSED(fullName)

    // Call function/method
    {

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

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

static PyObject *Sbk_QCameraFunc_flashMode(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.flashMode";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // flashMode()const
            QCamera::FlashMode cppResult = const_cast<const ::QCamera *>(cppSelf)->flashMode();
            pyResult = Shiboken::Conversions::copyToPython(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FLASHMODE_IDX]))->converter, &cppResult);
        }
    }

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

static PyObject *Sbk_QCameraFunc_focusDistance(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.focusDistance";
    SBK_UNUSED(fullName)

    // Call function/method
    {

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

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

static PyObject *Sbk_QCameraFunc_focusMode(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.focusMode";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // focusMode()const
            QCamera::FocusMode cppResult = const_cast<const ::QCamera *>(cppSelf)->focusMode();
            pyResult = Shiboken::Conversions::copyToPython(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FOCUSMODE_IDX]))->converter, &cppResult);
        }
    }

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

static PyObject *Sbk_QCameraFunc_focusPoint(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.focusPoint";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // focusPoint()const
            QPointF cppResult = const_cast<const ::QCamera *>(cppSelf)->focusPoint();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QPOINTF_IDX], &cppResult);
        }
    }

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

static PyObject *Sbk_QCameraFunc_isActive(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.isActive";
    SBK_UNUSED(fullName)

    // Call function/method
    {

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

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

static PyObject *Sbk_QCameraFunc_isAvailable(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.isAvailable";
    SBK_UNUSED(fullName)

    // Call function/method
    {

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

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

static PyObject *Sbk_QCameraFunc_isExposureModeSupported(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.isExposureModeSupported";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QCamera::isExposureModeSupported(QCamera::ExposureMode)const->bool
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_EXPOSUREMODE_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // isExposureModeSupported(QCamera::ExposureMode)const
    }

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

    // Call function/method
    {
        ::QCamera::ExposureMode cppArg0{QCamera::ExposureAuto};
        pythonToCpp(pyArg, &cppArg0);

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

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

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

static PyObject *Sbk_QCameraFunc_isFlashModeSupported(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.isFlashModeSupported";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QCamera::isFlashModeSupported(QCamera::FlashMode)const->bool
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FLASHMODE_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // isFlashModeSupported(QCamera::FlashMode)const
    }

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

    // Call function/method
    {
        ::QCamera::FlashMode cppArg0{QCamera::FlashOff};
        pythonToCpp(pyArg, &cppArg0);

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

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

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

static PyObject *Sbk_QCameraFunc_isFlashReady(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.isFlashReady";
    SBK_UNUSED(fullName)

    // Call function/method
    {

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

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

static PyObject *Sbk_QCameraFunc_isFocusModeSupported(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.isFocusModeSupported";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QCamera::isFocusModeSupported(QCamera::FocusMode)const->bool
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FOCUSMODE_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // isFocusModeSupported(QCamera::FocusMode)const
    }

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

    // Call function/method
    {
        ::QCamera::FocusMode cppArg0{QCamera::FocusModeAuto};
        pythonToCpp(pyArg, &cppArg0);

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

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

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

static PyObject *Sbk_QCameraFunc_isTorchModeSupported(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.isTorchModeSupported";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QCamera::isTorchModeSupported(QCamera::TorchMode)const->bool
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_TORCHMODE_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // isTorchModeSupported(QCamera::TorchMode)const
    }

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

    // Call function/method
    {
        ::QCamera::TorchMode cppArg0{QCamera::TorchOff};
        pythonToCpp(pyArg, &cppArg0);

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

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

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

static PyObject *Sbk_QCameraFunc_isWhiteBalanceModeSupported(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.isWhiteBalanceModeSupported";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QCamera::isWhiteBalanceModeSupported(QCamera::WhiteBalanceMode)const->bool
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_WHITEBALANCEMODE_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // isWhiteBalanceModeSupported(QCamera::WhiteBalanceMode)const
    }

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

    // Call function/method
    {
        ::QCamera::WhiteBalanceMode cppArg0{QCamera::WhiteBalanceAuto};
        pythonToCpp(pyArg, &cppArg0);

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

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

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

static PyObject *Sbk_QCameraFunc_isoSensitivity(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.isoSensitivity";
    SBK_UNUSED(fullName)

    // Call function/method
    {

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

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

static PyObject *Sbk_QCameraFunc_manualExposureTime(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.manualExposureTime";
    SBK_UNUSED(fullName)

    // Call function/method
    {

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

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

static PyObject *Sbk_QCameraFunc_manualIsoSensitivity(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.manualIsoSensitivity";
    SBK_UNUSED(fullName)

    // Call function/method
    {

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

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

static PyObject *Sbk_QCameraFunc_maximumExposureTime(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.maximumExposureTime";
    SBK_UNUSED(fullName)

    // Call function/method
    {

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

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

static PyObject *Sbk_QCameraFunc_maximumIsoSensitivity(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.maximumIsoSensitivity";
    SBK_UNUSED(fullName)

    // Call function/method
    {

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

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

static PyObject *Sbk_QCameraFunc_maximumZoomFactor(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.maximumZoomFactor";
    SBK_UNUSED(fullName)

    // Call function/method
    {

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

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

static PyObject *Sbk_QCameraFunc_minimumExposureTime(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.minimumExposureTime";
    SBK_UNUSED(fullName)

    // Call function/method
    {

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

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

static PyObject *Sbk_QCameraFunc_minimumIsoSensitivity(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.minimumIsoSensitivity";
    SBK_UNUSED(fullName)

    // Call function/method
    {

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

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

static PyObject *Sbk_QCameraFunc_minimumZoomFactor(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.minimumZoomFactor";
    SBK_UNUSED(fullName)

    // Call function/method
    {

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

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

static PyObject *Sbk_QCameraFunc_setActive(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.setActive";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QCamera::setActive(bool)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), (pyArg)))) {
        overloadId = 0; // setActive(bool)
    }

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

    // Call function/method
    {
        bool cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setActive(bool)
            cppSelf->setActive(cppArg0);
        }
    }

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

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

static PyObject *Sbk_QCameraFunc_setAutoExposureTime(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.setAutoExposureTime";
    SBK_UNUSED(fullName)

    // Call function/method
    {

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

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

static PyObject *Sbk_QCameraFunc_setAutoIsoSensitivity(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.setAutoIsoSensitivity";
    SBK_UNUSED(fullName)

    // Call function/method
    {

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

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

static PyObject *Sbk_QCameraFunc_setCameraDevice(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.setCameraDevice";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QCamera::setCameraDevice(QCameraDevice)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtMultimediaTypes[SBK_QCAMERADEVICE_IDX], (pyArg)))) {
        overloadId = 0; // setCameraDevice(QCameraDevice)
    }

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

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


        if (!PyErr_Occurred()) {
            // setCameraDevice(QCameraDevice)
            cppSelf->setCameraDevice(*cppArg0);
        }
    }

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

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

static PyObject *Sbk_QCameraFunc_setCameraFormat(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.setCameraFormat";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QCamera::setCameraFormat(QCameraFormat)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtMultimediaTypes[SBK_QCAMERAFORMAT_IDX], (pyArg)))) {
        overloadId = 0; // setCameraFormat(QCameraFormat)
    }

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

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


        if (!PyErr_Occurred()) {
            // setCameraFormat(QCameraFormat)
            cppSelf->setCameraFormat(*cppArg0);
        }
    }

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

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

static PyObject *Sbk_QCameraFunc_setColorTemperature(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.setColorTemperature";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QCamera::setColorTemperature(int)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<int>(), (pyArg)))) {
        overloadId = 0; // setColorTemperature(int)
    }

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

    // Call function/method
    {
        int cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setColorTemperature(int)
            cppSelf->setColorTemperature(cppArg0);
        }
    }

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

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

static PyObject *Sbk_QCameraFunc_setCustomFocusPoint(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.setCustomFocusPoint";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QCamera::setCustomFocusPoint(QPointF)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtCoreTypes[SBK_QPOINTF_IDX], (pyArg)))) {
        overloadId = 0; // setCustomFocusPoint(QPointF)
    }

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

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


        if (!PyErr_Occurred()) {
            // setCustomFocusPoint(QPointF)
            cppSelf->setCustomFocusPoint(*cppArg0);
        }
    }

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

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

static PyObject *Sbk_QCameraFunc_setExposureCompensation(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.setExposureCompensation";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QCamera::setExposureCompensation(float)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<float>(), (pyArg)))) {
        overloadId = 0; // setExposureCompensation(float)
    }

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

    // Call function/method
    {
        float cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setExposureCompensation(float)
            cppSelf->setExposureCompensation(cppArg0);
        }
    }

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

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

static PyObject *Sbk_QCameraFunc_setExposureMode(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.setExposureMode";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QCamera::setExposureMode(QCamera::ExposureMode)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_EXPOSUREMODE_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // setExposureMode(QCamera::ExposureMode)
    }

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

    // Call function/method
    {
        ::QCamera::ExposureMode cppArg0{QCamera::ExposureAuto};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setExposureMode(QCamera::ExposureMode)
            cppSelf->setExposureMode(cppArg0);
        }
    }

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

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

static PyObject *Sbk_QCameraFunc_setFlashMode(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.setFlashMode";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QCamera::setFlashMode(QCamera::FlashMode)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FLASHMODE_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // setFlashMode(QCamera::FlashMode)
    }

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

    // Call function/method
    {
        ::QCamera::FlashMode cppArg0{QCamera::FlashOff};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setFlashMode(QCamera::FlashMode)
            cppSelf->setFlashMode(cppArg0);
        }
    }

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

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

static PyObject *Sbk_QCameraFunc_setFocusDistance(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.setFocusDistance";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QCamera::setFocusDistance(float)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<float>(), (pyArg)))) {
        overloadId = 0; // setFocusDistance(float)
    }

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

    // Call function/method
    {
        float cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setFocusDistance(float)
            cppSelf->setFocusDistance(cppArg0);
        }
    }

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

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

static PyObject *Sbk_QCameraFunc_setFocusMode(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.setFocusMode";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QCamera::setFocusMode(QCamera::FocusMode)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FOCUSMODE_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // setFocusMode(QCamera::FocusMode)
    }

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

    // Call function/method
    {
        ::QCamera::FocusMode cppArg0{QCamera::FocusModeAuto};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setFocusMode(QCamera::FocusMode)
            cppSelf->setFocusMode(cppArg0);
        }
    }

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

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

static PyObject *Sbk_QCameraFunc_setManualExposureTime(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.setManualExposureTime";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QCamera::setManualExposureTime(float)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<float>(), (pyArg)))) {
        overloadId = 0; // setManualExposureTime(float)
    }

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

    // Call function/method
    {
        float cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setManualExposureTime(float)
            cppSelf->setManualExposureTime(cppArg0);
        }
    }

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

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

static PyObject *Sbk_QCameraFunc_setManualIsoSensitivity(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.setManualIsoSensitivity";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QCamera::setManualIsoSensitivity(int)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<int>(), (pyArg)))) {
        overloadId = 0; // setManualIsoSensitivity(int)
    }

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

    // Call function/method
    {
        int cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setManualIsoSensitivity(int)
            cppSelf->setManualIsoSensitivity(cppArg0);
        }
    }

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

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

static PyObject *Sbk_QCameraFunc_setTorchMode(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.setTorchMode";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QCamera::setTorchMode(QCamera::TorchMode)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_TORCHMODE_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // setTorchMode(QCamera::TorchMode)
    }

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

    // Call function/method
    {
        ::QCamera::TorchMode cppArg0{QCamera::TorchOff};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setTorchMode(QCamera::TorchMode)
            cppSelf->setTorchMode(cppArg0);
        }
    }

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

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

static PyObject *Sbk_QCameraFunc_setWhiteBalanceMode(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.setWhiteBalanceMode";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QCamera::setWhiteBalanceMode(QCamera::WhiteBalanceMode)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_WHITEBALANCEMODE_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // setWhiteBalanceMode(QCamera::WhiteBalanceMode)
    }

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

    // Call function/method
    {
        ::QCamera::WhiteBalanceMode cppArg0{QCamera::WhiteBalanceAuto};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setWhiteBalanceMode(QCamera::WhiteBalanceMode)
            cppSelf->setWhiteBalanceMode(cppArg0);
        }
    }

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

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

static PyObject *Sbk_QCameraFunc_setZoomFactor(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.setZoomFactor";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QCamera::setZoomFactor(float)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<float>(), (pyArg)))) {
        overloadId = 0; // setZoomFactor(float)
    }

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

    // Call function/method
    {
        float cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setZoomFactor(float)
            cppSelf->setZoomFactor(cppArg0);
        }
    }

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

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

static PyObject *Sbk_QCameraFunc_start(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.start";
    SBK_UNUSED(fullName)

    // Call function/method
    {

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

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

static PyObject *Sbk_QCameraFunc_stop(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.stop";
    SBK_UNUSED(fullName)

    // Call function/method
    {

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

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

static PyObject *Sbk_QCameraFunc_supportedFeatures(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.supportedFeatures";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // supportedFeatures()const
            QFlags<QCamera::Feature> cppResult = const_cast<const ::QCamera *>(cppSelf)->supportedFeatures();
            pyResult = Shiboken::Conversions::copyToPython(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtMultimediaTypes[SBK_QFLAGS_QCAMERA_FEATURE_IDX]))->converter, &cppResult);
        }
    }

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

static PyObject *Sbk_QCameraFunc_torchMode(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.torchMode";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // torchMode()const
            QCamera::TorchMode cppResult = const_cast<const ::QCamera *>(cppSelf)->torchMode();
            pyResult = Shiboken::Conversions::copyToPython(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_TORCHMODE_IDX]))->converter, &cppResult);
        }
    }

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

static PyObject *Sbk_QCameraFunc_whiteBalanceMode(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.whiteBalanceMode";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // whiteBalanceMode()const
            QCamera::WhiteBalanceMode cppResult = const_cast<const ::QCamera *>(cppSelf)->whiteBalanceMode();
            pyResult = Shiboken::Conversions::copyToPython(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_WHITEBALANCEMODE_IDX]))->converter, &cppResult);
        }
    }

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

static PyObject *Sbk_QCameraFunc_zoomFactor(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QCamera.zoomFactor";
    SBK_UNUSED(fullName)

    // Call function/method
    {

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

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

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

    // invalid argument lengths


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


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

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

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

        if (!PyErr_Occurred()) {
            // zoomTo(float,float)
            cppSelf->zoomTo(cppArg0, cppArg1);
        }
    }

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

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


static const char *Sbk_QCamera_PropertyStrings[] = {
    "active:isActive:",
    "cameraDevice::",
    "cameraFormat::",
    "colorTemperature::",
    "customFocusPoint::",
    "error:",
    "errorString:",
    "exposureCompensation::",
    "exposureMode::",
    "exposureTime:",
    "flashMode::",
    "flashReady:isFlashReady",
    "focusDistance::",
    "focusMode::",
    "focusPoint:",
    "isoSensitivity:",
    "manualExposureTime::",
    "manualIsoSensitivity::",
    "maximumZoomFactor:",
    "minimumZoomFactor:",
    "supportedFeatures:",
    "torchMode::",
    "whiteBalanceMode::",
    "zoomFactor::",
    nullptr // Sentinel
};

static PyMethodDef Sbk_QCamera_methods[] = {
    {"cameraDevice", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_cameraDevice), METH_NOARGS},
    {"cameraFormat", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_cameraFormat), METH_NOARGS},
    {"captureSession", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_captureSession), METH_NOARGS},
    {"colorTemperature", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_colorTemperature), METH_NOARGS},
    {"customFocusPoint", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_customFocusPoint), METH_NOARGS},
    {"error", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_error), METH_NOARGS},
    {"errorString", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_errorString), METH_NOARGS},
    {"exposureCompensation", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_exposureCompensation), METH_NOARGS},
    {"exposureMode", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_exposureMode), METH_NOARGS},
    {"exposureTime", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_exposureTime), METH_NOARGS},
    {"flashMode", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_flashMode), METH_NOARGS},
    {"focusDistance", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_focusDistance), METH_NOARGS},
    {"focusMode", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_focusMode), METH_NOARGS},
    {"focusPoint", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_focusPoint), METH_NOARGS},
    {"isActive", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_isActive), METH_NOARGS},
    {"isAvailable", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_isAvailable), METH_NOARGS},
    {"isExposureModeSupported", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_isExposureModeSupported), METH_O},
    {"isFlashModeSupported", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_isFlashModeSupported), METH_O},
    {"isFlashReady", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_isFlashReady), METH_NOARGS},
    {"isFocusModeSupported", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_isFocusModeSupported), METH_O},
    {"isTorchModeSupported", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_isTorchModeSupported), METH_O},
    {"isWhiteBalanceModeSupported", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_isWhiteBalanceModeSupported), METH_O},
    {"isoSensitivity", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_isoSensitivity), METH_NOARGS},
    {"manualExposureTime", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_manualExposureTime), METH_NOARGS},
    {"manualIsoSensitivity", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_manualIsoSensitivity), METH_NOARGS},
    {"maximumExposureTime", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_maximumExposureTime), METH_NOARGS},
    {"maximumIsoSensitivity", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_maximumIsoSensitivity), METH_NOARGS},
    {"maximumZoomFactor", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_maximumZoomFactor), METH_NOARGS},
    {"minimumExposureTime", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_minimumExposureTime), METH_NOARGS},
    {"minimumIsoSensitivity", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_minimumIsoSensitivity), METH_NOARGS},
    {"minimumZoomFactor", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_minimumZoomFactor), METH_NOARGS},
    {"setActive", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_setActive), METH_O},
    {"setAutoExposureTime", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_setAutoExposureTime), METH_NOARGS},
    {"setAutoIsoSensitivity", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_setAutoIsoSensitivity), METH_NOARGS},
    {"setCameraDevice", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_setCameraDevice), METH_O},
    {"setCameraFormat", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_setCameraFormat), METH_O},
    {"setColorTemperature", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_setColorTemperature), METH_O},
    {"setCustomFocusPoint", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_setCustomFocusPoint), METH_O},
    {"setExposureCompensation", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_setExposureCompensation), METH_O},
    {"setExposureMode", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_setExposureMode), METH_O},
    {"setFlashMode", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_setFlashMode), METH_O},
    {"setFocusDistance", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_setFocusDistance), METH_O},
    {"setFocusMode", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_setFocusMode), METH_O},
    {"setManualExposureTime", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_setManualExposureTime), METH_O},
    {"setManualIsoSensitivity", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_setManualIsoSensitivity), METH_O},
    {"setTorchMode", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_setTorchMode), METH_O},
    {"setWhiteBalanceMode", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_setWhiteBalanceMode), METH_O},
    {"setZoomFactor", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_setZoomFactor), METH_O},
    {"start", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_start), METH_NOARGS},
    {"stop", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_stop), METH_NOARGS},
    {"supportedFeatures", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_supportedFeatures), METH_NOARGS},
    {"torchMode", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_torchMode), METH_NOARGS},
    {"whiteBalanceMode", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_whiteBalanceMode), METH_NOARGS},
    {"zoomFactor", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_zoomFactor), METH_NOARGS},
    {"zoomTo", reinterpret_cast<PyCFunction>(Sbk_QCameraFunc_zoomTo), METH_VARARGS},

    {nullptr, nullptr} // Sentinel
};

static int Sbk_QCamera_setattro(PyObject *self, PyObject *name, PyObject *value)
{
    PySide::Feature::Select(self);
    if (value && PyCallable_Check(value)) {
        auto plain_inst = reinterpret_cast< ::QCamera *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX], reinterpret_cast<SbkObject *>(self)));
        auto inst = dynamic_cast<QCameraWrapper *>(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_QCamera_traverse(PyObject *self, visitproc visit, void *arg)
{
    return SbkObject_TypeF()->tp_traverse(self, visit, arg);
}
static int Sbk_QCamera_clear(PyObject *self)
{
    return reinterpret_cast<PyTypeObject *>(SbkObject_TypeF())->tp_clear(self);
}
// Class Definition -----------------------------------------------
extern "C" {
static PyTypeObject *_Sbk_QCamera_Type = nullptr;
static PyTypeObject *Sbk_QCamera_TypeF(void)
{
    return _Sbk_QCamera_Type;
}

static PyType_Slot Sbk_QCamera_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_QCamera_setattro)},
    {Py_tp_traverse,    reinterpret_cast<void *>(Sbk_QCamera_traverse)},
    {Py_tp_clear,       reinterpret_cast<void *>(Sbk_QCamera_clear)},
    {Py_tp_richcompare, nullptr},
    {Py_tp_iter,        nullptr},
    {Py_tp_iternext,    nullptr},
    {Py_tp_methods,     reinterpret_cast<void *>(Sbk_QCamera_methods)},
    {Py_tp_getset,      nullptr},
    {Py_tp_init,        reinterpret_cast<void *>(Sbk_QCamera_Init)},
    {Py_tp_new,         reinterpret_cast<void *>(SbkObjectTpNew)},
    {0, nullptr}
};
static PyType_Spec Sbk_QCamera_spec = {
    "2:PySide6.QtMultimedia.QCamera",
    sizeof(SbkObject),
    0,
    Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
    Sbk_QCamera_slots
};

} //extern "C"

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

PyObject *SbkPySide6_QtMultimedia_QCamera_Feature___and__(PyObject *self, PyObject *pyArg)
{
    ::QCamera::Features cppResult, cppSelf, cppArg;
    cppSelf = static_cast<::QCamera::Features>(int(PyLong_AsLong(self)));
    if (PyErr_Occurred())
        return nullptr;
    cppArg = static_cast<QCamera::Features>(int(PyLong_AsLong(pyArg)));
    if (PyErr_Occurred())
        return nullptr;
    cppResult = cppSelf & cppArg;
    return Shiboken::Conversions::copyToPython(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtMultimediaTypes[SBK_QFLAGS_QCAMERA_FEATURE_IDX]))->converter, &cppResult);
}

PyObject *SbkPySide6_QtMultimedia_QCamera_Feature___or__(PyObject *self, PyObject *pyArg)
{
    ::QCamera::Features cppResult, cppSelf, cppArg;
    cppSelf = static_cast<::QCamera::Features>(int(PyLong_AsLong(self)));
    if (PyErr_Occurred())
        return nullptr;
    cppArg = static_cast<QCamera::Features>(int(PyLong_AsLong(pyArg)));
    if (PyErr_Occurred())
        return nullptr;
    cppResult = cppSelf | cppArg;
    return Shiboken::Conversions::copyToPython(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtMultimediaTypes[SBK_QFLAGS_QCAMERA_FEATURE_IDX]))->converter, &cppResult);
}

PyObject *SbkPySide6_QtMultimedia_QCamera_Feature___xor__(PyObject *self, PyObject *pyArg)
{
    ::QCamera::Features cppResult, cppSelf, cppArg;
    cppSelf = static_cast<::QCamera::Features>(int(PyLong_AsLong(self)));
    if (PyErr_Occurred())
        return nullptr;
    cppArg = static_cast<QCamera::Features>(int(PyLong_AsLong(pyArg)));
    if (PyErr_Occurred())
        return nullptr;
    cppResult = cppSelf ^ cppArg;
    return Shiboken::Conversions::copyToPython(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtMultimediaTypes[SBK_QFLAGS_QCAMERA_FEATURE_IDX]))->converter, &cppResult);
}

PyObject *SbkPySide6_QtMultimedia_QCamera_Feature___invert__(PyObject *self, PyObject *pyArg)
{
    ::QCamera::Features cppSelf;
    Shiboken::Conversions::pythonToCppCopy(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtMultimediaTypes[SBK_QFLAGS_QCAMERA_FEATURE_IDX]))->converter, self, &cppSelf);
    ::QCamera::Features cppResult = ~cppSelf;
    return Shiboken::Conversions::copyToPython(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtMultimediaTypes[SBK_QFLAGS_QCAMERA_FEATURE_IDX]))->converter, &cppResult);
}

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

static PyType_Slot SbkPySide6_QtMultimedia_QCamera_Feature_number_slots[] = {
    {Py_nb_bool,    reinterpret_cast<void *>(SbkPySide6_QtMultimedia_QCamera_Feature__nonzero)},
    {Py_nb_invert,  reinterpret_cast<void *>(SbkPySide6_QtMultimedia_QCamera_Feature___invert__)},
    {Py_nb_and,     reinterpret_cast<void *>(SbkPySide6_QtMultimedia_QCamera_Feature___and__)},
    {Py_nb_xor,     reinterpret_cast<void *>(SbkPySide6_QtMultimedia_QCamera_Feature___xor__)},
    {Py_nb_or,      reinterpret_cast<void *>(SbkPySide6_QtMultimedia_QCamera_Feature___or__)},
    {Py_nb_int,     reinterpret_cast<void *>(SbkPySide6_QtMultimedia_QCamera_Feature_long)},
    {Py_nb_index,   reinterpret_cast<void *>(SbkPySide6_QtMultimedia_QCamera_Feature_long)},
    {0, nullptr} // sentinel
};



// Type conversion functions.

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

}
static PythonToCppFunc is_QCamera_Error_PythonToCpp_QCamera_Error_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_ERROR_IDX]))
        return QCamera_Error_PythonToCpp_QCamera_Error;
    return {};
}
static PyObject *QCamera_Error_CppToPython_QCamera_Error(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QCamera::Error *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_ERROR_IDX], castCppIn);

}

static void QCamera_FocusMode_PythonToCpp_QCamera_FocusMode(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QCamera::FocusMode *>(cppOut) =
        static_cast<::QCamera::FocusMode>(Shiboken::Enum::getValue(pyIn));

}
static PythonToCppFunc is_QCamera_FocusMode_PythonToCpp_QCamera_FocusMode_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FOCUSMODE_IDX]))
        return QCamera_FocusMode_PythonToCpp_QCamera_FocusMode;
    return {};
}
static PyObject *QCamera_FocusMode_CppToPython_QCamera_FocusMode(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QCamera::FocusMode *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FOCUSMODE_IDX], castCppIn);

}

static void QCamera_FlashMode_PythonToCpp_QCamera_FlashMode(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QCamera::FlashMode *>(cppOut) =
        static_cast<::QCamera::FlashMode>(Shiboken::Enum::getValue(pyIn));

}
static PythonToCppFunc is_QCamera_FlashMode_PythonToCpp_QCamera_FlashMode_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FLASHMODE_IDX]))
        return QCamera_FlashMode_PythonToCpp_QCamera_FlashMode;
    return {};
}
static PyObject *QCamera_FlashMode_CppToPython_QCamera_FlashMode(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QCamera::FlashMode *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FLASHMODE_IDX], castCppIn);

}

static void QCamera_TorchMode_PythonToCpp_QCamera_TorchMode(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QCamera::TorchMode *>(cppOut) =
        static_cast<::QCamera::TorchMode>(Shiboken::Enum::getValue(pyIn));

}
static PythonToCppFunc is_QCamera_TorchMode_PythonToCpp_QCamera_TorchMode_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_TORCHMODE_IDX]))
        return QCamera_TorchMode_PythonToCpp_QCamera_TorchMode;
    return {};
}
static PyObject *QCamera_TorchMode_CppToPython_QCamera_TorchMode(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QCamera::TorchMode *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_TORCHMODE_IDX], castCppIn);

}

static void QCamera_ExposureMode_PythonToCpp_QCamera_ExposureMode(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QCamera::ExposureMode *>(cppOut) =
        static_cast<::QCamera::ExposureMode>(Shiboken::Enum::getValue(pyIn));

}
static PythonToCppFunc is_QCamera_ExposureMode_PythonToCpp_QCamera_ExposureMode_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_EXPOSUREMODE_IDX]))
        return QCamera_ExposureMode_PythonToCpp_QCamera_ExposureMode;
    return {};
}
static PyObject *QCamera_ExposureMode_CppToPython_QCamera_ExposureMode(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QCamera::ExposureMode *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_EXPOSUREMODE_IDX], castCppIn);

}

static void QCamera_WhiteBalanceMode_PythonToCpp_QCamera_WhiteBalanceMode(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QCamera::WhiteBalanceMode *>(cppOut) =
        static_cast<::QCamera::WhiteBalanceMode>(Shiboken::Enum::getValue(pyIn));

}
static PythonToCppFunc is_QCamera_WhiteBalanceMode_PythonToCpp_QCamera_WhiteBalanceMode_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_WHITEBALANCEMODE_IDX]))
        return QCamera_WhiteBalanceMode_PythonToCpp_QCamera_WhiteBalanceMode;
    return {};
}
static PyObject *QCamera_WhiteBalanceMode_CppToPython_QCamera_WhiteBalanceMode(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QCamera::WhiteBalanceMode *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_WHITEBALANCEMODE_IDX], castCppIn);

}

static void QCamera_Feature_PythonToCpp_QCamera_Feature(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QCamera::Feature *>(cppOut) =
        static_cast<::QCamera::Feature>(Shiboken::Enum::getValue(pyIn));

}
static PythonToCppFunc is_QCamera_Feature_PythonToCpp_QCamera_Feature_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FEATURE_IDX]))
        return QCamera_Feature_PythonToCpp_QCamera_Feature;
    return {};
}
static PyObject *QCamera_Feature_CppToPython_QCamera_Feature(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QCamera::Feature *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FEATURE_IDX], castCppIn);

}

static void QFlags_QCamera_Feature__PythonToCpp_QFlags_QCamera_Feature_(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QFlags<QCamera::Feature> *>(cppOut) =
        ::QFlags<QCamera::Feature>(QFlag(int(PySide::QFlags::getValue(reinterpret_cast<PySideQFlagsObject *>(pyIn)))));

}
static PythonToCppFunc is_QFlags_QCamera_Feature__PythonToCpp_QFlags_QCamera_Feature__Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtMultimediaTypes[SBK_QFLAGS_QCAMERA_FEATURE_IDX]))
        return QFlags_QCamera_Feature__PythonToCpp_QFlags_QCamera_Feature_;
    return {};
}
static PyObject *QFlags_QCamera_Feature__CppToPython_QFlags_QCamera_Feature_(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QFlags<QCamera::Feature> *>(cppIn));
    return reinterpret_cast<PyObject *>(PySide::QFlags::newObject(castCppIn, SbkPySide6_QtMultimediaTypes[SBK_QFLAGS_QCAMERA_FEATURE_IDX]));

}

static void QCamera_Feature_PythonToCpp_QFlags_QCamera_Feature_(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QFlags<QCamera::Feature> *>(cppOut) =
        ::QFlags<QCamera::Feature>(QFlag(int(Shiboken::Enum::getValue(pyIn))));

}
static PythonToCppFunc is_QCamera_Feature_PythonToCpp_QFlags_QCamera_Feature__Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FEATURE_IDX]))
        return QCamera_Feature_PythonToCpp_QFlags_QCamera_Feature_;
    return {};
}
static void number_PythonToCpp_QFlags_QCamera_Feature_(PyObject *pyIn, void *cppOut)
{
    Shiboken::AutoDecRef pyLong(PyNumber_Long(pyIn));
    *reinterpret_cast<::QFlags<QCamera::Feature> *>(cppOut) =
        ::QFlags<QCamera::Feature>(QFlag(int(PyLong_AsLong(pyLong.object()))));

}
static PythonToCppFunc is_number_PythonToCpp_QFlags_QCamera_Feature__Convertible(PyObject *pyIn)
{
    if (PyNumber_Check(pyIn) && PyObject_TypeCheck(pyIn, SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FEATURE_IDX]))
        return number_PythonToCpp_QFlags_QCamera_Feature_;
    return {};
}
// Python to C++ pointer conversion - returns the C++ object of the Python wrapper (keeps object identity).
static void QCamera_PythonToCpp_QCamera_PTR(PyObject *pyIn, void *cppOut)
{
    Shiboken::Conversions::pythonToCppPointer(Sbk_QCamera_TypeF(), pyIn, cppOut);
}
static PythonToCppFunc is_QCamera_PythonToCpp_QCamera_PTR_Convertible(PyObject *pyIn)
{
    if (pyIn == Py_None)
        return Shiboken::Conversions::nonePythonToCppNullPtr;
    if (PyObject_TypeCheck(pyIn, reinterpret_cast<PyTypeObject *>(Sbk_QCamera_TypeF())))
        return QCamera_PythonToCpp_QCamera_PTR;
    return {};
}

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

}

// The signatures string for the functions.
// Multiple signatures have their index "n:" in front.
static const char *QCamera_SignatureStrings[] = {
    "2:PySide6.QtMultimedia.QCamera(self,position:PySide6.QtMultimedia.QCameraDevice.Position,parent:PySide6.QtCore.QObject=nullptr)",
    "1:PySide6.QtMultimedia.QCamera(self,parent:PySide6.QtCore.QObject=nullptr)",
    "0:PySide6.QtMultimedia.QCamera(self,cameraDevice:PySide6.QtMultimedia.QCameraDevice,parent:PySide6.QtCore.QObject=nullptr)",
    "PySide6.QtMultimedia.QCamera.cameraDevice(self)->PySide6.QtMultimedia.QCameraDevice",
    "PySide6.QtMultimedia.QCamera.cameraFormat(self)->PySide6.QtMultimedia.QCameraFormat",
    "PySide6.QtMultimedia.QCamera.captureSession(self)->PySide6.QtMultimedia.QMediaCaptureSession",
    "PySide6.QtMultimedia.QCamera.colorTemperature(self)->int",
    "PySide6.QtMultimedia.QCamera.customFocusPoint(self)->PySide6.QtCore.QPointF",
    "PySide6.QtMultimedia.QCamera.error(self)->PySide6.QtMultimedia.QCamera.Error",
    "PySide6.QtMultimedia.QCamera.errorString(self)->QString",
    "PySide6.QtMultimedia.QCamera.exposureCompensation(self)->float",
    "PySide6.QtMultimedia.QCamera.exposureMode(self)->PySide6.QtMultimedia.QCamera.ExposureMode",
    "PySide6.QtMultimedia.QCamera.exposureTime(self)->float",
    "PySide6.QtMultimedia.QCamera.flashMode(self)->PySide6.QtMultimedia.QCamera.FlashMode",
    "PySide6.QtMultimedia.QCamera.focusDistance(self)->float",
    "PySide6.QtMultimedia.QCamera.focusMode(self)->PySide6.QtMultimedia.QCamera.FocusMode",
    "PySide6.QtMultimedia.QCamera.focusPoint(self)->PySide6.QtCore.QPointF",
    "PySide6.QtMultimedia.QCamera.isActive(self)->bool",
    "PySide6.QtMultimedia.QCamera.isAvailable(self)->bool",
    "PySide6.QtMultimedia.QCamera.isExposureModeSupported(self,mode:PySide6.QtMultimedia.QCamera.ExposureMode)->bool",
    "PySide6.QtMultimedia.QCamera.isFlashModeSupported(self,mode:PySide6.QtMultimedia.QCamera.FlashMode)->bool",
    "PySide6.QtMultimedia.QCamera.isFlashReady(self)->bool",
    "PySide6.QtMultimedia.QCamera.isFocusModeSupported(self,mode:PySide6.QtMultimedia.QCamera.FocusMode)->bool",
    "PySide6.QtMultimedia.QCamera.isTorchModeSupported(self,mode:PySide6.QtMultimedia.QCamera.TorchMode)->bool",
    "PySide6.QtMultimedia.QCamera.isWhiteBalanceModeSupported(self,mode:PySide6.QtMultimedia.QCamera.WhiteBalanceMode)->bool",
    "PySide6.QtMultimedia.QCamera.isoSensitivity(self)->int",
    "PySide6.QtMultimedia.QCamera.manualExposureTime(self)->float",
    "PySide6.QtMultimedia.QCamera.manualIsoSensitivity(self)->int",
    "PySide6.QtMultimedia.QCamera.maximumExposureTime(self)->float",
    "PySide6.QtMultimedia.QCamera.maximumIsoSensitivity(self)->int",
    "PySide6.QtMultimedia.QCamera.maximumZoomFactor(self)->float",
    "PySide6.QtMultimedia.QCamera.minimumExposureTime(self)->float",
    "PySide6.QtMultimedia.QCamera.minimumIsoSensitivity(self)->int",
    "PySide6.QtMultimedia.QCamera.minimumZoomFactor(self)->float",
    "PySide6.QtMultimedia.QCamera.setActive(self,active:bool)",
    "PySide6.QtMultimedia.QCamera.setAutoExposureTime(self)",
    "PySide6.QtMultimedia.QCamera.setAutoIsoSensitivity(self)",
    "PySide6.QtMultimedia.QCamera.setCameraDevice(self,cameraDevice:PySide6.QtMultimedia.QCameraDevice)",
    "PySide6.QtMultimedia.QCamera.setCameraFormat(self,format:PySide6.QtMultimedia.QCameraFormat)",
    "PySide6.QtMultimedia.QCamera.setColorTemperature(self,colorTemperature:int)",
    "PySide6.QtMultimedia.QCamera.setCustomFocusPoint(self,point:typing.Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element])",
    "PySide6.QtMultimedia.QCamera.setExposureCompensation(self,ev:float)",
    "PySide6.QtMultimedia.QCamera.setExposureMode(self,mode:PySide6.QtMultimedia.QCamera.ExposureMode)",
    "PySide6.QtMultimedia.QCamera.setFlashMode(self,mode:PySide6.QtMultimedia.QCamera.FlashMode)",
    "PySide6.QtMultimedia.QCamera.setFocusDistance(self,d:float)",
    "PySide6.QtMultimedia.QCamera.setFocusMode(self,mode:PySide6.QtMultimedia.QCamera.FocusMode)",
    "PySide6.QtMultimedia.QCamera.setManualExposureTime(self,seconds:float)",
    "PySide6.QtMultimedia.QCamera.setManualIsoSensitivity(self,iso:int)",
    "PySide6.QtMultimedia.QCamera.setTorchMode(self,mode:PySide6.QtMultimedia.QCamera.TorchMode)",
    "PySide6.QtMultimedia.QCamera.setWhiteBalanceMode(self,mode:PySide6.QtMultimedia.QCamera.WhiteBalanceMode)",
    "PySide6.QtMultimedia.QCamera.setZoomFactor(self,factor:float)",
    "PySide6.QtMultimedia.QCamera.start(self)",
    "PySide6.QtMultimedia.QCamera.stop(self)",
    "PySide6.QtMultimedia.QCamera.supportedFeatures(self)->PySide6.QtMultimedia.QCamera.Features",
    "PySide6.QtMultimedia.QCamera.torchMode(self)->PySide6.QtMultimedia.QCamera.TorchMode",
    "PySide6.QtMultimedia.QCamera.whiteBalanceMode(self)->PySide6.QtMultimedia.QCamera.WhiteBalanceMode",
    "PySide6.QtMultimedia.QCamera.zoomFactor(self)->float",
    "PySide6.QtMultimedia.QCamera.zoomTo(self,zoom:float,rate:float)",
    nullptr}; // Sentinel

void init_QCamera(PyObject *module)
{
    _Sbk_QCamera_Type = Shiboken::ObjectType::introduceWrapperType(
        module,
        "QCamera",
        "QCamera*",
        &Sbk_QCamera_spec,
        &Shiboken::callCppDestructor< ::QCamera >,
        SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX],
        0,
        0);
    auto *pyType = Sbk_QCamera_TypeF(); // references _Sbk_QCamera_Type
    InitSignatureStrings(pyType, QCamera_SignatureStrings);
    SbkObjectType_SetPropertyStrings(reinterpret_cast<PyTypeObject *>(_Sbk_QCamera_Type), Sbk_QCamera_PropertyStrings);
    SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_IDX]
        = Sbk_QCamera_TypeF();

    // Register Converter
    SbkConverter *converter = Shiboken::Conversions::createConverter(Sbk_QCamera_TypeF(),
        QCamera_PythonToCpp_QCamera_PTR,
        is_QCamera_PythonToCpp_QCamera_PTR_Convertible,
        QCamera_PTR_CppToPython_QCamera);

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


    Shiboken::ObjectType::setTypeDiscoveryFunctionV2(Sbk_QCamera_TypeF(), &Sbk_QCamera_typeDiscovery);

    // Initialization of enums.

    // Initialization of enum 'Error'.
    SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_ERROR_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QCamera_TypeF(),
        "Error",
        "2:PySide6.QtMultimedia.QCamera.Error",
        "QCamera::Error");
    if (!SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_ERROR_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_ERROR_IDX],
        Sbk_QCamera_TypeF(), "NoError", (long) QCamera::Error::NoError))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_ERROR_IDX],
        Sbk_QCamera_TypeF(), "CameraError", (long) QCamera::Error::CameraError))
        return;
    // Register converter for enum 'QCamera::Error'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_ERROR_IDX],
            QCamera_Error_CppToPython_QCamera_Error);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QCamera_Error_PythonToCpp_QCamera_Error,
            is_QCamera_Error_PythonToCpp_QCamera_Error_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_ERROR_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QCamera::Error");
        Shiboken::Conversions::registerConverterName(converter, "Error");
    }
    // End of 'Error' enum.

    // Initialization of enum 'FocusMode'.
    SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FOCUSMODE_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QCamera_TypeF(),
        "FocusMode",
        "2:PySide6.QtMultimedia.QCamera.FocusMode",
        "QCamera::FocusMode");
    if (!SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FOCUSMODE_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FOCUSMODE_IDX],
        Sbk_QCamera_TypeF(), "FocusModeAuto", (long) QCamera::FocusMode::FocusModeAuto))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FOCUSMODE_IDX],
        Sbk_QCamera_TypeF(), "FocusModeAutoNear", (long) QCamera::FocusMode::FocusModeAutoNear))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FOCUSMODE_IDX],
        Sbk_QCamera_TypeF(), "FocusModeAutoFar", (long) QCamera::FocusMode::FocusModeAutoFar))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FOCUSMODE_IDX],
        Sbk_QCamera_TypeF(), "FocusModeHyperfocal", (long) QCamera::FocusMode::FocusModeHyperfocal))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FOCUSMODE_IDX],
        Sbk_QCamera_TypeF(), "FocusModeInfinity", (long) QCamera::FocusMode::FocusModeInfinity))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FOCUSMODE_IDX],
        Sbk_QCamera_TypeF(), "FocusModeManual", (long) QCamera::FocusMode::FocusModeManual))
        return;
    // Register converter for enum 'QCamera::FocusMode'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FOCUSMODE_IDX],
            QCamera_FocusMode_CppToPython_QCamera_FocusMode);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QCamera_FocusMode_PythonToCpp_QCamera_FocusMode,
            is_QCamera_FocusMode_PythonToCpp_QCamera_FocusMode_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FOCUSMODE_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QCamera::FocusMode");
        Shiboken::Conversions::registerConverterName(converter, "FocusMode");
    }
    // End of 'FocusMode' enum.

    // Initialization of enum 'FlashMode'.
    SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FLASHMODE_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QCamera_TypeF(),
        "FlashMode",
        "2:PySide6.QtMultimedia.QCamera.FlashMode",
        "QCamera::FlashMode");
    if (!SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FLASHMODE_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FLASHMODE_IDX],
        Sbk_QCamera_TypeF(), "FlashOff", (long) QCamera::FlashMode::FlashOff))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FLASHMODE_IDX],
        Sbk_QCamera_TypeF(), "FlashOn", (long) QCamera::FlashMode::FlashOn))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FLASHMODE_IDX],
        Sbk_QCamera_TypeF(), "FlashAuto", (long) QCamera::FlashMode::FlashAuto))
        return;
    // Register converter for enum 'QCamera::FlashMode'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FLASHMODE_IDX],
            QCamera_FlashMode_CppToPython_QCamera_FlashMode);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QCamera_FlashMode_PythonToCpp_QCamera_FlashMode,
            is_QCamera_FlashMode_PythonToCpp_QCamera_FlashMode_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FLASHMODE_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QCamera::FlashMode");
        Shiboken::Conversions::registerConverterName(converter, "FlashMode");
    }
    // End of 'FlashMode' enum.

    // Initialization of enum 'TorchMode'.
    SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_TORCHMODE_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QCamera_TypeF(),
        "TorchMode",
        "2:PySide6.QtMultimedia.QCamera.TorchMode",
        "QCamera::TorchMode");
    if (!SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_TORCHMODE_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_TORCHMODE_IDX],
        Sbk_QCamera_TypeF(), "TorchOff", (long) QCamera::TorchMode::TorchOff))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_TORCHMODE_IDX],
        Sbk_QCamera_TypeF(), "TorchOn", (long) QCamera::TorchMode::TorchOn))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_TORCHMODE_IDX],
        Sbk_QCamera_TypeF(), "TorchAuto", (long) QCamera::TorchMode::TorchAuto))
        return;
    // Register converter for enum 'QCamera::TorchMode'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_TORCHMODE_IDX],
            QCamera_TorchMode_CppToPython_QCamera_TorchMode);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QCamera_TorchMode_PythonToCpp_QCamera_TorchMode,
            is_QCamera_TorchMode_PythonToCpp_QCamera_TorchMode_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_TORCHMODE_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QCamera::TorchMode");
        Shiboken::Conversions::registerConverterName(converter, "TorchMode");
    }
    // End of 'TorchMode' enum.

    // Initialization of enum 'ExposureMode'.
    SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_EXPOSUREMODE_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QCamera_TypeF(),
        "ExposureMode",
        "2:PySide6.QtMultimedia.QCamera.ExposureMode",
        "QCamera::ExposureMode");
    if (!SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_EXPOSUREMODE_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_EXPOSUREMODE_IDX],
        Sbk_QCamera_TypeF(), "ExposureAuto", (long) QCamera::ExposureMode::ExposureAuto))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_EXPOSUREMODE_IDX],
        Sbk_QCamera_TypeF(), "ExposureManual", (long) QCamera::ExposureMode::ExposureManual))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_EXPOSUREMODE_IDX],
        Sbk_QCamera_TypeF(), "ExposurePortrait", (long) QCamera::ExposureMode::ExposurePortrait))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_EXPOSUREMODE_IDX],
        Sbk_QCamera_TypeF(), "ExposureNight", (long) QCamera::ExposureMode::ExposureNight))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_EXPOSUREMODE_IDX],
        Sbk_QCamera_TypeF(), "ExposureSports", (long) QCamera::ExposureMode::ExposureSports))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_EXPOSUREMODE_IDX],
        Sbk_QCamera_TypeF(), "ExposureSnow", (long) QCamera::ExposureMode::ExposureSnow))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_EXPOSUREMODE_IDX],
        Sbk_QCamera_TypeF(), "ExposureBeach", (long) QCamera::ExposureMode::ExposureBeach))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_EXPOSUREMODE_IDX],
        Sbk_QCamera_TypeF(), "ExposureAction", (long) QCamera::ExposureMode::ExposureAction))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_EXPOSUREMODE_IDX],
        Sbk_QCamera_TypeF(), "ExposureLandscape", (long) QCamera::ExposureMode::ExposureLandscape))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_EXPOSUREMODE_IDX],
        Sbk_QCamera_TypeF(), "ExposureNightPortrait", (long) QCamera::ExposureMode::ExposureNightPortrait))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_EXPOSUREMODE_IDX],
        Sbk_QCamera_TypeF(), "ExposureTheatre", (long) QCamera::ExposureMode::ExposureTheatre))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_EXPOSUREMODE_IDX],
        Sbk_QCamera_TypeF(), "ExposureSunset", (long) QCamera::ExposureMode::ExposureSunset))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_EXPOSUREMODE_IDX],
        Sbk_QCamera_TypeF(), "ExposureSteadyPhoto", (long) QCamera::ExposureMode::ExposureSteadyPhoto))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_EXPOSUREMODE_IDX],
        Sbk_QCamera_TypeF(), "ExposureFireworks", (long) QCamera::ExposureMode::ExposureFireworks))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_EXPOSUREMODE_IDX],
        Sbk_QCamera_TypeF(), "ExposureParty", (long) QCamera::ExposureMode::ExposureParty))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_EXPOSUREMODE_IDX],
        Sbk_QCamera_TypeF(), "ExposureCandlelight", (long) QCamera::ExposureMode::ExposureCandlelight))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_EXPOSUREMODE_IDX],
        Sbk_QCamera_TypeF(), "ExposureBarcode", (long) QCamera::ExposureMode::ExposureBarcode))
        return;
    // Register converter for enum 'QCamera::ExposureMode'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_EXPOSUREMODE_IDX],
            QCamera_ExposureMode_CppToPython_QCamera_ExposureMode);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QCamera_ExposureMode_PythonToCpp_QCamera_ExposureMode,
            is_QCamera_ExposureMode_PythonToCpp_QCamera_ExposureMode_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_EXPOSUREMODE_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QCamera::ExposureMode");
        Shiboken::Conversions::registerConverterName(converter, "ExposureMode");
    }
    // End of 'ExposureMode' enum.

    // Initialization of enum 'WhiteBalanceMode'.
    SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_WHITEBALANCEMODE_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QCamera_TypeF(),
        "WhiteBalanceMode",
        "2:PySide6.QtMultimedia.QCamera.WhiteBalanceMode",
        "QCamera::WhiteBalanceMode");
    if (!SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_WHITEBALANCEMODE_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_WHITEBALANCEMODE_IDX],
        Sbk_QCamera_TypeF(), "WhiteBalanceAuto", (long) QCamera::WhiteBalanceMode::WhiteBalanceAuto))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_WHITEBALANCEMODE_IDX],
        Sbk_QCamera_TypeF(), "WhiteBalanceManual", (long) QCamera::WhiteBalanceMode::WhiteBalanceManual))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_WHITEBALANCEMODE_IDX],
        Sbk_QCamera_TypeF(), "WhiteBalanceSunlight", (long) QCamera::WhiteBalanceMode::WhiteBalanceSunlight))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_WHITEBALANCEMODE_IDX],
        Sbk_QCamera_TypeF(), "WhiteBalanceCloudy", (long) QCamera::WhiteBalanceMode::WhiteBalanceCloudy))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_WHITEBALANCEMODE_IDX],
        Sbk_QCamera_TypeF(), "WhiteBalanceShade", (long) QCamera::WhiteBalanceMode::WhiteBalanceShade))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_WHITEBALANCEMODE_IDX],
        Sbk_QCamera_TypeF(), "WhiteBalanceTungsten", (long) QCamera::WhiteBalanceMode::WhiteBalanceTungsten))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_WHITEBALANCEMODE_IDX],
        Sbk_QCamera_TypeF(), "WhiteBalanceFluorescent", (long) QCamera::WhiteBalanceMode::WhiteBalanceFluorescent))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_WHITEBALANCEMODE_IDX],
        Sbk_QCamera_TypeF(), "WhiteBalanceFlash", (long) QCamera::WhiteBalanceMode::WhiteBalanceFlash))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_WHITEBALANCEMODE_IDX],
        Sbk_QCamera_TypeF(), "WhiteBalanceSunset", (long) QCamera::WhiteBalanceMode::WhiteBalanceSunset))
        return;
    // Register converter for enum 'QCamera::WhiteBalanceMode'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_WHITEBALANCEMODE_IDX],
            QCamera_WhiteBalanceMode_CppToPython_QCamera_WhiteBalanceMode);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QCamera_WhiteBalanceMode_PythonToCpp_QCamera_WhiteBalanceMode,
            is_QCamera_WhiteBalanceMode_PythonToCpp_QCamera_WhiteBalanceMode_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_WHITEBALANCEMODE_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QCamera::WhiteBalanceMode");
        Shiboken::Conversions::registerConverterName(converter, "WhiteBalanceMode");
    }
    // End of 'WhiteBalanceMode' enum.

    // Initialization of enum 'Feature'.
    SbkPySide6_QtMultimediaTypes[SBK_QFLAGS_QCAMERA_FEATURE_IDX] = PySide::QFlags::create("2:PySide6.QtMultimedia.QCamera.Features", SbkPySide6_QtMultimedia_QCamera_Feature_number_slots);
    SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FEATURE_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QCamera_TypeF(),
        "Feature",
        "2:PySide6.QtMultimedia.QCamera.Feature",
        "QCamera::Feature",
        SbkPySide6_QtMultimediaTypes[SBK_QFLAGS_QCAMERA_FEATURE_IDX]);
    if (!SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FEATURE_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FEATURE_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FEATURE_IDX], "ColorTemperature", (long) QCamera::Feature::ColorTemperature))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FEATURE_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FEATURE_IDX], "ExposureCompensation", (long) QCamera::Feature::ExposureCompensation))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FEATURE_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FEATURE_IDX], "IsoSensitivity", (long) QCamera::Feature::IsoSensitivity))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FEATURE_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FEATURE_IDX], "ManualExposureTime", (long) QCamera::Feature::ManualExposureTime))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FEATURE_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FEATURE_IDX], "CustomFocusPoint", (long) QCamera::Feature::CustomFocusPoint))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FEATURE_IDX],
        SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FEATURE_IDX], "FocusDistance", (long) QCamera::Feature::FocusDistance))
        return;
    // Register converter for enum 'QCamera::Feature'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FEATURE_IDX],
            QCamera_Feature_CppToPython_QCamera_Feature);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QCamera_Feature_PythonToCpp_QCamera_Feature,
            is_QCamera_Feature_PythonToCpp_QCamera_Feature_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtMultimediaTypes[SBK_QCAMERA_FEATURE_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QCamera::Feature");
        Shiboken::Conversions::registerConverterName(converter, "Feature");
    }
    // Register converter for flag 'QFlags<QCamera::Feature>'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtMultimediaTypes[SBK_QFLAGS_QCAMERA_FEATURE_IDX],
            QFlags_QCamera_Feature__CppToPython_QFlags_QCamera_Feature_);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QCamera_Feature_PythonToCpp_QFlags_QCamera_Feature_,
            is_QCamera_Feature_PythonToCpp_QFlags_QCamera_Feature__Convertible);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QFlags_QCamera_Feature__PythonToCpp_QFlags_QCamera_Feature_,
            is_QFlags_QCamera_Feature__PythonToCpp_QFlags_QCamera_Feature__Convertible);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            number_PythonToCpp_QFlags_QCamera_Feature_,
            is_number_PythonToCpp_QFlags_QCamera_Feature__Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtMultimediaTypes[SBK_QFLAGS_QCAMERA_FEATURE_IDX], converter, true);
        Shiboken::Conversions::registerConverterName(converter, "QCamera::Features");
        Shiboken::Conversions::registerConverterName(converter, "Features");
        Shiboken::Conversions::registerConverterName(converter, "QFlags<QCamera::Feature>");
    }
    // End of 'Feature' enum/flags.

    PySide::Signal::registerSignals(Sbk_QCamera_TypeF(), &::QCamera::staticMetaObject);
    qRegisterMetaType< ::QCamera::Error >("QCamera::Error");
    qRegisterMetaType< ::QCamera::FocusMode >("QCamera::FocusMode");
    qRegisterMetaType< ::QCamera::FlashMode >("QCamera::FlashMode");
    qRegisterMetaType< ::QCamera::TorchMode >("QCamera::TorchMode");
    qRegisterMetaType< ::QCamera::ExposureMode >("QCamera::ExposureMode");
    qRegisterMetaType< ::QCamera::WhiteBalanceMode >("QCamera::WhiteBalanceMode");
    qRegisterMetaType< ::QCamera::Feature >("QCamera::Feature");
    qRegisterMetaType< ::QCamera::Features >("QCamera::Features");
    Shiboken::ObjectType::setSubTypeInitHook(Sbk_QCamera_TypeF(), &PySide::initQObjectSubType);
    PySide::initDynamicMetaObject(Sbk_QCamera_TypeF(), &::QCamera::staticMetaObject, sizeof(QCameraWrapper));
}
