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

QMediaRecorderWrapper::QMediaRecorderWrapper(QObject * parent) : QMediaRecorder(parent)
{
    resetPyMethodCache();
    // ... middle
}

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

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

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

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

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

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

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

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

    ::QMediaRecorderWrapper *cptr{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtMultimedia.QMediaRecorder.__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:QMediaRecorder", &(pyArgs[0])))
        return -1;


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

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QMediaRecorder_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_QMediaRecorder_Init_TypeError;
                }
                if (value) {
                    pyArgs[0] = value;
                    if (!(pythonToCpp[0] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[0]))))
                        goto Sbk_QMediaRecorder_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()) {
            // QMediaRecorder(QObject*)
            void *addr = PySide::nextQObjectMemoryAddr();
            if (addr) {
                cptr = new (addr) ::QMediaRecorderWrapper(cppArg0);
                PySide::setNextQObjectMemoryAddr(0);
            } else {
                cptr = new ::QMediaRecorderWrapper(cppArg0);
            }

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

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


    return 1;

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // actualLocation()const
            QUrl cppResult = const_cast<const ::QMediaRecorder *>(cppSelf)->actualLocation();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QURL_IDX], &cppResult);
        }
    }

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

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

    // Overloaded function decisor
    // 0: QMediaRecorder::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_QMediaRecorderFunc_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_QMediaRecorderFunc_addMetaData_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

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

    // Call function/method
    {

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

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

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

    // Call function/method
    {

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

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

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

    // Call function/method
    {

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

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

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

    // Call function/method
    {

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

    // Call function/method
    {

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

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

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

    // Call function/method
    {

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

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

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

    // Call function/method
    {

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

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

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

    // Call function/method
    {

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

    // Call function/method
    {

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

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

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // mediaFormat()const
            QMediaFormat cppResult = const_cast<const ::QMediaRecorder *>(cppSelf)->mediaFormat();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], &cppResult);
        }
    }

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

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

    // Call function/method
    {

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

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // outputLocation()const
            QUrl cppResult = const_cast<const ::QMediaRecorder *>(cppSelf)->outputLocation();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QURL_IDX], &cppResult);
        }
    }

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

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

    // Call function/method
    {

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

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

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

    // Call function/method
    {

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

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

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

    // Call function/method
    {

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

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

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

    // Call function/method
    {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Overloaded function decisor
    // 0: QMediaRecorder::setEncodingMode(QMediaRecorder::EncodingMode)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_ENCODINGMODE_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // setEncodingMode(QMediaRecorder::EncodingMode)
    }

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

    // Call function/method
    {
        ::QMediaRecorder::EncodingMode cppArg0{QMediaRecorder::ConstantQualityEncoding};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setEncodingMode(QMediaRecorder::EncodingMode)
            cppSelf->setEncodingMode(cppArg0);
        }
    }

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

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

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

    // Overloaded function decisor
    // 0: QMediaRecorder::setMediaFormat(QMediaFormat)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtMultimediaTypes[SBK_QMEDIAFORMAT_IDX], (pyArg)))) {
        overloadId = 0; // setMediaFormat(QMediaFormat)
    }

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

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


        if (!PyErr_Occurred()) {
            // setMediaFormat(QMediaFormat)
            cppSelf->setMediaFormat(*cppArg0);
        }
    }

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

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

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

    // Overloaded function decisor
    // 0: QMediaRecorder::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_QMediaRecorderFunc_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_QMediaRecorderFunc_setMetaData_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

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

    // Overloaded function decisor
    // 0: QMediaRecorder::setOutputLocation(QUrl)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtCoreTypes[SBK_QURL_IDX], (pyArg)))) {
        overloadId = 0; // setOutputLocation(QUrl)
    }

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

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


        if (!PyErr_Occurred()) {
            // setOutputLocation(QUrl)
            cppSelf->setOutputLocation(*cppArg0);
        }
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Overloaded function decisor
    // 0: QMediaRecorder::setVideoFrameRate(qreal)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<qreal>(), (pyArg)))) {
        overloadId = 0; // setVideoFrameRate(qreal)
    }

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

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

        if (!PyErr_Occurred()) {
            // setVideoFrameRate(qreal)
            cppSelf->setVideoFrameRate(cppArg0);
        }
    }

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

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

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


    // Overloaded function decisor
    // 0: QMediaRecorder::setVideoResolution(QSize)
    // 1: QMediaRecorder::setVideoResolution(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; // setVideoResolution(int,int)
    } else if (numArgs == 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtCoreTypes[SBK_QSIZE_IDX], (pyArgs[0])))) {
        overloadId = 0; // setVideoResolution(QSize)
    }

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

    // Call function/method
    switch (overloadId) {
        case 0: // setVideoResolution(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()) {
                // setVideoResolution(QSize)
                cppSelf->setVideoResolution(*cppArg0);
            }
            break;
        }
        case 1: // setVideoResolution(int width, int height)
        {
            int cppArg0;
            pythonToCpp[0](pyArgs[0], &cppArg0);
            int cppArg1;
            pythonToCpp[1](pyArgs[1], &cppArg1);

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

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

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

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

    // Call function/method
    {

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

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

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

    // Call function/method
    {

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

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

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

    // Call function/method
    {

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

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

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

    // Call function/method
    {

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

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


static const char *Sbk_QMediaRecorder_PropertyStrings[] = {
    "actualLocation:",
    "duration:",
    "error:",
    "errorString:",
    "mediaFormat::",
    "metaData::",
    "outputLocation::",
    "quality::",
    "recorderState:",
    nullptr // Sentinel
};

static PyMethodDef Sbk_QMediaRecorder_methods[] = {
    {"actualLocation", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_actualLocation), METH_NOARGS},
    {"addMetaData", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_addMetaData), METH_O},
    {"audioBitRate", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_audioBitRate), METH_NOARGS},
    {"audioChannelCount", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_audioChannelCount), METH_NOARGS},
    {"audioSampleRate", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_audioSampleRate), METH_NOARGS},
    {"captureSession", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_captureSession), METH_NOARGS},
    {"duration", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_duration), METH_NOARGS},
    {"encodingMode", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_encodingMode), METH_NOARGS},
    {"error", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_error), METH_NOARGS},
    {"errorString", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_errorString), METH_NOARGS},
    {"isAvailable", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_isAvailable), METH_NOARGS},
    {"mediaFormat", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_mediaFormat), METH_NOARGS},
    {"metaData", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_metaData), METH_NOARGS},
    {"outputLocation", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_outputLocation), METH_NOARGS},
    {"pause", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_pause), METH_NOARGS},
    {"quality", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_quality), METH_NOARGS},
    {"record", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_record), METH_NOARGS},
    {"recorderState", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_recorderState), METH_NOARGS},
    {"setAudioBitRate", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_setAudioBitRate), METH_O},
    {"setAudioChannelCount", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_setAudioChannelCount), METH_O},
    {"setAudioSampleRate", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_setAudioSampleRate), METH_O},
    {"setEncodingMode", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_setEncodingMode), METH_O},
    {"setMediaFormat", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_setMediaFormat), METH_O},
    {"setMetaData", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_setMetaData), METH_O},
    {"setOutputLocation", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_setOutputLocation), METH_O},
    {"setQuality", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_setQuality), METH_O},
    {"setVideoBitRate", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_setVideoBitRate), METH_O},
    {"setVideoFrameRate", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_setVideoFrameRate), METH_O},
    {"setVideoResolution", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_setVideoResolution), METH_VARARGS},
    {"stop", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_stop), METH_NOARGS},
    {"videoBitRate", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_videoBitRate), METH_NOARGS},
    {"videoFrameRate", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_videoFrameRate), METH_NOARGS},
    {"videoResolution", reinterpret_cast<PyCFunction>(Sbk_QMediaRecorderFunc_videoResolution), METH_NOARGS},

    {nullptr, nullptr} // Sentinel
};

