
// Auto generated

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

#include "qsettings_wrapper.h"


// list of registered base casters for this wrapper class:
QList<RJSBasecaster_QSettings*> QSettings_Wrapper::basecasters_QSettings;

// static functions implementation in singleton wrapper:

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

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

}

// Class: QSettings
// Function: setDefaultFormat
// Source:
// Static: true
// Parameters: 1
// preceding Parameters: -1

QJSValue
QSettings_WrapperSingleton::setDefaultFormat
(

    const QJSValue&
    a1
)

{

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: format (QSettings::Format)

        QSettings::Format a1_cpp;

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


        // call function:

        // static member function:
        // call base class static function:

        // call static member function:
        QSettings::setDefaultFormat(
            a1_cpp

        );

        return QJSValue();

    }

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

}

// Class: QSettings
// Function: defaultFormat
// Source:
// Static: true
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSettings_WrapperSingleton::defaultFormat
(

)

{

    {


        // call function:

        // static member function:
        // call base class static function:
        QSettings::Format res =

            // call static member function:
            QSettings::defaultFormat(

            );

        // return type: QSettings::Format

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

               );

    }

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

}

// Class: QSettings
// Function: setPath
// Source:
// Static: true
// Parameters: 3
// preceding Parameters: -1

QJSValue
QSettings_WrapperSingleton::setPath
(

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

{

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

        && RJSHelper::is_QSettings_Scope(handler, a2
                                        )

        && RJSHelper::is_QString(handler, a3
                                )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: format (QSettings::Format)

        QSettings::Format a1_cpp;

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

        // convert js parameter to cpp: scope (QSettings::Scope)

        QSettings::Scope a2_cpp;

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

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

        QString a3_cpp;

        a3_cpp = RJSHelper::js2cpp_QString(handler, a3);


        // call function:

        // static member function:
        // call base class static function:

        // call static member function:
        QSettings::setPath(
            a1_cpp
            , a2_cpp
            , a3_cpp

        );

        return QJSValue();

    }

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

}

#ifndef QT_NO_QOBJECT

#endif

void QSettings_Wrapper::init(RJSApi& handler) {

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


    QJSEngine* engine = handler.getEngine();


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

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



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



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

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

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

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

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

*/


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

    // signal forwarding:
    initConnections();
}


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

    //qDebug() << "QSettings_Wrapper::~QSettings_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 QSettings";

    }

}

// initialization of signal forwarding

void QSettings_Wrapper::initConnections() {

    //setObjectName("QSettings_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(destroyed(QObject*)),
          &handler,
          SLOT(slotDestroyed(QObject*))
        );
        */

    }
}


// constructors:

// Class: QSettings
// Function:
// Source:
// Static: false
// Parameters: 5
// preceding Parameters: -1
QSettings_Wrapper::QSettings_Wrapper

(

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

    : RJSWrapperObj(*(RJSApi*)h)

{

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

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

        && RJSHelper::is_QSettings_Scope(handler, a2
                                        )

        && RJSHelper::is_QString(handler, a3
                                )

        && RJSHelper::is_QString(handler, a4
                                 , true

                                )

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

                                    )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: format (QSettings::Format)

        QSettings::Format a1_cpp;

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

        // convert js parameter to cpp: scope (QSettings::Scope)

        QSettings::Scope a2_cpp;

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

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

        QString a3_cpp;

        a3_cpp = RJSHelper::js2cpp_QString(handler, a3);

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

        QString a4_cpp;


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

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


        // pointer:
        QObject*
        a5_cpp;


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


        // call function:

        // construct wrapper:


        wrapped = new QSettings(
            a1_cpp
            , a2_cpp
            , a3_cpp
            , a4_cpp
            , a5_cpp

        );
        wrappedCreated = true;


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


    }

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

        && RJSHelper::is_QString(handler, a2
                                )

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

                                )

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

                                    )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: scope (QSettings::Scope)

        QSettings::Scope a1_cpp;

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

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

        QString a2_cpp;

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

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

        QString a3_cpp;


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

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


        // pointer:
        QObject*
        a4_cpp;


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


        // call function:

        // construct wrapper:


        wrapped = new QSettings(
            a1_cpp
            , a2_cpp
            , a3_cpp
            , a4_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_QString(handler, a2
                                 , true

                                )

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

                                    )


    ) {

        // prepare parameters:

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

        QString a1_cpp;

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

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

        QString a2_cpp;


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

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


        // pointer:
        QObject*
        a3_cpp;


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


        // call function:

        // construct wrapper:


        wrapped = new QSettings(
            a1_cpp
            , a2_cpp
            , a3_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_QSettings_Format(handler, a2
                                         )

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

                                    )


    ) {

        // prepare parameters:

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

        QString a1_cpp;

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

        // convert js parameter to cpp: format (QSettings::Format)

        QSettings::Format a2_cpp;

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

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


        // pointer:
        QObject*
        a3_cpp;


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


        // call function:

        // construct wrapper:


        wrapped = new QSettings(
            a1_cpp
            , a2_cpp
            , a3_cpp

        );
        wrappedCreated = true;


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


    }

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

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

                                    )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: scope (QSettings::Scope)

        QSettings::Scope a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QSettings_Scope(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 QSettings(
            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 QSettings(
            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()
        && a3.isUndefined()
        && a4.isUndefined()
        && a5.isUndefined()

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


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

}

#ifndef QT_NO_QOBJECT

#endif


// non-static functions:

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

QJSValue
QSettings_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:
        QSettings* 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: QSettings
// Function: setObjectName
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QSettings_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:
        QSettings* w = getWrapped();

        w->setObjectName(
            a1_cpp

        );

        return QJSValue();

    }

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

}

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

