/*
 * Module code.
 *
 * Generated by SIP 4.19.3
 */

#include "sipAPIktexteditor.h"

#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/commandinterface.sip"
#include <ktexteditor/commandinterface.h>
#line 12 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"

#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/view.sip"
#include <ktexteditor/view.h>

#include <ktexteditor/codecompletioninterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/texthintinterface.h>
#include <ktexteditor/annotationinterface.h>
#include <ktexteditor/configinterface.h>
#include <ktexteditor/templateinterface.h>
#include <ktexteditor/templateinterface2.h>
#line 24 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"


class sipKTextEditor_Command : public  ::KTextEditor::Command
{
public:
    sipKTextEditor_Command();
    sipKTextEditor_Command(const  ::KTextEditor::Command&);
    virtual ~sipKTextEditor_Command();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool help( ::KTextEditor::View*,const  ::QString&, ::QString&);
    bool exec( ::KTextEditor::View*,const  ::QString&, ::QString&);
    const  ::QStringList& cmds();

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[3];
};

sipKTextEditor_Command::sipKTextEditor_Command():  ::KTextEditor::Command(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_Command::sipKTextEditor_Command(const  ::KTextEditor::Command& a0):  ::KTextEditor::Command(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

bool sipKTextEditor_Command::help( ::KTextEditor::View*a0,const  ::QString& a1, ::QString& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_Command,sipName_help);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_49(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KTextEditor::View*,const  ::QString&, ::QString&);

    return sipVH_ktexteditor_49(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipKTextEditor_Command::exec( ::KTextEditor::View*a0,const  ::QString& a1, ::QString& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_Command,sipName_exec_);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_49(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KTextEditor::View*,const  ::QString&, ::QString&);

    return sipVH_ktexteditor_49(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

const  ::QStringList& sipKTextEditor_Command::cmds()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_Command,sipName_cmds);

    if (!sipMeth)
        return *new  ::QStringList();

    extern const  ::QStringList& sipVH_ktexteditor_48(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_48(sipGILState, 0, sipPySelf, sipMeth);
}


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

    {
         ::KTextEditor::Command *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Command, &sipCpp))
        {
             ::QStringList*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Command, sipName_cmds);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QStringList(sipCpp->cmds());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

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

    return NULL;
}


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

    {
         ::KTextEditor::View* a0;
        const  ::QString* a1;
        int a1State = 0;
         ::QString* a2;
        int a2State = 0;
         ::KTextEditor::Command *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1J1", &sipSelf, sipType_KTextEditor_Command, &sipCpp, sipType_KTextEditor_View, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Command, sipName_exec_);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->exec(a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a1),sipType_QString,a1State);
            sipReleaseType(a2,sipType_QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
         ::KTextEditor::View* a0;
        const  ::QString* a1;
        int a1State = 0;
         ::QString* a2;
        int a2State = 0;
         ::KTextEditor::Command *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1J1", &sipSelf, sipType_KTextEditor_Command, &sipCpp, sipType_KTextEditor_View, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Command, sipName_help);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->help(a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a1),sipType_QString,a1State);
            sipReleaseType(a2,sipType_QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTextEditor_Command(void *, int);}
static void release_KTextEditor_Command(void *sipCppV, int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTextEditor_Command *>(sipCppV);
    else
        delete reinterpret_cast< ::KTextEditor::Command *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Command();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::KTextEditor::Command* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KTextEditor_Command, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Command(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTextEditor_Command[] = {
    {SIP_MLNAME_CAST(sipName_cmds), meth_KTextEditor_Command_cmds, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_exec_), meth_KTextEditor_Command_exec_, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_help), meth_KTextEditor_Command_help, METH_VARARGS, NULL}
};


static pyqt4ClassPluginDef plugin_KTextEditor_Command = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_ktexteditor_KTextEditor_Command = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Command,
        {0},
        &plugin_KTextEditor_Command
    },
    {
        sipNameNr_Command,
        {1, 255, 0},
        3, methods_KTextEditor_Command,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTextEditor_Command,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Command,
    0,
    0,
    0,
    release_KTextEditor_Command,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/codecompletionmodelcontrollerinterface.sip"
#include <ktexteditor/codecompletionmodelcontrollerinterface.h>
#line 366 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"

#line 26 "/usr/share/sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 370 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/view.sip"
#include <ktexteditor/view.h>

#include <ktexteditor/codecompletioninterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/texthintinterface.h>
#include <ktexteditor/annotationinterface.h>
#include <ktexteditor/configinterface.h>
#include <ktexteditor/templateinterface.h>
#include <ktexteditor/templateinterface2.h>
#line 381 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 63 "/usr/share/sip/PyQt4/QtCore/qchar.sip"
#include <qchar.h>
#line 384 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/range.sip"
#include <ktexteditor/range.h>
#line 387 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 390 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/cursor.sip"
#include <ktexteditor/cursor.h>
#line 393 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"


class sipKTextEditor_CodeCompletionModelControllerInterface3 : public  ::KTextEditor::CodeCompletionModelControllerInterface3
{
public:
    sipKTextEditor_CodeCompletionModelControllerInterface3();
    sipKTextEditor_CodeCompletionModelControllerInterface3(const  ::KTextEditor::CodeCompletionModelControllerInterface3&);
    virtual ~sipKTextEditor_CodeCompletionModelControllerInterface3();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
     ::KTextEditor::CodeCompletionModelControllerInterface3::MatchReaction matchingItem(const  ::QModelIndex&);
    void aborted( ::KTextEditor::View*);
    bool shouldExecute(const  ::QModelIndex&, ::QChar);
    bool shouldAbortCompletion( ::KTextEditor::View*,const  ::KTextEditor::Range&,const  ::QString&);
     ::QString filterString( ::KTextEditor::View*,const  ::KTextEditor::Range&,const  ::KTextEditor::Cursor&);
     ::KTextEditor::Range updateCompletionRange( ::KTextEditor::View*,const  ::KTextEditor::Range&);
     ::KTextEditor::Range completionRange( ::KTextEditor::View*,const  ::KTextEditor::Cursor&);
    bool shouldStartCompletion( ::KTextEditor::View*,const  ::QString&,bool,const  ::KTextEditor::Cursor&);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[8];
};

sipKTextEditor_CodeCompletionModelControllerInterface3::sipKTextEditor_CodeCompletionModelControllerInterface3():  ::KTextEditor::CodeCompletionModelControllerInterface3(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_CodeCompletionModelControllerInterface3::sipKTextEditor_CodeCompletionModelControllerInterface3(const  ::KTextEditor::CodeCompletionModelControllerInterface3& a0):  ::KTextEditor::CodeCompletionModelControllerInterface3(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

 ::KTextEditor::CodeCompletionModelControllerInterface3::MatchReaction sipKTextEditor_CodeCompletionModelControllerInterface3::matchingItem(const  ::QModelIndex& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModelControllerInterface3::matchingItem(a0);

    extern  ::KTextEditor::CodeCompletionModelControllerInterface3::MatchReaction sipVH_ktexteditor_47(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_ktexteditor_47(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_CodeCompletionModelControllerInterface3::aborted( ::KTextEditor::View*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KTextEditor::CodeCompletionModelControllerInterface3::aborted(a0);
        return;
    }

    extern void sipVH_ktexteditor_46(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KTextEditor::View*);

    sipVH_ktexteditor_46(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_CodeCompletionModelControllerInterface3::shouldExecute(const  ::QModelIndex& a0, ::QChar a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModelControllerInterface3::shouldExecute(a0,a1);

    extern bool sipVH_ktexteditor_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&, ::QChar);

    return sipVH_ktexteditor_45(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKTextEditor_CodeCompletionModelControllerInterface3::shouldAbortCompletion( ::KTextEditor::View*a0,const  ::KTextEditor::Range& a1,const  ::QString& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModelControllerInterface3::shouldAbortCompletion(a0,a1,a2);

    extern bool sipVH_ktexteditor_44(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KTextEditor::View*,const  ::KTextEditor::Range&,const  ::QString&);

    return sipVH_ktexteditor_44(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

 ::QString sipKTextEditor_CodeCompletionModelControllerInterface3::filterString( ::KTextEditor::View*a0,const  ::KTextEditor::Range& a1,const  ::KTextEditor::Cursor& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModelControllerInterface3::filterString(a0,a1,a2);

    extern  ::QString sipVH_ktexteditor_43(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KTextEditor::View*,const  ::KTextEditor::Range&,const  ::KTextEditor::Cursor&);

    return sipVH_ktexteditor_43(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

 ::KTextEditor::Range sipKTextEditor_CodeCompletionModelControllerInterface3::updateCompletionRange( ::KTextEditor::View*a0,const  ::KTextEditor::Range& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModelControllerInterface3::updateCompletionRange(a0,a1);

    extern  ::KTextEditor::Range sipVH_ktexteditor_42(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KTextEditor::View*,const  ::KTextEditor::Range&);

    return sipVH_ktexteditor_42(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

 ::KTextEditor::Range sipKTextEditor_CodeCompletionModelControllerInterface3::completionRange( ::KTextEditor::View*a0,const  ::KTextEditor::Cursor& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModelControllerInterface3::completionRange(a0,a1);

    extern  ::KTextEditor::Range sipVH_ktexteditor_41(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KTextEditor::View*,const  ::KTextEditor::Cursor&);

    return sipVH_ktexteditor_41(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKTextEditor_CodeCompletionModelControllerInterface3::shouldStartCompletion( ::KTextEditor::View*a0,const  ::QString& a1,bool a2,const  ::KTextEditor::Cursor& a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModelControllerInterface3::shouldStartCompletion(a0,a1,a2,a3);

    extern bool sipVH_ktexteditor_40(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KTextEditor::View*,const  ::QString&,bool,const  ::KTextEditor::Cursor&);

    return sipVH_ktexteditor_40(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3);
}


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

    {
         ::KTextEditor::View* a0;
        const  ::QString* a1;
        int a1State = 0;
        bool a2;
        const  ::KTextEditor::Cursor* a3;
         ::KTextEditor::CodeCompletionModelControllerInterface3 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1bJ9", &sipSelf, sipType_KTextEditor_CodeCompletionModelControllerInterface3, &sipCpp, sipType_KTextEditor_View, &a0, sipType_QString,&a1, &a1State, &a2, sipType_KTextEditor_Cursor, &a3))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTextEditor::CodeCompletionModelControllerInterface3::shouldStartCompletion(a0,*a1,a2,*a3) : sipCpp->shouldStartCompletion(a0,*a1,a2,*a3));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
         ::KTextEditor::View* a0;
        const  ::KTextEditor::Cursor* a1;
         ::KTextEditor::CodeCompletionModelControllerInterface3 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J9", &sipSelf, sipType_KTextEditor_CodeCompletionModelControllerInterface3, &sipCpp, sipType_KTextEditor_View, &a0, sipType_KTextEditor_Cursor, &a1))
        {
             ::KTextEditor::Range*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::Range((sipSelfWasArg ? sipCpp-> ::KTextEditor::CodeCompletionModelControllerInterface3::completionRange(a0,*a1) : sipCpp->completionRange(a0,*a1)));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_Range,NULL);
        }
    }

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

    return NULL;
}


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

    {
         ::KTextEditor::View* a0;
        const  ::KTextEditor::Range* a1;
         ::KTextEditor::CodeCompletionModelControllerInterface3 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J9", &sipSelf, sipType_KTextEditor_CodeCompletionModelControllerInterface3, &sipCpp, sipType_KTextEditor_View, &a0, sipType_KTextEditor_Range, &a1))
        {
             ::KTextEditor::Range*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::Range((sipSelfWasArg ? sipCpp-> ::KTextEditor::CodeCompletionModelControllerInterface3::updateCompletionRange(a0,*a1) : sipCpp->updateCompletionRange(a0,*a1)));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_Range,NULL);
        }
    }

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

    return NULL;
}


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

    {
         ::KTextEditor::View* a0;
        const  ::KTextEditor::Range* a1;
        const  ::KTextEditor::Cursor* a2;
         ::KTextEditor::CodeCompletionModelControllerInterface3 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J9J9", &sipSelf, sipType_KTextEditor_CodeCompletionModelControllerInterface3, &sipCpp, sipType_KTextEditor_View, &a0, sipType_KTextEditor_Range, &a1, sipType_KTextEditor_Cursor, &a2))
        {
             ::QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString((sipSelfWasArg ? sipCpp-> ::KTextEditor::CodeCompletionModelControllerInterface3::filterString(a0,*a1,*a2) : sipCpp->filterString(a0,*a1,*a2)));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

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

    return NULL;
}


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

    {
         ::KTextEditor::View* a0;
        const  ::KTextEditor::Range* a1;
        const  ::QString* a2;
        int a2State = 0;
         ::KTextEditor::CodeCompletionModelControllerInterface3 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J9J1", &sipSelf, sipType_KTextEditor_CodeCompletionModelControllerInterface3, &sipCpp, sipType_KTextEditor_View, &a0, sipType_KTextEditor_Range, &a1, sipType_QString,&a2, &a2State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTextEditor::CodeCompletionModelControllerInterface3::shouldAbortCompletion(a0,*a1,*a2) : sipCpp->shouldAbortCompletion(a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a2),sipType_QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::QModelIndex* a0;
         ::QChar* a1;
        int a1State = 0;
         ::KTextEditor::CodeCompletionModelControllerInterface3 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1", &sipSelf, sipType_KTextEditor_CodeCompletionModelControllerInterface3, &sipCpp, sipType_QModelIndex, &a0, sipType_QChar,&a1, &a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTextEditor::CodeCompletionModelControllerInterface3::shouldExecute(*a0,*a1) : sipCpp->shouldExecute(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a1,sipType_QChar,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
         ::KTextEditor::View* a0;
         ::KTextEditor::CodeCompletionModelControllerInterface3 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_CodeCompletionModelControllerInterface3, &sipCpp, sipType_KTextEditor_View, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KTextEditor::CodeCompletionModelControllerInterface3::aborted(a0) : sipCpp->aborted(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const  ::QModelIndex* a0;
         ::KTextEditor::CodeCompletionModelControllerInterface3 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_CodeCompletionModelControllerInterface3, &sipCpp, sipType_QModelIndex, &a0))
        {
             ::KTextEditor::CodeCompletionModelControllerInterface3::MatchReaction sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTextEditor::CodeCompletionModelControllerInterface3::matchingItem(*a0) : sipCpp->matchingItem(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KTextEditor_CodeCompletionModelControllerInterface3_MatchReaction);
        }
    }

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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTextEditor_CodeCompletionModelControllerInterface3(void *, int);}
static void release_KTextEditor_CodeCompletionModelControllerInterface3(void *sipCppV, int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTextEditor_CodeCompletionModelControllerInterface3 *>(sipCppV);
    else
        delete reinterpret_cast< ::KTextEditor::CodeCompletionModelControllerInterface3 *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KTextEditor_CodeCompletionModelControllerInterface3(void *, SIP_SSIZE_T, const void *);}
static void assign_KTextEditor_CodeCompletionModelControllerInterface3(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast< ::KTextEditor::CodeCompletionModelControllerInterface3 *>(sipDst)[sipDstIdx] = *reinterpret_cast<const  ::KTextEditor::CodeCompletionModelControllerInterface3 *>(sipSrc);
}


extern "C" {static void *array_KTextEditor_CodeCompletionModelControllerInterface3(SIP_SSIZE_T);}
static void *array_KTextEditor_CodeCompletionModelControllerInterface3(SIP_SSIZE_T sipNrElem)
{
    return new  ::KTextEditor::CodeCompletionModelControllerInterface3[sipNrElem];
}


extern "C" {static void *copy_KTextEditor_CodeCompletionModelControllerInterface3(const void *, SIP_SSIZE_T);}
static void *copy_KTextEditor_CodeCompletionModelControllerInterface3(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new  ::KTextEditor::CodeCompletionModelControllerInterface3(reinterpret_cast<const  ::KTextEditor::CodeCompletionModelControllerInterface3 *>(sipSrc)[sipSrcIdx]);
}


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

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


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

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_CodeCompletionModelControllerInterface3();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::KTextEditor::CodeCompletionModelControllerInterface3* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KTextEditor_CodeCompletionModelControllerInterface3, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_CodeCompletionModelControllerInterface3(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTextEditor_CodeCompletionModelControllerInterface3[] = {
    {SIP_MLNAME_CAST(sipName_aborted), meth_KTextEditor_CodeCompletionModelControllerInterface3_aborted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_completionRange), meth_KTextEditor_CodeCompletionModelControllerInterface3_completionRange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_filterString), meth_KTextEditor_CodeCompletionModelControllerInterface3_filterString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_matchingItem), meth_KTextEditor_CodeCompletionModelControllerInterface3_matchingItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_shouldAbortCompletion), meth_KTextEditor_CodeCompletionModelControllerInterface3_shouldAbortCompletion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_shouldExecute), meth_KTextEditor_CodeCompletionModelControllerInterface3_shouldExecute, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_shouldStartCompletion), meth_KTextEditor_CodeCompletionModelControllerInterface3_shouldStartCompletion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_updateCompletionRange), meth_KTextEditor_CodeCompletionModelControllerInterface3_updateCompletionRange, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KTextEditor_CodeCompletionModelControllerInterface3[] = {
    {sipName_ForExtension, static_cast<int>( ::KTextEditor::CodeCompletionModelControllerInterface3::ForExtension), 21},
    {sipName_HideListIfAutomaticInvocation, static_cast<int>( ::KTextEditor::CodeCompletionModelControllerInterface3::HideListIfAutomaticInvocation), 21},
    {sipName_None, static_cast<int>( ::KTextEditor::CodeCompletionModelControllerInterface3::None), 21},
};


static pyqt4ClassPluginDef plugin_KTextEditor_CodeCompletionModelControllerInterface3 = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_ktexteditor_KTextEditor_CodeCompletionModelControllerInterface3 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__CodeCompletionModelControllerInterface3,
        {0},
        &plugin_KTextEditor_CodeCompletionModelControllerInterface3
    },
    {
        sipNameNr_CodeCompletionModelControllerInterface3,
        {1, 255, 0},
        8, methods_KTextEditor_CodeCompletionModelControllerInterface3,
        3, enummembers_KTextEditor_CodeCompletionModelControllerInterface3,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTextEditor_CodeCompletionModelControllerInterface3,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_CodeCompletionModelControllerInterface3,
    assign_KTextEditor_CodeCompletionModelControllerInterface3,
    array_KTextEditor_CodeCompletionModelControllerInterface3,
    copy_KTextEditor_CodeCompletionModelControllerInterface3,
    release_KTextEditor_CodeCompletionModelControllerInterface3,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 190 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/codecompletionmodel.sip"
#include <ktexteditor/codecompletionmodel.h>
#line 975 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"

#line 29 "/usr/share/sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 979 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
#include <ktexteditor/document.h>

#include <ktexteditor/modificationinterface.h>
#include <ktexteditor/markinterface.h>
#include <ktexteditor/searchinterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/smartinterface.h>
#include <ktexteditor/templateinterface.h>
#include <ktexteditor/variableinterface.h>
#include <ktexteditor/movinginterface.h>
#include <ktexteditor/annotationinterface.h>
#include <ktexteditor/highlightinterface.h>
#include <ktexteditor/configinterface.h>
#include <ktexteditor/modeinterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/recoveryinterface.h>

#line 998 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/range.sip"
#include <ktexteditor/range.h>
#line 1001 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 1004 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 48 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/codecompletionmodel.sip"
#include <ktexteditor/codecompletionmodel.h>
#line 1007 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 139 "/usr/share/sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 1010 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1013 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 265 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1016 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/view.sip"
#include <ktexteditor/view.h>

#include <ktexteditor/codecompletioninterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/texthintinterface.h>
#include <ktexteditor/annotationinterface.h>
#include <ktexteditor/configinterface.h>
#include <ktexteditor/templateinterface.h>
#include <ktexteditor/templateinterface2.h>
#line 1027 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 139 "/usr/share/sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 1030 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1033 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1036 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1039 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 1042 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1045 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 1048 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1051 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1054 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 1057 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1060 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1063 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 368 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1066 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 351 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1069 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1072 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1075 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 1078 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1081 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1084 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1087 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"


class sipKTextEditor_CodeCompletionModel2 : public  ::KTextEditor::CodeCompletionModel2
{
public:
    sipKTextEditor_CodeCompletionModel2( ::QObject*);
    virtual ~sipKTextEditor_CodeCompletionModel2();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void executeCompletionItem2( ::KTextEditor::Document*,const  ::KTextEditor::Range&,const  ::QModelIndex&) const;
    void revert();
    bool submit();
     ::QSize span(const  ::QModelIndex&) const;
     ::QModelIndexList match(const  ::QModelIndex&,int,const  ::QVariant&,int, ::Qt::MatchFlags) const;
     ::QModelIndex buddy(const  ::QModelIndex&) const;
    void sort(int, ::Qt::SortOrder);
     ::Qt::ItemFlags flags(const  ::QModelIndex&) const;
    bool canFetchMore(const  ::QModelIndex&) const;
    void fetchMore(const  ::QModelIndex&);
    bool removeColumns(int,int,const  ::QModelIndex&);
    bool removeRows(int,int,const  ::QModelIndex&);
    bool insertColumns(int,int,const  ::QModelIndex&);
    bool insertRows(int,int,const  ::QModelIndex&);
     ::Qt::DropActions supportedDropActions() const;
    bool dropMimeData(const  ::QMimeData*, ::Qt::DropAction,int,int,const  ::QModelIndex&);
     ::QMimeData* mimeData(const  ::QModelIndexList&) const;
     ::QStringList mimeTypes() const;
    bool setItemData(const  ::QModelIndex&,const QMap<int, ::QVariant>&);
    QMap<int, ::QVariant> itemData(const  ::QModelIndex&) const;
    bool setHeaderData(int, ::Qt::Orientation,const  ::QVariant&,int);
     ::QVariant headerData(int, ::Qt::Orientation,int) const;
    bool setData(const  ::QModelIndex&,const  ::QVariant&,int);
     ::QVariant data(const  ::QModelIndex&,int) const;
    bool hasChildren(const  ::QModelIndex&) const;
    int columnCount(const  ::QModelIndex&) const;
    int rowCount(const  ::QModelIndex&) const;
     ::QModelIndex parent(const  ::QModelIndex&) const;
     ::QModelIndex index(int,int,const  ::QModelIndex&) const;
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const char*);
    void disconnectNotify(const char*);
    void completionInvoked( ::KTextEditor::View*,const  ::KTextEditor::Range&, ::KTextEditor::CodeCompletionModel::InvocationType);
    void executeCompletionItem( ::KTextEditor::Document*,const  ::KTextEditor::Range&,int) const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[38];
};

sipKTextEditor_CodeCompletionModel2::sipKTextEditor_CodeCompletionModel2( ::QObject*a0):  ::KTextEditor::CodeCompletionModel2(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKTextEditor_CodeCompletionModel2::metaObject() const
{
    return sip_ktexteditor_qt_metaobject(sipPySelf,sipType_KTextEditor_CodeCompletionModel2);
}

int sipKTextEditor_CodeCompletionModel2::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id =  ::KTextEditor::CodeCompletionModel2::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_ktexteditor_qt_metacall(sipPySelf,sipType_KTextEditor_CodeCompletionModel2,_c,_id,_a);

    return _id;
}

void *sipKTextEditor_CodeCompletionModel2::qt_metacast(const char *_clname)
{
    return (sip_ktexteditor_qt_metacast(sipPySelf, sipType_KTextEditor_CodeCompletionModel2, _clname)) ? this :  ::KTextEditor::CodeCompletionModel2::qt_metacast(_clname);
}

void sipKTextEditor_CodeCompletionModel2::executeCompletionItem2( ::KTextEditor::Document*a0,const  ::KTextEditor::Range& a1,const  ::QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_executeCompletionItem2);

    if (!sipMeth)
    {
         ::KTextEditor::CodeCompletionModel2::executeCompletionItem2(a0,a1,a2);
        return;
    }

    extern void sipVH_ktexteditor_39(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KTextEditor::Document*,const  ::KTextEditor::Range&,const  ::QModelIndex&);

    sipVH_ktexteditor_39(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipKTextEditor_CodeCompletionModel2::revert()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KTextEditor::CodeCompletionModel2::revert();
        return;
    }

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

    sipVH_ktexteditor_15(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_CodeCompletionModel2::submit()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel2::submit();

    extern bool sipVH_ktexteditor_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_10(sipGILState, 0, sipPySelf, sipMeth);
}

 ::QSize sipKTextEditor_CodeCompletionModel2::span(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_span);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel2::span(a0);

    extern  ::QSize sipVH_ktexteditor_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_ktexteditor_17(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::QModelIndexList sipKTextEditor_CodeCompletionModel2::match(const  ::QModelIndex& a0,int a1,const  ::QVariant& a2,int a3, ::Qt::MatchFlags a4) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,NULL,sipName_match);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel2::match(a0,a1,a2,a3,a4);

    extern  ::QModelIndexList sipVH_ktexteditor_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,int,const  ::QVariant&,int, ::Qt::MatchFlags);

    return sipVH_ktexteditor_18(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

 ::QModelIndex sipKTextEditor_CodeCompletionModel2::buddy(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,NULL,sipName_buddy);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel2::buddy(a0);

    extern  ::QModelIndex sipVH_ktexteditor_19(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_ktexteditor_19(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_CodeCompletionModel2::sort(int a0, ::Qt::SortOrder a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KTextEditor::CodeCompletionModel2::sort(a0,a1);
        return;
    }

    extern void sipVH_ktexteditor_20(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int, ::Qt::SortOrder);

    sipVH_ktexteditor_20(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

 ::Qt::ItemFlags sipKTextEditor_CodeCompletionModel2::flags(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_flags);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel2::flags(a0);

    extern  ::Qt::ItemFlags sipVH_ktexteditor_21(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_ktexteditor_21(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_CodeCompletionModel2::canFetchMore(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_canFetchMore);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel2::canFetchMore(a0);

    extern bool sipVH_ktexteditor_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_ktexteditor_22(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_CodeCompletionModel2::fetchMore(const  ::QModelIndex& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KTextEditor::CodeCompletionModel2::fetchMore(a0);
        return;
    }

    extern void sipVH_ktexteditor_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    sipVH_ktexteditor_23(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_CodeCompletionModel2::removeColumns(int a0,int a1,const  ::QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel2::removeColumns(a0,a1,a2);

    extern bool sipVH_ktexteditor_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

    return sipVH_ktexteditor_24(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipKTextEditor_CodeCompletionModel2::removeRows(int a0,int a1,const  ::QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel2::removeRows(a0,a1,a2);

    extern bool sipVH_ktexteditor_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

    return sipVH_ktexteditor_24(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipKTextEditor_CodeCompletionModel2::insertColumns(int a0,int a1,const  ::QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel2::insertColumns(a0,a1,a2);

    extern bool sipVH_ktexteditor_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

    return sipVH_ktexteditor_24(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipKTextEditor_CodeCompletionModel2::insertRows(int a0,int a1,const  ::QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_insertRows);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel2::insertRows(a0,a1,a2);

    extern bool sipVH_ktexteditor_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

    return sipVH_ktexteditor_24(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

 ::Qt::DropActions sipKTextEditor_CodeCompletionModel2::supportedDropActions() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[14]),sipPySelf,NULL,sipName_supportedDropActions);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel2::supportedDropActions();

    extern  ::Qt::DropActions sipVH_ktexteditor_25(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_25(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_CodeCompletionModel2::dropMimeData(const  ::QMimeData*a0, ::Qt::DropAction a1,int a2,int a3,const  ::QModelIndex& a4)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_dropMimeData);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel2::dropMimeData(a0,a1,a2,a3,a4);

    extern bool sipVH_ktexteditor_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMimeData*, ::Qt::DropAction,int,int,const  ::QModelIndex&);

    return sipVH_ktexteditor_26(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

 ::QMimeData* sipKTextEditor_CodeCompletionModel2::mimeData(const  ::QModelIndexList& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[16]),sipPySelf,NULL,sipName_mimeData);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel2::mimeData(a0);

    extern  ::QMimeData* sipVH_ktexteditor_27(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndexList&);

    return sipVH_ktexteditor_27(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::QStringList sipKTextEditor_CodeCompletionModel2::mimeTypes() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[17]),sipPySelf,NULL,sipName_mimeTypes);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel2::mimeTypes();

    extern  ::QStringList sipVH_ktexteditor_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_28(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_CodeCompletionModel2::setItemData(const  ::QModelIndex& a0,const QMap<int, ::QVariant>& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_setItemData);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel2::setItemData(a0,a1);

    extern bool sipVH_ktexteditor_29(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,const QMap<int, ::QVariant>&);

    return sipVH_ktexteditor_29(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

QMap<int, ::QVariant> sipKTextEditor_CodeCompletionModel2::itemData(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[19]),sipPySelf,NULL,sipName_itemData);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel2::itemData(a0);

    extern QMap<int, ::QVariant> sipVH_ktexteditor_30(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_ktexteditor_30(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_CodeCompletionModel2::setHeaderData(int a0, ::Qt::Orientation a1,const  ::QVariant& a2,int a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_setHeaderData);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel2::setHeaderData(a0,a1,a2,a3);

    extern bool sipVH_ktexteditor_31(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int, ::Qt::Orientation,const  ::QVariant&,int);

    return sipVH_ktexteditor_31(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3);
}

 ::QVariant sipKTextEditor_CodeCompletionModel2::headerData(int a0, ::Qt::Orientation a1,int a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[21]),sipPySelf,NULL,sipName_headerData);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel2::headerData(a0,a1,a2);

    extern  ::QVariant sipVH_ktexteditor_32(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int, ::Qt::Orientation,int);

    return sipVH_ktexteditor_32(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipKTextEditor_CodeCompletionModel2::setData(const  ::QModelIndex& a0,const  ::QVariant& a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_setData);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel2::setData(a0,a1,a2);

    extern bool sipVH_ktexteditor_33(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,const  ::QVariant&,int);

    return sipVH_ktexteditor_33(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

 ::QVariant sipKTextEditor_CodeCompletionModel2::data(const  ::QModelIndex& a0,int a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[23]),sipPySelf,sipName_CodeCompletionModel2,sipName_data);

    if (!sipMeth)
        return  ::QVariant();

    extern  ::QVariant sipVH_ktexteditor_34(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,int);

    return sipVH_ktexteditor_34(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKTextEditor_CodeCompletionModel2::hasChildren(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[24]),sipPySelf,NULL,sipName_hasChildren);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel2::hasChildren(a0);

    extern bool sipVH_ktexteditor_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_ktexteditor_22(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKTextEditor_CodeCompletionModel2::columnCount(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[25]),sipPySelf,NULL,sipName_columnCount);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel2::columnCount(a0);

    extern int sipVH_ktexteditor_35(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_ktexteditor_35(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKTextEditor_CodeCompletionModel2::rowCount(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[26]),sipPySelf,NULL,sipName_rowCount);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel2::rowCount(a0);

    extern int sipVH_ktexteditor_35(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_ktexteditor_35(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::QModelIndex sipKTextEditor_CodeCompletionModel2::parent(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[27]),sipPySelf,NULL,sipName_parent);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel2::parent(a0);

    extern  ::QModelIndex sipVH_ktexteditor_19(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_ktexteditor_19(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::QModelIndex sipKTextEditor_CodeCompletionModel2::index(int a0,int a1,const  ::QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[28]),sipPySelf,NULL,sipName_index);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel2::index(a0,a1,a2);

    extern  ::QModelIndex sipVH_ktexteditor_36(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

    return sipVH_ktexteditor_36(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

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

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

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel2::event(a0);

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

    return sipVH_ktexteditor_5(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

    return sipVH_ktexteditor_4(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

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

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

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

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

    sipVH_ktexteditor_3(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

    sipVH_ktexteditor_2(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

    sipVH_ktexteditor_1(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_CodeCompletionModel2::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern void sipVH_ktexteditor_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_ktexteditor_0(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_CodeCompletionModel2::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern void sipVH_ktexteditor_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_ktexteditor_0(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_CodeCompletionModel2::completionInvoked( ::KTextEditor::View*a0,const  ::KTextEditor::Range& a1, ::KTextEditor::CodeCompletionModel::InvocationType a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[36],sipPySelf,NULL,sipName_completionInvoked);

    if (!sipMeth)
    {
         ::KTextEditor::CodeCompletionModel2::completionInvoked(a0,a1,a2);
        return;
    }

    extern void sipVH_ktexteditor_37(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KTextEditor::View*,const  ::KTextEditor::Range&, ::KTextEditor::CodeCompletionModel::InvocationType);

    sipVH_ktexteditor_37(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipKTextEditor_CodeCompletionModel2::executeCompletionItem( ::KTextEditor::Document*a0,const  ::KTextEditor::Range& a1,int a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[37]),sipPySelf,NULL,sipName_executeCompletionItem);

    if (!sipMeth)
    {
         ::KTextEditor::CodeCompletionModel2::executeCompletionItem(a0,a1,a2);
        return;
    }

    extern void sipVH_ktexteditor_38(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KTextEditor::Document*,const  ::KTextEditor::Range&,int);

    sipVH_ktexteditor_38(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}


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

    {
         ::KTextEditor::Document* a0;
        const  ::KTextEditor::Range* a1;
        const  ::QModelIndex* a2;
        const  ::KTextEditor::CodeCompletionModel2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J9J9", &sipSelf, sipType_KTextEditor_CodeCompletionModel2, &sipCpp, sipType_KTextEditor_Document, &a0, sipType_KTextEditor_Range, &a1, sipType_QModelIndex, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KTextEditor::CodeCompletionModel2::executeCompletionItem2(a0,*a1,*a2) : sipCpp->executeCompletionItem2(a0,*a1,*a2));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KTextEditor_CodeCompletionModel)
        return static_cast< ::KTextEditor::CodeCompletionModel *>(sipCpp);

    if (targetType == sipType_QAbstractItemModel)
        return static_cast< ::QAbstractItemModel *>(sipCpp);

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

    return sipCppV;
}


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
         ::QObject* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_CodeCompletionModel2(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KTextEditor_CodeCompletionModel2[] = {{11, 255, 1}};


static PyMethodDef methods_KTextEditor_CodeCompletionModel2[] = {
    {SIP_MLNAME_CAST(sipName_executeCompletionItem2), meth_KTextEditor_CodeCompletionModel2_executeCompletionItem2, METH_VARARGS, NULL}
};


static pyqt4ClassPluginDef plugin_KTextEditor_CodeCompletionModel2 = {
    & ::KTextEditor::CodeCompletionModel2::staticMetaObject,
    0,
    0
};


sipClassTypeDef sipTypeDef_ktexteditor_KTextEditor_CodeCompletionModel2 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__CodeCompletionModel2,
        {0},
        &plugin_KTextEditor_CodeCompletionModel2
    },
    {
        sipNameNr_CodeCompletionModel2,
        {1, 255, 0},
        1, methods_KTextEditor_CodeCompletionModel2,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTextEditor_CodeCompletionModel2,
    0,
    init_type_KTextEditor_CodeCompletionModel2,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_CodeCompletionModel2,
    0,
    0,
    0,
    release_KTextEditor_CodeCompletionModel2,
    cast_KTextEditor_CodeCompletionModel2,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 48 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/codecompletionmodel.sip"
#include <ktexteditor/codecompletionmodel.h>
#line 1958 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"

#line 48 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/codecompletionmodel.sip"
#include <ktexteditor/codecompletionmodel.h>
#line 1962 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"


extern "C" {static int slot_KTextEditor_CodeCompletionModel_HighlightMethods___bool__(PyObject *);}
static int slot_KTextEditor_CodeCompletionModel_HighlightMethods___bool__(PyObject *sipSelf)
{
     ::KTextEditor::CodeCompletionModel::HighlightMethods *sipCpp = reinterpret_cast< ::KTextEditor::CodeCompletionModel::HighlightMethods *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_CodeCompletionModel_HighlightMethods));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 381 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KTextEditor::CodeCompletionModel::HighlightMethods::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 1984 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___ne__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___ne__(PyObject *sipSelf,PyObject *sipArg)
{
     ::KTextEditor::CodeCompletionModel::HighlightMethods *sipCpp = reinterpret_cast< ::KTextEditor::CodeCompletionModel::HighlightMethods *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_CodeCompletionModel_HighlightMethods));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::KTextEditor::CodeCompletionModel::HighlightMethods* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KTextEditor_CodeCompletionModel_HighlightMethods, &a0, &a0State))
        {
            bool sipRes = 0;

#line 372 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KTextEditor::CodeCompletionModel::HighlightMethods::Int() != a0->operator KTextEditor::CodeCompletionModel::HighlightMethods::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 2018 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
            sipReleaseType(const_cast< ::KTextEditor::CodeCompletionModel::HighlightMethods *>(a0),sipType_KTextEditor_CodeCompletionModel_HighlightMethods,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_ktexteditor, ne_slot, sipType_KTextEditor_CodeCompletionModel_HighlightMethods, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___eq__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___eq__(PyObject *sipSelf,PyObject *sipArg)
{
     ::KTextEditor::CodeCompletionModel::HighlightMethods *sipCpp = reinterpret_cast< ::KTextEditor::CodeCompletionModel::HighlightMethods *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_CodeCompletionModel_HighlightMethods));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::KTextEditor::CodeCompletionModel::HighlightMethods* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KTextEditor_CodeCompletionModel_HighlightMethods, &a0, &a0State))
        {
            bool sipRes = 0;

#line 363 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KTextEditor::CodeCompletionModel::HighlightMethods::Int() == a0->operator KTextEditor::CodeCompletionModel::HighlightMethods::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 2058 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
            sipReleaseType(const_cast< ::KTextEditor::CodeCompletionModel::HighlightMethods *>(a0),sipType_KTextEditor_CodeCompletionModel_HighlightMethods,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_ktexteditor, eq_slot, sipType_KTextEditor_CodeCompletionModel_HighlightMethods, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___ixor__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KTextEditor_CodeCompletionModel_HighlightMethods)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

     ::KTextEditor::CodeCompletionModel::HighlightMethods *sipCpp = reinterpret_cast< ::KTextEditor::CodeCompletionModel::HighlightMethods *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_CodeCompletionModel_HighlightMethods));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 357 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
        *sipCpp = KTextEditor::CodeCompletionModel::HighlightMethods(*sipCpp ^ a0);
#line 2097 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___xor__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTextEditor::CodeCompletionModel::HighlightMethods* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KTextEditor_CodeCompletionModel_HighlightMethods, &a0, &a0State, &a1))
        {
             ::KTextEditor::CodeCompletionModel::HighlightMethods*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::CodeCompletionModel::HighlightMethods((*a0 ^ a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KTextEditor_CodeCompletionModel_HighlightMethods,a0State);

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_CodeCompletionModel_HighlightMethods,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_ktexteditor, xor_slot, NULL, sipArg0, sipArg1);
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___ior__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KTextEditor_CodeCompletionModel_HighlightMethods)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

     ::KTextEditor::CodeCompletionModel::HighlightMethods *sipCpp = reinterpret_cast< ::KTextEditor::CodeCompletionModel::HighlightMethods *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_CodeCompletionModel_HighlightMethods));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 351 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
        *sipCpp = KTextEditor::CodeCompletionModel::HighlightMethods(*sipCpp | a0);
#line 2171 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___or__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTextEditor::CodeCompletionModel::HighlightMethods* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KTextEditor_CodeCompletionModel_HighlightMethods, &a0, &a0State, &a1))
        {
             ::KTextEditor::CodeCompletionModel::HighlightMethods*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::CodeCompletionModel::HighlightMethods((*a0 | a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KTextEditor_CodeCompletionModel_HighlightMethods,a0State);

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_CodeCompletionModel_HighlightMethods,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_ktexteditor, or_slot, NULL, sipArg0, sipArg1);
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___iand__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KTextEditor_CodeCompletionModel_HighlightMethods)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

     ::KTextEditor::CodeCompletionModel::HighlightMethods *sipCpp = reinterpret_cast< ::KTextEditor::CodeCompletionModel::HighlightMethods *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_CodeCompletionModel_HighlightMethods));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp-> ::KTextEditor::CodeCompletionModel::HighlightMethods::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___and__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTextEditor::CodeCompletionModel::HighlightMethods* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KTextEditor_CodeCompletionModel_HighlightMethods, &a0, &a0State, &a1))
        {
             ::KTextEditor::CodeCompletionModel::HighlightMethods*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::CodeCompletionModel::HighlightMethods((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KTextEditor_CodeCompletionModel_HighlightMethods,a0State);

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_CodeCompletionModel_HighlightMethods,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_ktexteditor, and_slot, NULL, sipArg0, sipArg1);
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___invert__(PyObject *);}
static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___invert__(PyObject *sipSelf)
{
     ::KTextEditor::CodeCompletionModel::HighlightMethods *sipCpp = reinterpret_cast< ::KTextEditor::CodeCompletionModel::HighlightMethods *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_CodeCompletionModel_HighlightMethods));

    if (!sipCpp)
        return 0;


    {
        {
             ::KTextEditor::CodeCompletionModel::HighlightMethods*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::CodeCompletionModel::HighlightMethods(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_CodeCompletionModel_HighlightMethods,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___int__(PyObject *);}
static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___int__(PyObject *sipSelf)
{
     ::KTextEditor::CodeCompletionModel::HighlightMethods *sipCpp = reinterpret_cast< ::KTextEditor::CodeCompletionModel::HighlightMethods *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_CodeCompletionModel_HighlightMethods));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTextEditor_CodeCompletionModel_HighlightMethods(void *, int);}
static void release_KTextEditor_CodeCompletionModel_HighlightMethods(void *sipCppV, int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast< ::KTextEditor::CodeCompletionModel::HighlightMethods *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KTextEditor_CodeCompletionModel_HighlightMethods(void *, SIP_SSIZE_T, const void *);}
static void assign_KTextEditor_CodeCompletionModel_HighlightMethods(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast< ::KTextEditor::CodeCompletionModel::HighlightMethods *>(sipDst)[sipDstIdx] = *reinterpret_cast<const  ::KTextEditor::CodeCompletionModel::HighlightMethods *>(sipSrc);
}


extern "C" {static void *array_KTextEditor_CodeCompletionModel_HighlightMethods(SIP_SSIZE_T);}
static void *array_KTextEditor_CodeCompletionModel_HighlightMethods(SIP_SSIZE_T sipNrElem)
{
    return new  ::KTextEditor::CodeCompletionModel::HighlightMethods[sipNrElem];
}


extern "C" {static void *copy_KTextEditor_CodeCompletionModel_HighlightMethods(const void *, SIP_SSIZE_T);}
static void *copy_KTextEditor_CodeCompletionModel_HighlightMethods(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new  ::KTextEditor::CodeCompletionModel::HighlightMethods(reinterpret_cast<const  ::KTextEditor::CodeCompletionModel::HighlightMethods *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KTextEditor_CodeCompletionModel_HighlightMethods(sipSimpleWrapper *);}
static void dealloc_KTextEditor_CodeCompletionModel_HighlightMethods(sipSimpleWrapper *sipSelf)
{
    if (sipIsOwnedByPython(sipSelf))
    {
        release_KTextEditor_CodeCompletionModel_HighlightMethods(sipGetAddress(sipSelf), 0);
    }
}


extern "C" {static void *init_type_KTextEditor_CodeCompletionModel_HighlightMethods(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTextEditor_CodeCompletionModel_HighlightMethods(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
     ::KTextEditor::CodeCompletionModel::HighlightMethods *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new  ::KTextEditor::CodeCompletionModel::HighlightMethods();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new  ::KTextEditor::CodeCompletionModel::HighlightMethods(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const  ::KTextEditor::CodeCompletionModel::HighlightMethods* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_KTextEditor_CodeCompletionModel_HighlightMethods, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new  ::KTextEditor::CodeCompletionModel::HighlightMethods(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::KTextEditor::CodeCompletionModel::HighlightMethods *>(a0),sipType_KTextEditor_CodeCompletionModel_HighlightMethods,a0State);

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_KTextEditor_CodeCompletionModel_HighlightMethods(PyObject *, void **, int *, PyObject *);}
static int convertTo_KTextEditor_CodeCompletionModel_HighlightMethods(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
     ::KTextEditor::CodeCompletionModel::HighlightMethods **sipCppPtr = reinterpret_cast< ::KTextEditor::CodeCompletionModel::HighlightMethods **>(sipCppPtrV);

#line 390 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a KTextEditor::CodeCompletionModel::HighlightMethods is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KTextEditor_CodeCompletionModel_HighlightMethod)) ||
            sipCanConvertToType(sipPy, sipType_KTextEditor_CodeCompletionModel_HighlightMethods, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KTextEditor_CodeCompletionModel_HighlightMethod)))
{
    *sipCppPtr = new KTextEditor::CodeCompletionModel::HighlightMethods(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KTextEditor::CodeCompletionModel::HighlightMethods *>(sipConvertToType(sipPy, sipType_KTextEditor_CodeCompletionModel_HighlightMethods, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 2459 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KTextEditor_CodeCompletionModel_HighlightMethods[] = {
    {(void *)slot_KTextEditor_CodeCompletionModel_HighlightMethods___bool__, bool_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_HighlightMethods___ne__, ne_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_HighlightMethods___eq__, eq_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_HighlightMethods___ixor__, ixor_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_HighlightMethods___xor__, xor_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_HighlightMethods___ior__, ior_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_HighlightMethods___or__, or_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_HighlightMethods___iand__, iand_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_HighlightMethods___and__, and_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_HighlightMethods___invert__, invert_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_HighlightMethods___int__, int_slot},
    {0, (sipPySlotType)0}
};


static pyqt4ClassPluginDef plugin_KTextEditor_CodeCompletionModel_HighlightMethods = {
    0,
    1,
    0
};


sipClassTypeDef sipTypeDef_ktexteditor_KTextEditor_CodeCompletionModel_HighlightMethods = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__CodeCompletionModel__HighlightMethods,
        {0},
        &plugin_KTextEditor_CodeCompletionModel_HighlightMethods
    },
    {
        sipNameNr_HighlightMethods,
        {11, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KTextEditor_CodeCompletionModel_HighlightMethods,
    init_type_KTextEditor_CodeCompletionModel_HighlightMethods,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_CodeCompletionModel_HighlightMethods,
    assign_KTextEditor_CodeCompletionModel_HighlightMethods,
    array_KTextEditor_CodeCompletionModel_HighlightMethods,
    copy_KTextEditor_CodeCompletionModel_HighlightMethods,
    release_KTextEditor_CodeCompletionModel_HighlightMethods,
    0,
    convertTo_KTextEditor_CodeCompletionModel_HighlightMethods,
    0,
    0,
    0,
    0,
    0
};

#line 48 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/codecompletionmodel.sip"
#include <ktexteditor/codecompletionmodel.h>
#line 2538 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"

#line 48 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/codecompletionmodel.sip"
#include <ktexteditor/codecompletionmodel.h>
#line 2542 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"


extern "C" {static int slot_KTextEditor_CodeCompletionModel_CompletionProperties___bool__(PyObject *);}
static int slot_KTextEditor_CodeCompletionModel_CompletionProperties___bool__(PyObject *sipSelf)
{
     ::KTextEditor::CodeCompletionModel::CompletionProperties *sipCpp = reinterpret_cast< ::KTextEditor::CodeCompletionModel::CompletionProperties *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_CodeCompletionModel_CompletionProperties));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 381 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KTextEditor::CodeCompletionModel::CompletionProperties::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 2564 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___ne__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___ne__(PyObject *sipSelf,PyObject *sipArg)
{
     ::KTextEditor::CodeCompletionModel::CompletionProperties *sipCpp = reinterpret_cast< ::KTextEditor::CodeCompletionModel::CompletionProperties *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_CodeCompletionModel_CompletionProperties));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::KTextEditor::CodeCompletionModel::CompletionProperties* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KTextEditor_CodeCompletionModel_CompletionProperties, &a0, &a0State))
        {
            bool sipRes = 0;

#line 372 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KTextEditor::CodeCompletionModel::CompletionProperties::Int() != a0->operator KTextEditor::CodeCompletionModel::CompletionProperties::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 2598 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
            sipReleaseType(const_cast< ::KTextEditor::CodeCompletionModel::CompletionProperties *>(a0),sipType_KTextEditor_CodeCompletionModel_CompletionProperties,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_ktexteditor, ne_slot, sipType_KTextEditor_CodeCompletionModel_CompletionProperties, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___eq__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___eq__(PyObject *sipSelf,PyObject *sipArg)
{
     ::KTextEditor::CodeCompletionModel::CompletionProperties *sipCpp = reinterpret_cast< ::KTextEditor::CodeCompletionModel::CompletionProperties *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_CodeCompletionModel_CompletionProperties));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::KTextEditor::CodeCompletionModel::CompletionProperties* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KTextEditor_CodeCompletionModel_CompletionProperties, &a0, &a0State))
        {
            bool sipRes = 0;

#line 363 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KTextEditor::CodeCompletionModel::CompletionProperties::Int() == a0->operator KTextEditor::CodeCompletionModel::CompletionProperties::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 2638 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
            sipReleaseType(const_cast< ::KTextEditor::CodeCompletionModel::CompletionProperties *>(a0),sipType_KTextEditor_CodeCompletionModel_CompletionProperties,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_ktexteditor, eq_slot, sipType_KTextEditor_CodeCompletionModel_CompletionProperties, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___ixor__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KTextEditor_CodeCompletionModel_CompletionProperties)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

     ::KTextEditor::CodeCompletionModel::CompletionProperties *sipCpp = reinterpret_cast< ::KTextEditor::CodeCompletionModel::CompletionProperties *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_CodeCompletionModel_CompletionProperties));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 357 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
        *sipCpp = KTextEditor::CodeCompletionModel::CompletionProperties(*sipCpp ^ a0);
#line 2677 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___xor__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTextEditor::CodeCompletionModel::CompletionProperties* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KTextEditor_CodeCompletionModel_CompletionProperties, &a0, &a0State, &a1))
        {
             ::KTextEditor::CodeCompletionModel::CompletionProperties*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::CodeCompletionModel::CompletionProperties((*a0 ^ a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KTextEditor_CodeCompletionModel_CompletionProperties,a0State);

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_CodeCompletionModel_CompletionProperties,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_ktexteditor, xor_slot, NULL, sipArg0, sipArg1);
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___ior__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KTextEditor_CodeCompletionModel_CompletionProperties)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

     ::KTextEditor::CodeCompletionModel::CompletionProperties *sipCpp = reinterpret_cast< ::KTextEditor::CodeCompletionModel::CompletionProperties *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_CodeCompletionModel_CompletionProperties));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 351 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
        *sipCpp = KTextEditor::CodeCompletionModel::CompletionProperties(*sipCpp | a0);
#line 2751 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___or__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTextEditor::CodeCompletionModel::CompletionProperties* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KTextEditor_CodeCompletionModel_CompletionProperties, &a0, &a0State, &a1))
        {
             ::KTextEditor::CodeCompletionModel::CompletionProperties*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::CodeCompletionModel::CompletionProperties((*a0 | a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KTextEditor_CodeCompletionModel_CompletionProperties,a0State);

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_CodeCompletionModel_CompletionProperties,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_ktexteditor, or_slot, NULL, sipArg0, sipArg1);
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___iand__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KTextEditor_CodeCompletionModel_CompletionProperties)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

     ::KTextEditor::CodeCompletionModel::CompletionProperties *sipCpp = reinterpret_cast< ::KTextEditor::CodeCompletionModel::CompletionProperties *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_CodeCompletionModel_CompletionProperties));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp-> ::KTextEditor::CodeCompletionModel::CompletionProperties::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___and__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTextEditor::CodeCompletionModel::CompletionProperties* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KTextEditor_CodeCompletionModel_CompletionProperties, &a0, &a0State, &a1))
        {
             ::KTextEditor::CodeCompletionModel::CompletionProperties*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::CodeCompletionModel::CompletionProperties((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KTextEditor_CodeCompletionModel_CompletionProperties,a0State);

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_CodeCompletionModel_CompletionProperties,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_ktexteditor, and_slot, NULL, sipArg0, sipArg1);
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___invert__(PyObject *);}
static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___invert__(PyObject *sipSelf)
{
     ::KTextEditor::CodeCompletionModel::CompletionProperties *sipCpp = reinterpret_cast< ::KTextEditor::CodeCompletionModel::CompletionProperties *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_CodeCompletionModel_CompletionProperties));

    if (!sipCpp)
        return 0;


    {
        {
             ::KTextEditor::CodeCompletionModel::CompletionProperties*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::CodeCompletionModel::CompletionProperties(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_CodeCompletionModel_CompletionProperties,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___int__(PyObject *);}
static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___int__(PyObject *sipSelf)
{
     ::KTextEditor::CodeCompletionModel::CompletionProperties *sipCpp = reinterpret_cast< ::KTextEditor::CodeCompletionModel::CompletionProperties *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_CodeCompletionModel_CompletionProperties));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTextEditor_CodeCompletionModel_CompletionProperties(void *, int);}
static void release_KTextEditor_CodeCompletionModel_CompletionProperties(void *sipCppV, int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast< ::KTextEditor::CodeCompletionModel::CompletionProperties *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KTextEditor_CodeCompletionModel_CompletionProperties(void *, SIP_SSIZE_T, const void *);}
static void assign_KTextEditor_CodeCompletionModel_CompletionProperties(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast< ::KTextEditor::CodeCompletionModel::CompletionProperties *>(sipDst)[sipDstIdx] = *reinterpret_cast<const  ::KTextEditor::CodeCompletionModel::CompletionProperties *>(sipSrc);
}


extern "C" {static void *array_KTextEditor_CodeCompletionModel_CompletionProperties(SIP_SSIZE_T);}
static void *array_KTextEditor_CodeCompletionModel_CompletionProperties(SIP_SSIZE_T sipNrElem)
{
    return new  ::KTextEditor::CodeCompletionModel::CompletionProperties[sipNrElem];
}


extern "C" {static void *copy_KTextEditor_CodeCompletionModel_CompletionProperties(const void *, SIP_SSIZE_T);}
static void *copy_KTextEditor_CodeCompletionModel_CompletionProperties(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new  ::KTextEditor::CodeCompletionModel::CompletionProperties(reinterpret_cast<const  ::KTextEditor::CodeCompletionModel::CompletionProperties *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KTextEditor_CodeCompletionModel_CompletionProperties(sipSimpleWrapper *);}
static void dealloc_KTextEditor_CodeCompletionModel_CompletionProperties(sipSimpleWrapper *sipSelf)
{
    if (sipIsOwnedByPython(sipSelf))
    {
        release_KTextEditor_CodeCompletionModel_CompletionProperties(sipGetAddress(sipSelf), 0);
    }
}


extern "C" {static void *init_type_KTextEditor_CodeCompletionModel_CompletionProperties(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTextEditor_CodeCompletionModel_CompletionProperties(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
     ::KTextEditor::CodeCompletionModel::CompletionProperties *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new  ::KTextEditor::CodeCompletionModel::CompletionProperties();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new  ::KTextEditor::CodeCompletionModel::CompletionProperties(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const  ::KTextEditor::CodeCompletionModel::CompletionProperties* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_KTextEditor_CodeCompletionModel_CompletionProperties, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new  ::KTextEditor::CodeCompletionModel::CompletionProperties(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::KTextEditor::CodeCompletionModel::CompletionProperties *>(a0),sipType_KTextEditor_CodeCompletionModel_CompletionProperties,a0State);

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_KTextEditor_CodeCompletionModel_CompletionProperties(PyObject *, void **, int *, PyObject *);}
static int convertTo_KTextEditor_CodeCompletionModel_CompletionProperties(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
     ::KTextEditor::CodeCompletionModel::CompletionProperties **sipCppPtr = reinterpret_cast< ::KTextEditor::CodeCompletionModel::CompletionProperties **>(sipCppPtrV);

#line 390 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a KTextEditor::CodeCompletionModel::CompletionProperties is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KTextEditor_CodeCompletionModel_CompletionProperty)) ||
            sipCanConvertToType(sipPy, sipType_KTextEditor_CodeCompletionModel_CompletionProperties, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KTextEditor_CodeCompletionModel_CompletionProperty)))
{
    *sipCppPtr = new KTextEditor::CodeCompletionModel::CompletionProperties(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KTextEditor::CodeCompletionModel::CompletionProperties *>(sipConvertToType(sipPy, sipType_KTextEditor_CodeCompletionModel_CompletionProperties, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 3039 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KTextEditor_CodeCompletionModel_CompletionProperties[] = {
    {(void *)slot_KTextEditor_CodeCompletionModel_CompletionProperties___bool__, bool_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_CompletionProperties___ne__, ne_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_CompletionProperties___eq__, eq_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_CompletionProperties___ixor__, ixor_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_CompletionProperties___xor__, xor_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_CompletionProperties___ior__, ior_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_CompletionProperties___or__, or_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_CompletionProperties___iand__, iand_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_CompletionProperties___and__, and_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_CompletionProperties___invert__, invert_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_CompletionProperties___int__, int_slot},
    {0, (sipPySlotType)0}
};


static pyqt4ClassPluginDef plugin_KTextEditor_CodeCompletionModel_CompletionProperties = {
    0,
    1,
    0
};


sipClassTypeDef sipTypeDef_ktexteditor_KTextEditor_CodeCompletionModel_CompletionProperties = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__CodeCompletionModel__CompletionProperties,
        {0},
        &plugin_KTextEditor_CodeCompletionModel_CompletionProperties
    },
    {
        sipNameNr_CompletionProperties,
        {11, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KTextEditor_CodeCompletionModel_CompletionProperties,
    init_type_KTextEditor_CodeCompletionModel_CompletionProperties,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_CodeCompletionModel_CompletionProperties,
    assign_KTextEditor_CodeCompletionModel_CompletionProperties,
    array_KTextEditor_CodeCompletionModel_CompletionProperties,
    copy_KTextEditor_CodeCompletionModel_CompletionProperties,
    release_KTextEditor_CodeCompletionModel_CompletionProperties,
    0,
    convertTo_KTextEditor_CodeCompletionModel_CompletionProperties,
    0,
    0,
    0,
    0,
    0
};

#line 48 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/codecompletionmodel.sip"
#include <ktexteditor/codecompletionmodel.h>
#line 3118 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"

#line 29 "/usr/share/sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 3122 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 3125 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 139 "/usr/share/sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 3128 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3131 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 265 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3134 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
#include <ktexteditor/document.h>

#include <ktexteditor/modificationinterface.h>
#include <ktexteditor/markinterface.h>
#include <ktexteditor/searchinterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/smartinterface.h>
#include <ktexteditor/templateinterface.h>
#include <ktexteditor/variableinterface.h>
#include <ktexteditor/movinginterface.h>
#include <ktexteditor/annotationinterface.h>
#include <ktexteditor/highlightinterface.h>
#include <ktexteditor/configinterface.h>
#include <ktexteditor/modeinterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/recoveryinterface.h>

#line 3153 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/range.sip"
#include <ktexteditor/range.h>
#line 3156 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/view.sip"
#include <ktexteditor/view.h>

#include <ktexteditor/codecompletioninterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/texthintinterface.h>
#include <ktexteditor/annotationinterface.h>
#include <ktexteditor/configinterface.h>
#include <ktexteditor/templateinterface.h>
#include <ktexteditor/templateinterface2.h>
#line 3167 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 139 "/usr/share/sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 3170 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3173 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3176 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3179 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 3182 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3185 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 3188 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3191 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3194 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 3197 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 3200 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3203 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 368 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3206 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 351 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3209 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3212 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3215 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 3218 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 3221 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 3224 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 3227 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"


class sipKTextEditor_CodeCompletionModel : public  ::KTextEditor::CodeCompletionModel
{
public:
    sipKTextEditor_CodeCompletionModel( ::QObject*);
    virtual ~sipKTextEditor_CodeCompletionModel();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void executeCompletionItem( ::KTextEditor::Document*,const  ::KTextEditor::Range&,int) const;
    void completionInvoked( ::KTextEditor::View*,const  ::KTextEditor::Range&, ::KTextEditor::CodeCompletionModel::InvocationType);
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent( ::QEvent*);
    void childEvent( ::QChildEvent*);
    void timerEvent( ::QTimerEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    bool event( ::QEvent*);
     ::QModelIndex index(int,int,const  ::QModelIndex&) const;
     ::QModelIndex parent(const  ::QModelIndex&) const;
    int rowCount(const  ::QModelIndex&) const;
    int columnCount(const  ::QModelIndex&) const;
    bool hasChildren(const  ::QModelIndex&) const;
     ::QVariant data(const  ::QModelIndex&,int) const;
    bool setData(const  ::QModelIndex&,const  ::QVariant&,int);
     ::QVariant headerData(int, ::Qt::Orientation,int) const;
    bool setHeaderData(int, ::Qt::Orientation,const  ::QVariant&,int);
    QMap<int, ::QVariant> itemData(const  ::QModelIndex&) const;
    bool setItemData(const  ::QModelIndex&,const QMap<int, ::QVariant>&);
     ::QStringList mimeTypes() const;
     ::QMimeData* mimeData(const  ::QModelIndexList&) const;
    bool dropMimeData(const  ::QMimeData*, ::Qt::DropAction,int,int,const  ::QModelIndex&);
     ::Qt::DropActions supportedDropActions() const;
    bool insertRows(int,int,const  ::QModelIndex&);
    bool insertColumns(int,int,const  ::QModelIndex&);
    bool removeRows(int,int,const  ::QModelIndex&);
    bool removeColumns(int,int,const  ::QModelIndex&);
    void fetchMore(const  ::QModelIndex&);
    bool canFetchMore(const  ::QModelIndex&) const;
     ::Qt::ItemFlags flags(const  ::QModelIndex&) const;
    void sort(int, ::Qt::SortOrder);
     ::QModelIndex buddy(const  ::QModelIndex&) const;
     ::QModelIndexList match(const  ::QModelIndex&,int,const  ::QVariant&,int, ::Qt::MatchFlags) const;
     ::QSize span(const  ::QModelIndex&) const;
    bool submit();
    void revert();

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[37];
};

sipKTextEditor_CodeCompletionModel::sipKTextEditor_CodeCompletionModel( ::QObject*a0):  ::KTextEditor::CodeCompletionModel(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKTextEditor_CodeCompletionModel::metaObject() const
{
    return sip_ktexteditor_qt_metaobject(sipPySelf,sipType_KTextEditor_CodeCompletionModel);
}

int sipKTextEditor_CodeCompletionModel::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id =  ::KTextEditor::CodeCompletionModel::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_ktexteditor_qt_metacall(sipPySelf,sipType_KTextEditor_CodeCompletionModel,_c,_id,_a);

    return _id;
}

void *sipKTextEditor_CodeCompletionModel::qt_metacast(const char *_clname)
{
    return (sip_ktexteditor_qt_metacast(sipPySelf, sipType_KTextEditor_CodeCompletionModel, _clname)) ? this :  ::KTextEditor::CodeCompletionModel::qt_metacast(_clname);
}

void sipKTextEditor_CodeCompletionModel::executeCompletionItem( ::KTextEditor::Document*a0,const  ::KTextEditor::Range& a1,int a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_executeCompletionItem);

    if (!sipMeth)
    {
         ::KTextEditor::CodeCompletionModel::executeCompletionItem(a0,a1,a2);
        return;
    }

    extern void sipVH_ktexteditor_38(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KTextEditor::Document*,const  ::KTextEditor::Range&,int);

    sipVH_ktexteditor_38(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipKTextEditor_CodeCompletionModel::completionInvoked( ::KTextEditor::View*a0,const  ::KTextEditor::Range& a1, ::KTextEditor::CodeCompletionModel::InvocationType a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KTextEditor::CodeCompletionModel::completionInvoked(a0,a1,a2);
        return;
    }

    extern void sipVH_ktexteditor_37(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KTextEditor::View*,const  ::KTextEditor::Range&, ::KTextEditor::CodeCompletionModel::InvocationType);

    sipVH_ktexteditor_37(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipKTextEditor_CodeCompletionModel::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern void sipVH_ktexteditor_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_ktexteditor_0(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_CodeCompletionModel::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern void sipVH_ktexteditor_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_ktexteditor_0(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

    sipVH_ktexteditor_1(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

    sipVH_ktexteditor_2(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

    sipVH_ktexteditor_3(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

    return sipVH_ktexteditor_4(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

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

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

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel::event(a0);

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

    return sipVH_ktexteditor_5(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::QModelIndex sipKTextEditor_CodeCompletionModel::index(int a0,int a1,const  ::QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_index);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel::index(a0,a1,a2);

    extern  ::QModelIndex sipVH_ktexteditor_36(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

    return sipVH_ktexteditor_36(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

 ::QModelIndex sipKTextEditor_CodeCompletionModel::parent(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,NULL,sipName_parent);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel::parent(a0);

    extern  ::QModelIndex sipVH_ktexteditor_19(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_ktexteditor_19(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKTextEditor_CodeCompletionModel::rowCount(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,NULL,sipName_rowCount);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel::rowCount(a0);

    extern int sipVH_ktexteditor_35(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_ktexteditor_35(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKTextEditor_CodeCompletionModel::columnCount(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,NULL,sipName_columnCount);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel::columnCount(a0);

    extern int sipVH_ktexteditor_35(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_ktexteditor_35(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_CodeCompletionModel::hasChildren(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[13]),sipPySelf,NULL,sipName_hasChildren);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel::hasChildren(a0);

    extern bool sipVH_ktexteditor_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_ktexteditor_22(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::QVariant sipKTextEditor_CodeCompletionModel::data(const  ::QModelIndex& a0,int a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[14]),sipPySelf,sipName_CodeCompletionModel,sipName_data);

    if (!sipMeth)
        return  ::QVariant();

    extern  ::QVariant sipVH_ktexteditor_34(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,int);

    return sipVH_ktexteditor_34(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKTextEditor_CodeCompletionModel::setData(const  ::QModelIndex& a0,const  ::QVariant& a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_setData);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel::setData(a0,a1,a2);

    extern bool sipVH_ktexteditor_33(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,const  ::QVariant&,int);

    return sipVH_ktexteditor_33(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

 ::QVariant sipKTextEditor_CodeCompletionModel::headerData(int a0, ::Qt::Orientation a1,int a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[16]),sipPySelf,NULL,sipName_headerData);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel::headerData(a0,a1,a2);

    extern  ::QVariant sipVH_ktexteditor_32(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int, ::Qt::Orientation,int);

    return sipVH_ktexteditor_32(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipKTextEditor_CodeCompletionModel::setHeaderData(int a0, ::Qt::Orientation a1,const  ::QVariant& a2,int a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_setHeaderData);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel::setHeaderData(a0,a1,a2,a3);

    extern bool sipVH_ktexteditor_31(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int, ::Qt::Orientation,const  ::QVariant&,int);

    return sipVH_ktexteditor_31(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3);
}

QMap<int, ::QVariant> sipKTextEditor_CodeCompletionModel::itemData(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[18]),sipPySelf,NULL,sipName_itemData);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel::itemData(a0);

    extern QMap<int, ::QVariant> sipVH_ktexteditor_30(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_ktexteditor_30(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_CodeCompletionModel::setItemData(const  ::QModelIndex& a0,const QMap<int, ::QVariant>& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_setItemData);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel::setItemData(a0,a1);

    extern bool sipVH_ktexteditor_29(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,const QMap<int, ::QVariant>&);

    return sipVH_ktexteditor_29(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

 ::QStringList sipKTextEditor_CodeCompletionModel::mimeTypes() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[20]),sipPySelf,NULL,sipName_mimeTypes);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel::mimeTypes();

    extern  ::QStringList sipVH_ktexteditor_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_28(sipGILState, 0, sipPySelf, sipMeth);
}

 ::QMimeData* sipKTextEditor_CodeCompletionModel::mimeData(const  ::QModelIndexList& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[21]),sipPySelf,NULL,sipName_mimeData);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel::mimeData(a0);

    extern  ::QMimeData* sipVH_ktexteditor_27(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndexList&);

    return sipVH_ktexteditor_27(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_CodeCompletionModel::dropMimeData(const  ::QMimeData*a0, ::Qt::DropAction a1,int a2,int a3,const  ::QModelIndex& a4)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_dropMimeData);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel::dropMimeData(a0,a1,a2,a3,a4);

    extern bool sipVH_ktexteditor_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMimeData*, ::Qt::DropAction,int,int,const  ::QModelIndex&);

    return sipVH_ktexteditor_26(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

 ::Qt::DropActions sipKTextEditor_CodeCompletionModel::supportedDropActions() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[23]),sipPySelf,NULL,sipName_supportedDropActions);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel::supportedDropActions();

    extern  ::Qt::DropActions sipVH_ktexteditor_25(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_25(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_CodeCompletionModel::insertRows(int a0,int a1,const  ::QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_insertRows);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel::insertRows(a0,a1,a2);

    extern bool sipVH_ktexteditor_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

    return sipVH_ktexteditor_24(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipKTextEditor_CodeCompletionModel::insertColumns(int a0,int a1,const  ::QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,NULL,sipName_insertColumns);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel::insertColumns(a0,a1,a2);

    extern bool sipVH_ktexteditor_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

    return sipVH_ktexteditor_24(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipKTextEditor_CodeCompletionModel::removeRows(int a0,int a1,const  ::QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_removeRows);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel::removeRows(a0,a1,a2);

    extern bool sipVH_ktexteditor_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

    return sipVH_ktexteditor_24(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipKTextEditor_CodeCompletionModel::removeColumns(int a0,int a1,const  ::QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,NULL,sipName_removeColumns);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel::removeColumns(a0,a1,a2);

    extern bool sipVH_ktexteditor_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

    return sipVH_ktexteditor_24(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipKTextEditor_CodeCompletionModel::fetchMore(const  ::QModelIndex& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_fetchMore);

    if (!sipMeth)
    {
         ::KTextEditor::CodeCompletionModel::fetchMore(a0);
        return;
    }

    extern void sipVH_ktexteditor_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    sipVH_ktexteditor_23(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_CodeCompletionModel::canFetchMore(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[29]),sipPySelf,NULL,sipName_canFetchMore);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel::canFetchMore(a0);

    extern bool sipVH_ktexteditor_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_ktexteditor_22(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::Qt::ItemFlags sipKTextEditor_CodeCompletionModel::flags(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[30]),sipPySelf,NULL,sipName_flags);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel::flags(a0);

    extern  ::Qt::ItemFlags sipVH_ktexteditor_21(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_ktexteditor_21(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_CodeCompletionModel::sort(int a0, ::Qt::SortOrder a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,NULL,sipName_sort);

    if (!sipMeth)
    {
         ::KTextEditor::CodeCompletionModel::sort(a0,a1);
        return;
    }

    extern void sipVH_ktexteditor_20(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int, ::Qt::SortOrder);

    sipVH_ktexteditor_20(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

 ::QModelIndex sipKTextEditor_CodeCompletionModel::buddy(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[32]),sipPySelf,NULL,sipName_buddy);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel::buddy(a0);

    extern  ::QModelIndex sipVH_ktexteditor_19(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_ktexteditor_19(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::QModelIndexList sipKTextEditor_CodeCompletionModel::match(const  ::QModelIndex& a0,int a1,const  ::QVariant& a2,int a3, ::Qt::MatchFlags a4) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[33]),sipPySelf,NULL,sipName_match);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel::match(a0,a1,a2,a3,a4);

    extern  ::QModelIndexList sipVH_ktexteditor_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,int,const  ::QVariant&,int, ::Qt::MatchFlags);

    return sipVH_ktexteditor_18(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

 ::QSize sipKTextEditor_CodeCompletionModel::span(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[34]),sipPySelf,NULL,sipName_span);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel::span(a0);

    extern  ::QSize sipVH_ktexteditor_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_ktexteditor_17(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_CodeCompletionModel::submit()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],sipPySelf,NULL,sipName_submit);

    if (!sipMeth)
        return  ::KTextEditor::CodeCompletionModel::submit();

    extern bool sipVH_ktexteditor_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_10(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKTextEditor_CodeCompletionModel::revert()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[36],sipPySelf,NULL,sipName_revert);

    if (!sipMeth)
    {
         ::KTextEditor::CodeCompletionModel::revert();
        return;
    }

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

    sipVH_ktexteditor_15(sipGILState, 0, sipPySelf, sipMeth);
}


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

    {
        int a0;
         ::KTextEditor::CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_CodeCompletionModel, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setRowCount(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
         ::KTextEditor::View* a0;
        const  ::KTextEditor::Range* a1;
         ::KTextEditor::CodeCompletionModel::InvocationType a2;
         ::KTextEditor::CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J9E", &sipSelf, sipType_KTextEditor_CodeCompletionModel, &sipCpp, sipType_KTextEditor_View, &a0, sipType_KTextEditor_Range, &a1, sipType_KTextEditor_CodeCompletionModel_InvocationType, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KTextEditor::CodeCompletionModel::completionInvoked(a0,*a1,a2) : sipCpp->completionInvoked(a0,*a1,a2));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
         ::KTextEditor::Document* a0;
        const  ::KTextEditor::Range* a1;
        int a2;
        const  ::KTextEditor::CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J9i", &sipSelf, sipType_KTextEditor_CodeCompletionModel, &sipCpp, sipType_KTextEditor_Document, &a0, sipType_KTextEditor_Range, &a1, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KTextEditor::CodeCompletionModel::executeCompletionItem(a0,*a1,a2) : sipCpp->executeCompletionItem(a0,*a1,a2));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const  ::QModelIndex& a0def = QModelIndex();
        const  ::QModelIndex* a0 = &a0def;
        const  ::KTextEditor::CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J9", &sipSelf, sipType_KTextEditor_CodeCompletionModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTextEditor::CodeCompletionModel::columnCount(*a0) : sipCpp->columnCount(*a0));
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        int a1;
        const  ::QModelIndex& a2def = QModelIndex();
        const  ::QModelIndex* a2 = &a2def;
        const  ::KTextEditor::CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii|J9", &sipSelf, sipType_KTextEditor_CodeCompletionModel, &sipCpp, &a0, &a1, sipType_QModelIndex, &a2))
        {
             ::QModelIndex*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QModelIndex((sipSelfWasArg ? sipCpp-> ::KTextEditor::CodeCompletionModel::index(a0,a1,*a2) : sipCpp->index(a0,a1,*a2)));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QModelIndex,NULL);
        }
    }

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

    return NULL;
}


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

    {
        const  ::QModelIndex* a0;
        const  ::KTextEditor::CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_CodeCompletionModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            QMap<int, ::QVariant>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QMap<int, ::QVariant>((sipSelfWasArg ? sipCpp-> ::KTextEditor::CodeCompletionModel::itemData(*a0) : sipCpp->itemData(*a0)));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QMap_1800_0100QVariant,NULL);
        }
    }

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

    return NULL;
}


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

    {
        const  ::QModelIndex* a0;
        const  ::KTextEditor::CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_CodeCompletionModel, &sipCpp, sipType_QModelIndex, &a0))
        {
             ::QModelIndex*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QModelIndex((sipSelfWasArg ? sipCpp-> ::KTextEditor::CodeCompletionModel::parent(*a0) : sipCpp->parent(*a0)));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QModelIndex,NULL);
        }
    }

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

    return NULL;
}


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

    {
        const  ::QModelIndex& a0def = QModelIndex();
        const  ::QModelIndex* a0 = &a0def;
        const  ::KTextEditor::CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J9", &sipSelf, sipType_KTextEditor_CodeCompletionModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTextEditor::CodeCompletionModel::rowCount(*a0) : sipCpp->rowCount(*a0));
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KTextEditor::CodeCompletionModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasGroups();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
         ::KTextEditor::CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pb", &sipSelf, sipType_KTextEditor_CodeCompletionModel, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setHasGroups(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_QAbstractItemModel)
        return static_cast< ::QAbstractItemModel *>(sipCpp);

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

    return sipCppV;
}


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
         ::QObject* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_CodeCompletionModel(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KTextEditor_CodeCompletionModel[] = {
    {SIP_MLNAME_CAST(sipName_columnCount), meth_KTextEditor_CodeCompletionModel_columnCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_completionInvoked), meth_KTextEditor_CodeCompletionModel_completionInvoked, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_executeCompletionItem), meth_KTextEditor_CodeCompletionModel_executeCompletionItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasGroups), meth_KTextEditor_CodeCompletionModel_hasGroups, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_index), meth_KTextEditor_CodeCompletionModel_index, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_itemData), meth_KTextEditor_CodeCompletionModel_itemData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parent), meth_KTextEditor_CodeCompletionModel_parent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rowCount), meth_KTextEditor_CodeCompletionModel_rowCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setHasGroups), meth_KTextEditor_CodeCompletionModel_setHasGroups, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRowCount), meth_KTextEditor_CodeCompletionModel_setRowCount, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KTextEditor_CodeCompletionModel[] = {
    {sipName_AccessibilityAccept, static_cast<int>( ::KTextEditor::CodeCompletionModel::AccessibilityAccept), 16},
    {sipName_AccessibilityNext, static_cast<int>( ::KTextEditor::CodeCompletionModel::AccessibilityNext), 16},
    {sipName_AccessibilityPrevious, static_cast<int>( ::KTextEditor::CodeCompletionModel::AccessibilityPrevious), 16},
    {sipName_ArgumentHintDepth, static_cast<int>( ::KTextEditor::CodeCompletionModel::ArgumentHintDepth), 16},
    {sipName_Arguments, static_cast<int>( ::KTextEditor::CodeCompletionModel::Arguments), 13},
    {sipName_AutomaticInvocation, static_cast<int>( ::KTextEditor::CodeCompletionModel::AutomaticInvocation), 19},
    {sipName_BestMatchesCount, static_cast<int>( ::KTextEditor::CodeCompletionModel::BestMatchesCount), 16},
    {sipName_Class, static_cast<int>( ::KTextEditor::CodeCompletionModel::Class), 15},
    {sipName_CompletionRole, static_cast<int>( ::KTextEditor::CodeCompletionModel::CompletionRole), 16},
    {sipName_Const, static_cast<int>( ::KTextEditor::CodeCompletionModel::Const), 15},
    {sipName_CustomHighlight, static_cast<int>( ::KTextEditor::CodeCompletionModel::CustomHighlight), 16},
    {sipName_CustomHighlighting, static_cast<int>( ::KTextEditor::CodeCompletionModel::CustomHighlighting), 17},
    {sipName_Enum, static_cast<int>( ::KTextEditor::CodeCompletionModel::Enum), 15},
    {sipName_ExpandingWidget, static_cast<int>( ::KTextEditor::CodeCompletionModel::ExpandingWidget), 16},
    {sipName_FirstProperty, static_cast<int>( ::KTextEditor::CodeCompletionModel::FirstProperty), 15},
    {sipName_Friend, static_cast<int>( ::KTextEditor::CodeCompletionModel::Friend), 15},
    {sipName_Function, static_cast<int>( ::KTextEditor::CodeCompletionModel::Function), 15},
    {sipName_GlobalScope, static_cast<int>( ::KTextEditor::CodeCompletionModel::GlobalScope), 15},
    {sipName_GroupRole, static_cast<int>( ::KTextEditor::CodeCompletionModel::GroupRole), 16},
    {sipName_HighlightingMethod, static_cast<int>( ::KTextEditor::CodeCompletionModel::HighlightingMethod), 16},
    {sipName_Icon, static_cast<int>( ::KTextEditor::CodeCompletionModel::Icon), 13},
    {sipName_InheritanceDepth, static_cast<int>( ::KTextEditor::CodeCompletionModel::InheritanceDepth), 16},
    {sipName_Inline, static_cast<int>( ::KTextEditor::CodeCompletionModel::Inline), 15},
    {sipName_InternalHighlighting, static_cast<int>( ::KTextEditor::CodeCompletionModel::InternalHighlighting), 17},
    {sipName_IsExpandable, static_cast<int>( ::KTextEditor::CodeCompletionModel::IsExpandable), 16},
    {sipName_ItemSelected, static_cast<int>( ::KTextEditor::CodeCompletionModel::ItemSelected), 16},
    {sipName_LastProperty, static_cast<int>( ::KTextEditor::CodeCompletionModel::LastProperty), 15},
    {sipName_LocalScope, static_cast<int>( ::KTextEditor::CodeCompletionModel::LocalScope), 15},
    {sipName_ManualInvocation, static_cast<int>( ::KTextEditor::CodeCompletionModel::ManualInvocation), 19},
    {sipName_MatchQuality, static_cast<int>( ::KTextEditor::CodeCompletionModel::MatchQuality), 16},
    {sipName_Name, static_cast<int>( ::KTextEditor::CodeCompletionModel::Name), 13},
    {sipName_Namespace, static_cast<int>( ::KTextEditor::CodeCompletionModel::Namespace), 15},
    {sipName_NamespaceScope, static_cast<int>( ::KTextEditor::CodeCompletionModel::NamespaceScope), 15},
    {sipName_NoHighlighting, static_cast<int>( ::KTextEditor::CodeCompletionModel::NoHighlighting), 17},
    {sipName_NoProperty, static_cast<int>( ::KTextEditor::CodeCompletionModel::NoProperty), 15},
    {sipName_Override, static_cast<int>( ::KTextEditor::CodeCompletionModel::Override), 15},
    {sipName_Postfix, static_cast<int>( ::KTextEditor::CodeCompletionModel::Postfix), 13},
    {sipName_Prefix, static_cast<int>( ::KTextEditor::CodeCompletionModel::Prefix), 13},
    {sipName_Private, static_cast<int>( ::KTextEditor::CodeCompletionModel::Private), 15},
    {sipName_Protected, static_cast<int>( ::KTextEditor::CodeCompletionModel::Protected), 15},
    {sipName_Public, static_cast<int>( ::KTextEditor::CodeCompletionModel::Public), 15},
    {sipName_Scope, static_cast<int>( ::KTextEditor::CodeCompletionModel::Scope), 13},
    {sipName_ScopeIndex, static_cast<int>( ::KTextEditor::CodeCompletionModel::ScopeIndex), 16},
    {sipName_SetMatchContext, static_cast<int>( ::KTextEditor::CodeCompletionModel::SetMatchContext), 16},
    {sipName_Signal, static_cast<int>( ::KTextEditor::CodeCompletionModel::Signal), 15},
    {sipName_Slot, static_cast<int>( ::KTextEditor::CodeCompletionModel::Slot), 15},
    {sipName_Static, static_cast<int>( ::KTextEditor::CodeCompletionModel::Static), 15},
    {sipName_Struct, static_cast<int>( ::KTextEditor::CodeCompletionModel::Struct), 15},
    {sipName_Template, static_cast<int>( ::KTextEditor::CodeCompletionModel::Template), 15},
    {sipName_TypeAlias, static_cast<int>( ::KTextEditor::CodeCompletionModel::TypeAlias), 15},
    {sipName_Union, static_cast<int>( ::KTextEditor::CodeCompletionModel::Union), 15},
    {sipName_UserInvocation, static_cast<int>( ::KTextEditor::CodeCompletionModel::UserInvocation), 19},
    {sipName_Variable, static_cast<int>( ::KTextEditor::CodeCompletionModel::Variable), 15},
    {sipName_Virtual, static_cast<int>( ::KTextEditor::CodeCompletionModel::Virtual), 15},
};


extern "C" {static PyObject *varget_KTextEditor_CodeCompletionModel_ColumnCount(void *, PyObject *, PyObject *);}
static PyObject *varget_KTextEditor_CodeCompletionModel_ColumnCount(void *, PyObject *, PyObject *)
{
    int sipVal;

    sipVal =  ::KTextEditor::CodeCompletionModel::ColumnCount;

    return SIPLong_FromLong(sipVal);
}


extern "C" {static PyObject *varget_KTextEditor_CodeCompletionModel_LastItemDataRole(void *, PyObject *, PyObject *);}
static PyObject *varget_KTextEditor_CodeCompletionModel_LastItemDataRole(void *, PyObject *, PyObject *)
{
    int sipVal;

    sipVal =  ::KTextEditor::CodeCompletionModel::LastItemDataRole;

    return SIPLong_FromLong(sipVal);
}

sipVariableDef variables_KTextEditor_CodeCompletionModel[] = {
    {ClassVariable, sipName_ColumnCount, (PyMethodDef *)varget_KTextEditor_CodeCompletionModel_ColumnCount, NULL, NULL, NULL},
    {ClassVariable, sipName_LastItemDataRole, (PyMethodDef *)varget_KTextEditor_CodeCompletionModel_LastItemDataRole, NULL, NULL, NULL},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KTextEditor_CodeCompletionModel[] = {
    {"hasGroupsChanged(KTextEditor::CodeCompletionModel*,bool)", 0, 0, 0},
    {"waitForReset()", 0, 0, 0},
    {0, 0, 0, 0}
};


static pyqt4ClassPluginDef plugin_KTextEditor_CodeCompletionModel = {
    & ::KTextEditor::CodeCompletionModel::staticMetaObject,
    0,
    signals_KTextEditor_CodeCompletionModel
};


sipClassTypeDef sipTypeDef_ktexteditor_KTextEditor_CodeCompletionModel = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__CodeCompletionModel,
        {0},
        &plugin_KTextEditor_CodeCompletionModel
    },
    {
        sipNameNr_CodeCompletionModel,
        {1, 255, 0},
        10, methods_KTextEditor_CodeCompletionModel,
        54, enummembers_KTextEditor_CodeCompletionModel,
        2, variables_KTextEditor_CodeCompletionModel,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTextEditor_CodeCompletionModel,
    0,
    init_type_KTextEditor_CodeCompletionModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_CodeCompletionModel,
    0,
    0,
    0,
    release_KTextEditor_CodeCompletionModel,
    cast_KTextEditor_CodeCompletionModel,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/codecompletioninterface.sip"
#include <ktexteditor/codecompletioninterface.h>
#line 4438 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"

#line 48 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/codecompletionmodel.sip"
#include <ktexteditor/codecompletionmodel.h>
#line 4442 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/range.sip"
#include <ktexteditor/range.h>
#line 4445 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"


class sipKTextEditor_CodeCompletionInterface : public  ::KTextEditor::CodeCompletionInterface
{
public:
    sipKTextEditor_CodeCompletionInterface();
    sipKTextEditor_CodeCompletionInterface(const  ::KTextEditor::CodeCompletionInterface&);
    virtual ~sipKTextEditor_CodeCompletionInterface();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void setAutomaticInvocationEnabled(bool);
    bool isAutomaticInvocationEnabled() const;
    void unregisterCompletionModel( ::KTextEditor::CodeCompletionModel*);
    void registerCompletionModel( ::KTextEditor::CodeCompletionModel*);
    void forceCompletion();
    void abortCompletion();
    void startCompletion(const  ::KTextEditor::Range&, ::KTextEditor::CodeCompletionModel*);
    bool isCompletionActive() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[8];
};

sipKTextEditor_CodeCompletionInterface::sipKTextEditor_CodeCompletionInterface():  ::KTextEditor::CodeCompletionInterface(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_CodeCompletionInterface::sipKTextEditor_CodeCompletionInterface(const  ::KTextEditor::CodeCompletionInterface& a0):  ::KTextEditor::CodeCompletionInterface(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

void sipKTextEditor_CodeCompletionInterface::setAutomaticInvocationEnabled(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_CodeCompletionInterface,sipName_setAutomaticInvocationEnabled);

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    sipVH_ktexteditor_9(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_CodeCompletionInterface::isAutomaticInvocationEnabled() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,sipName_CodeCompletionInterface,sipName_isAutomaticInvocationEnabled);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_10(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKTextEditor_CodeCompletionInterface::unregisterCompletionModel( ::KTextEditor::CodeCompletionModel*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_CodeCompletionInterface,sipName_unregisterCompletionModel);

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_16(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KTextEditor::CodeCompletionModel*);

    sipVH_ktexteditor_16(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_CodeCompletionInterface::registerCompletionModel( ::KTextEditor::CodeCompletionModel*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,sipName_CodeCompletionInterface,sipName_registerCompletionModel);

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_16(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KTextEditor::CodeCompletionModel*);

    sipVH_ktexteditor_16(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_CodeCompletionInterface::forceCompletion()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,sipName_CodeCompletionInterface,sipName_forceCompletion);

    if (!sipMeth)
        return;

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

    sipVH_ktexteditor_15(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKTextEditor_CodeCompletionInterface::abortCompletion()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,sipName_CodeCompletionInterface,sipName_abortCompletion);

    if (!sipMeth)
        return;

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

    sipVH_ktexteditor_15(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKTextEditor_CodeCompletionInterface::startCompletion(const  ::KTextEditor::Range& a0, ::KTextEditor::CodeCompletionModel*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,sipName_CodeCompletionInterface,sipName_startCompletion);

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTextEditor::Range&, ::KTextEditor::CodeCompletionModel*);

    sipVH_ktexteditor_14(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKTextEditor_CodeCompletionInterface::isCompletionActive() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,sipName_CodeCompletionInterface,sipName_isCompletionActive);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_10(sipGILState, 0, sipPySelf, sipMeth);
}


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

    {
        const  ::KTextEditor::CodeCompletionInterface *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_CodeCompletionInterface, sipName_isCompletionActive);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isCompletionActive();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KTextEditor::Range* a0;
         ::KTextEditor::CodeCompletionModel* a1;
         ::KTextEditor::CodeCompletionInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J8", &sipSelf, sipType_KTextEditor_CodeCompletionInterface, &sipCpp, sipType_KTextEditor_Range, &a0, sipType_KTextEditor_CodeCompletionModel, &a1))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_CodeCompletionInterface, sipName_startCompletion);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->startCompletion(*a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
         ::KTextEditor::CodeCompletionInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_CodeCompletionInterface, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_CodeCompletionInterface, sipName_abortCompletion);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->abortCompletion();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
         ::KTextEditor::CodeCompletionInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_CodeCompletionInterface, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_CodeCompletionInterface, sipName_forceCompletion);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->forceCompletion();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
         ::KTextEditor::CodeCompletionModel* a0;
         ::KTextEditor::CodeCompletionInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_CodeCompletionInterface, &sipCpp, sipType_KTextEditor_CodeCompletionModel, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_CodeCompletionInterface, sipName_registerCompletionModel);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->registerCompletionModel(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
         ::KTextEditor::CodeCompletionModel* a0;
         ::KTextEditor::CodeCompletionInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_CodeCompletionInterface, &sipCpp, sipType_KTextEditor_CodeCompletionModel, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_CodeCompletionInterface, sipName_unregisterCompletionModel);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->unregisterCompletionModel(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const  ::KTextEditor::CodeCompletionInterface *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_CodeCompletionInterface, sipName_isAutomaticInvocationEnabled);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isAutomaticInvocationEnabled();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0 = 1;
         ::KTextEditor::CodeCompletionInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_KTextEditor_CodeCompletionInterface, &sipCpp, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_CodeCompletionInterface, sipName_setAutomaticInvocationEnabled);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAutomaticInvocationEnabled(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTextEditor_CodeCompletionInterface(void *, int);}
static void release_KTextEditor_CodeCompletionInterface(void *sipCppV, int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTextEditor_CodeCompletionInterface *>(sipCppV);
    else
        delete reinterpret_cast< ::KTextEditor::CodeCompletionInterface *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_CodeCompletionInterface();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::KTextEditor::CodeCompletionInterface* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KTextEditor_CodeCompletionInterface, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_CodeCompletionInterface(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTextEditor_CodeCompletionInterface[] = {
    {SIP_MLNAME_CAST(sipName_abortCompletion), meth_KTextEditor_CodeCompletionInterface_abortCompletion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_forceCompletion), meth_KTextEditor_CodeCompletionInterface_forceCompletion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isAutomaticInvocationEnabled), meth_KTextEditor_CodeCompletionInterface_isAutomaticInvocationEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isCompletionActive), meth_KTextEditor_CodeCompletionInterface_isCompletionActive, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_registerCompletionModel), meth_KTextEditor_CodeCompletionInterface_registerCompletionModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAutomaticInvocationEnabled), meth_KTextEditor_CodeCompletionInterface_setAutomaticInvocationEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startCompletion), meth_KTextEditor_CodeCompletionInterface_startCompletion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_unregisterCompletionModel), meth_KTextEditor_CodeCompletionInterface_unregisterCompletionModel, METH_VARARGS, NULL}
};


static pyqt4ClassPluginDef plugin_KTextEditor_CodeCompletionInterface = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_ktexteditor_KTextEditor_CodeCompletionInterface = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__CodeCompletionInterface,
        {0},
        &plugin_KTextEditor_CodeCompletionInterface
    },
    {
        sipNameNr_CodeCompletionInterface,
        {1, 255, 0},
        8, methods_KTextEditor_CodeCompletionInterface,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTextEditor_CodeCompletionInterface,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_CodeCompletionInterface,
    0,
    0,
    0,
    release_KTextEditor_CodeCompletionInterface,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/attribute.sip"
#include <ktexteditor/attribute.h>
#line 5021 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"

#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/attribute.sip"
#include <ktexteditor/attribute.h>
#line 5025 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"


extern "C" {static int slot_KTextEditor_Attribute_Effects___bool__(PyObject *);}
static int slot_KTextEditor_Attribute_Effects___bool__(PyObject *sipSelf)
{
     ::KTextEditor::Attribute::Effects *sipCpp = reinterpret_cast< ::KTextEditor::Attribute::Effects *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Attribute_Effects));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 381 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KTextEditor::Attribute::Effects::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 5047 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KTextEditor_Attribute_Effects___ne__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_Attribute_Effects___ne__(PyObject *sipSelf,PyObject *sipArg)
{
     ::KTextEditor::Attribute::Effects *sipCpp = reinterpret_cast< ::KTextEditor::Attribute::Effects *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Attribute_Effects));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::KTextEditor::Attribute::Effects* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KTextEditor_Attribute_Effects, &a0, &a0State))
        {
            bool sipRes = 0;

#line 372 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KTextEditor::Attribute::Effects::Int() != a0->operator KTextEditor::Attribute::Effects::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 5081 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
            sipReleaseType(const_cast< ::KTextEditor::Attribute::Effects *>(a0),sipType_KTextEditor_Attribute_Effects,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_ktexteditor, ne_slot, sipType_KTextEditor_Attribute_Effects, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_KTextEditor_Attribute_Effects___eq__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_Attribute_Effects___eq__(PyObject *sipSelf,PyObject *sipArg)
{
     ::KTextEditor::Attribute::Effects *sipCpp = reinterpret_cast< ::KTextEditor::Attribute::Effects *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Attribute_Effects));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::KTextEditor::Attribute::Effects* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KTextEditor_Attribute_Effects, &a0, &a0State))
        {
            bool sipRes = 0;

#line 363 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KTextEditor::Attribute::Effects::Int() == a0->operator KTextEditor::Attribute::Effects::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 5121 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
            sipReleaseType(const_cast< ::KTextEditor::Attribute::Effects *>(a0),sipType_KTextEditor_Attribute_Effects,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_ktexteditor, eq_slot, sipType_KTextEditor_Attribute_Effects, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_KTextEditor_Attribute_Effects___ixor__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_Attribute_Effects___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KTextEditor_Attribute_Effects)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

     ::KTextEditor::Attribute::Effects *sipCpp = reinterpret_cast< ::KTextEditor::Attribute::Effects *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Attribute_Effects));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 357 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
        *sipCpp = KTextEditor::Attribute::Effects(*sipCpp ^ a0);
#line 5160 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KTextEditor_Attribute_Effects___xor__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_Attribute_Effects___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTextEditor::Attribute::Effects* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KTextEditor_Attribute_Effects, &a0, &a0State, &a1))
        {
             ::KTextEditor::Attribute::Effects*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::Attribute::Effects((*a0 ^ a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KTextEditor_Attribute_Effects,a0State);

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_Attribute_Effects,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_ktexteditor, xor_slot, NULL, sipArg0, sipArg1);
}


extern "C" {static PyObject *slot_KTextEditor_Attribute_Effects___ior__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_Attribute_Effects___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KTextEditor_Attribute_Effects)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

     ::KTextEditor::Attribute::Effects *sipCpp = reinterpret_cast< ::KTextEditor::Attribute::Effects *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Attribute_Effects));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 351 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
        *sipCpp = KTextEditor::Attribute::Effects(*sipCpp | a0);
#line 5234 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KTextEditor_Attribute_Effects___or__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_Attribute_Effects___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTextEditor::Attribute::Effects* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KTextEditor_Attribute_Effects, &a0, &a0State, &a1))
        {
             ::KTextEditor::Attribute::Effects*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::Attribute::Effects((*a0 | a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KTextEditor_Attribute_Effects,a0State);

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_Attribute_Effects,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_ktexteditor, or_slot, NULL, sipArg0, sipArg1);
}


extern "C" {static PyObject *slot_KTextEditor_Attribute_Effects___iand__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_Attribute_Effects___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KTextEditor_Attribute_Effects)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

     ::KTextEditor::Attribute::Effects *sipCpp = reinterpret_cast< ::KTextEditor::Attribute::Effects *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Attribute_Effects));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp-> ::KTextEditor::Attribute::Effects::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KTextEditor_Attribute_Effects___and__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_Attribute_Effects___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTextEditor::Attribute::Effects* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KTextEditor_Attribute_Effects, &a0, &a0State, &a1))
        {
             ::KTextEditor::Attribute::Effects*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::Attribute::Effects((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KTextEditor_Attribute_Effects,a0State);

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_Attribute_Effects,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_ktexteditor, and_slot, NULL, sipArg0, sipArg1);
}


extern "C" {static PyObject *slot_KTextEditor_Attribute_Effects___invert__(PyObject *);}
static PyObject *slot_KTextEditor_Attribute_Effects___invert__(PyObject *sipSelf)
{
     ::KTextEditor::Attribute::Effects *sipCpp = reinterpret_cast< ::KTextEditor::Attribute::Effects *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Attribute_Effects));

    if (!sipCpp)
        return 0;


    {
        {
             ::KTextEditor::Attribute::Effects*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::Attribute::Effects(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_Attribute_Effects,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KTextEditor_Attribute_Effects___int__(PyObject *);}
static PyObject *slot_KTextEditor_Attribute_Effects___int__(PyObject *sipSelf)
{
     ::KTextEditor::Attribute::Effects *sipCpp = reinterpret_cast< ::KTextEditor::Attribute::Effects *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Attribute_Effects));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTextEditor_Attribute_Effects(void *, int);}
static void release_KTextEditor_Attribute_Effects(void *sipCppV, int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast< ::KTextEditor::Attribute::Effects *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KTextEditor_Attribute_Effects(void *, SIP_SSIZE_T, const void *);}
static void assign_KTextEditor_Attribute_Effects(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast< ::KTextEditor::Attribute::Effects *>(sipDst)[sipDstIdx] = *reinterpret_cast<const  ::KTextEditor::Attribute::Effects *>(sipSrc);
}


extern "C" {static void *array_KTextEditor_Attribute_Effects(SIP_SSIZE_T);}
static void *array_KTextEditor_Attribute_Effects(SIP_SSIZE_T sipNrElem)
{
    return new  ::KTextEditor::Attribute::Effects[sipNrElem];
}


extern "C" {static void *copy_KTextEditor_Attribute_Effects(const void *, SIP_SSIZE_T);}
static void *copy_KTextEditor_Attribute_Effects(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new  ::KTextEditor::Attribute::Effects(reinterpret_cast<const  ::KTextEditor::Attribute::Effects *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KTextEditor_Attribute_Effects(sipSimpleWrapper *);}
static void dealloc_KTextEditor_Attribute_Effects(sipSimpleWrapper *sipSelf)
{
    if (sipIsOwnedByPython(sipSelf))
    {
        release_KTextEditor_Attribute_Effects(sipGetAddress(sipSelf), 0);
    }
}


extern "C" {static void *init_type_KTextEditor_Attribute_Effects(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTextEditor_Attribute_Effects(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
     ::KTextEditor::Attribute::Effects *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new  ::KTextEditor::Attribute::Effects();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new  ::KTextEditor::Attribute::Effects(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const  ::KTextEditor::Attribute::Effects* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_KTextEditor_Attribute_Effects, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new  ::KTextEditor::Attribute::Effects(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::KTextEditor::Attribute::Effects *>(a0),sipType_KTextEditor_Attribute_Effects,a0State);

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_KTextEditor_Attribute_Effects(PyObject *, void **, int *, PyObject *);}
static int convertTo_KTextEditor_Attribute_Effects(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
     ::KTextEditor::Attribute::Effects **sipCppPtr = reinterpret_cast< ::KTextEditor::Attribute::Effects **>(sipCppPtrV);

#line 390 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a KTextEditor::Attribute::Effects is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KTextEditor_Attribute_Effect)) ||
            sipCanConvertToType(sipPy, sipType_KTextEditor_Attribute_Effects, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KTextEditor_Attribute_Effect)))
{
    *sipCppPtr = new KTextEditor::Attribute::Effects(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KTextEditor::Attribute::Effects *>(sipConvertToType(sipPy, sipType_KTextEditor_Attribute_Effects, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 5522 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart6.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KTextEditor_Attribute_Effects[] = {
    {(void *)slot_KTextEditor_Attribute_Effects___bool__, bool_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___ne__, ne_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___eq__, eq_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___ixor__, ixor_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___xor__, xor_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___ior__, ior_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___or__, or_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___iand__, iand_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___and__, and_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___invert__, invert_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___int__, int_slot},
    {0, (sipPySlotType)0}
};


static pyqt4ClassPluginDef plugin_KTextEditor_Attribute_Effects = {
    0,
    1,
    0
};


sipClassTypeDef sipTypeDef_ktexteditor_KTextEditor_Attribute_Effects = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Attribute__Effects,
        {0},
        &plugin_KTextEditor_Attribute_Effects
    },
    {
        sipNameNr_Effects,
        {5, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KTextEditor_Attribute_Effects,
    init_type_KTextEditor_Attribute_Effects,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Attribute_Effects,
    assign_KTextEditor_Attribute_Effects,
    array_KTextEditor_Attribute_Effects,
    copy_KTextEditor_Attribute_Effects,
    release_KTextEditor_Attribute_Effects,
    0,
    convertTo_KTextEditor_Attribute_Effects,
    0,
    0,
    0,
    0,
    0
};
