
// Auto generated

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

#include "qvariant_wrapper.h"


// list of registered base casters for this wrapper class:
QList<RJSBasecaster_QVariant*> QVariant_Wrapper::basecasters_QVariant;

// static functions implementation in singleton wrapper:

#ifndef QT_NO_GEOM_VARIANT

#endif

#if QT_CONFIG(regularexpression)

#endif

#if QT_CONFIG(easingcurve)

#endif

#ifndef QT_BOOTSTRAPPED

#endif

#if QT_CONFIG(itemmodel)

#endif

#ifndef QT_NO_DATASTREAM

#endif

void QVariant_Wrapper::init(RJSApi& handler) {

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


    QJSEngine* engine = handler.getEngine();


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

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



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



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

    QString fileName = ":generator/js/QVariant.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:
QVariant_Wrapper::QVariant_Wrapper(QJSEngine* e) : wrapped(nullptr), wrappedCreated(false) {
        //setObjectName("QVariant_Wrapper");
        setEngine(e);

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

*/


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

    // signal forwarding:
    initConnections();
}


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

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

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


    if (wrappedCreated) {

        // delete wrapped object (copyable, JS ownership)
        //qDebug() << "deleting instance of QVariant";
        delete wrapped;

    }

}

// initialization of signal forwarding

void QVariant_Wrapper::initConnections() {

    //setObjectName("QVariant_Wrapper");

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


    // wrapped object is not a QObject:
    // wrapper is managed by script engine:
    //QJSEngine::setObjectOwnership(this, QJSEngine::CppOwnership);


    if (hasWrapped()) {

        // set up signal forwarding:

    }
}


// constructors:

// Class: QVariant
// Function:
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1
QVariant_Wrapper::QVariant_Wrapper

(

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

    : RJSWrapperObj(*(RJSApi*)h)

{

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

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


    ) {

        // prepare parameters:

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

        QVariant a1_cpp;

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


        // call function:

        // construct wrapper:


        wrapped = new QVariant(
            a1_cpp

        );
        wrappedCreated = true;


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


    }

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: i (int)

        int a1_cpp;

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


        // call function:

        // construct wrapper:


        wrapped = new QVariant(
            a1_cpp

        );
        wrappedCreated = true;


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


    }

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: ui (uint)

        uint a1_cpp;

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


        // call function:

        // construct wrapper:


        wrapped = new QVariant(
            a1_cpp

        );
        wrappedCreated = true;


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


    }

    // 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:

        // construct wrapper:


        wrapped = new QVariant(
            a1_cpp

        );
        wrappedCreated = true;


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


    }

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: d (double)

        double a1_cpp;

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


        // call function:

        // construct wrapper:


        wrapped = new QVariant(
            a1_cpp

        );
        wrappedCreated = true;


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


    }

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: f (float)

        float a1_cpp;

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


        // call function:

        // construct wrapper:


        wrapped = new QVariant(
            a1_cpp

        );
        wrappedCreated = true;


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


    }

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


    ) {

        // prepare parameters:

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

        QByteArray a1_cpp;

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


        // call function:

        // construct wrapper:


        wrapped = new QVariant(
            a1_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
                             )


    ) {

        // prepare parameters:

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

        QString a1_cpp;

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


        // call function:

        // construct wrapper:


        wrapped = new QVariant(
            a1_cpp

        );
        wrappedCreated = true;


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


    }

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


    ) {

        // prepare parameters:

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

        QStringList a1_cpp;

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


        // call function:

        // construct wrapper:


        wrapped = new QVariant(
            a1_cpp

        );
        wrappedCreated = true;


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


    }

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: qchar (QChar)

        QChar a1_cpp;

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


        // call function:

        // construct wrapper:


        wrapped = new QVariant(
            a1_cpp

        );
        wrappedCreated = true;


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


    }

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: date (QDate)

        QDate a1_cpp;

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


        // call function:

        // construct wrapper:


        wrapped = new QVariant(
            a1_cpp

        );
        wrappedCreated = true;


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


    }

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: time (QTime)

        QTime a1_cpp;

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


        // call function:

        // construct wrapper:


        wrapped = new QVariant(
            a1_cpp

        );
        wrappedCreated = true;


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


    }

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: datetime (QDateTime)

        QDateTime a1_cpp;

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


        // call function:

        // construct wrapper:


        wrapped = new QVariant(
            a1_cpp

        );
        wrappedCreated = true;


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


    }

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: list (QList<QVariant>)

        QList<QVariant> a1_cpp;

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


        // call function:

        // construct wrapper:


        wrapped = new QVariant(
            a1_cpp

        );
        wrappedCreated = true;


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


    }

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: size (QSize)

        QSize a1_cpp;

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


        // call function:

        // construct wrapper:


        wrapped = new QVariant(
            a1_cpp

        );
        wrappedCreated = true;


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


    }

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: size (QSizeF)

        QSizeF a1_cpp;

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


        // call function:

        // construct wrapper:


        wrapped = new QVariant(
            a1_cpp

        );
        wrappedCreated = true;


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


    }

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: pt (QPoint)

        QPoint a1_cpp;

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


        // call function:

        // construct wrapper:


        wrapped = new QVariant(
            a1_cpp

        );
        wrappedCreated = true;


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


    }

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: pt (QPointF)

        QPointF a1_cpp;

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


        // call function:

        // construct wrapper:


        wrapped = new QVariant(
            a1_cpp

        );
        wrappedCreated = true;


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


    }

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: rect (QRect)

        QRect a1_cpp;

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


        // call function:

        // construct wrapper:


        wrapped = new QVariant(
            a1_cpp

        );
        wrappedCreated = true;


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


    }

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: rect (QRectF)

        QRectF a1_cpp;

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


        // call function:

        // construct wrapper:


        wrapped = new QVariant(
            a1_cpp

        );
        wrappedCreated = true;


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


    }

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: locale (QLocale)

        QLocale a1_cpp;

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


        // call function:

        // construct wrapper:


        wrapped = new QVariant(
            a1_cpp

        );
        wrappedCreated = true;


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


    }

    // 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:

        // construct wrapper:


        wrapped = new QVariant(
            a1_cpp

        );
        wrappedCreated = true;


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


    }

    {


        // call function:

        // construct wrapper:


        wrapped = new QVariant(

        );
        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()

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


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

}

