
// Auto generated

// include header:
//#include "qqmlapplicationenginewrapper.h"
//#include "header_cpp.h"

#include "qqmlapplicationengine_wrapper.h"


// list of registered base casters for this wrapper class:
QList<RJSBasecaster_QQmlApplicationEngine*> QQmlApplicationEngine_Wrapper::basecasters_QQmlApplicationEngine;

// static functions implementation in singleton wrapper:

// Class: QQmlApplicationEngine
// Function: tr
// Source: QObject
// Static: true
// Parameters: 3
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_WrapperSingleton::tr
(

    const QJSValue&
    a1,
    const QJSValue&
    a2,
    const QJSValue&
    a3
)

{

    // check parameter types:
    if (
        RJSHelper::is_char_ptr(handler, a1
                               , true

                              )

        && RJSHelper::is_char_ptr(handler, a2
                                  , true

                                 )

        && RJSHelper::is_int(handler, a3
                             , true

                            )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: sourceText (char)


        // char pointer string:
        QByteArray a1_ba = RJSHelper::js2cpp_char_ptr(handler, a1).toLocal8Bit();
        const char* a1_cpp = a1_ba.constData();

        // convert js parameter to cpp:  (char)


        // char pointer string:
        QByteArray a2_ba = RJSHelper::js2cpp_char_ptr(handler, a2).toLocal8Bit();
        const char* a2_cpp = a2_ba.constData();

        // convert js parameter to cpp:  (int)

        int a3_cpp;


        if (a3.isUndefined()) {
            a3_cpp = -1;
        }
        else {
            a3_cpp = RJSHelper::js2cpp_int(handler, a3);
        }


        // call function:

        // static member function:
        // call base class static function:
        QString res =

            // call static member function:
            QObject::tr(
                a1_cpp
                , a2_cpp
                , a3_cpp

            );

        // return type: QString

        return RJSHelper::cpp2js_QString(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for tr";
    handler.trace();
    return QJSValue();

}

void QQmlApplicationEngine_Wrapper::init(RJSApi& handler) {

    //qmlRegisterType<QQmlApplicationEngine_Wrapper>("org.qcad", 1, 0, "QQmlApplicationEngine_Wrapper");
    qmlRegisterInterface<QQmlApplicationEngine_Wrapper>("QQmlApplicationEngine_Wrapper", 1);


    QJSEngine* engine = handler.getEngine();


    // make type scriptable for JS files:
    QJSValue global = engine->globalObject();
    RJSType_QQmlApplicationEngine* t = new RJSType_QQmlApplicationEngine();
    global.setProperty("RJSType_QQmlApplicationEngine", engine->newQObject(t));

    // initialize ID for this type:
    RJSType_QQmlApplicationEngine::getIdStatic();



    // wrapper:
    QJSValue mo = engine->newQMetaObject(&QQmlApplicationEngine_Wrapper::staticMetaObject);
    engine->globalObject().setProperty("QQmlApplicationEngine_Wrapper", mo);



    // JS base class:
    //QJSValue mob = engine->newQMetaObject(&QQmlApplicationEngine_BaseJs::staticMetaObject);
    //engine->globalObject().setProperty("QQmlApplicationEngine_BaseJs", mob);

    // singleton wrapper:
    QJSValue mos = engine->newQMetaObject(&QQmlApplicationEngine_WrapperSingleton::staticMetaObject);
    engine->globalObject().setProperty("QQmlApplicationEngine_WrapperSingleton", mos);

    // create instance of singleton wrapper for static functions:
    QQmlApplicationEngine_WrapperSingleton * s = new QQmlApplicationEngine_WrapperSingleton(handler);
    engine->globalObject().setProperty("QQmlApplicationEngine_WrapperSingletonInstance", engine->newQObject(s));
    QJSEngine::setObjectOwnership(s, QJSEngine::CppOwnership);

    QString fileName = ":generator/js/QQmlApplicationEngine.js";
    QFile scriptFile(fileName);
    if (!scriptFile.open(QIODevice::ReadOnly)) {
        qWarning() << "JS script wrapper file not found:" << fileName;
        return;
    }
    QTextStream stream(&scriptFile);
    QString contents = stream.readAll();
    scriptFile.close();

    qDebug() << "Evaluating file: " << fileName;
    QJSValue result = engine->evaluate(contents, fileName);
    if (result.isError()) {
        qWarning()
                << "Uncaught exception at line"
                << result.property("lineNumber").toInt()
                << ":" << result.toString();
    }
}

/*
// special constructor used as prototype:
QQmlApplicationEngine_Wrapper::QQmlApplicationEngine_Wrapper(QJSEngine* e) : wrapped(nullptr), wrappedCreated(false) {
        //setObjectName("QQmlApplicationEngine_Wrapper");
        setEngine(e);

        // signal forwarding:
        //initConnections();
      }

*/


// special constructor to wrap existing object:
QQmlApplicationEngine_Wrapper::QQmlApplicationEngine_Wrapper(RJSApi& h, QQmlApplicationEngine* o, bool wrappedCreated) : RJSWrapperObj(h), wrapped(o), wrappedCreated(wrappedCreated) {
    //RDebug::incCounter(QString("QQmlApplicationEngine_Wrapper_") + handler.getEngine()->objectName());
    //RDebug::incCounter(QString("QQmlApplicationEngine_Wrapper"));
    //setObjectName("QQmlApplicationEngine_Wrapper");
    //setHandler(h);

    // signal forwarding:
    initConnections();
}


// destructor:
QQmlApplicationEngine_Wrapper::~QQmlApplicationEngine_Wrapper() {
    //RDebug::decCounter(QString("QQmlApplicationEngine_Wrapper_") + handler.getEngine()->objectName());
    //RDebug::decCounter(QString("QQmlApplicationEngine_Wrapper"));

    //qDebug() << "QQmlApplicationEngine_Wrapper::~QQmlApplicationEngine_Wrapper";

    // tell script handler that this wrapper no longer exists:
    handler.unregisterWrapper(*this);


    if (wrappedCreated) {

        // never delete wrapped object (non-copyable, CPP ownership or private destructor)
        //qDebug() << "NOT deleting instance of QQmlApplicationEngine";

    }

}

// initialization of signal forwarding

void QQmlApplicationEngine_Wrapper::initConnections() {

    //setObjectName("QQmlApplicationEngine_Wrapper");

    // tell script handler that this wrapper needs to be deleted if the engine is deleted:
    handler.registerWrapper(*this);


    // wrapped object is a QObject and not a wrapper for a null pointer:
    // wrapper is managed by the QObject as child:
    if (hasWrapped()) {
        QJSEngine::setObjectOwnership(this, QJSEngine::CppOwnership);
    }


    if (hasWrapped()) {

        // set parent of wrapper to wrapped:
        // wrapper can be looked up for object:
        QVariant vThis = QVariant::fromValue(this);
        getWrapped()->setProperty("__wrapper__",  vThis);

        // make sure wrapper is deleted when object is deleted:
        // make sure wrapper stays alive as long as the wrapped stays alive::
        QObject::setParent(getWrapped());

        // set up signal forwarding:

        connect(
            getWrapped(),
            SIGNAL(objectCreated(QObject*, const QUrl&)),
            this,
            SLOT(objectCreatedEmitter(QObject*, const QUrl&))
        );

        connect(
            getWrapped(),
            SIGNAL(objectCreationFailed(const QUrl&)),
            this,
            SLOT(objectCreationFailedEmitter(const QUrl&))
        );

        /*
        connect(
          getWrapped(),
          SIGNAL(destroyed(QObject*)),
          &handler,
          SLOT(slotDestroyed(QObject*))
        );
        */

    }
}


// constructors:

// Class: QQmlApplicationEngine
// Function:
// Source:
// Static: false
// Parameters: 2
// preceding Parameters: -1
QQmlApplicationEngine_Wrapper::QQmlApplicationEngine_Wrapper

(

    // RJSApi:
    QObject* h
    ,
    const QJSValue&
    a1,
    const QJSValue&
    a2
)

    : RJSWrapperObj(*(RJSApi*)h)

{

    //RDebug::incCounter(QString("QQmlApplicationEngine_Wrapper_") + handler.getEngine()->objectName());
    //RDebug::incCounter(QString("QQmlApplicationEngine_Wrapper"));

    // check parameter types:
    if (
        RJSHelper::is_QUrl(handler, a1
                          )

        && RJSHelper::is_QObject_ptr(handler, a2
                                     , true

                                    )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: url (QUrl)

        QUrl a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QUrl(handler, a1);

        // convert js parameter to cpp: parent (QObject)


        // pointer:
        QObject*
        a2_cpp;


        if (a2.isUndefined()) {
            a2_cpp = nullptr;
        }
        else {
            a2_cpp = RJSHelper::js2cpp_QObject_ptr(handler, a2);
        }


        // call function:

        // construct wrapper:


        wrapped = new QQmlApplicationEngine(
            a1_cpp
            , a2_cpp

        );
        wrappedCreated = true;


        // signal forwarding:
        // TODO
        //connect(wrapped, SIGNAL(triggered(bool)), this, SLOT(triggeredEmitter(bool)));
        initConnections();
        return;


    }

    // check parameter types:
    if (
        RJSHelper::is_QString(handler, a1
                             )

        && RJSHelper::is_QObject_ptr(handler, a2
                                     , true

                                    )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: filePath (QString)

        QString a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QString(handler, a1);

        // convert js parameter to cpp: parent (QObject)


        // pointer:
        QObject*
        a2_cpp;


        if (a2.isUndefined()) {
            a2_cpp = nullptr;
        }
        else {
            a2_cpp = RJSHelper::js2cpp_QObject_ptr(handler, a2);
        }


        // call function:

        // construct wrapper:


        wrapped = new QQmlApplicationEngine(
            a1_cpp
            , a2_cpp

        );
        wrappedCreated = true;


        // signal forwarding:
        // TODO
        //connect(wrapped, SIGNAL(triggered(bool)), this, SLOT(triggeredEmitter(bool)));
        initConnections();
        return;


    }

    // check parameter types:
    if (
        RJSHelper::is_QObject_ptr(handler, a1
                                  , true

                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: parent (QObject)


        // pointer:
        QObject*
        a1_cpp;


        if (a1.isUndefined()) {
            a1_cpp = nullptr;
        }
        else {
            a1_cpp = RJSHelper::js2cpp_QObject_ptr(handler, a1);
        }


        // call function:

        // construct wrapper:


        wrapped = new QQmlApplicationEngine(
            a1_cpp

        );
        wrappedCreated = true;


        // signal forwarding:
        // TODO
        //connect(wrapped, SIGNAL(triggered(bool)), this, SLOT(triggeredEmitter(bool)));
        initConnections();
        return;


    }

    // no constructor without arguments defined
    // allow constructor for prototype objects without args:
    if (
        a1.isUndefined()
        && a2.isUndefined()

    ) {
        wrapped = nullptr;
        wrappedCreated = false;
        return;
    }


    qWarning() << "no matching constructor variant found for QQmlApplicationEngine";
    wrapped = nullptr;
    wrappedCreated = false;
    handler.trace();

}


// non-static functions:

// Class: QQmlApplicationEngine
// Function: objectName
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::objectName
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();
        QString res =

            w->objectName(

            );

        // return type: QString

        return RJSHelper::cpp2js_QString(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for objectName";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: setObjectName
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::setObjectName
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QString(handler, a1
                             )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: name (QString)

        QString a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QString(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();

        w->setObjectName(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setObjectName";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: isWidgetType
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::isWidgetType
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();
        bool res =

            w->isWidgetType(

            );

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for isWidgetType";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: isWindowType
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::isWindowType
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();
        bool res =

            w->isWindowType(

            );

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for isWindowType";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: signalsBlocked
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::signalsBlocked
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();
        bool res =

            w->signalsBlocked(

            );

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for signalsBlocked";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: blockSignals
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::blockSignals
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_bool(handler, a1
                          )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: b (bool)

        bool a1_cpp;

        a1_cpp = RJSHelper::js2cpp_bool(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();
        bool res =

            w->blockSignals(
                a1_cpp

            );

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for blockSignals";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: findChild
// Source: QObject
// Static: false
// Parameters: 2
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::findChild
(

    const QJSValue&
    a1,
    const QJSValue&
    a2
)

const

{

    // check parameter types:
    if (
        RJSHelper::is_QString(handler, a1
                              , true

                             )

        && RJSHelper::is_Qt_FindChildOptions(handler, a2
                , true

                                            )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: aName (QString)

        QString a1_cpp;


        if (a1.isUndefined()) {
            a1_cpp = QString();
        }
        else {
            a1_cpp = RJSHelper::js2cpp_QString(handler, a1);
        }

        // convert js parameter to cpp: options (Qt::FindChildOptions)

        Qt::FindChildOptions a2_cpp;


        if (a2.isUndefined()) {
            a2_cpp = Qt::FindChildrenRecursively;
        }
        else {
            a2_cpp = RJSHelper::js2cpp_Qt_FindChildOptions(handler, a2);
        }


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();
        QObject* res =

            w->findChild<QObject*>(
                a1_cpp
                , a2_cpp

            );

        // return type: QObject*

        return RJSHelper::cpp2js_QObject(
                   handler,
                   // non-copyable: true
                   res

               );

    }

    qWarning() << "no matching function variant found for findChild";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: children
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::children
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();

        // return type is reference:
        // use pointer instead 3:
        const QObjectList* res =
            &
            w->children(

            );

        // return type: const QObjectList&

        return RJSHelper::cpp2js_QObjectList(
                   handler,
                   // non-copyable: false
                   // return type is reference, type is copyable:
                   // convert pointer back to reference:
                   *res

               );

    }

    qWarning() << "no matching function variant found for children";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: setParent
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::setParent
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QObject_ptr(handler, a1
                                  , true

                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: parent (QObject)


        // pointer:
        QObject*
        a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QObject_ptr(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();

        w->setParent(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setParent";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: installEventFilter
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::installEventFilter
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QObject_ptr(handler, a1
                                  , true

                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: filterObj (QObject)


        // pointer:
        QObject*
        a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QObject_ptr(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();

        w->installEventFilter(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for installEventFilter";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: removeEventFilter
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::removeEventFilter
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QObject_ptr(handler, a1
                                  , true

                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: obj (QObject)


        // pointer:
        QObject*
        a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QObject_ptr(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();

        w->removeEventFilter(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for removeEventFilter";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: dumpObjectTree
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::dumpObjectTree
(

)

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();

        w->dumpObjectTree(

        );

        return QJSValue();

    }

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();

        w->dumpObjectTree(

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for dumpObjectTree";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: dumpObjectInfo
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::dumpObjectInfo
(

)

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();

        w->dumpObjectInfo(

        );

        return QJSValue();

    }

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();

        w->dumpObjectInfo(

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for dumpObjectInfo";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: setProperty
// Source: QObject
// Static: false
// Parameters: 2
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::setProperty
(

    const QJSValue&
    a1,
    const QJSValue&
    a2
)

{

    // check parameter types:
    if (
        RJSHelper::is_char_ptr(handler, a1
                               , true

                              )

        && RJSHelper::is_QVariant(handler, a2
                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: name (char)


        // char pointer string:
        QByteArray a1_ba = RJSHelper::js2cpp_char_ptr(handler, a1).toLocal8Bit();
        const char* a1_cpp = a1_ba.constData();

        // convert js parameter to cpp: value (QVariant)

        QVariant a2_cpp;

        a2_cpp = RJSHelper::js2cpp_QVariant(handler, a2);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();
        bool res =

            w->setProperty(
                a1_cpp
                , a2_cpp

            );

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for setProperty";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: property
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::property
(

    const QJSValue&
    a1
)

const

{

    // check parameter types:
    if (
        RJSHelper::is_char_ptr(handler, a1
                               , true

                              )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: name (char)


        // char pointer string:
        QByteArray a1_ba = RJSHelper::js2cpp_char_ptr(handler, a1).toLocal8Bit();
        const char* a1_cpp = a1_ba.constData();


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();
        QVariant res =

            w->property(
                a1_cpp

            );

        // return type: QVariant

        return RJSHelper::cpp2js_QVariant(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for property";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: dynamicPropertyNames
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::dynamicPropertyNames
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();
        QList<QByteArray> res =

            w->dynamicPropertyNames(

            );

        // return type: QList<QByteArray>

        return RJSHelper::cpp2js_QList_QByteArray(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for dynamicPropertyNames";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: parent
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::parent
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();
        QObject* res =

            w->parent(

            );

        // return type: QObject*

        return RJSHelper::cpp2js_QObject(
                   handler,
                   // non-copyable: true
                   res

               );

    }

    qWarning() << "no matching function variant found for parent";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: deleteLater
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::deleteLater
(

)

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();

        w->deleteLater(

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for deleteLater";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: rootContext
// Source: QQmlEngine
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::rootContext
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();
        QQmlContext* res =

            w->rootContext(

            );

        // return type: QQmlContext*

        return RJSHelper::cpp2js_QQmlContext(
                   handler,
                   // non-copyable: true
                   res

               );

    }

    qWarning() << "no matching function variant found for rootContext";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: clearComponentCache
// Source: QQmlEngine
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::clearComponentCache
(

)

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();

        w->clearComponentCache(

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for clearComponentCache";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: trimComponentCache
// Source: QQmlEngine
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::trimComponentCache
(

)

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();

        w->trimComponentCache(

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for trimComponentCache";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: clearSingletons
// Source: QQmlEngine
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::clearSingletons
(

)

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();

        w->clearSingletons(

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for clearSingletons";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: importPathList
// Source: QQmlEngine
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::importPathList
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();
        QStringList res =

            w->importPathList(

            );

        // return type: QStringList

        return RJSHelper::cpp2js_QStringList(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for importPathList";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: setImportPathList
// Source: QQmlEngine
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::setImportPathList
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QStringList(handler, a1
                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: paths (QStringList)

        QStringList a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QStringList(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();

        w->setImportPathList(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setImportPathList";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: addImportPath
// Source: QQmlEngine
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::addImportPath
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QString(handler, a1
                             )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: dir (QString)

        QString a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QString(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();

        w->addImportPath(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for addImportPath";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: pluginPathList
// Source: QQmlEngine
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::pluginPathList
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();
        QStringList res =

            w->pluginPathList(

            );

        // return type: QStringList

        return RJSHelper::cpp2js_QStringList(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for pluginPathList";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: setPluginPathList
// Source: QQmlEngine
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::setPluginPathList
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QStringList(handler, a1
                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: paths (QStringList)

        QStringList a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QStringList(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();

        w->setPluginPathList(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setPluginPathList";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: addPluginPath
// Source: QQmlEngine
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::addPluginPath
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QString(handler, a1
                             )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: dir (QString)

        QString a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QString(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();

        w->addPluginPath(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for addPluginPath";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: addNamedBundle
// Source: QQmlEngine
// Static: false
// Parameters: 2
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::addNamedBundle
(

    const QJSValue&
    a1,
    const QJSValue&
    a2
)

{

    // check parameter types:
    if (
        RJSHelper::is_QString(handler, a1
                             )

        && RJSHelper::is_QString(handler, a2
                                )


    ) {

        // prepare parameters:

        // convert js parameter to cpp:  (QString)

        QString a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QString(handler, a1);

        // convert js parameter to cpp:  (QString)

        QString a2_cpp;

        a2_cpp = RJSHelper::js2cpp_QString(handler, a2);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();
        bool res =

            w->addNamedBundle(
                a1_cpp
                , a2_cpp

            );

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for addNamedBundle";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: baseUrl
// Source: QQmlEngine
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::baseUrl
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();
        QUrl res =

            w->baseUrl(

            );

        // return type: QUrl

        return RJSHelper::cpp2js_QUrl(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for baseUrl";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: setBaseUrl
// Source: QQmlEngine
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::setBaseUrl
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QUrl(handler, a1
                          )


    ) {

        // prepare parameters:

        // convert js parameter to cpp:  (QUrl)

        QUrl a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QUrl(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();

        w->setBaseUrl(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setBaseUrl";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: outputWarningsToStandardError
// Source: QQmlEngine
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::outputWarningsToStandardError
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();
        bool res =

            w->outputWarningsToStandardError(

            );

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for outputWarningsToStandardError";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: setOutputWarningsToStandardError
// Source: QQmlEngine
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::setOutputWarningsToStandardError
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_bool(handler, a1
                          )


    ) {

        // prepare parameters:

        // convert js parameter to cpp:  (bool)

        bool a1_cpp;

        a1_cpp = RJSHelper::js2cpp_bool(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();

        w->setOutputWarningsToStandardError(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setOutputWarningsToStandardError";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: retranslate
// Source: QQmlEngine
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::retranslate
(

)

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();

        w->retranslate(

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for retranslate";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: rootObjects
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::rootObjects
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();
        QList<QObject*> res =

            w->rootObjects(

            );

        // return type: QList<QObject*>

        return RJSHelper::cpp2js_QList_QObject_ptr(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for rootObjects";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: load
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::load
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QUrl(handler, a1
                          )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: url (QUrl)

        QUrl a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QUrl(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();

        w->load(
            a1_cpp

        );

        return QJSValue();

    }

    // check parameter types:
    if (
        RJSHelper::is_QString(handler, a1
                             )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: filePath (QString)

        QString a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QString(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();

        w->load(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for load";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: setInitialProperties
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::setInitialProperties
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QVariantMap(handler, a1
                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: initialProperties (QVariantMap)

        QVariantMap a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QVariantMap(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();

        w->setInitialProperties(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setInitialProperties";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: setExtraFileSelectors
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::setExtraFileSelectors
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QStringList(handler, a1
                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: extraFileSelectors (QStringList)

        QStringList a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QStringList(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();

        w->setExtraFileSelectors(
            a1_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setExtraFileSelectors";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: loadData
// Source:
// Static: false
// Parameters: 2
// preceding Parameters: -1

QJSValue
QQmlApplicationEngine_Wrapper::loadData
(

    const QJSValue&
    a1,
    const QJSValue&
    a2
)

{

    // check parameter types:
    if (
        RJSHelper::is_QByteArray(handler, a1
                                )

        && RJSHelper::is_QUrl(handler, a2
                              , true

                             )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: data (QByteArray)

        QByteArray a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QByteArray(handler, a1);

        // convert js parameter to cpp: url (QUrl)

        QUrl a2_cpp;


        if (a2.isUndefined()) {
            a2_cpp = QUrl();
        }
        else {
            a2_cpp = RJSHelper::js2cpp_QUrl(handler, a2);
        }


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QQmlApplicationEngine* w = getWrapped();

        w->loadData(
            a1_cpp
            , a2_cpp

        );

        return QJSValue();

    }

    qWarning() << "no matching function variant found for loadData";
    handler.trace();
    return QJSValue();

}

// Class: QQmlApplicationEngine
// Function: objectCreated
// Source:
// Static: false
// Parameters: 2
// preceding Parameters: -1

// signal emitter: called when signal is emitted from wrapped object:
void
QQmlApplicationEngine_Wrapper::objectCreatedEmitter(
    QObject* object, const QUrl& url
) {
    // convert cpp parameters to js:

    // parameter: object (QObject)



    QJSValue a1_js = RJSHelper::cpp2js_QObject(
                         handler,
                         object
                     );

    // parameter: url (QUrl)



    QJSValue a2_js = RJSHelper::cpp2js_QUrl(
                         handler,
                         url
                     );


    emit objectCreated(
        a1_js, a2_js
    );
}

// Class: QQmlApplicationEngine
// Function: objectCreationFailed
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

// signal emitter: called when signal is emitted from wrapped object:
void
QQmlApplicationEngine_Wrapper::objectCreationFailedEmitter(
    const QUrl& url
) {
    // convert cpp parameters to js:

    // parameter: url (QUrl)



    QJSValue a1_js = RJSHelper::cpp2js_QUrl(
                         handler,
                         url
                     );


    emit objectCreationFailed(
        a1_js
    );
}


// member functions for static properties, forward to static function



// protected overwritten functions / events and their public invokable counterparts:

