/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.6.2
 *
 * Copyright (c) 2022 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt5.
 * 
 * This file may be used under the terms of the GNU General Public License
 * version 3.0 as published by the Free Software Foundation and appearing in
 * the file LICENSE included in the packaging of this file.  Please review the
 * following information to ensure the GNU General Public License version 3.0
 * requirements will be met: http://www.gnu.org/copyleft/gpl.html.
 * 
 * If you do not wish to use this file under the terms of the GPL version 3.0
 * then you may purchase a commercial license.  For more information contact
 * info@riverbankcomputing.com.
 * 
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 */

#include "sipAPIQtQml.h"

#line 59 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtQml/qqmlengine.sip"
#include <qqmlengine.h>
#line 29 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"

#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 33 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 27 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 36 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 38 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 39 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtQml/qqmlerror.sip"
#include <qqmlerror.h>
#line 42 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 45 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtQml/qqmlcontext.sip"
#include <qqmlcontext.h>
#line 48 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 109 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qurl.sip"
#include <qurl.h>
#line 51 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 72 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtQml/qqmlincubator.sip"
#include <qqmlincubator.h>
#line 54 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtQml/qqmlengine.sip"
#include <qqmlengine.h>
#line 57 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtNetwork/qnetworkaccessmanager.sip"
#include <qnetworkaccessmanager.h>
#line 60 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtQml/qqmlnetworkaccessmanagerfactory.sip"
#include <qqmlnetworkaccessmanagerfactory.h>
#line 63 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 36 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 66 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtQml/qjsvalue.sip"
#include <qjsvalue.h>
#line 69 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 72 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 30 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtQml/qjsengine.sip"
#include <qjsengine.h>
#line 75 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 146 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 80 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 83 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 247 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 86 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 235 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 89 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 92 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 38 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 95 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 30 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 98 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 149 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 101 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 104 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 107 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 110 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 113 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 116 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"


class sipQQmlEngine : public  ::QQmlEngine
{
public:
    sipQQmlEngine( ::QObject*);
    virtual ~sipQQmlEngine();

    int qt_metacall(QMetaObject::Call, int, void **) SIP_OVERRIDE;
    void *qt_metacast(const char *) SIP_OVERRIDE;
    const QMetaObject *metaObject() const SIP_OVERRIDE;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const  ::QMetaMethod&) SIP_OVERRIDE;
    void connectNotify(const  ::QMetaMethod&) SIP_OVERRIDE;
    void customEvent( ::QEvent*) SIP_OVERRIDE;
    void childEvent( ::QChildEvent*) SIP_OVERRIDE;
    void timerEvent( ::QTimerEvent*) SIP_OVERRIDE;
    bool eventFilter( ::QObject*, ::QEvent*) SIP_OVERRIDE;
    bool event( ::QEvent*) SIP_OVERRIDE;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQQmlEngine(const sipQQmlEngine &);
    sipQQmlEngine &operator = (const sipQQmlEngine &);

    char sipPyMethods[7];
};

sipQQmlEngine::sipQQmlEngine( ::QObject*a0):  ::QQmlEngine(a0), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQQmlEngine::~sipQQmlEngine()
{
    sipInstanceDestroyedEx(&sipPySelf);
}

const QMetaObject *sipQQmlEngine::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtQml_qt_metaobject(sipPySelf,sipType_QQmlEngine);

    return  ::QQmlEngine::metaObject();
}

int sipQQmlEngine::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id =  ::QQmlEngine::qt_metacall(_c,_id,_a);

    if (_id >= 0)
    {
        SIP_BLOCK_THREADS
        _id = sip_QtQml_qt_metacall(sipPySelf,sipType_QQmlEngine,_c,_id,_a);
        SIP_UNBLOCK_THREADS
    }

    return _id;
}

void *sipQQmlEngine::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtQml_qt_metacast(sipPySelf, sipType_QQmlEngine, _clname, &sipCpp) ? sipCpp :  ::QQmlEngine::qt_metacast(_clname));
}

