
// Auto generated

#ifndef QQMLENGINE_H_WRAPPER
#define QQMLENGINE_H_WRAPPER

// include header:
//#include "header_h.h"

#include "../RJSHelper.h"


#include "RJSWrapperObj.h"

#include <QQmlComponent>

#include <QQmlExpression>

#include <QQmlContext>

#include <QUrl>

#include <QNetworkAccessManager>

#include <QQmlNetworkAccessManagerFactory>

#include <QQmlIncubationController>

#include <QQmlEngine>

#include "RJSType.h"

#include <QQmlEngine>

// singleton class wrapper for static functions:
class QTJSAPI_EXPORT QQmlEngine_WrapperSingleton: public QObject {
    Q_OBJECT
    QML_INTERFACE

    // constants:


    // static properties:


public:
    //Q_INVOKABLE
    QQmlEngine_WrapperSingleton(RJSApi& h)
        : QObject(),
          handler(h)

    {}



    // static functions:

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

public:
    Q_INVOKABLE

    QJSValue
    tr
    (


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

    )

    ;

#if QT_DEPRECATED_SINCE(6,0)

#endif

#if QT_CONFIG(library)

#if QT_DEPRECATED_SINCE(6,4)

#endif

#endif


private:
    RJSApi& handler;
    //static QQmlEngine_WrapperSingleton* _singleInstance;

    // constants:

};

// static functions implementation in singleton wrapper:

// wrapper class for QQmlEngine
class QTJSAPI_EXPORT QQmlEngine_Wrapper : public RJSWrapperObj {


    Q_OBJECT
    QML_INTERFACE

    Q_PROPERTY(

        QJSValue
        objectName READ objectName WRITE setObjectName
    )

    Q_PROPERTY(

        QJSValue
        uiLanguage READ uiLanguage
    )


private:
    // disable copy constructor:
    QQmlEngine_Wrapper(const QQmlEngine_Wrapper&);

public:
    // initialization of QQmlEngine:
    static void init(RJSApi& handler);


    static QQmlEngine* castToBase(void* vp, /*RJSType ID*/ int t) {

        // check if pointer points to derrived type:

        if (t==RJSType_QQmlApplicationEngine::getIdStatic()) {
            return (QQmlEngine*)(QQmlApplicationEngine*)vp;
        }


        // hook for modules to cast from other types to base QQmlEngine:
        for (int i=0; i<basecasters_QQmlEngine.length(); i++) {
            RJSBasecaster_QQmlEngine* basecaster = basecasters_QQmlEngine[i];
            QQmlEngine* ret = basecaster->castToBase(t, vp);
            if (ret!=nullptr) {
                return ret;
            }
        }

        // object is a pointer to base class QQmlEngine:
        if (t==RJSType_QQmlEngine::getIdStatic()) {
            return (QQmlEngine*)vp;
        }

        qWarning() << "QQmlEngine_Wrapper::castToBase: type not found: " << RJSHelper::getTypeName(t);

        return nullptr;

    }

    static QQmlEngine* getWrappedBase(RJSWrapper* wrapper) {
        int t = wrapper->getWrappedType();
        void* vp = wrapper->getWrappedVoid();
        if (vp==nullptr) {
            //qWarning() << "getWrapped_QQmlEngine*: wrapper wraps NULL";
        }

        QQmlEngine* ret = castToBase(vp, t);
        if (ret==nullptr && vp!=nullptr) {
            qWarning() << "QQmlEngine*_Wrapper::getWrappedBase: extracted type " << t << "from wrapper is NULL";
        }
        return ret;
    }

    /*
    // special constructor used as prototype:

          Q_INVOKABLE
          QQmlEngine_Wrapper(QJSEngine* e);

    */


    // special constructor to wrap existing object:

    //Q_INVOKABLE
    QQmlEngine_Wrapper(RJSApi& h, QQmlEngine* o, bool wrappedCreated);


    // destructor:

    virtual ~QQmlEngine_Wrapper();

    // initialization of signal forwarding

    void initConnections();


    // constructors:

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

public:
    Q_INVOKABLE
    QQmlEngine_Wrapper

    (


        // RJSApi:
        QObject* h

        ,

        const QJSValue&
        a1
        = QJSValue()

    )

    ;

#if QT_DEPRECATED_SINCE(6,0)

#endif

#if QT_CONFIG(library)

#if QT_DEPRECATED_SINCE(6,4)

#endif

#endif


    // non-static functions:

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

public:
    Q_INVOKABLE

    QJSValue
    objectName
    (


    )

    const

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    setObjectName
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    isWidgetType
    (


    )

    const

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    isWindowType
    (


    )

    const

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    signalsBlocked
    (


    )

