/*
 * 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 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtQml/qqmlapplicationengine.sip"
#include <qqmlapplicationengine.h>
#line 29 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.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/sipQtQmlQQmlApplicationEngine.cpp"
#line 109 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qurl.sip"
#include <qurl.h>
#line 36 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.cpp"
#line 27 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 39 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.cpp"
#line 24 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qvariantmap.sip"
#include <qvariant.h>
#line 42 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.cpp"
#line 30 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 45 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.cpp"
#line 149 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 48 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.cpp"
#line 38 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 51 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtQml/qqmlerror.sip"
#include <qqmlerror.h>
#line 54 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 57 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.cpp"
#line 59 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtQml/qqmlengine.sip"
#include <qqmlengine.h>
#line 60 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtQml/qqmlcontext.sip"
#include <qqmlcontext.h>
#line 63 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.cpp"
#line 72 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtQml/qqmlincubator.sip"
#include <qqmlincubator.h>
#line 66 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtQml/qqmlengine.sip"
#include <qqmlengine.h>
#line 69 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtNetwork/qnetworkaccessmanager.sip"
#include <qnetworkaccessmanager.h>
#line 72 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtQml/qqmlnetworkaccessmanagerfactory.sip"
#include <qqmlnetworkaccessmanagerfactory.h>
#line 75 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.cpp"
#line 36 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 78 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.cpp"
#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtQml/qjsvalue.sip"
#include <qjsvalue.h>
#line 81 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 84 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.cpp"
#line 30 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtQml/qjsengine.sip"
#include <qjsengine.h>
#line 87 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.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 92 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 95 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.cpp"
#line 247 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 98 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.cpp"
#line 235 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 101 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 104 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.cpp"
#line 38 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 107 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.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/sipQtQmlQQmlApplicationEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 113 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 116 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 119 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 122 "/build/pyqt5/src/PyQt5-5.15.7/build/QtQml/sipQtQmlQQmlApplicationEngine.cpp"


class sipQQmlApplicationEngine : public  ::QQmlApplicationEngine
{
public:
    sipQQmlApplicationEngine( ::QObject*);
    sipQQmlApplicationEngine(const  ::QUrl&, ::QObject*);
    sipQQmlApplicationEngine(const  ::QString&, ::QObject*);
    virtual ~sipQQmlApplicationEngine();

    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:
    bool event( ::QEvent*) SIP_OVERRIDE;
    bool eventFilter( ::QObject*, ::QEvent*) SIP_OVERRIDE;
    void timerEvent( ::QTimerEvent*) SIP_OVERRIDE;
    void childEvent( ::QChildEvent*) SIP_OVERRIDE;
    void customEvent( ::QEvent*) SIP_OVERRIDE;
    void connectNotify(const  ::QMetaMethod&) SIP_OVERRIDE;
    void disconnectNotify(const  ::QMetaMethod&) SIP_OVERRIDE;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[7];
};

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

sipQQmlApplicationEngine::sipQQmlApplicationEngine(const  ::QUrl& a0, ::QObject*a1):  ::QQmlApplicationEngine(a0,a1), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQQmlApplicationEngine::sipQQmlApplicationEngine(const  ::QString& a0, ::QObject*a1):  ::QQmlApplicationEngine(a0,a1), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

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

    return  ::QQmlApplicationEngine::metaObject();
}

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

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

    return _id;
}

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

    return (sip_QtQml_qt_metacast(sipPySelf, sipType_QQmlApplicationEngine, _clname, &sipCpp) ? sipCpp :  ::QQmlApplicationEngine::qt_metacast(_clname));
}

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

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

    if (!sipMeth)
        return  ::QQmlApplicationEngine::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);
}

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

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

    if (!sipMeth)
        return  ::QQmlApplicationEngine::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);
}

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

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

    if (!sipMeth)
    {
         ::QQmlApplicationEngine::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);
}

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

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

    if (!sipMeth)
    {
         ::QQmlApplicationEngine::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 sipQQmlApplicationEngine::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::QQmlApplicationEngine::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 sipQQmlApplicationEngine::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::QQmlApplicationEngine::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 sipQQmlApplicationEngine::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::QQmlApplicationEngine::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);
}


PyDoc_STRVAR(doc_QQmlApplicationEngine_rootObjects, "rootObjects(self) -> List[QObject]");

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

    {
        const  ::QQmlApplicationEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQmlApplicationEngine, &sipCpp))
        {
            QList< ::QObject*>*sipRes;

            sipRes = new QList< ::QObject*>(sipCpp->rootObjects());

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

    sipNoMethod(sipParseErr, sipName_QQmlApplicationEngine, sipName_rootObjects, doc_QQmlApplicationEngine_rootObjects);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlApplicationEngine_load, "load(self, QUrl)\n"
"load(self, str)");

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QQmlApplicationEngine, &sipCpp, sipType_QUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->load(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlApplicationEngine, sipName_load, doc_QQmlApplicationEngine_load);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlApplicationEngine_loadData, "loadData(self, Union[QByteArray, bytes, bytearray], url: QUrl = QUrl())");

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

    {
        const  ::QByteArray* a0;
        int a0State = 0;
        const  ::QUrl& a1def = QUrl();
        const  ::QUrl* a1 = &a1def;
         ::QQmlApplicationEngine *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1|J9", &sipSelf, sipType_QQmlApplicationEngine, &sipCpp, sipType_QByteArray, &a0, &a0State, sipType_QUrl, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->loadData(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QByteArray *>(a0), sipType_QByteArray, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlApplicationEngine, sipName_loadData, doc_QQmlApplicationEngine_loadData);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QQmlApplicationEngine_setInitialProperties, "setInitialProperties(self, Dict[str, Any])");

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

    {
        const  ::QVariantMap* a0;
        int a0State = 0;
         ::QQmlApplicationEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QQmlApplicationEngine, &sipCpp, sipType_QVariantMap, &a0, &a0State))
        {
            sipCpp->setInitialProperties(*a0);
            sipReleaseType(const_cast< ::QVariantMap *>(a0), sipType_QVariantMap, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QQmlApplicationEngine, sipName_setInitialProperties, doc_QQmlApplicationEngine_setInitialProperties);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QQmlApplicationEngine)
        return sipCppV;

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

    return SIP_NULLPTR;
}


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

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


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


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


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

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


extern "C" {static void *init_type_QQmlApplicationEngine(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QQmlApplicationEngine(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQQmlApplicationEngine *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 sipQQmlApplicationEngine(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::QUrl* a0;
         ::QObject* a1 = 0;

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9|JH", sipType_QUrl, &a0, sipType_QObject, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQQmlApplicationEngine(*a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::QString* a0;
        int a0State = 0;
         ::QObject* a1 = 0;

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1|JH", sipType_QString, &a0, &a0State, sipType_QObject, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQQmlApplicationEngine(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


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


static PyMethodDef methods_QQmlApplicationEngine[] = {
    {sipName_load, meth_QQmlApplicationEngine_load, METH_VARARGS, doc_QQmlApplicationEngine_load},
    {sipName_loadData, SIP_MLMETH_CAST(meth_QQmlApplicationEngine_loadData), METH_VARARGS|METH_KEYWORDS, doc_QQmlApplicationEngine_loadData},
    {sipName_rootObjects, meth_QQmlApplicationEngine_rootObjects, METH_VARARGS, doc_QQmlApplicationEngine_rootObjects},
    {sipName_setInitialProperties, meth_QQmlApplicationEngine_setInitialProperties, METH_VARARGS, doc_QQmlApplicationEngine_setInitialProperties}
};

PyDoc_STRVAR(doc_QQmlApplicationEngine, "\1QQmlApplicationEngine(parent: QObject = None)\n"
"QQmlApplicationEngine(QUrl, parent: QObject = None)\n"
"QQmlApplicationEngine(str, parent: QObject = None)");


/* Define this type's signals. */
static const pyqt5QtSignal signals_QQmlApplicationEngine[] = {
    {"objectCreated(QObject*,QUrl)", "\1objectCreated(self, QObject, QUrl)", SIP_NULLPTR, SIP_NULLPTR},
    {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}
};


static pyqt5ClassPluginDef plugin_QQmlApplicationEngine = {
    & ::QQmlApplicationEngine::staticMetaObject,
    0,
    signals_QQmlApplicationEngine,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtQml_QQmlApplicationEngine = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QQmlApplicationEngine,
        SIP_NULLPTR,
        &plugin_QQmlApplicationEngine
    },
    {
        sipNameNr_QQmlApplicationEngine,
        {0, 0, 1},
        4, methods_QQmlApplicationEngine,
        0, SIP_NULLPTR,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QQmlApplicationEngine,
    -1,
    -1,
    supers_QQmlApplicationEngine,
    SIP_NULLPTR,
    init_type_QQmlApplicationEngine,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QQmlApplicationEngine,
    SIP_NULLPTR,
    array_QQmlApplicationEngine,
    SIP_NULLPTR,
    release_QQmlApplicationEngine,
    cast_QQmlApplicationEngine,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QQmlApplicationEngine,
    sizeof ( ::QQmlApplicationEngine),
};