void sipQQmlEngine::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[0], &sipPySelf, SIP_NULLPTR, sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QQmlEngine::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtQml_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtQml_0(sipGILState, sipImportedVirtErrorHandlers_QtQml_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQQmlEngine::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[1], &sipPySelf, SIP_NULLPTR, sipName_connectNotify);

    if (!sipMeth)
    {
         ::QQmlEngine::connectNotify(a0);
        return;
    }

    extern void sipVH_QtQml_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtQml_0(sipGILState, sipImportedVirtErrorHandlers_QtQml_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQQmlEngine::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[2], &sipPySelf, SIP_NULLPTR, sipName_customEvent);

    if (!sipMeth)
    {
         ::QQmlEngine::customEvent(a0);
        return;
    }

    extern void sipVH_QtQml_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtQml_1(sipGILState, sipImportedVirtErrorHandlers_QtQml_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQQmlEngine::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[3], &sipPySelf, SIP_NULLPTR, sipName_childEvent);

    if (!sipMeth)
    {
         ::QQmlEngine::childEvent(a0);
        return;
    }

    extern void sipVH_QtQml_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtQml_2(sipGILState, sipImportedVirtErrorHandlers_QtQml_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQQmlEngine::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[4], &sipPySelf, SIP_NULLPTR, sipName_timerEvent);

    if (!sipMeth)
    {
         ::QQmlEngine::timerEvent(a0);
        return;
    }

    extern void sipVH_QtQml_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtQml_3(sipGILState, sipImportedVirtErrorHandlers_QtQml_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQQmlEngine::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[5], &sipPySelf, SIP_NULLPTR, sipName_eventFilter);

    if (!sipMeth)
        return  ::QQmlEngine::eventFilter(a0,a1);

    extern bool sipVH_QtQml_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtQml_4(sipGILState, sipImportedVirtErrorHandlers_QtQml_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

bool sipQQmlEngine::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[6], &sipPySelf, SIP_NULLPTR, sipName_event);

    if (!sipMeth)
        return  ::QQmlEngine::event(a0);

    extern bool sipVH_QtQml_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtQml_5(sipGILState, sipImportedVirtErrorHandlers_QtQml_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}


PyDoc_STRVAR(doc_QQmlEngine_rootContext, "rootContext(self) -> QQmlContext");