#ifndef QT_NO_GEOM_VARIANT

#endif

#if QT_CONFIG(regularexpression)

#endif

#if QT_CONFIG(easingcurve)

#endif

#ifndef QT_BOOTSTRAPPED

#endif

#if QT_CONFIG(itemmodel)

#endif

#ifndef QT_NO_DATASTREAM

#endif


// non-static functions:

// Class: QVariant
// Function: swap
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::swap
(

    const QJSValue&
    a1
)

{

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


    ) {

        // prepare parameters:

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

        QVariant a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QVariant(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:
        QVariant* w = getWrapped();

        w->swap(
            a1_cpp

        );

        return QJSValue();

    }

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

}

// Class: QVariant
// Function: userType
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::userType
(

)

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:
        QVariant* w = getWrapped();
        int res =

            w->userType(

            );

        // return type: int

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

               );

    }

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

}

// Class: QVariant
// Function: typeId
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::typeId
(

)

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:
        QVariant* w = getWrapped();
        int res =

            w->typeId(

            );

        // return type: int

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

               );

    }

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

}

// Class: QVariant
// Function: isValid
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::isValid
(

)

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:
        QVariant* w = getWrapped();
        bool res =

            w->isValid(

            );

        // return type: bool

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

               );

    }

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

}

// Class: QVariant
// Function: isNull
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::isNull
(

)

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:
        QVariant* w = getWrapped();
        bool res =

            w->isNull(

            );

        // return type: bool

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

               );

    }

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

}

// Class: QVariant
// Function: clear
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::clear
(

)

{

    {


        // 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:
        QVariant* w = getWrapped();

        w->clear(

        );

        return QJSValue();

    }

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

}

// Class: QVariant
// Function: detach
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::detach
(

)

{

    {


        // 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:
        QVariant* w = getWrapped();

        w->detach(

        );

        return QJSValue();

    }

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

}

// Class: QVariant
// Function: isDetached
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::isDetached
(

)

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:
        QVariant* w = getWrapped();
        bool res =

            w->isDetached(

            );

        // return type: bool

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

               );

    }

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

}

// Class: QVariant
// Function: toInt
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::toInt
(

)

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:
        QVariant* w = getWrapped();
        int res =

            w->toInt(

            );

        // return type: int

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

               );

    }

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

}

// Class: QVariant
// Function: toUInt
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::toUInt
(

)

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:
        QVariant* w = getWrapped();
        uint res =

            w->toUInt(

            );

        // return type: uint

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

               );

    }

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

}

// Class: QVariant
// Function: toBool
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::toBool
(

)

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:
        QVariant* w = getWrapped();
        bool res =

            w->toBool(

            );

        // return type: bool

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

               );

    }

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

}

// Class: QVariant
// Function: toDouble
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::toDouble
(

)

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:
        QVariant* w = getWrapped();
        double res =

            w->toDouble(

            );

        // return type: double

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

               );

    }

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

}

// Class: QVariant
// Function: toFloat
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::toFloat
(

)

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:
        QVariant* w = getWrapped();
        float res =

            w->toFloat(

            );

        // return type: float

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

               );

    }

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

}

