
// Auto generated

#ifndef QCOMPLETER_H_WRAPPER
#define QCOMPLETER_H_WRAPPER

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

#include "../RJSHelper.h"


#include "RJSWrapperObj.h"

#include <QWidget>

#include <QQmlEngine>

#include "RJSType.h"

#include <QCompleter>

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

    // constants:


    // static properties:


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

    {}



    // static functions:

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

public:
    Q_INVOKABLE

    QJSValue
    tr
    (


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

    )

    ;

#if QT_CONFIG(stringlistmodel)

#endif


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

    // constants:

};

// static functions implementation in singleton wrapper:

// wrapper class for QCompleter
class QTJSAPI_EXPORT QCompleter_Wrapper : public RJSWrapperObj {


    Q_OBJECT
    QML_INTERFACE

    Q_PROPERTY(

        QJSValue
        objectName READ objectName WRITE setObjectName
    )


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

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


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

        // check if pointer points to derrived type:


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

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

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

        return nullptr;

    }

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

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

    // enums:

    enum CompletionMode {
        PopupCompletion = QCompleter::PopupCompletion,
        UnfilteredPopupCompletion = QCompleter::UnfilteredPopupCompletion,
        InlineCompletion = QCompleter::InlineCompletion,

    };
    Q_ENUM(CompletionMode)

    enum ModelSorting {
        UnsortedModel = QCompleter::UnsortedModel,
        CaseSensitivelySortedModel = QCompleter::CaseSensitivelySortedModel,
        CaseInsensitivelySortedModel = QCompleter::CaseInsensitivelySortedModel,

    };
    Q_ENUM(ModelSorting)

    /*
    // special constructor used as prototype:

          Q_INVOKABLE
          QCompleter_Wrapper(QJSEngine* e);

    */


    // special constructor to wrap existing object:

    //Q_INVOKABLE
    QCompleter_Wrapper(RJSApi& h, QCompleter* o, bool wrappedCreated);


    // destructor:

    virtual ~QCompleter_Wrapper();

    // initialization of signal forwarding

    void initConnections();


    // constructors:

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

public:
    Q_INVOKABLE
    QCompleter_Wrapper

    (


        // RJSApi:
        QObject* h

        ,

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

    )

    ;

#if QT_CONFIG(stringlistmodel)

#endif


    // non-static functions:

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

public:
    Q_INVOKABLE

    QJSValue
    objectName
    (


    )

    const

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    setObjectName
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    isWidgetType
    (


    )

    const

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    isWindowType
    (


    )

    const

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    signalsBlocked
    (


    )

    const

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    blockSignals
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    findChild
    (


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

    )

    const

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    children
    (


    )

    const

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    setParent
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    installEventFilter
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    removeEventFilter
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    dumpObjectTree
    (


    )

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    dumpObjectInfo
    (


    )

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    setProperty
    (


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

    )

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    property
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    const

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    dynamicPropertyNames
    (


    )

    const

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    parent
    (


    )

    const

    ;

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

public:
    Q_INVOKABLE

    QJSValue
    deleteLater
    (


    )

    ;

#if QT_CONFIG(stringlistmodel)

#endif

    // Class: QCompleter
    // Function: setWidget
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    setWidget
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

    // Class: QCompleter
    // Function: widget
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    widget
    (


    )

    const

    ;

    // Class: QCompleter
    // Function: setCompletionMode
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    setCompletionMode
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

    // Class: QCompleter
    // Function: completionMode
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    completionMode
    (


    )

    const

    ;

    // Class: QCompleter
    // Function: setFilterMode
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    setFilterMode
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

    // Class: QCompleter
    // Function: filterMode
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    filterMode
    (


    )

    const

    ;

    // Class: QCompleter
    // Function: setCaseSensitivity
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    setCaseSensitivity
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

    // Class: QCompleter
    // Function: caseSensitivity
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    caseSensitivity
    (


    )

    const

    ;

    // Class: QCompleter
    // Function: setModelSorting
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    setModelSorting
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

    // Class: QCompleter
    // Function: modelSorting
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    modelSorting
    (


    )

    const

    ;

    // Class: QCompleter
    // Function: setCompletionColumn
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    setCompletionColumn
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

    // Class: QCompleter
    // Function: completionColumn
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    completionColumn
    (


    )

    const

    ;

    // Class: QCompleter
    // Function: setCompletionRole
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    setCompletionRole
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

    // Class: QCompleter
    // Function: completionRole
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    completionRole
    (


    )

    const

    ;

    // Class: QCompleter
    // Function: wrapAround
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    wrapAround
    (


    )

    const

    ;

    // Class: QCompleter
    // Function: maxVisibleItems
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    maxVisibleItems
    (


    )

    const

    ;

    // Class: QCompleter
    // Function: setMaxVisibleItems
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    setMaxVisibleItems
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

    // Class: QCompleter
    // Function: completionCount
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    completionCount
    (


    )

    const

    ;

    // Class: QCompleter
    // Function: setCurrentRow
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    setCurrentRow
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

    // Class: QCompleter
    // Function: currentRow
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    currentRow
    (


    )

    const

    ;

    // Class: QCompleter
    // Function: currentCompletion
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    currentCompletion
    (


    )

    const

    ;

    // Class: QCompleter
    // Function: completionPrefix
    // Source:
    // Static: false
    // Parameters: 0
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    completionPrefix
    (


    )

    const

    ;

    // Class: QCompleter
    // Function: setCompletionPrefix
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    setCompletionPrefix
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

    // Class: QCompleter
    // Function: complete
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    complete
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

    // Class: QCompleter
    // Function: setWrapAround
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    setWrapAround
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    ;

    // Class: QCompleter
    // Function: splitPath
    // Source:
    // Static: false
    // Parameters: 1
    // preceding Parameters: -1

public:
    Q_INVOKABLE

    QJSValue
    splitPath
    (


        const QJSValue&
        a1
        = QJSValue()

    )

    const

    ;

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

            delete wrapped;

            wrapped = nullptr;
        }

    }


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


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



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

public:

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

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

        return true;

    }

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

        return nullptr;
    }

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

        return nullptr;
    }

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

        return nullptr;
    }



    bool hasWrapped() const {
        return wrapped!=nullptr

               ;
    }

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

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

        return (unsigned long long int)0;
    }



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



private:
    // wrapped object:
    QCompleter* wrapped;



    bool wrappedCreated;

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

public:
    static void registerBasecaster_QCompleter(RJSBasecaster_QCompleter* bc) {
        basecasters_QCompleter.append(bc);
    }

};

Q_DECLARE_METATYPE(QCompleter_Wrapper*)

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


#endif

