/*
 * Interface wrapper code.
 *
 * Generated by SIP 4.19.3
 */

#include "sipAPIKItemModels.h"

#include <kbreadcrumbselectionmodel.h>

#include <qitemselectionmodel.h>
#include <qobject.h>
#include <qabstractitemmodel.h>
#include <qitemselectionmodel.h>
#include <qitemselectionmodel.h>
#include <qabstractitemmodel.h>
#include <qlist.h>
#include <qmetaobject.h>
#include <qcoreevent.h>
#include <qcoreevent.h>
#include <qcoreevent.h>
#include <qstring.h>
#include <qvariant.h>
#include <qlist.h>
#include <qbytearray.h>
#include <qlist.h>
#include <qnamespace.h>
#include <qthread.h>
#include <qnamespace.h>
#include <qregexp.h>
#include <qregularexpression.h>
#include <qobjectdefs.h>


class sipKBreadcrumbSelectionModel : public  ::KBreadcrumbSelectionModel
{
public:
    sipKBreadcrumbSelectionModel( ::QItemSelectionModel*, ::QObject*);
    sipKBreadcrumbSelectionModel( ::QItemSelectionModel*, ::KBreadcrumbSelectionModel::BreadcrumbTarget, ::QObject*);
    virtual ~sipKBreadcrumbSelectionModel();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
     ::QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool, ::QTimerEvent*);
    void sipProtectVirt_childEvent(bool, ::QChildEvent*);
    void sipProtectVirt_customEvent(bool, ::QEvent*);
    void sipProtectVirt_connectNotify(bool,const  ::QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const  ::QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const  ::QMetaMethod&) const;
    void sipProtect_emitSelectionChanged(const  ::QItemSelection&,const  ::QItemSelection&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const  ::QMetaMethod&);
    void connectNotify(const  ::QMetaMethod&);
    void customEvent( ::QEvent*);
    void childEvent( ::QChildEvent*);
    void timerEvent( ::QTimerEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    bool event( ::QEvent*);
    void clear();
    void reset();
    void select(const  ::QModelIndex&, ::QItemSelectionModel::SelectionFlags);
    void select(const  ::QItemSelection&, ::QItemSelectionModel::SelectionFlags);
    void setCurrentIndex(const  ::QModelIndex&, ::QItemSelectionModel::SelectionFlags);
    void clearCurrentIndex();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKBreadcrumbSelectionModel(const sipKBreadcrumbSelectionModel &);
    sipKBreadcrumbSelectionModel &operator = (const sipKBreadcrumbSelectionModel &);

    char sipPyMethods[13];
};

sipKBreadcrumbSelectionModel::sipKBreadcrumbSelectionModel( ::QItemSelectionModel*a0, ::QObject*a1):  ::KBreadcrumbSelectionModel(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKBreadcrumbSelectionModel::sipKBreadcrumbSelectionModel( ::QItemSelectionModel*a0, ::KBreadcrumbSelectionModel::BreadcrumbTarget a1, ::QObject*a2):  ::KBreadcrumbSelectionModel(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKBreadcrumbSelectionModel::~sipKBreadcrumbSelectionModel()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipKBreadcrumbSelectionModel::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_KItemModels_qt_metaobject(sipPySelf,sipType_KBreadcrumbSelectionModel);

    return  ::KBreadcrumbSelectionModel::metaObject();
}

int sipKBreadcrumbSelectionModel::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id =  ::KBreadcrumbSelectionModel::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_KItemModels_qt_metacall(sipPySelf,sipType_KBreadcrumbSelectionModel,_c,_id,_a);

    return _id;
}

void *sipKBreadcrumbSelectionModel::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_KItemModels_qt_metacast(sipPySelf, sipType_KBreadcrumbSelectionModel, _clname, &sipCpp) ? sipCpp :  ::KBreadcrumbSelectionModel::qt_metacast(_clname));
}

