/****************************************************************************
**
** 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 "qimagecapture_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 QImageCaptureWrapper::resetPyMethodCache()
{
    std::fill_n(m_PyMethodCache, sizeof(m_PyMethodCache) / sizeof(m_PyMethodCache[0]), false);
}

QImageCaptureWrapper::QImageCaptureWrapper(QObject * parent) : QImageCapture(parent)
{
    resetPyMethodCache();
    // ... middle
}

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

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

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

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

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

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

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

extern "C" {
static int
Sbk_QImageCapture_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< ::QImageCapture >()))
        return -1;

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

    // invalid argument lengths


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


    // Overloaded function decisor
    // 0: QImageCapture::QImageCapture(QObject*)
    if (numArgs == 0) {
        overloadId = 0; // QImageCapture(QObject*)
    } else if (numArgs >= 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[0])))) {
        overloadId = 0; // QImageCapture(QObject*)
    }

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

    // Call function/method
    {
        if (kwds && PyDict_Size(kwds) > 0) {
            PyObject *value{};
            Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
            static PyObject *const key_parent = Shiboken::String::createStaticString("parent");
            if (PyDict_Contains(kwds, key_parent)) {
                value = PyDict_GetItem(kwds, key_parent);
                if (value && pyArgs[0]) {
                    errInfo.reset(key_parent);
                    Py_INCREF(errInfo.object());
                    goto Sbk_QImageCapture_Init_TypeError;
                }
                if (value) {
                    pyArgs[0] = value;
                    if (!(pythonToCpp[0] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[0]))))
                        goto Sbk_QImageCapture_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()) {
            // QImageCapture(QObject*)
            void *addr = PySide::nextQObjectMemoryAddr();
            if (addr) {
                cptr = new (addr) ::QImageCaptureWrapper(cppArg0);
                PySide::setNextQObjectMemoryAddr(0);
            } else {
                cptr = new ::QImageCaptureWrapper(cppArg0);
            }

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

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


    return 1;

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

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

    // Overloaded function decisor
    // 0: QImageCapture::addMetaData(QMediaMetaData)
    if ((pyArg != Py_None && (pythonToCpp = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAMETADATA_IDX], (pyArg))))) {
        overloadId = 0; // addMetaData(QMediaMetaData)
    }

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

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

        if (!PyErr_Occurred()) {
            // addMetaData(QMediaMetaData)
            cppSelf->addMetaData(*cppArg0);
        }
    }

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

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

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

    // Call function/method
    {

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

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // captureSession()const
            QMediaCaptureSession * cppResult = const_cast<const ::QImageCapture *>(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_QImageCaptureFunc_captureToFile(PyObject *self, PyObject *args, PyObject *kwds)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QImageCapture *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QImageCapture.captureToFile";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp[1];
    SBK_UNUSED(pythonToCpp)
    const Py_ssize_t numArgs = PyTuple_GET_SIZE(args);
    SBK_UNUSED(numArgs)
    PyObject *pyArgs[] = {0};

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

    if (!PyArg_ParseTuple(args, "|O:captureToFile", &(pyArgs[0])))
        return {};


    // Overloaded function decisor
    // 0: QImageCapture::captureToFile(QString)->int
    if (numArgs == 0) {
        overloadId = 0; // captureToFile(QString)
    } else if (numArgs >= 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], (pyArgs[0])))) {
        overloadId = 0; // captureToFile(QString)
    }

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

    // Call function/method
    {
        if (kwds && PyDict_Size(kwds) > 0) {
            PyObject *value{};
            Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
            static PyObject *const key_location = Shiboken::String::createStaticString("location");
            if (PyDict_Contains(kwds, key_location)) {
                value = PyDict_GetItem(kwds, key_location);
                if (value && pyArgs[0]) {
                    errInfo.reset(key_location);
                    Py_INCREF(errInfo.object());
                    goto Sbk_QImageCaptureFunc_captureToFile_TypeError;
                }
                if (value) {
                    pyArgs[0] = value;
                    if (!(pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], (pyArgs[0]))))
                        goto Sbk_QImageCaptureFunc_captureToFile_TypeError;
                }
                PyDict_DelItem(kwds_dup, key_location);
            }
            if (PyDict_Size(kwds_dup) > 0) {
                errInfo.reset(kwds_dup.release());
                goto Sbk_QImageCaptureFunc_captureToFile_TypeError;
            }
        }
        ::QString cppArg0 = QString();
        if (pythonToCpp[0])
            pythonToCpp[0](pyArgs[0], &cppArg0);

        if (!PyErr_Occurred()) {
            // captureToFile(QString)
            int cppResult = cppSelf->captureToFile(cppArg0);
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<int>(), &cppResult);
        }
    }

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

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

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

    // Call function/method
    {

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

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

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

    // Call function/method
    {

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

    // Call function/method
    {

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

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

static PyObject *Sbk_QImageCaptureFunc_fileFormatDescription(PyObject *self, PyObject *pyArg)
{
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QImageCapture.fileFormatDescription";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: static QImageCapture::fileFormatDescription(QImageCapture::FileFormat)->QString
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_FILEFORMAT_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // fileFormatDescription(QImageCapture::FileFormat)
    }

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

    // Call function/method
    {
        ::QImageCapture::FileFormat cppArg0{QImageCapture::UnspecifiedFormat};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // fileFormatDescription(QImageCapture::FileFormat)
            QString cppResult = ::QImageCapture::fileFormatDescription(cppArg0);
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], &cppResult);
        }
    }

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

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

static PyObject *Sbk_QImageCaptureFunc_fileFormatName(PyObject *self, PyObject *pyArg)
{
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QImageCapture.fileFormatName";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: static QImageCapture::fileFormatName(QImageCapture::FileFormat)->QString
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_FILEFORMAT_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // fileFormatName(QImageCapture::FileFormat)
    }

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

    // Call function/method
    {
        ::QImageCapture::FileFormat cppArg0{QImageCapture::UnspecifiedFormat};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // fileFormatName(QImageCapture::FileFormat)
            QString cppResult = ::QImageCapture::fileFormatName(cppArg0);
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], &cppResult);
        }
    }

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

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

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

    // Call function/method
    {

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

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

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

    // Call function/method
    {

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

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // metaData()const
            QMediaMetaData cppResult = const_cast<const ::QImageCapture *>(cppSelf)->metaData();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAMETADATA_IDX], &cppResult);
        }
    }

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

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

    // Call function/method
    {

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

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // resolution()const
            QSize cppResult = const_cast<const ::QImageCapture *>(cppSelf)->resolution();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QSIZE_IDX], &cppResult);
        }
    }

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

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

    // Overloaded function decisor
    // 0: QImageCapture::setFileFormat(QImageCapture::FileFormat)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_FILEFORMAT_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // setFileFormat(QImageCapture::FileFormat)
    }

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

    // Call function/method
    {
        ::QImageCapture::FileFormat cppArg0{QImageCapture::UnspecifiedFormat};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setFileFormat(QImageCapture::FileFormat)
            cppSelf->setFileFormat(cppArg0);
        }
    }

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

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

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

    // Overloaded function decisor
    // 0: QImageCapture::setMetaData(QMediaMetaData)
    if ((pyArg != Py_None && (pythonToCpp = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAMETADATA_IDX], (pyArg))))) {
        overloadId = 0; // setMetaData(QMediaMetaData)
    }

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

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

        if (!PyErr_Occurred()) {
            // setMetaData(QMediaMetaData)
            cppSelf->setMetaData(*cppArg0);
        }
    }

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

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

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

    // Overloaded function decisor
    // 0: QImageCapture::setQuality(QImageCapture::Quality)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_QUALITY_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // setQuality(QImageCapture::Quality)
    }

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

    // Call function/method
    {
        ::QImageCapture::Quality cppArg0{QImageCapture::VeryLowQuality};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setQuality(QImageCapture::Quality)
            cppSelf->setQuality(cppArg0);
        }
    }

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

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

static PyObject *Sbk_QImageCaptureFunc_setResolution(PyObject *self, PyObject *args)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QImageCapture *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QImageCapture.setResolution";
    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, "setResolution", 1, 2, &(pyArgs[0]), &(pyArgs[1])))
        return {};


    // Overloaded function decisor
    // 0: QImageCapture::setResolution(QSize)
    // 1: QImageCapture::setResolution(int,int)
    if (numArgs == 2
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<int>(), (pyArgs[0])))
        && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<int>(), (pyArgs[1])))) {
        overloadId = 1; // setResolution(int,int)
    } else if (numArgs == 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtCoreTypes[SBK_QSIZE_IDX], (pyArgs[0])))) {
        overloadId = 0; // setResolution(QSize)
    }

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

    // Call function/method
    switch (overloadId) {
        case 0: // setResolution(const QSize & arg__1)
        {
            if (!Shiboken::Object::isValid(pyArgs[0]))
                return {};
            ::QSize cppArg0_local;
            ::QSize *cppArg0 = &cppArg0_local;
            if (pythonToCpp[0].isValue())
                pythonToCpp[0](pyArgs[0], &cppArg0_local);
            else
                pythonToCpp[0](pyArgs[0], &cppArg0);


            if (!PyErr_Occurred()) {
                // setResolution(QSize)
                cppSelf->setResolution(*cppArg0);
            }
            break;
        }
        case 1: // setResolution(int width, int height)
        {
            int cppArg0;
            pythonToCpp[0](pyArgs[0], &cppArg0);
            int cppArg1;
            pythonToCpp[1](pyArgs[1], &cppArg1);

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

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

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

static PyObject *Sbk_QImageCaptureFunc_supportedFormats(PyObject *self)
{
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QImageCapture.supportedFormats";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // supportedFormats()
            QList<QImageCapture::FileFormat > cppResult = ::QImageCapture::supportedFormats();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtMultimediaTypeConverters[SBK_QTMULTIMEDIA_QLIST_QIMAGECAPTURE_FILEFORMAT_IDX], &cppResult);
        }
    }

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


static const char *Sbk_QImageCapture_PropertyStrings[] = {
    "error:",
    "errorString:",
    "fileFormat:",
    "metaData::",
    "quality:",
    "readyForCapture:isReadyForCapture",
    nullptr // Sentinel
};

static PyMethodDef Sbk_QImageCapture_methods[] = {
    {"addMetaData", reinterpret_cast<PyCFunction>(Sbk_QImageCaptureFunc_addMetaData), METH_O},
    {"capture", reinterpret_cast<PyCFunction>(Sbk_QImageCaptureFunc_capture), METH_NOARGS},
    {"captureSession", reinterpret_cast<PyCFunction>(Sbk_QImageCaptureFunc_captureSession), METH_NOARGS},
    {"captureToFile", reinterpret_cast<PyCFunction>(Sbk_QImageCaptureFunc_captureToFile), METH_VARARGS|METH_KEYWORDS},
    {"error", reinterpret_cast<PyCFunction>(Sbk_QImageCaptureFunc_error), METH_NOARGS},
    {"errorString", reinterpret_cast<PyCFunction>(Sbk_QImageCaptureFunc_errorString), METH_NOARGS},
    {"fileFormat", reinterpret_cast<PyCFunction>(Sbk_QImageCaptureFunc_fileFormat), METH_NOARGS},
    {"fileFormatDescription", reinterpret_cast<PyCFunction>(Sbk_QImageCaptureFunc_fileFormatDescription), METH_O|METH_STATIC},
    {"fileFormatName", reinterpret_cast<PyCFunction>(Sbk_QImageCaptureFunc_fileFormatName), METH_O|METH_STATIC},
    {"isAvailable", reinterpret_cast<PyCFunction>(Sbk_QImageCaptureFunc_isAvailable), METH_NOARGS},
    {"isReadyForCapture", reinterpret_cast<PyCFunction>(Sbk_QImageCaptureFunc_isReadyForCapture), METH_NOARGS},
    {"metaData", reinterpret_cast<PyCFunction>(Sbk_QImageCaptureFunc_metaData), METH_NOARGS},
    {"quality", reinterpret_cast<PyCFunction>(Sbk_QImageCaptureFunc_quality), METH_NOARGS},
    {"resolution", reinterpret_cast<PyCFunction>(Sbk_QImageCaptureFunc_resolution), METH_NOARGS},
    {"setFileFormat", reinterpret_cast<PyCFunction>(Sbk_QImageCaptureFunc_setFileFormat), METH_O},
    {"setMetaData", reinterpret_cast<PyCFunction>(Sbk_QImageCaptureFunc_setMetaData), METH_O},
    {"setQuality", reinterpret_cast<PyCFunction>(Sbk_QImageCaptureFunc_setQuality), METH_O},
    {"setResolution", reinterpret_cast<PyCFunction>(Sbk_QImageCaptureFunc_setResolution), METH_VARARGS},
    {"supportedFormats", reinterpret_cast<PyCFunction>(Sbk_QImageCaptureFunc_supportedFormats), METH_NOARGS|METH_STATIC},

    {nullptr, nullptr} // Sentinel
};

static int Sbk_QImageCapture_setattro(PyObject *self, PyObject *name, PyObject *value)
{
    PySide::Feature::Select(self);
    if (value && PyCallable_Check(value)) {
        auto plain_inst = reinterpret_cast< ::QImageCapture *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_IDX], reinterpret_cast<SbkObject *>(self)));
        auto inst = dynamic_cast<QImageCaptureWrapper *>(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_QImageCapture_traverse(PyObject *self, visitproc visit, void *arg)
{
    return SbkObject_TypeF()->tp_traverse(self, visit, arg);
}
static int Sbk_QImageCapture_clear(PyObject *self)
{
    return reinterpret_cast<PyTypeObject *>(SbkObject_TypeF())->tp_clear(self);
}
// Class Definition -----------------------------------------------
extern "C" {
static PyTypeObject *_Sbk_QImageCapture_Type = nullptr;
static PyTypeObject *Sbk_QImageCapture_TypeF(void)
{
    return _Sbk_QImageCapture_Type;
}

static PyType_Slot Sbk_QImageCapture_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_QImageCapture_setattro)},
    {Py_tp_traverse,    reinterpret_cast<void *>(Sbk_QImageCapture_traverse)},
    {Py_tp_clear,       reinterpret_cast<void *>(Sbk_QImageCapture_clear)},
    {Py_tp_richcompare, nullptr},
    {Py_tp_iter,        nullptr},
    {Py_tp_iternext,    nullptr},
    {Py_tp_methods,     reinterpret_cast<void *>(Sbk_QImageCapture_methods)},
    {Py_tp_getset,      nullptr},
    {Py_tp_init,        reinterpret_cast<void *>(Sbk_QImageCapture_Init)},
    {Py_tp_new,         reinterpret_cast<void *>(SbkObjectTpNew)},
    {0, nullptr}
};
static PyType_Spec Sbk_QImageCapture_spec = {
    "2:PySide6.QtMultimedia.QImageCapture",
    sizeof(SbkObject),
    0,
    Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
    Sbk_QImageCapture_slots
};

} //extern "C"

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


// Type conversion functions.

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

}
static PythonToCppFunc is_QImageCapture_Error_PythonToCpp_QImageCapture_Error_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_ERROR_IDX]))
        return QImageCapture_Error_PythonToCpp_QImageCapture_Error;
    return {};
}
static PyObject *QImageCapture_Error_CppToPython_QImageCapture_Error(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QImageCapture::Error *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_ERROR_IDX], castCppIn);

}

static void QImageCapture_Quality_PythonToCpp_QImageCapture_Quality(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QImageCapture::Quality *>(cppOut) =
        static_cast<::QImageCapture::Quality>(Shiboken::Enum::getValue(pyIn));

}
static PythonToCppFunc is_QImageCapture_Quality_PythonToCpp_QImageCapture_Quality_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_QUALITY_IDX]))
        return QImageCapture_Quality_PythonToCpp_QImageCapture_Quality;
    return {};
}
static PyObject *QImageCapture_Quality_CppToPython_QImageCapture_Quality(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QImageCapture::Quality *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_QUALITY_IDX], castCppIn);

}

static void QImageCapture_FileFormat_PythonToCpp_QImageCapture_FileFormat(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QImageCapture::FileFormat *>(cppOut) =
        static_cast<::QImageCapture::FileFormat>(Shiboken::Enum::getValue(pyIn));

}
static PythonToCppFunc is_QImageCapture_FileFormat_PythonToCpp_QImageCapture_FileFormat_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_FILEFORMAT_IDX]))
        return QImageCapture_FileFormat_PythonToCpp_QImageCapture_FileFormat;
    return {};
}
static PyObject *QImageCapture_FileFormat_CppToPython_QImageCapture_FileFormat(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QImageCapture::FileFormat *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_FILEFORMAT_IDX], castCppIn);

}

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

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

}

// The signatures string for the functions.
// Multiple signatures have their index "n:" in front.
static const char *QImageCapture_SignatureStrings[] = {
    "PySide6.QtMultimedia.QImageCapture(self,parent:PySide6.QtCore.QObject=nullptr)",
    "PySide6.QtMultimedia.QImageCapture.addMetaData(self,metaData:PySide6.QtMultimedia.QMediaMetaData)",
    "PySide6.QtMultimedia.QImageCapture.capture(self)->int",
    "PySide6.QtMultimedia.QImageCapture.captureSession(self)->PySide6.QtMultimedia.QMediaCaptureSession",
    "PySide6.QtMultimedia.QImageCapture.captureToFile(self,location:QString=QString())->int",
    "PySide6.QtMultimedia.QImageCapture.error(self)->PySide6.QtMultimedia.QImageCapture.Error",
    "PySide6.QtMultimedia.QImageCapture.errorString(self)->QString",
    "PySide6.QtMultimedia.QImageCapture.fileFormat(self)->PySide6.QtMultimedia.QImageCapture.FileFormat",
    "PySide6.QtMultimedia.QImageCapture.fileFormatDescription(c:PySide6.QtMultimedia.QImageCapture.FileFormat)->QString",
    "PySide6.QtMultimedia.QImageCapture.fileFormatName(c:PySide6.QtMultimedia.QImageCapture.FileFormat)->QString",
    "PySide6.QtMultimedia.QImageCapture.isAvailable(self)->bool",
    "PySide6.QtMultimedia.QImageCapture.isReadyForCapture(self)->bool",
    "PySide6.QtMultimedia.QImageCapture.metaData(self)->PySide6.QtMultimedia.QMediaMetaData",
    "PySide6.QtMultimedia.QImageCapture.quality(self)->PySide6.QtMultimedia.QImageCapture.Quality",
    "PySide6.QtMultimedia.QImageCapture.resolution(self)->PySide6.QtCore.QSize",
    "PySide6.QtMultimedia.QImageCapture.setFileFormat(self,format:PySide6.QtMultimedia.QImageCapture.FileFormat)",
    "PySide6.QtMultimedia.QImageCapture.setMetaData(self,metaData:PySide6.QtMultimedia.QMediaMetaData)",
    "PySide6.QtMultimedia.QImageCapture.setQuality(self,quality:PySide6.QtMultimedia.QImageCapture.Quality)",
    "1:PySide6.QtMultimedia.QImageCapture.setResolution(self,arg__1:PySide6.QtCore.QSize)",
    "0:PySide6.QtMultimedia.QImageCapture.setResolution(self,width:int,height:int)",
    "PySide6.QtMultimedia.QImageCapture.supportedFormats()->QList[PySide6.QtMultimedia.QImageCapture.FileFormat]",
    nullptr}; // Sentinel

void init_QImageCapture(PyObject *module)
{
    _Sbk_QImageCapture_Type = Shiboken::ObjectType::introduceWrapperType(
        module,
        "QImageCapture",
        "QImageCapture*",
        &Sbk_QImageCapture_spec,
        &Shiboken::callCppDestructor< ::QImageCapture >,
        SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX],
        0,
        0);
    auto *pyType = Sbk_QImageCapture_TypeF(); // references _Sbk_QImageCapture_Type
    InitSignatureStrings(pyType, QImageCapture_SignatureStrings);
    SbkObjectType_SetPropertyStrings(reinterpret_cast<PyTypeObject *>(_Sbk_QImageCapture_Type), Sbk_QImageCapture_PropertyStrings);
    SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_IDX]
        = Sbk_QImageCapture_TypeF();

    // Register Converter
    SbkConverter *converter = Shiboken::Conversions::createConverter(Sbk_QImageCapture_TypeF(),
        QImageCapture_PythonToCpp_QImageCapture_PTR,
        is_QImageCapture_PythonToCpp_QImageCapture_PTR_Convertible,
        QImageCapture_PTR_CppToPython_QImageCapture);

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


    Shiboken::ObjectType::setTypeDiscoveryFunctionV2(Sbk_QImageCapture_TypeF(), &Sbk_QImageCapture_typeDiscovery);

    // Initialization of enums.

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

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_ERROR_IDX],
        Sbk_QImageCapture_TypeF(), "NoError", (long) QImageCapture::Error::NoError))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_ERROR_IDX],
        Sbk_QImageCapture_TypeF(), "NotReadyError", (long) QImageCapture::Error::NotReadyError))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_ERROR_IDX],
        Sbk_QImageCapture_TypeF(), "ResourceError", (long) QImageCapture::Error::ResourceError))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_ERROR_IDX],
        Sbk_QImageCapture_TypeF(), "OutOfSpaceError", (long) QImageCapture::Error::OutOfSpaceError))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_ERROR_IDX],
        Sbk_QImageCapture_TypeF(), "NotSupportedFeatureError", (long) QImageCapture::Error::NotSupportedFeatureError))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_ERROR_IDX],
        Sbk_QImageCapture_TypeF(), "FormatError", (long) QImageCapture::Error::FormatError))
        return;
    // Register converter for enum 'QImageCapture::Error'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_ERROR_IDX],
            QImageCapture_Error_CppToPython_QImageCapture_Error);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QImageCapture_Error_PythonToCpp_QImageCapture_Error,
            is_QImageCapture_Error_PythonToCpp_QImageCapture_Error_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_ERROR_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QImageCapture::Error");
        Shiboken::Conversions::registerConverterName(converter, "Error");
    }
    // End of 'Error' enum.

    // Initialization of enum 'Quality'.
    SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_QUALITY_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QImageCapture_TypeF(),
        "Quality",
        "2:PySide6.QtMultimedia.QImageCapture.Quality",
        "QImageCapture::Quality");
    if (!SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_QUALITY_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_QUALITY_IDX],
        Sbk_QImageCapture_TypeF(), "VeryLowQuality", (long) QImageCapture::Quality::VeryLowQuality))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_QUALITY_IDX],
        Sbk_QImageCapture_TypeF(), "LowQuality", (long) QImageCapture::Quality::LowQuality))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_QUALITY_IDX],
        Sbk_QImageCapture_TypeF(), "NormalQuality", (long) QImageCapture::Quality::NormalQuality))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_QUALITY_IDX],
        Sbk_QImageCapture_TypeF(), "HighQuality", (long) QImageCapture::Quality::HighQuality))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_QUALITY_IDX],
        Sbk_QImageCapture_TypeF(), "VeryHighQuality", (long) QImageCapture::Quality::VeryHighQuality))
        return;
    // Register converter for enum 'QImageCapture::Quality'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_QUALITY_IDX],
            QImageCapture_Quality_CppToPython_QImageCapture_Quality);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QImageCapture_Quality_PythonToCpp_QImageCapture_Quality,
            is_QImageCapture_Quality_PythonToCpp_QImageCapture_Quality_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_QUALITY_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QImageCapture::Quality");
        Shiboken::Conversions::registerConverterName(converter, "Quality");
    }
    // End of 'Quality' enum.

    // Initialization of enum 'FileFormat'.
    SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_FILEFORMAT_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QImageCapture_TypeF(),
        "FileFormat",
        "2:PySide6.QtMultimedia.QImageCapture.FileFormat",
        "QImageCapture::FileFormat");
    if (!SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_FILEFORMAT_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_FILEFORMAT_IDX],
        Sbk_QImageCapture_TypeF(), "UnspecifiedFormat", (long) QImageCapture::FileFormat::UnspecifiedFormat))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_FILEFORMAT_IDX],
        Sbk_QImageCapture_TypeF(), "JPEG", (long) QImageCapture::FileFormat::JPEG))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_FILEFORMAT_IDX],
        Sbk_QImageCapture_TypeF(), "PNG", (long) QImageCapture::FileFormat::PNG))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_FILEFORMAT_IDX],
        Sbk_QImageCapture_TypeF(), "WebP", (long) QImageCapture::FileFormat::WebP))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_FILEFORMAT_IDX],
        Sbk_QImageCapture_TypeF(), "Tiff", (long) QImageCapture::FileFormat::Tiff))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_FILEFORMAT_IDX],
        Sbk_QImageCapture_TypeF(), "LastFileFormat", (long) QImageCapture::FileFormat::LastFileFormat))
        return;
    // Register converter for enum 'QImageCapture::FileFormat'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_FILEFORMAT_IDX],
            QImageCapture_FileFormat_CppToPython_QImageCapture_FileFormat);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QImageCapture_FileFormat_PythonToCpp_QImageCapture_FileFormat,
            is_QImageCapture_FileFormat_PythonToCpp_QImageCapture_FileFormat_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtMultimediaTypes[SBK_QIMAGECAPTURE_FILEFORMAT_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QImageCapture::FileFormat");
        Shiboken::Conversions::registerConverterName(converter, "FileFormat");
    }
    // End of 'FileFormat' enum.

    PySide::Signal::registerSignals(Sbk_QImageCapture_TypeF(), &::QImageCapture::staticMetaObject);
    qRegisterMetaType< ::QImageCapture::Error >("QImageCapture::Error");
    qRegisterMetaType< ::QImageCapture::Quality >("QImageCapture::Quality");
    qRegisterMetaType< ::QImageCapture::FileFormat >("QImageCapture::FileFormat");
    Shiboken::ObjectType::setSubTypeInitHook(Sbk_QImageCapture_TypeF(), &PySide::initQObjectSubType);
    PySide::initDynamicMetaObject(Sbk_QImageCapture_TypeF(), &::QImageCapture::staticMetaObject, sizeof(QImageCaptureWrapper));
}