static int Sbk_QMediaRecorder_setattro(PyObject *self, PyObject *name, PyObject *value)
{
    PySide::Feature::Select(self);
    if (value && PyCallable_Check(value)) {
        auto plain_inst = reinterpret_cast< ::QMediaRecorder *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_IDX], reinterpret_cast<SbkObject *>(self)));
        auto inst = dynamic_cast<QMediaRecorderWrapper *>(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_QMediaRecorder_traverse(PyObject *self, visitproc visit, void *arg)
{
    return SbkObject_TypeF()->tp_traverse(self, visit, arg);
}
static int Sbk_QMediaRecorder_clear(PyObject *self)
{
    return reinterpret_cast<PyTypeObject *>(SbkObject_TypeF())->tp_clear(self);
}
// Class Definition -----------------------------------------------
extern "C" {
static PyTypeObject *_Sbk_QMediaRecorder_Type = nullptr;
static PyTypeObject *Sbk_QMediaRecorder_TypeF(void)
{
    return _Sbk_QMediaRecorder_Type;
}

static PyType_Slot Sbk_QMediaRecorder_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_QMediaRecorder_setattro)},
    {Py_tp_traverse,    reinterpret_cast<void *>(Sbk_QMediaRecorder_traverse)},
    {Py_tp_clear,       reinterpret_cast<void *>(Sbk_QMediaRecorder_clear)},
    {Py_tp_richcompare, nullptr},
    {Py_tp_iter,        nullptr},
    {Py_tp_iternext,    nullptr},
    {Py_tp_methods,     reinterpret_cast<void *>(Sbk_QMediaRecorder_methods)},
    {Py_tp_getset,      nullptr},
    {Py_tp_init,        reinterpret_cast<void *>(Sbk_QMediaRecorder_Init)},
    {Py_tp_new,         reinterpret_cast<void *>(SbkObjectTpNew)},
    {0, nullptr}
};
static PyType_Spec Sbk_QMediaRecorder_spec = {
    "2:PySide6.QtMultimedia.QMediaRecorder",
    sizeof(SbkObject),
    0,
    Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
    Sbk_QMediaRecorder_slots
};

} //extern "C"

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