    const

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    blockSignals
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    findChild
    (


        const QJSValue&
        a1
        = QJSValue()
          ,
        const QJSValue&
        a2
        = QJSValue()

    )

    const

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    children
    (


    )

    const

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    setParent
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    installEventFilter
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    removeEventFilter
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    dumpObjectTree
    (


    )

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    dumpObjectInfo
    (


    )

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    setProperty
    (


        const QJSValue&
        a1
        = QJSValue()
          ,
        const QJSValue&
        a2
        = QJSValue()

    )

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    property
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    const

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    dynamicPropertyNames
    (


    )

    const

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    parent
    (


    )

    const

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    deleteLater
    (


    )

    ;

    // Class: QQmlEngine
    // Function: collectGarbage
    // Source: QJSEngine
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    collectGarbage
    (


    )

    ;

    // Class: QQmlEngine
    // Function: uiLanguage
    // Source: QJSEngine
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    uiLanguage
    (


    )

    const

    ;

    // Class: QQmlEngine
    // Function: setUiLanguage
    // Source: QJSEngine
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    setUiLanguage
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

    // Class: QQmlEngine
    // Function: uiLanguageChanged
    // Source: QJSEngine
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

    // signal forwarded from wrapped class:
signals:
    void uiLanguageChanged(

    );

    // called when signal is emitted from wrapped class:
public slots:
    void uiLanguageChangedEmitter(

    );

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

public:
    Q_INVOKABLE

    QJSValue
    rootContext
    (


    )

    const

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    clearComponentCache
    (


    )

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    trimComponentCache
    (


    )

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    clearSingletons
    (


    )

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    importPathList
    (


    )

    const

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    setImportPathList
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    addImportPath
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    pluginPathList
    (


    )

    const

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    setPluginPathList
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    addPluginPath
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

#if QT_DEPRECATED_SINCE(6,0)

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

public:
    Q_INVOKABLE

    QJSValue
    addNamedBundle
    (


        const QJSValue&
        a1
        = QJSValue()
          ,
        const QJSValue&
        a2
        = QJSValue()

    )

    ;

#endif

#if QT_CONFIG(library)

#if QT_DEPRECATED_SINCE(6,4)

#endif

#endif

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

public:
    Q_INVOKABLE

    QJSValue
    baseUrl
    (


    )

    const

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    setBaseUrl
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    outputWarningsToStandardError
    (


    )

    const

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    setOutputWarningsToStandardError
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    retranslate
    (


    )

    ;

    // destroy function for non-copyable objects:
    Q_INVOKABLE void destr() {
        if (wrapped!=nullptr) {

            delete wrapped;

            wrapped = nullptr;
        }

    }


    //public:
    // set engine:
    //Q_INVOKABLE void setHandler(RJSApi* h) {
    //  RJSWrapperObj::setHandler(h);
    //}


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



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

public:

    // get type of wrapped object:
    Q_INVOKABLE
    virtual /*RJSType ID*/ int getWrappedType() const {
        return RJSType_QQmlEngine::getIdStatic();
    }

    // return true if wrapped object is owned by C++ (not deleted):
    Q_INVOKABLE
    virtual bool isCppOwnership() const {

        return true;

    }

    // get wrapped object:
    QQmlEngine* getWrapped() {
        if (wrapped!=nullptr) {
            return wrapped;
        }

        return nullptr;
    }

    // get wrapped object (const):
    QQmlEngine* getWrapped() const {
        if (wrapped!=nullptr) {
            return wrapped;
        }

        return nullptr;
    }

    // get wrapped object as void*:
    virtual void* getWrappedVoid() {
        if (wrapped!=nullptr) {
            return wrapped;
        }

        return nullptr;
    }



    bool hasWrapped() const {
        return wrapped!=nullptr

               ;
    }

    Q_INVOKABLE
    bool isNullWrapper() const {
        return !hasWrapped();
    }

    Q_INVOKABLE
    unsigned long long int getAddress() const {
        if (wrapped!=nullptr) {
            return (unsigned long long int)wrapped;
        }

        return (unsigned long long int)0;
    }



    //public slots:
    //void slotDestroyed(QObject* obj) {
    //  qDebug() << "destroying QObject:" << (long int)obj;
    //}



private:
    // wrapped object:
    QQmlEngine* wrapped;



    bool wrappedCreated;

private:
    // list of registered base casters for this wrapper class:
    static QList<RJSBasecaster_QQmlEngine*> basecasters_QQmlEngine;

public:
    static void registerBasecaster_QQmlEngine(RJSBasecaster_QQmlEngine* bc) {
        basecasters_QQmlEngine.append(bc);
    }

};

Q_DECLARE_METATYPE(QQmlEngine_Wrapper*)

Q_DECLARE_INTERFACE(QQmlEngine_Wrapper, "org.qcad.QQmlEngine_Wrapper")


#endif