// Class: QVariant
// Function: toReal
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::toReal
(

)

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:
        QVariant* w = getWrapped();
        qreal res =

            w->toReal(

            );

        // return type: qreal

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

               );

    }

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

}

// Class: QVariant
// Function: toByteArray
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::toByteArray
(

)

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:
        QVariant* w = getWrapped();
        QByteArray res =

            w->toByteArray(

            );

        // return type: QByteArray

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

               );

    }

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

}

// Class: QVariant
// Function: toString
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::toString
(

)

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:
        QVariant* w = getWrapped();
        QString res =

            w->toString(

            );

        // return type: QString

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

               );

    }

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

}

// Class: QVariant
// Function: toStringList
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::toStringList
(

)

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:
        QVariant* w = getWrapped();
        QStringList res =

            w->toStringList(

            );

        // return type: QStringList

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

               );

    }

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

}

// Class: QVariant
// Function: toChar
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::toChar
(

)

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:
        QVariant* w = getWrapped();
        QChar res =

            w->toChar(

            );

        // return type: QChar

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

               );

    }

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

}

// Class: QVariant
// Function: toDate
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::toDate
(

)

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:
        QVariant* w = getWrapped();
        QDate res =

            w->toDate(

            );

        // return type: QDate

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

               );

    }

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

}

// Class: QVariant
// Function: toTime
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::toTime
(

)

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:
        QVariant* w = getWrapped();
        QTime res =

            w->toTime(

            );

        // return type: QTime

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

               );

    }

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

}

// Class: QVariant
// Function: toDateTime
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::toDateTime
(

)

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:
        QVariant* w = getWrapped();
        QDateTime res =

            w->toDateTime(

            );

        // return type: QDateTime

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

               );

    }

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

}

// Class: QVariant
// Function: toList
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::toList
(

)

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:
        QVariant* w = getWrapped();
        QList<QVariant> res =

            w->toList(

            );

        // return type: QList<QVariant>

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

               );

    }

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

}

#ifndef QT_NO_GEOM_VARIANT

// Class: QVariant
// Function: toPoint
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::toPoint
(

)

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:
        QVariant* w = getWrapped();
        QPoint res =

            w->toPoint(

            );

        // return type: QPoint

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

               );

    }

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

}

// Class: QVariant
// Function: toPointF
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::toPointF
(

)

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:
        QVariant* w = getWrapped();
        QPointF res =

            w->toPointF(

            );

        // return type: QPointF

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

               );

    }

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

}

// Class: QVariant
// Function: toRect
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::toRect
(

)

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:
        QVariant* w = getWrapped();
        QRect res =

            w->toRect(

            );

        // return type: QRect

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

               );

    }

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

}

// Class: QVariant
// Function: toSize
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::toSize
(

)

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:
        QVariant* w = getWrapped();
        QSize res =

            w->toSize(

            );

        // return type: QSize

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

               );

    }

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

}

// Class: QVariant
// Function: toSizeF
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::toSizeF
(

)

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:
        QVariant* w = getWrapped();
        QSizeF res =

            w->toSizeF(

            );

        // return type: QSizeF

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

               );

    }

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

}

// Class: QVariant
// Function: toRectF
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::toRectF
(

)

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:
        QVariant* w = getWrapped();
        QRectF res =

            w->toRectF(

            );

        // return type: QRectF

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

               );

    }

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

}

#endif

// Class: QVariant
// Function: toLocale
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::toLocale
(

)

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:
        QVariant* w = getWrapped();
        QLocale res =

            w->toLocale(

            );

        // return type: QLocale

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

               );

    }

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

}

#if QT_CONFIG(regularexpression)

#endif

#if QT_CONFIG(easingcurve)

#endif

#ifndef QT_BOOTSTRAPPED

// Class: QVariant
// Function: toUrl
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::toUrl
(

)

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:
        QVariant* w = getWrapped();
        QUrl res =

            w->toUrl(

            );

        // return type: QUrl

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

               );

    }

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

}

#endif

#if QT_CONFIG(itemmodel)

#endif

#ifndef QT_NO_DATASTREAM

#endif

// Class: QVariant
// Function: setValue
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QVariant_Wrapper::setValue
(

    const QJSValue&
    a1
)

{

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


    ) {

        // prepare parameters:

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

        QVariant a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QVariant(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:
        QVariant* w = getWrapped();

        w->setValue(
            a1_cpp

        );

        return QJSValue();

    }

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


    ) {

        // prepare parameters:

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

        QVariant a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QVariant(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:
        QVariant* w = getWrapped();

        w->setValue(
            a1_cpp

        );

        return QJSValue();

    }

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

}


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



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