// Type conversion functions.

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

}
static PythonToCppFunc is_QMediaRecorder_Quality_PythonToCpp_QMediaRecorder_Quality_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_QUALITY_IDX]))
        return QMediaRecorder_Quality_PythonToCpp_QMediaRecorder_Quality;
    return {};
}
static PyObject *QMediaRecorder_Quality_CppToPython_QMediaRecorder_Quality(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QMediaRecorder::Quality *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_QUALITY_IDX], castCppIn);

}

static void QMediaRecorder_EncodingMode_PythonToCpp_QMediaRecorder_EncodingMode(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QMediaRecorder::EncodingMode *>(cppOut) =
        static_cast<::QMediaRecorder::EncodingMode>(Shiboken::Enum::getValue(pyIn));

}
static PythonToCppFunc is_QMediaRecorder_EncodingMode_PythonToCpp_QMediaRecorder_EncodingMode_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_ENCODINGMODE_IDX]))
        return QMediaRecorder_EncodingMode_PythonToCpp_QMediaRecorder_EncodingMode;
    return {};
}
static PyObject *QMediaRecorder_EncodingMode_CppToPython_QMediaRecorder_EncodingMode(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QMediaRecorder::EncodingMode *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_ENCODINGMODE_IDX], castCppIn);

}

static void QMediaRecorder_RecorderState_PythonToCpp_QMediaRecorder_RecorderState(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QMediaRecorder::RecorderState *>(cppOut) =
        static_cast<::QMediaRecorder::RecorderState>(Shiboken::Enum::getValue(pyIn));

}
static PythonToCppFunc is_QMediaRecorder_RecorderState_PythonToCpp_QMediaRecorder_RecorderState_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_RECORDERSTATE_IDX]))
        return QMediaRecorder_RecorderState_PythonToCpp_QMediaRecorder_RecorderState;
    return {};
}
static PyObject *QMediaRecorder_RecorderState_CppToPython_QMediaRecorder_RecorderState(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QMediaRecorder::RecorderState *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_RECORDERSTATE_IDX], castCppIn);

}

static void QMediaRecorder_Error_PythonToCpp_QMediaRecorder_Error(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QMediaRecorder::Error *>(cppOut) =
        static_cast<::QMediaRecorder::Error>(Shiboken::Enum::getValue(pyIn));

}
static PythonToCppFunc is_QMediaRecorder_Error_PythonToCpp_QMediaRecorder_Error_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_ERROR_IDX]))
        return QMediaRecorder_Error_PythonToCpp_QMediaRecorder_Error;
    return {};
}
static PyObject *QMediaRecorder_Error_CppToPython_QMediaRecorder_Error(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QMediaRecorder::Error *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_ERROR_IDX], castCppIn);

}

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

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

}