QJSValue
QSettings_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:
        QSettings* 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: QSettings
// Function: isWindowType
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSettings_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:
        QSettings* 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: QSettings
// Function: signalsBlocked
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSettings_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:
        QSettings* 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: QSettings
// Function: blockSignals
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QSettings_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:
        QSettings* 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: QSettings
// Function: findChild
// Source: QObject
// Static: false
// Parameters: 2
// preceding Parameters: -1

QJSValue
QSettings_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:
        QSettings* 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: QSettings
// Function: children
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSettings_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:
        QSettings* 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: QSettings
// Function: setParent
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QSettings_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:
        QSettings* w = getWrapped();

        w->setParent(
            a1_cpp

        );

        return QJSValue();

    }

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

}

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

QJSValue
QSettings_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:
        QSettings* w = getWrapped();

        w->installEventFilter(
            a1_cpp

        );

        return QJSValue();

    }

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

}

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

QJSValue
QSettings_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:
        QSettings* w = getWrapped();

        w->removeEventFilter(
            a1_cpp

        );

        return QJSValue();

    }

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

}

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

QJSValue
QSettings_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:
        QSettings* 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:
        QSettings* w = getWrapped();

        w->dumpObjectTree(

        );

        return QJSValue();

    }

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

}

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

QJSValue
QSettings_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:
        QSettings* 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:
        QSettings* w = getWrapped();

        w->dumpObjectInfo(

        );

        return QJSValue();

    }

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

}

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

QJSValue
QSettings_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:
        QSettings* 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: QSettings
// Function: property
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QSettings_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:
        QSettings* 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: QSettings
// Function: dynamicPropertyNames
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSettings_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:
        QSettings* 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: QSettings
// Function: parent
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSettings_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:
        QSettings* 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: QSettings
// Function: deleteLater
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSettings_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:
        QSettings* w = getWrapped();

        w->deleteLater(

        );

        return QJSValue();

    }

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

}

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

QJSValue
QSettings_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:
        QSettings* w = getWrapped();

        w->clear(

        );

        return QJSValue();

    }

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

}

// Class: QSettings
// Function: sync
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSettings_Wrapper::sync
(

)

{

    {


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

        w->sync(

        );

        return QJSValue();

    }

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

}

// Class: QSettings
// Function: status
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSettings_Wrapper::status
(

)

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

            w->status(

            );

        // return type: QSettings::Status

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

               );

    }

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

}

// Class: QSettings
// Function: isAtomicSyncRequired
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSettings_Wrapper::isAtomicSyncRequired
(

)

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

            w->isAtomicSyncRequired(

            );

        // return type: bool

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

               );

    }

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

}

// Class: QSettings
// Function: setAtomicSyncRequired
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QSettings_Wrapper::setAtomicSyncRequired
(

    const QJSValue&
    a1
)

{

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: enable (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:
        QSettings* w = getWrapped();

        w->setAtomicSyncRequired(
            a1_cpp

        );

        return QJSValue();

    }

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

}

// Class: QSettings
// Function: beginGroup
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QSettings_Wrapper::beginGroup
(

    const QJSValue&
    a1
)

{

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: prefix (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:
        QSettings* w = getWrapped();

        w->beginGroup(
            a1_cpp

        );

        return QJSValue();

    }

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

}

// Class: QSettings
// Function: endGroup
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSettings_Wrapper::endGroup
(

)

{

    {


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

        w->endGroup(

        );

        return QJSValue();

    }

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

}

// Class: QSettings
// Function: group
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSettings_Wrapper::group
(

)

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

            w->group(

            );

        // return type: QString

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

               );

    }

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

}

// Class: QSettings
// Function: beginReadArray
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QSettings_Wrapper::beginReadArray
(

    const QJSValue&
    a1
)

{

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: prefix (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:
        QSettings* w = getWrapped();
        int res =

            w->beginReadArray(
                a1_cpp

            );

        // return type: int

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

               );

    }

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

}

// Class: QSettings
// Function: beginWriteArray
// Source:
// Static: false
// Parameters: 2
// preceding Parameters: -1