void sipKBreadcrumbSelectionModel::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::KBreadcrumbSelectionModel::disconnectNotify(a0);
        return;
    }

    extern void sipVH_KItemModels_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_KItemModels_8(sipGILState, sipImportedVirtErrorHandlers_KItemModels_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKBreadcrumbSelectionModel::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::KBreadcrumbSelectionModel::connectNotify(a0);
        return;
    }

    extern void sipVH_KItemModels_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_KItemModels_8(sipGILState, sipImportedVirtErrorHandlers_KItemModels_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKBreadcrumbSelectionModel::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::KBreadcrumbSelectionModel::customEvent(a0);
        return;
    }

    extern void sipVH_KItemModels_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_KItemModels_7(sipGILState, sipImportedVirtErrorHandlers_KItemModels_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKBreadcrumbSelectionModel::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
         ::KBreadcrumbSelectionModel::childEvent(a0);
        return;
    }

    extern void sipVH_KItemModels_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_KItemModels_6(sipGILState, sipImportedVirtErrorHandlers_KItemModels_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKBreadcrumbSelectionModel::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::KBreadcrumbSelectionModel::timerEvent(a0);
        return;
    }

    extern void sipVH_KItemModels_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_KItemModels_5(sipGILState, sipImportedVirtErrorHandlers_KItemModels_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipKBreadcrumbSelectionModel::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::KBreadcrumbSelectionModel::eventFilter(a0,a1);

    extern bool sipVH_KItemModels_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_KItemModels_4(sipGILState, sipImportedVirtErrorHandlers_KItemModels_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

bool sipKBreadcrumbSelectionModel::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::KBreadcrumbSelectionModel::event(a0);

    extern bool sipVH_KItemModels_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_KItemModels_3(sipGILState, sipImportedVirtErrorHandlers_KItemModels_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKBreadcrumbSelectionModel::clear()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_clear);

    if (!sipMeth)
    {
         ::KBreadcrumbSelectionModel::clear();
        return;
    }

    extern void sipVH_KItemModels_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_KItemModels_0(sipGILState, sipImportedVirtErrorHandlers_KItemModels_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

void sipKBreadcrumbSelectionModel::reset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_reset);

    if (!sipMeth)
    {
         ::KBreadcrumbSelectionModel::reset();
        return;
    }

    extern void sipVH_KItemModels_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_KItemModels_0(sipGILState, sipImportedVirtErrorHandlers_KItemModels_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

void sipKBreadcrumbSelectionModel::select(const  ::QModelIndex& a0, ::QItemSelectionModel::SelectionFlags a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_select);

    if (!sipMeth)
    {
         ::KBreadcrumbSelectionModel::select(a0,a1);
        return;
    }

    extern void sipVH_KItemModels_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&, ::QItemSelectionModel::SelectionFlags);

    sipVH_KItemModels_1(sipGILState, sipImportedVirtErrorHandlers_KItemModels_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipKBreadcrumbSelectionModel::select(const  ::QItemSelection& a0, ::QItemSelectionModel::SelectionFlags a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_select);

    if (!sipMeth)
    {
         ::KBreadcrumbSelectionModel::select(a0,a1);
        return;
    }

    extern void sipVH_KItemModels_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QItemSelection&, ::QItemSelectionModel::SelectionFlags);

    sipVH_KItemModels_2(sipGILState, sipImportedVirtErrorHandlers_KItemModels_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipKBreadcrumbSelectionModel::setCurrentIndex(const  ::QModelIndex& a0, ::QItemSelectionModel::SelectionFlags a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_setCurrentIndex);

    if (!sipMeth)
    {
         ::KBreadcrumbSelectionModel::setCurrentIndex(a0,a1);
        return;
    }

    extern void sipVH_KItemModels_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&, ::QItemSelectionModel::SelectionFlags);

    sipVH_KItemModels_1(sipGILState, sipImportedVirtErrorHandlers_KItemModels_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipKBreadcrumbSelectionModel::clearCurrentIndex()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_clearCurrentIndex);

    if (!sipMeth)
    {
         ::KBreadcrumbSelectionModel::clearCurrentIndex();
        return;
    }

    extern void sipVH_KItemModels_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_KItemModels_0(sipGILState, sipImportedVirtErrorHandlers_KItemModels_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::QObject* sipKBreadcrumbSelectionModel::sipProtect_sender() const
{
    return  ::QObject::sender();
}

int sipKBreadcrumbSelectionModel::sipProtect_receivers(const char*a0) const
{
    return  ::QObject::receivers(a0);
}

void sipKBreadcrumbSelectionModel::sipProtectVirt_timerEvent(bool sipSelfWasArg, ::QTimerEvent*a0)
{
    (sipSelfWasArg ?  ::QObject::timerEvent(a0) : timerEvent(a0));
}

void sipKBreadcrumbSelectionModel::sipProtectVirt_childEvent(bool sipSelfWasArg, ::QChildEvent*a0)
{
    (sipSelfWasArg ?  ::QObject::childEvent(a0) : childEvent(a0));
}

void sipKBreadcrumbSelectionModel::sipProtectVirt_customEvent(bool sipSelfWasArg, ::QEvent*a0)
{
    (sipSelfWasArg ?  ::QObject::customEvent(a0) : customEvent(a0));
}

void sipKBreadcrumbSelectionModel::sipProtectVirt_connectNotify(bool sipSelfWasArg,const  ::QMetaMethod& a0)
{
    (sipSelfWasArg ?  ::QObject::connectNotify(a0) : connectNotify(a0));
}

void sipKBreadcrumbSelectionModel::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const  ::QMetaMethod& a0)
{
    (sipSelfWasArg ?  ::QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipKBreadcrumbSelectionModel::sipProtect_senderSignalIndex() const
{
    return  ::QObject::senderSignalIndex();
}

bool sipKBreadcrumbSelectionModel::sipProtect_isSignalConnected(const  ::QMetaMethod& a0) const
{
    return  ::QObject::isSignalConnected(a0);
}

void sipKBreadcrumbSelectionModel::sipProtect_emitSelectionChanged(const  ::QItemSelection& a0,const  ::QItemSelection& a1)
{
     ::QItemSelectionModel::emitSelectionChanged(a0,a1);
}


extern "C" {static PyObject *meth_KBreadcrumbSelectionModel_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KBreadcrumbSelectionModel_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipKBreadcrumbSelectionModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_KBreadcrumbSelectionModel, &sipCpp))
        {
             ::QObject*sipRes = 0;

        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
            {
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KBreadcrumbSelectionModel, sipName_sender, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KBreadcrumbSelectionModel_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KBreadcrumbSelectionModel_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipKBreadcrumbSelectionModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_KBreadcrumbSelectionModel, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
        {
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
            Q_ASSERT(pyqt5_get_signal_signature);
        }
        
        QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
        {
            sipRes = sipCpp->receivers(signal_signature.constData());
        }
        #else
        if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
        {
            sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
        }
        #endif
        else if (sipError == sipErrorContinue)
        {
            sipError = sipBadCallableArg(0, a0);
        }

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KBreadcrumbSelectionModel, sipName_receivers, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KBreadcrumbSelectionModel_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KBreadcrumbSelectionModel_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QTimerEvent* a0;
        sipKBreadcrumbSelectionModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KBreadcrumbSelectionModel, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KBreadcrumbSelectionModel, sipName_timerEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KBreadcrumbSelectionModel_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KBreadcrumbSelectionModel_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QChildEvent* a0;
        sipKBreadcrumbSelectionModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KBreadcrumbSelectionModel, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KBreadcrumbSelectionModel, sipName_childEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KBreadcrumbSelectionModel_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KBreadcrumbSelectionModel_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QEvent* a0;
        sipKBreadcrumbSelectionModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KBreadcrumbSelectionModel, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KBreadcrumbSelectionModel, sipName_customEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KBreadcrumbSelectionModel_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KBreadcrumbSelectionModel_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::QMetaMethod* a0;
        sipKBreadcrumbSelectionModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_KBreadcrumbSelectionModel, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KBreadcrumbSelectionModel, sipName_connectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KBreadcrumbSelectionModel_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KBreadcrumbSelectionModel_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::QMetaMethod* a0;
        sipKBreadcrumbSelectionModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_KBreadcrumbSelectionModel, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KBreadcrumbSelectionModel, sipName_disconnectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KBreadcrumbSelectionModel_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KBreadcrumbSelectionModel_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipKBreadcrumbSelectionModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_KBreadcrumbSelectionModel, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KBreadcrumbSelectionModel, sipName_senderSignalIndex, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KBreadcrumbSelectionModel_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KBreadcrumbSelectionModel_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::QMetaMethod* a0;
        const sipKBreadcrumbSelectionModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_KBreadcrumbSelectionModel, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KBreadcrumbSelectionModel, sipName_isSignalConnected, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KBreadcrumbSelectionModel_emitSelectionChanged(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KBreadcrumbSelectionModel_emitSelectionChanged(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::QItemSelection* a0;
        const  ::QItemSelection* a1;
        sipKBreadcrumbSelectionModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9J9", &sipSelf, sipType_KBreadcrumbSelectionModel, &sipCpp, sipType_QItemSelection, &a0, sipType_QItemSelection, &a1))
        {
            sipCpp->sipProtect_emitSelectionChanged(*a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KBreadcrumbSelectionModel, sipName_emitSelectionChanged, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KBreadcrumbSelectionModel_isActualSelectionIncluded(PyObject *, PyObject *);}
static PyObject *meth_KBreadcrumbSelectionModel_isActualSelectionIncluded(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KBreadcrumbSelectionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KBreadcrumbSelectionModel, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isActualSelectionIncluded();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KBreadcrumbSelectionModel, sipName_isActualSelectionIncluded, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KBreadcrumbSelectionModel_setActualSelectionIncluded(PyObject *, PyObject *);}
static PyObject *meth_KBreadcrumbSelectionModel_setActualSelectionIncluded(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
         ::KBreadcrumbSelectionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KBreadcrumbSelectionModel, &sipCpp, &a0))
        {
            sipCpp->setActualSelectionIncluded(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KBreadcrumbSelectionModel, sipName_setActualSelectionIncluded, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KBreadcrumbSelectionModel_breadcrumbLength(PyObject *, PyObject *);}
static PyObject *meth_KBreadcrumbSelectionModel_breadcrumbLength(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KBreadcrumbSelectionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KBreadcrumbSelectionModel, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->breadcrumbLength();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KBreadcrumbSelectionModel, sipName_breadcrumbLength, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KBreadcrumbSelectionModel_setBreadcrumbLength(PyObject *, PyObject *);}
static PyObject *meth_KBreadcrumbSelectionModel_setBreadcrumbLength(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
         ::KBreadcrumbSelectionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KBreadcrumbSelectionModel, &sipCpp, &a0))
        {
            sipCpp->setBreadcrumbLength(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KBreadcrumbSelectionModel, sipName_setBreadcrumbLength, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KBreadcrumbSelectionModel_select(PyObject *, PyObject *);}
static PyObject *meth_KBreadcrumbSelectionModel_select(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::QModelIndex* a0;
         ::QItemSelectionModel::SelectionFlags* a1;
        int a1State = 0;
         ::KBreadcrumbSelectionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1", &sipSelf, sipType_KBreadcrumbSelectionModel, &sipCpp, sipType_QModelIndex, &a0, sipType_QItemSelectionModel_SelectionFlags, &a1, &a1State))
        {
            (sipSelfWasArg ? sipCpp-> ::KBreadcrumbSelectionModel::select(*a0,*a1) : sipCpp->select(*a0,*a1));
            sipReleaseType(a1,sipType_QItemSelectionModel_SelectionFlags,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const  ::QItemSelection* a0;
         ::QItemSelectionModel::SelectionFlags* a1;
        int a1State = 0;
         ::KBreadcrumbSelectionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1", &sipSelf, sipType_KBreadcrumbSelectionModel, &sipCpp, sipType_QItemSelection, &a0, sipType_QItemSelectionModel_SelectionFlags, &a1, &a1State))
        {
            (sipSelfWasArg ? sipCpp-> ::KBreadcrumbSelectionModel::select(*a0,*a1) : sipCpp->select(*a0,*a1));
            sipReleaseType(a1,sipType_QItemSelectionModel_SelectionFlags,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KBreadcrumbSelectionModel, sipName_select, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_KBreadcrumbSelectionModel(void *, const sipTypeDef *);}
static void *cast_KBreadcrumbSelectionModel(void *sipCppV, const sipTypeDef *targetType)
{
     ::KBreadcrumbSelectionModel *sipCpp = reinterpret_cast< ::KBreadcrumbSelectionModel *>(sipCppV);

    if (targetType == sipType_QItemSelectionModel)
        return static_cast< ::QItemSelectionModel *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* Call the instance's destructor. */
extern "C" {static void release_KBreadcrumbSelectionModel(void *, int);}
static void release_KBreadcrumbSelectionModel(void *sipCppV, int)
{
     ::KBreadcrumbSelectionModel *sipCpp = reinterpret_cast< ::KBreadcrumbSelectionModel *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_KBreadcrumbSelectionModel(sipSimpleWrapper *);}
static void dealloc_KBreadcrumbSelectionModel(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKBreadcrumbSelectionModel *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KBreadcrumbSelectionModel(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_KBreadcrumbSelectionModel(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KBreadcrumbSelectionModel(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipKBreadcrumbSelectionModel *sipCpp = 0;

    {
         ::QItemSelectionModel* a0;
         ::QObject* a1 = nullptr;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8|JH", sipType_QItemSelectionModel, &a0, sipType_QObject, &a1, sipOwner))
        {
            sipCpp = new sipKBreadcrumbSelectionModel(a0,a1);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
         ::QItemSelectionModel* a0;
         ::KBreadcrumbSelectionModel::BreadcrumbTarget a1;
         ::QObject* a2 = nullptr;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8E|JH", sipType_QItemSelectionModel, &a0, sipType_KBreadcrumbSelectionModel_BreadcrumbTarget, &a1, sipType_QObject, &a2, sipOwner))
        {
            sipCpp = new sipKBreadcrumbSelectionModel(a0,a1,a2);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KBreadcrumbSelectionModel[] = {{8, 0, 1}};


static PyMethodDef methods_KBreadcrumbSelectionModel[] = {
    {SIP_MLNAME_CAST(sipName_breadcrumbLength), meth_KBreadcrumbSelectionModel_breadcrumbLength, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_KBreadcrumbSelectionModel_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_KBreadcrumbSelectionModel_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_KBreadcrumbSelectionModel_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_KBreadcrumbSelectionModel_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_emitSelectionChanged), (PyCFunction)meth_KBreadcrumbSelectionModel_emitSelectionChanged, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_isActualSelectionIncluded), meth_KBreadcrumbSelectionModel_isActualSelectionIncluded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_KBreadcrumbSelectionModel_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_KBreadcrumbSelectionModel_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_select), meth_KBreadcrumbSelectionModel_select, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_KBreadcrumbSelectionModel_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_KBreadcrumbSelectionModel_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setActualSelectionIncluded), meth_KBreadcrumbSelectionModel_setActualSelectionIncluded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setBreadcrumbLength), meth_KBreadcrumbSelectionModel_setBreadcrumbLength, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_KBreadcrumbSelectionModel_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};

static sipEnumMemberDef enummembers_KBreadcrumbSelectionModel[] = {
    {sipName_MakeBreadcrumbSelectionInOther, static_cast<int>( ::KBreadcrumbSelectionModel::MakeBreadcrumbSelectionInOther), 1},
    {sipName_MakeBreadcrumbSelectionInSelf, static_cast<int>( ::KBreadcrumbSelectionModel::MakeBreadcrumbSelectionInSelf), 1},
};


static pyqt5ClassPluginDef plugin_KBreadcrumbSelectionModel = {
    & ::KBreadcrumbSelectionModel::staticMetaObject,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_KItemModels_KBreadcrumbSelectionModel = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_KBreadcrumbSelectionModel,
        {0},
        &plugin_KBreadcrumbSelectionModel
    },
    {
        sipNameNr_KBreadcrumbSelectionModel,
        {0, 0, 1},
        15, methods_KBreadcrumbSelectionModel,
        2, enummembers_KBreadcrumbSelectionModel,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KBreadcrumbSelectionModel,
    0,
    init_type_KBreadcrumbSelectionModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KBreadcrumbSelectionModel,
    0,
    0,
    0,
    release_KBreadcrumbSelectionModel,
    cast_KBreadcrumbSelectionModel,
    0,
    0,
    0,
    0,
    0,
    0
};