// The signatures string for the functions.
// Multiple signatures have their index "n:" in front.
static const char *QMediaRecorder_SignatureStrings[] = {
    "PySide6.QtMultimedia.QMediaRecorder(self,parent:PySide6.QtCore.QObject=nullptr)",
    "PySide6.QtMultimedia.QMediaRecorder.actualLocation(self)->PySide6.QtCore.QUrl",
    "PySide6.QtMultimedia.QMediaRecorder.addMetaData(self,metaData:PySide6.QtMultimedia.QMediaMetaData)",
    "PySide6.QtMultimedia.QMediaRecorder.audioBitRate(self)->int",
    "PySide6.QtMultimedia.QMediaRecorder.audioChannelCount(self)->int",
    "PySide6.QtMultimedia.QMediaRecorder.audioSampleRate(self)->int",
    "PySide6.QtMultimedia.QMediaRecorder.captureSession(self)->PySide6.QtMultimedia.QMediaCaptureSession",
    "PySide6.QtMultimedia.QMediaRecorder.duration(self)->qint64",
    "PySide6.QtMultimedia.QMediaRecorder.encodingMode(self)->PySide6.QtMultimedia.QMediaRecorder.EncodingMode",
    "PySide6.QtMultimedia.QMediaRecorder.error(self)->PySide6.QtMultimedia.QMediaRecorder.Error",
    "PySide6.QtMultimedia.QMediaRecorder.errorString(self)->QString",
    "PySide6.QtMultimedia.QMediaRecorder.isAvailable(self)->bool",
    "PySide6.QtMultimedia.QMediaRecorder.mediaFormat(self)->PySide6.QtMultimedia.QMediaFormat",
    "PySide6.QtMultimedia.QMediaRecorder.metaData(self)->PySide6.QtMultimedia.QMediaMetaData",
    "PySide6.QtMultimedia.QMediaRecorder.outputLocation(self)->PySide6.QtCore.QUrl",
    "PySide6.QtMultimedia.QMediaRecorder.pause(self)",
    "PySide6.QtMultimedia.QMediaRecorder.quality(self)->PySide6.QtMultimedia.QMediaRecorder.Quality",
    "PySide6.QtMultimedia.QMediaRecorder.record(self)",
    "PySide6.QtMultimedia.QMediaRecorder.recorderState(self)->PySide6.QtMultimedia.QMediaRecorder.RecorderState",
    "PySide6.QtMultimedia.QMediaRecorder.setAudioBitRate(self,bitRate:int)",
    "PySide6.QtMultimedia.QMediaRecorder.setAudioChannelCount(self,channels:int)",
    "PySide6.QtMultimedia.QMediaRecorder.setAudioSampleRate(self,sampleRate:int)",
    "PySide6.QtMultimedia.QMediaRecorder.setEncodingMode(self,arg__1:PySide6.QtMultimedia.QMediaRecorder.EncodingMode)",
    "PySide6.QtMultimedia.QMediaRecorder.setMediaFormat(self,format:typing.Union[PySide6.QtMultimedia.QMediaFormat, PySide6.QtMultimedia.QMediaFormat.FileFormat])",
    "PySide6.QtMultimedia.QMediaRecorder.setMetaData(self,metaData:PySide6.QtMultimedia.QMediaMetaData)",
    "PySide6.QtMultimedia.QMediaRecorder.setOutputLocation(self,location:typing.Union[PySide6.QtCore.QUrl, QString])",
    "PySide6.QtMultimedia.QMediaRecorder.setQuality(self,quality:PySide6.QtMultimedia.QMediaRecorder.Quality)",
    "PySide6.QtMultimedia.QMediaRecorder.setVideoBitRate(self,bitRate:int)",
    "PySide6.QtMultimedia.QMediaRecorder.setVideoFrameRate(self,frameRate:qreal)",
    "1:PySide6.QtMultimedia.QMediaRecorder.setVideoResolution(self,arg__1:PySide6.QtCore.QSize)",
    "0:PySide6.QtMultimedia.QMediaRecorder.setVideoResolution(self,width:int,height:int)",
    "PySide6.QtMultimedia.QMediaRecorder.stop(self)",
    "PySide6.QtMultimedia.QMediaRecorder.videoBitRate(self)->int",
    "PySide6.QtMultimedia.QMediaRecorder.videoFrameRate(self)->qreal",
    "PySide6.QtMultimedia.QMediaRecorder.videoResolution(self)->PySide6.QtCore.QSize",
    nullptr}; // Sentinel