QJSValue
QSettings_Wrapper::beginWriteArray
(

    const QJSValue&
    a1,
    const QJSValue&
    a2
)

{

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

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

                            )


    ) {

        // prepare parameters:

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

        QString a1_cpp;

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

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

        int a2_cpp;


        if (a2.isUndefined()) {
            a2_cpp = -1;
        }
        else {
            a2_cpp = RJSHelper::js2cpp_int(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:
        QSettings* w = getWrapped();

        w->beginWriteArray(
            a1_cpp
            , a2_cpp

        );

        return QJSValue();

    }

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

}

// Class: QSettings
// Function: endArray
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSettings_Wrapper::endArray
(

)

{

    {


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

        w->endArray(

        );

        return QJSValue();

    }

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

}

// Class: QSettings
// Function: setArrayIndex
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QSettings_Wrapper::setArrayIndex
(

    const QJSValue&
    a1
)

{

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

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


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

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

        w->setArrayIndex(
            a1_cpp

        );

        return QJSValue();

    }

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

}

// Class: QSettings
// Function: allKeys
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSettings_Wrapper::allKeys
(

)

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

            w->allKeys(

            );

        // return type: QStringList

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

               );

    }

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

}

// Class: QSettings
// Function: childKeys
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSettings_Wrapper::childKeys
(

)

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

            w->childKeys(

            );

        // return type: QStringList

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

               );

    }

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

}

// Class: QSettings
// Function: childGroups
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSettings_Wrapper::childGroups
(

)

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

            w->childGroups(

            );

        // return type: QStringList

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

               );

    }

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

}

// Class: QSettings
// Function: isWritable
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSettings_Wrapper::isWritable
(

)

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

            w->isWritable(

            );

        // return type: bool

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

               );

    }

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

}

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

QJSValue
QSettings_Wrapper::setValue
(

    const QJSValue&
    a1,
    const QJSValue&
    a2
)

{

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

        && RJSHelper::is_QVariant(handler, a2
                                 )


    ) {

        // prepare parameters:

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

        QString a1_cpp;

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

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

        w->setValue(
            a1_cpp
            , a2_cpp

        );

        return QJSValue();

    }

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

}

// Class: QSettings
// Function: value
// Source:
// Static: false
// Parameters: 2
// preceding Parameters: -1

QJSValue
QSettings_Wrapper::value
(

    const QJSValue&
    a1,
    const QJSValue&
    a2
)

const

{

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

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

                                 )


    ) {

        // prepare parameters:

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

        QString a1_cpp;

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

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

        QVariant a2_cpp;


        if (a2.isUndefined()) {
            a2_cpp = QVariant();
        }
        else {
            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:
        QSettings* w = getWrapped();
        QVariant res =

            w->value(
                a1_cpp
                , a2_cpp

            );

        // return type: QVariant

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

               );

    }

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

}

// Class: QSettings
// Function: remove
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QSettings_Wrapper::remove
(

    const QJSValue&
    a1
)

{

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: key (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:
        QSettings* w = getWrapped();

        w->remove(
            a1_cpp

        );

        return QJSValue();

    }

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

}

// Class: QSettings
// Function: contains
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QSettings_Wrapper::contains
(

    const QJSValue&
    a1
)

const

{

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


    ) {

        // prepare parameters:

        // convert js parameter to cpp: key (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:
        QSettings* w = getWrapped();
        bool res =

            w->contains(
                a1_cpp

            );

        // return type: bool

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

               );

    }

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

}

// Class: QSettings
// Function: setFallbacksEnabled
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QSettings_Wrapper::setFallbacksEnabled
(

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

        w->setFallbacksEnabled(
            a1_cpp

        );

        return QJSValue();

    }

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

}

// Class: QSettings
// Function: fallbacksEnabled
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSettings_Wrapper::fallbacksEnabled
(

)

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

            w->fallbacksEnabled(

            );

        // return type: bool

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

               );

    }

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

}

// Class: QSettings
// Function: fileName
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSettings_Wrapper::fileName
(

)

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

            w->fileName(

            );

        // return type: QString

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

               );

    }

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

}

// Class: QSettings
// Function: format
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSettings_Wrapper::format
(

)

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

            w->format(

            );

        // return type: QSettings::Format

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

               );

    }

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

}

// Class: QSettings
// Function: scope
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSettings_Wrapper::scope
(

)

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

            w->scope(

            );

        // return type: QSettings::Scope

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

               );

    }

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

}

// Class: QSettings
// Function: organizationName
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSettings_Wrapper::organizationName
(

)

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

            w->organizationName(

            );

        // return type: QString

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

               );

    }

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

}

// Class: QSettings
// Function: applicationName
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QSettings_Wrapper::applicationName
(

)

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

            w->applicationName(

            );

        // return type: QString

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

               );

    }

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

}

#ifndef QT_NO_QOBJECT

#endif


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



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