extern "C" {static PyObject *meth_QQmlEngine_rootContext(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_rootContext(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQmlEngine, &sipCpp))
        {
             ::QQmlContext*sipRes;

            sipRes = sipCpp->rootContext();

            return sipConvertFromType(sipRes,sipType_QQmlContext,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_rootContext, doc_QQmlEngine_rootContext);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_clearComponentCache, "clearComponentCache(self)");

extern "C" {static PyObject *meth_QQmlEngine_clearComponentCache(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_clearComponentCache(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQmlEngine, &sipCpp))
        {
            sipCpp->clearComponentCache();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_clearComponentCache, doc_QQmlEngine_clearComponentCache);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_trimComponentCache, "trimComponentCache(self)");

extern "C" {static PyObject *meth_QQmlEngine_trimComponentCache(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_trimComponentCache(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQmlEngine, &sipCpp))
        {
            sipCpp->trimComponentCache();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_trimComponentCache, doc_QQmlEngine_trimComponentCache);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_importPathList, "importPathList(self) -> List[str]");

extern "C" {static PyObject *meth_QQmlEngine_importPathList(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_importPathList(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQmlEngine, &sipCpp))
        {
             ::QStringList*sipRes;

            sipRes = new  ::QStringList(sipCpp->importPathList());

            return sipConvertFromNewType(sipRes,sipType_QStringList,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_importPathList, doc_QQmlEngine_importPathList);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_setImportPathList, "setImportPathList(self, Iterable[str])");

extern "C" {static PyObject *meth_QQmlEngine_setImportPathList(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_setImportPathList(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QStringList* a0;
        int a0State = 0;
         ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QQmlEngine, &sipCpp, sipType_QStringList, &a0, &a0State))
        {
            sipCpp->setImportPathList(*a0);
            sipReleaseType(const_cast< ::QStringList *>(a0), sipType_QStringList, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_setImportPathList, doc_QQmlEngine_setImportPathList);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_addImportPath, "addImportPath(self, str)");

extern "C" {static PyObject *meth_QQmlEngine_addImportPath(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_addImportPath(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QString* a0;
        int a0State = 0;
         ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QQmlEngine, &sipCpp, sipType_QString, &a0, &a0State))
        {
            sipCpp->addImportPath(*a0);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_addImportPath, doc_QQmlEngine_addImportPath);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_pluginPathList, "pluginPathList(self) -> List[str]");

extern "C" {static PyObject *meth_QQmlEngine_pluginPathList(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_pluginPathList(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQmlEngine, &sipCpp))
        {
             ::QStringList*sipRes;

            sipRes = new  ::QStringList(sipCpp->pluginPathList());

            return sipConvertFromNewType(sipRes,sipType_QStringList,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_pluginPathList, doc_QQmlEngine_pluginPathList);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_setPluginPathList, "setPluginPathList(self, Iterable[str])");

extern "C" {static PyObject *meth_QQmlEngine_setPluginPathList(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_setPluginPathList(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QStringList* a0;
        int a0State = 0;
         ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QQmlEngine, &sipCpp, sipType_QStringList, &a0, &a0State))
        {
            sipCpp->setPluginPathList(*a0);
            sipReleaseType(const_cast< ::QStringList *>(a0), sipType_QStringList, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_setPluginPathList, doc_QQmlEngine_setPluginPathList);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_addPluginPath, "addPluginPath(self, str)");

extern "C" {static PyObject *meth_QQmlEngine_addPluginPath(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_addPluginPath(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QString* a0;
        int a0State = 0;
         ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QQmlEngine, &sipCpp, sipType_QString, &a0, &a0State))
        {
            sipCpp->addPluginPath(*a0);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_addPluginPath, doc_QQmlEngine_addPluginPath);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_addNamedBundle, "addNamedBundle(self, str, str) -> bool");

extern "C" {static PyObject *meth_QQmlEngine_addNamedBundle(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_addNamedBundle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QString* a0;
        int a0State = 0;
        const  ::QString* a1;
        int a1State = 0;
         ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QQmlEngine, &sipCpp, sipType_QString, &a0, &a0State, sipType_QString, &a1, &a1State))
        {
            bool sipRes;

            sipRes = sipCpp->addNamedBundle(*a0,*a1);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);
            sipReleaseType(const_cast< ::QString *>(a1), sipType_QString, a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_addNamedBundle, doc_QQmlEngine_addNamedBundle);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_importPlugin, "importPlugin(self, str, str, Iterable[QQmlError]) -> bool");

extern "C" {static PyObject *meth_QQmlEngine_importPlugin(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_importPlugin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QString* a0;
        int a0State = 0;
        const  ::QString* a1;
        int a1State = 0;
        QList< ::QQmlError>* a2;
        PyObject *a2Wrapper;
        int a2State = 0;
         ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1@J0", &sipSelf, sipType_QQmlEngine, &sipCpp, sipType_QString, &a0, &a0State, sipType_QString, &a1, &a1State, &a2Wrapper, sipType_QList_0100QQmlError, &a2, &a2State))
        {
            bool sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 82 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtQml/qqmlengine.sip"
        int orig_size = (a2 ? a2->size() : 0);
        
        sipRes = sipCpp->importPlugin(*a0, *a1, a2);
        
        if (a2)
        {
            for (int i = a2->size(); i > orig_size; --i)
            {
                QQmlError *new_error = new QQmlError(a2->at(i - orig_size - 1));
                PyObject *new_error_obj = sipConvertFromNewType(new_error, sipType_QQmlError, 0);
                
                if (!new_error_obj)
                {
                    delete new_error;
                    sipError = sipErrorFail;
                    break;
                }
                
                if (PyList_Insert(a2Wrapper, 0, new_error_obj) < 0)
                {
                    Py_DECREF(new_error_obj);
                    sipError = sipErrorFail;
                    break;
                }
                
                Py_DECREF(new_error_obj);
            }
        }
#line 646 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);
            sipReleaseType(const_cast< ::QString *>(a1), sipType_QString, a1State);
            sipReleaseType(a2, sipType_QList_0100QQmlError, a2State);

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return PyBool_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_importPlugin, doc_QQmlEngine_importPlugin);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_setNetworkAccessManagerFactory, "setNetworkAccessManagerFactory(self, QQmlNetworkAccessManagerFactory)");

extern "C" {static PyObject *meth_QQmlEngine_setNetworkAccessManagerFactory(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_setNetworkAccessManagerFactory(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QQmlNetworkAccessManagerFactory* a0;
        PyObject *a0Keep;
         ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B@J8", &sipSelf, sipType_QQmlEngine, &sipCpp, &a0Keep, sipType_QQmlNetworkAccessManagerFactory, &a0))
        {
            sipCpp->setNetworkAccessManagerFactory(a0);

            sipKeepReference(sipSelf, -1, a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_setNetworkAccessManagerFactory, doc_QQmlEngine_setNetworkAccessManagerFactory);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_networkAccessManagerFactory, "networkAccessManagerFactory(self) -> QQmlNetworkAccessManagerFactory");

extern "C" {static PyObject *meth_QQmlEngine_networkAccessManagerFactory(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_networkAccessManagerFactory(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQmlEngine, &sipCpp))
        {
             ::QQmlNetworkAccessManagerFactory*sipRes;

            sipRes = sipCpp->networkAccessManagerFactory();

            return sipConvertFromType(sipRes,sipType_QQmlNetworkAccessManagerFactory,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_networkAccessManagerFactory, doc_QQmlEngine_networkAccessManagerFactory);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_networkAccessManager, "networkAccessManager(self) -> QNetworkAccessManager");

extern "C" {static PyObject *meth_QQmlEngine_networkAccessManager(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_networkAccessManager(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQmlEngine, &sipCpp))
        {
             ::QNetworkAccessManager*sipRes;

            sipRes = sipCpp->networkAccessManager();

            return sipConvertFromType(sipRes,sipType_QNetworkAccessManager,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_networkAccessManager, doc_QQmlEngine_networkAccessManager);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_addImageProvider, "addImageProvider(self, str, QQmlImageProviderBase)");

extern "C" {static PyObject *meth_QQmlEngine_addImageProvider(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_addImageProvider(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QString* a0;
        int a0State = 0;
         ::QQmlImageProviderBase* a1;
         ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J:", &sipSelf, sipType_QQmlEngine, &sipCpp, sipType_QString, &a0, &a0State, sipType_QQmlImageProviderBase, &a1))
        {
            sipCpp->addImageProvider(*a0,a1);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_addImageProvider, doc_QQmlEngine_addImageProvider);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_imageProvider, "imageProvider(self, str) -> QQmlImageProviderBase");

extern "C" {static PyObject *meth_QQmlEngine_imageProvider(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_imageProvider(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QString* a0;
        int a0State = 0;
        const  ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QQmlEngine, &sipCpp, sipType_QString, &a0, &a0State))
        {
             ::QQmlImageProviderBase*sipRes;

            sipRes = sipCpp->imageProvider(*a0);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);

            return sipConvertFromType(sipRes,sipType_QQmlImageProviderBase,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_imageProvider, doc_QQmlEngine_imageProvider);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_removeImageProvider, "removeImageProvider(self, str)");

extern "C" {static PyObject *meth_QQmlEngine_removeImageProvider(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_removeImageProvider(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QString* a0;
        int a0State = 0;
         ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QQmlEngine, &sipCpp, sipType_QString, &a0, &a0State))
        {
            sipCpp->removeImageProvider(*a0);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_removeImageProvider, doc_QQmlEngine_removeImageProvider);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_setIncubationController, "setIncubationController(self, QQmlIncubationController)");

extern "C" {static PyObject *meth_QQmlEngine_setIncubationController(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_setIncubationController(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QQmlIncubationController* a0;
        PyObject *a0Keep;
         ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B@J8", &sipSelf, sipType_QQmlEngine, &sipCpp, &a0Keep, sipType_QQmlIncubationController, &a0))
        {
            sipCpp->setIncubationController(a0);

            sipKeepReference(sipSelf, -2, a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_setIncubationController, doc_QQmlEngine_setIncubationController);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_incubationController, "incubationController(self) -> QQmlIncubationController");

extern "C" {static PyObject *meth_QQmlEngine_incubationController(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_incubationController(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQmlEngine, &sipCpp))
        {
             ::QQmlIncubationController*sipRes;

            sipRes = sipCpp->incubationController();

            return sipConvertFromType(sipRes,sipType_QQmlIncubationController,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_incubationController, doc_QQmlEngine_incubationController);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_setOfflineStoragePath, "setOfflineStoragePath(self, str)");

extern "C" {static PyObject *meth_QQmlEngine_setOfflineStoragePath(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_setOfflineStoragePath(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QString* a0;
        int a0State = 0;
         ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QQmlEngine, &sipCpp, sipType_QString, &a0, &a0State))
        {
            sipCpp->setOfflineStoragePath(*a0);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_setOfflineStoragePath, doc_QQmlEngine_setOfflineStoragePath);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_offlineStoragePath, "offlineStoragePath(self) -> str");

extern "C" {static PyObject *meth_QQmlEngine_offlineStoragePath(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_offlineStoragePath(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQmlEngine, &sipCpp))
        {
             ::QString*sipRes;

            sipRes = new  ::QString(sipCpp->offlineStoragePath());

            return sipConvertFromNewType(sipRes,sipType_QString,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_offlineStoragePath, doc_QQmlEngine_offlineStoragePath);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_baseUrl, "baseUrl(self) -> QUrl");

extern "C" {static PyObject *meth_QQmlEngine_baseUrl(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_baseUrl(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQmlEngine, &sipCpp))
        {
             ::QUrl*sipRes;

            sipRes = new  ::QUrl(sipCpp->baseUrl());

            return sipConvertFromNewType(sipRes,sipType_QUrl,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_baseUrl, doc_QQmlEngine_baseUrl);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_setBaseUrl, "setBaseUrl(self, QUrl)");

extern "C" {static PyObject *meth_QQmlEngine_setBaseUrl(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_setBaseUrl(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QUrl* a0;
         ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QQmlEngine, &sipCpp, sipType_QUrl, &a0))
        {
            sipCpp->setBaseUrl(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_setBaseUrl, doc_QQmlEngine_setBaseUrl);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_outputWarningsToStandardError, "outputWarningsToStandardError(self) -> bool");

extern "C" {static PyObject *meth_QQmlEngine_outputWarningsToStandardError(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_outputWarningsToStandardError(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQmlEngine, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->outputWarningsToStandardError();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_outputWarningsToStandardError, doc_QQmlEngine_outputWarningsToStandardError);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_setOutputWarningsToStandardError, "setOutputWarningsToStandardError(self, bool)");

extern "C" {static PyObject *meth_QQmlEngine_setOutputWarningsToStandardError(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_setOutputWarningsToStandardError(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        bool a0;
         ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QQmlEngine, &sipCpp, &a0))
        {
            sipCpp->setOutputWarningsToStandardError(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_setOutputWarningsToStandardError, doc_QQmlEngine_setOutputWarningsToStandardError);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_contextForObject, "contextForObject(QObject) -> QQmlContext");

extern "C" {static PyObject *meth_QQmlEngine_contextForObject(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_contextForObject(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QObject* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_QObject, &a0))
        {
             ::QQmlContext*sipRes;

            sipRes =  ::QQmlEngine::contextForObject(a0);

            return sipConvertFromType(sipRes,sipType_QQmlContext,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_contextForObject, doc_QQmlEngine_contextForObject);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_setContextForObject, "setContextForObject(QObject, QQmlContext)");

extern "C" {static PyObject *meth_QQmlEngine_setContextForObject(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_setContextForObject(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QObject* a0;
         ::QQmlContext* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8J8", sipType_QObject, &a0, sipType_QQmlContext, &a1))
        {
             ::QQmlEngine::setContextForObject(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_setContextForObject, doc_QQmlEngine_setContextForObject);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_setObjectOwnership, "setObjectOwnership(QObject, QQmlEngine.ObjectOwnership)");

extern "C" {static PyObject *meth_QQmlEngine_setObjectOwnership(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_setObjectOwnership(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QObject* a0;
        PyObject *a0Wrapper;
         ::QQmlEngine::ObjectOwnership a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "@J8E", &a0Wrapper, sipType_QObject, &a0, sipType_QQmlEngine_ObjectOwnership, &a1))
        {
#line 137 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtQml/qqmlengine.sip"
        QQmlEngine::ObjectOwnership old = QQmlEngine::objectOwnership(a0);
        
        QQmlEngine::setObjectOwnership(a0, a1);
        
        if (old != a1 && !a0->parent())
        {
            if (old == QQmlEngine::CppOwnership)
                sipTransferTo(a0Wrapper, Py_None);
            else
                sipTransferBack(a0Wrapper);
        }
#line 1144 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_setObjectOwnership, doc_QQmlEngine_setObjectOwnership);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_objectOwnership, "objectOwnership(QObject) -> QQmlEngine.ObjectOwnership");

extern "C" {static PyObject *meth_QQmlEngine_objectOwnership(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_objectOwnership(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QObject* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_QObject, &a0))
        {
             ::QQmlEngine::ObjectOwnership sipRes;

            sipRes =  ::QQmlEngine::objectOwnership(a0);

            return sipConvertFromEnum(static_cast<int>(sipRes), sipType_QQmlEngine_ObjectOwnership);
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_objectOwnership, doc_QQmlEngine_objectOwnership);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_event, "event(self, QEvent) -> bool");

extern "C" {static PyObject *meth_QQmlEngine_event(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_event(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QEvent* a0;
         ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_QQmlEngine, &sipCpp, sipType_QEvent, &a0))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp-> ::QQmlEngine::event(a0) : sipCpp->event(a0));

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_event, doc_QQmlEngine_event);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_offlineStorageDatabaseFilePath, "offlineStorageDatabaseFilePath(self, str) -> str");

extern "C" {static PyObject *meth_QQmlEngine_offlineStorageDatabaseFilePath(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_offlineStorageDatabaseFilePath(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QString* a0;
        int a0State = 0;
        const  ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QQmlEngine, &sipCpp, sipType_QString, &a0, &a0State))
        {
             ::QString*sipRes;

            sipRes = new  ::QString(sipCpp->offlineStorageDatabaseFilePath(*a0));
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);

            return sipConvertFromNewType(sipRes,sipType_QString,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_offlineStorageDatabaseFilePath, doc_QQmlEngine_offlineStorageDatabaseFilePath);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_retranslate, "retranslate(self)");

extern "C" {static PyObject *meth_QQmlEngine_retranslate(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_retranslate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQmlEngine, &sipCpp))
        {
            sipCpp->retranslate();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_retranslate, doc_QQmlEngine_retranslate);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlEngine_singletonInstance, "singletonInstance(self, int) -> QObject");

extern "C" {static PyObject *meth_QQmlEngine_singletonInstance(PyObject *, PyObject *);}
static PyObject *meth_QQmlEngine_singletonInstance(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int a0;
         ::QQmlEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QQmlEngine, &sipCpp, &a0))
        {
            PyObject * sipRes = SIP_NULLPTR;
            sipErrorState sipError = sipErrorNone;

#line 176 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtQml/qqmlengine.sip"
        QJSValue instance = sipCpp->singletonInstance<QJSValue>(a0);
        
        if (instance.isQObject())
        {
            sipRes = sipConvertFromType(instance.toQObject(), sipType_QObject, NULL);
                
            if (!sipRes)
                sipError = sipErrorFail;
        }
        else
        {
            sipRes = Py_None;
            Py_INCREF(sipRes);
        }
#line 1301 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlEngine.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlEngine, sipName_singletonInstance, doc_QQmlEngine_singletonInstance);

    return SIP_NULLPTR;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QQmlEngine(void *, const sipTypeDef *);}
static void *cast_QQmlEngine(void *sipCppV, const sipTypeDef *targetType)
{
     ::QQmlEngine *sipCpp = reinterpret_cast< ::QQmlEngine *>(sipCppV);

    if (targetType == sipType_QQmlEngine)
        return sipCppV;

    sipCppV = ((const sipClassTypeDef *)sipType_QJSEngine)->ctd_cast(static_cast< ::QJSEngine *>(sipCpp), targetType);
    if (sipCppV)
        return sipCppV;

    return SIP_NULLPTR;
}


/* Call the instance's destructor. */
extern "C" {static void release_QQmlEngine(void *, int);}
static void release_QQmlEngine(void *sipCppV, int)
{
     ::QQmlEngine *sipCpp = reinterpret_cast< ::QQmlEngine *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void *array_QQmlEngine(Py_ssize_t);}
static void *array_QQmlEngine(Py_ssize_t sipNrElem)
{
    return new  ::QQmlEngine[sipNrElem];
}


extern "C" {static void array_delete_QQmlEngine(void *);}
static void array_delete_QQmlEngine(void *sipCpp)
{
    delete[] reinterpret_cast< ::QQmlEngine *>(sipCpp);
}


extern "C" {static void dealloc_QQmlEngine(sipSimpleWrapper *);}
static void dealloc_QQmlEngine(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQQmlEngine *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QQmlEngine(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_QQmlEngine(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QQmlEngine(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQQmlEngine *sipCpp = SIP_NULLPTR;

    {
         ::QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            sipCpp = new sipQQmlEngine(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QQmlEngine[] = {{0, 255, 1}};


static PyMethodDef methods_QQmlEngine[] = {
    {sipName_addImageProvider, meth_QQmlEngine_addImageProvider, METH_VARARGS, doc_QQmlEngine_addImageProvider},
    {sipName_addImportPath, meth_QQmlEngine_addImportPath, METH_VARARGS, doc_QQmlEngine_addImportPath},
    {sipName_addNamedBundle, meth_QQmlEngine_addNamedBundle, METH_VARARGS, doc_QQmlEngine_addNamedBundle},
    {sipName_addPluginPath, meth_QQmlEngine_addPluginPath, METH_VARARGS, doc_QQmlEngine_addPluginPath},
    {sipName_baseUrl, meth_QQmlEngine_baseUrl, METH_VARARGS, doc_QQmlEngine_baseUrl},
    {sipName_clearComponentCache, meth_QQmlEngine_clearComponentCache, METH_VARARGS, doc_QQmlEngine_clearComponentCache},
    {sipName_contextForObject, meth_QQmlEngine_contextForObject, METH_VARARGS, doc_QQmlEngine_contextForObject},
    {sipName_event, meth_QQmlEngine_event, METH_VARARGS, doc_QQmlEngine_event},
    {sipName_imageProvider, meth_QQmlEngine_imageProvider, METH_VARARGS, doc_QQmlEngine_imageProvider},
    {sipName_importPathList, meth_QQmlEngine_importPathList, METH_VARARGS, doc_QQmlEngine_importPathList},
    {sipName_importPlugin, meth_QQmlEngine_importPlugin, METH_VARARGS, doc_QQmlEngine_importPlugin},
    {sipName_incubationController, meth_QQmlEngine_incubationController, METH_VARARGS, doc_QQmlEngine_incubationController},
    {sipName_networkAccessManager, meth_QQmlEngine_networkAccessManager, METH_VARARGS, doc_QQmlEngine_networkAccessManager},
    {sipName_networkAccessManagerFactory, meth_QQmlEngine_networkAccessManagerFactory, METH_VARARGS, doc_QQmlEngine_networkAccessManagerFactory},
    {sipName_objectOwnership, meth_QQmlEngine_objectOwnership, METH_VARARGS, doc_QQmlEngine_objectOwnership},
    {sipName_offlineStorageDatabaseFilePath, meth_QQmlEngine_offlineStorageDatabaseFilePath, METH_VARARGS, doc_QQmlEngine_offlineStorageDatabaseFilePath},
    {sipName_offlineStoragePath, meth_QQmlEngine_offlineStoragePath, METH_VARARGS, doc_QQmlEngine_offlineStoragePath},
    {sipName_outputWarningsToStandardError, meth_QQmlEngine_outputWarningsToStandardError, METH_VARARGS, doc_QQmlEngine_outputWarningsToStandardError},
    {sipName_pluginPathList, meth_QQmlEngine_pluginPathList, METH_VARARGS, doc_QQmlEngine_pluginPathList},
    {sipName_removeImageProvider, meth_QQmlEngine_removeImageProvider, METH_VARARGS, doc_QQmlEngine_removeImageProvider},
    {sipName_retranslate, meth_QQmlEngine_retranslate, METH_VARARGS, doc_QQmlEngine_retranslate},
    {sipName_rootContext, meth_QQmlEngine_rootContext, METH_VARARGS, doc_QQmlEngine_rootContext},
    {sipName_setBaseUrl, meth_QQmlEngine_setBaseUrl, METH_VARARGS, doc_QQmlEngine_setBaseUrl},
    {sipName_setContextForObject, meth_QQmlEngine_setContextForObject, METH_VARARGS, doc_QQmlEngine_setContextForObject},
    {sipName_setImportPathList, meth_QQmlEngine_setImportPathList, METH_VARARGS, doc_QQmlEngine_setImportPathList},
    {sipName_setIncubationController, meth_QQmlEngine_setIncubationController, METH_VARARGS, doc_QQmlEngine_setIncubationController},
    {sipName_setNetworkAccessManagerFactory, meth_QQmlEngine_setNetworkAccessManagerFactory, METH_VARARGS, doc_QQmlEngine_setNetworkAccessManagerFactory},
    {sipName_setObjectOwnership, meth_QQmlEngine_setObjectOwnership, METH_VARARGS, doc_QQmlEngine_setObjectOwnership},
    {sipName_setOfflineStoragePath, meth_QQmlEngine_setOfflineStoragePath, METH_VARARGS, doc_QQmlEngine_setOfflineStoragePath},
    {sipName_setOutputWarningsToStandardError, meth_QQmlEngine_setOutputWarningsToStandardError, METH_VARARGS, doc_QQmlEngine_setOutputWarningsToStandardError},
    {sipName_setPluginPathList, meth_QQmlEngine_setPluginPathList, METH_VARARGS, doc_QQmlEngine_setPluginPathList},
    {sipName_singletonInstance, meth_QQmlEngine_singletonInstance, METH_VARARGS, doc_QQmlEngine_singletonInstance},
    {sipName_trimComponentCache, meth_QQmlEngine_trimComponentCache, METH_VARARGS, doc_QQmlEngine_trimComponentCache}
};

static sipEnumMemberDef enummembers_QQmlEngine[] = {
    {sipName_CppOwnership, static_cast<int>( ::QQmlEngine::CppOwnership), 19},
    {sipName_JavaScriptOwnership, static_cast<int>( ::QQmlEngine::JavaScriptOwnership), 19},
};

PyDoc_STRVAR(doc_QQmlEngine, "\1QQmlEngine(parent: QObject = None)");


/* Define this type's signals. */
static const pyqt5QtSignal signals_QQmlEngine[] = {
    {"exit(int)", "\1exit(self, int)", SIP_NULLPTR, SIP_NULLPTR},
    {"warnings(QList<QQmlError>)", "\1warnings(self, Iterable[QQmlError])", SIP_NULLPTR, SIP_NULLPTR},
    {"quit()", "\1quit(self)", SIP_NULLPTR, SIP_NULLPTR},
    {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}
};


static pyqt5ClassPluginDef plugin_QQmlEngine = {
    & ::QQmlEngine::staticMetaObject,
    0,
    signals_QQmlEngine,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtQml_QQmlEngine = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QQmlEngine,
        SIP_NULLPTR,
        &plugin_QQmlEngine
    },
    {
        sipNameNr_QQmlEngine,
        {0, 0, 1},
        33, methods_QQmlEngine,
        2, enummembers_QQmlEngine,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QQmlEngine,
    -1,
    -1,
    supers_QQmlEngine,
    SIP_NULLPTR,
    init_type_QQmlEngine,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QQmlEngine,
    SIP_NULLPTR,
    array_QQmlEngine,
    SIP_NULLPTR,
    release_QQmlEngine,
    cast_QQmlEngine,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QQmlEngine,
    sizeof ( ::QQmlEngine),
};