void init_QMediaRecorder(PyObject *module)
{
    _Sbk_QMediaRecorder_Type = Shiboken::ObjectType::introduceWrapperType(
        module,
        "QMediaRecorder",
        "QMediaRecorder*",
        &Sbk_QMediaRecorder_spec,
        &Shiboken::callCppDestructor< ::QMediaRecorder >,
        SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX],
        0,
        0);
    auto *pyType = Sbk_QMediaRecorder_TypeF(); // references _Sbk_QMediaRecorder_Type
    InitSignatureStrings(pyType, QMediaRecorder_SignatureStrings);
    SbkObjectType_SetPropertyStrings(reinterpret_cast<PyTypeObject *>(_Sbk_QMediaRecorder_Type), Sbk_QMediaRecorder_PropertyStrings);
    SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_IDX]
        = Sbk_QMediaRecorder_TypeF();

    // Register Converter
    SbkConverter *converter = Shiboken::Conversions::createConverter(Sbk_QMediaRecorder_TypeF(),
        QMediaRecorder_PythonToCpp_QMediaRecorder_PTR,
        is_QMediaRecorder_PythonToCpp_QMediaRecorder_PTR_Convertible,
        QMediaRecorder_PTR_CppToPython_QMediaRecorder);

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


    Shiboken::ObjectType::setTypeDiscoveryFunctionV2(Sbk_QMediaRecorder_TypeF(), &Sbk_QMediaRecorder_typeDiscovery);

    // Initialization of enums.

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

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_QUALITY_IDX],
        Sbk_QMediaRecorder_TypeF(), "VeryLowQuality", (long) QMediaRecorder::Quality::VeryLowQuality))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_QUALITY_IDX],
        Sbk_QMediaRecorder_TypeF(), "LowQuality", (long) QMediaRecorder::Quality::LowQuality))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_QUALITY_IDX],
        Sbk_QMediaRecorder_TypeF(), "NormalQuality", (long) QMediaRecorder::Quality::NormalQuality))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_QUALITY_IDX],
        Sbk_QMediaRecorder_TypeF(), "HighQuality", (long) QMediaRecorder::Quality::HighQuality))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_QUALITY_IDX],
        Sbk_QMediaRecorder_TypeF(), "VeryHighQuality", (long) QMediaRecorder::Quality::VeryHighQuality))
        return;
    // Register converter for enum 'QMediaRecorder::Quality'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_QUALITY_IDX],
            QMediaRecorder_Quality_CppToPython_QMediaRecorder_Quality);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QMediaRecorder_Quality_PythonToCpp_QMediaRecorder_Quality,
            is_QMediaRecorder_Quality_PythonToCpp_QMediaRecorder_Quality_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_QUALITY_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QMediaRecorder::Quality");
        Shiboken::Conversions::registerConverterName(converter, "Quality");
    }
    // End of 'Quality' enum.

    // Initialization of enum 'EncodingMode'.
    SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_ENCODINGMODE_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QMediaRecorder_TypeF(),
        "EncodingMode",
        "2:PySide6.QtMultimedia.QMediaRecorder.EncodingMode",
        "QMediaRecorder::EncodingMode");
    if (!SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_ENCODINGMODE_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_ENCODINGMODE_IDX],
        Sbk_QMediaRecorder_TypeF(), "ConstantQualityEncoding", (long) QMediaRecorder::EncodingMode::ConstantQualityEncoding))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_ENCODINGMODE_IDX],
        Sbk_QMediaRecorder_TypeF(), "ConstantBitRateEncoding", (long) QMediaRecorder::EncodingMode::ConstantBitRateEncoding))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_ENCODINGMODE_IDX],
        Sbk_QMediaRecorder_TypeF(), "AverageBitRateEncoding", (long) QMediaRecorder::EncodingMode::AverageBitRateEncoding))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_ENCODINGMODE_IDX],
        Sbk_QMediaRecorder_TypeF(), "TwoPassEncoding", (long) QMediaRecorder::EncodingMode::TwoPassEncoding))
        return;
    // Register converter for enum 'QMediaRecorder::EncodingMode'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_ENCODINGMODE_IDX],
            QMediaRecorder_EncodingMode_CppToPython_QMediaRecorder_EncodingMode);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QMediaRecorder_EncodingMode_PythonToCpp_QMediaRecorder_EncodingMode,
            is_QMediaRecorder_EncodingMode_PythonToCpp_QMediaRecorder_EncodingMode_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_ENCODINGMODE_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QMediaRecorder::EncodingMode");
        Shiboken::Conversions::registerConverterName(converter, "EncodingMode");
    }
    // End of 'EncodingMode' enum.

    // Initialization of enum 'RecorderState'.
    SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_RECORDERSTATE_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QMediaRecorder_TypeF(),
        "RecorderState",
        "2:PySide6.QtMultimedia.QMediaRecorder.RecorderState",
        "QMediaRecorder::RecorderState");
    if (!SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_RECORDERSTATE_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_RECORDERSTATE_IDX],
        Sbk_QMediaRecorder_TypeF(), "StoppedState", (long) QMediaRecorder::RecorderState::StoppedState))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_RECORDERSTATE_IDX],
        Sbk_QMediaRecorder_TypeF(), "RecordingState", (long) QMediaRecorder::RecorderState::RecordingState))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_RECORDERSTATE_IDX],
        Sbk_QMediaRecorder_TypeF(), "PausedState", (long) QMediaRecorder::RecorderState::PausedState))
        return;
    // Register converter for enum 'QMediaRecorder::RecorderState'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_RECORDERSTATE_IDX],
            QMediaRecorder_RecorderState_CppToPython_QMediaRecorder_RecorderState);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QMediaRecorder_RecorderState_PythonToCpp_QMediaRecorder_RecorderState,
            is_QMediaRecorder_RecorderState_PythonToCpp_QMediaRecorder_RecorderState_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_RECORDERSTATE_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QMediaRecorder::RecorderState");
        Shiboken::Conversions::registerConverterName(converter, "RecorderState");
    }
    // End of 'RecorderState' enum.

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

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_ERROR_IDX],
        Sbk_QMediaRecorder_TypeF(), "NoError", (long) QMediaRecorder::Error::NoError))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_ERROR_IDX],
        Sbk_QMediaRecorder_TypeF(), "ResourceError", (long) QMediaRecorder::Error::ResourceError))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_ERROR_IDX],
        Sbk_QMediaRecorder_TypeF(), "FormatError", (long) QMediaRecorder::Error::FormatError))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_ERROR_IDX],
        Sbk_QMediaRecorder_TypeF(), "OutOfSpaceError", (long) QMediaRecorder::Error::OutOfSpaceError))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_ERROR_IDX],
        Sbk_QMediaRecorder_TypeF(), "LocationNotWritable", (long) QMediaRecorder::Error::LocationNotWritable))
        return;
    // Register converter for enum 'QMediaRecorder::Error'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_ERROR_IDX],
            QMediaRecorder_Error_CppToPython_QMediaRecorder_Error);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QMediaRecorder_Error_PythonToCpp_QMediaRecorder_Error,
            is_QMediaRecorder_Error_PythonToCpp_QMediaRecorder_Error_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtMultimediaTypes[SBK_QMEDIARECORDER_ERROR_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QMediaRecorder::Error");
        Shiboken::Conversions::registerConverterName(converter, "Error");
    }
    // End of 'Error' enum.

    PySide::Signal::registerSignals(Sbk_QMediaRecorder_TypeF(), &::QMediaRecorder::staticMetaObject);
    qRegisterMetaType< ::QMediaRecorder::Quality >("QMediaRecorder::Quality");
    qRegisterMetaType< ::QMediaRecorder::EncodingMode >("QMediaRecorder::EncodingMode");
    qRegisterMetaType< ::QMediaRecorder::RecorderState >("QMediaRecorder::RecorderState");
    qRegisterMetaType< ::QMediaRecorder::Error >("QMediaRecorder::Error");
    Shiboken::ObjectType::setSubTypeInitHook(Sbk_QMediaRecorder_TypeF(), &PySide::initQObjectSubType);
    PySide::initDynamicMetaObject(Sbk_QMediaRecorder_TypeF(), &::QMediaRecorder::staticMetaObject, sizeof(QMediaRecorderWrapper));
}
