/*
 * Module code.
 *
 * Generated by SIP 4.8.2 on Sun Oct 11 20:19:26 2009
 *
 * 
 *  This file is part of PyKDE4.
 * 
 *  PyKDE4 is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as
 *  published by the Free Software Foundation; either version 2.1 of
 *  the License, or (at your option) any later version.
 * 
 *  PyKDE4 is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 * 
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http:www.gnu.org/licenses/>.
 * 
 */

#include "sipAPIktexteditor.h"

#line 45 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/commandinterface.sip"
#include <ktexteditor/commandinterface.h>
#line 29 "sipktexteditorpart6.cpp"

#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/view.sip"
#include <ktexteditor/view.h>

#include <ktexteditor/codecompletioninterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/texthintinterface.h>
#line 37 "sipktexteditorpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 40 "sipktexteditorpart6.cpp"
#line 31 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kcompletion.sip"
#include <kcompletion.h>
#line 43 "sipktexteditorpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 46 "sipktexteditorpart6.cpp"


class sipKTextEditor_CommandExtension : public KTextEditor::CommandExtension
{
public:
    sipKTextEditor_CommandExtension();
    sipKTextEditor_CommandExtension(const KTextEditor::CommandExtension&);
    virtual ~sipKTextEditor_CommandExtension();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void flagCompletions(QStringList&);
    KCompletion * completionObject(KTextEditor::View *,const QString&);
    bool wantsToProcessText(const QString&);
    void processText(KTextEditor::View *,const QString&);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[4];
};

sipKTextEditor_CommandExtension::sipKTextEditor_CommandExtension(): KTextEditor::CommandExtension(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

sipKTextEditor_CommandExtension::~sipKTextEditor_CommandExtension()
{
    sipCommonDtor(sipPySelf);
}

void sipKTextEditor_CommandExtension::flagCompletions(QStringList& a0)
{
    extern void sipVH_ktexteditor_89(sip_gilstate_t,PyObject *,QStringList&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_CommandExtension,sipName_flagCompletions);

    if (!meth)
        return;

    sipVH_ktexteditor_89(sipGILState,meth,a0);
}

KCompletion * sipKTextEditor_CommandExtension::completionObject(KTextEditor::View *a0,const QString& a1)
{
    extern KCompletion * sipVH_ktexteditor_88(sip_gilstate_t,PyObject *,KTextEditor::View *,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_CommandExtension,sipName_completionObject);

    if (!meth)
        return 0;

    return sipVH_ktexteditor_88(sipGILState,meth,a0,a1);
}

bool sipKTextEditor_CommandExtension::wantsToProcessText(const QString& a0)
{
    typedef bool (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_CommandExtension,sipName_wantsToProcessText);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_24)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[24]))(sipGILState,meth,a0);
}

void sipKTextEditor_CommandExtension::processText(KTextEditor::View *a0,const QString& a1)
{
    extern void sipVH_ktexteditor_87(sip_gilstate_t,PyObject *,KTextEditor::View *,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,sipName_CommandExtension,sipName_processText);

    if (!meth)
        return;

    sipVH_ktexteditor_87(sipGILState,meth,a0,a1);
}


extern "C" {static PyObject *meth_KTextEditor_CommandExtension_flagCompletions(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CommandExtension_flagCompletions(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QStringList * a0;
        int a0State = 0;
        KTextEditor::CommandExtension *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KTextEditor_CommandExtension,&sipCpp,sipType_QStringList,&a0,&a0State))
        {
            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_CommandExtension, sipName_flagCompletions);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->flagCompletions(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CommandExtension,sipName_flagCompletions);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CommandExtension_completionObject(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CommandExtension_completionObject(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::View * a0;
        const QString * a1;
        int a1State = 0;
        KTextEditor::CommandExtension *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ8J1",&sipSelf,sipType_KTextEditor_CommandExtension,&sipCpp,sipType_KTextEditor_View,&a0,sipType_QString,&a1,&a1State))
        {
            KCompletion *sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_CommandExtension, sipName_completionObject);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->completionObject(a0,*a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CommandExtension,sipName_completionObject);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CommandExtension_wantsToProcessText(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CommandExtension_wantsToProcessText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString * a0;
        int a0State = 0;
        KTextEditor::CommandExtension *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KTextEditor_CommandExtension,&sipCpp,sipType_QString,&a0,&a0State))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_CommandExtension, sipName_wantsToProcessText);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->wantsToProcessText(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CommandExtension,sipName_wantsToProcessText);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CommandExtension_processText(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CommandExtension_processText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::View * a0;
        const QString * a1;
        int a1State = 0;
        KTextEditor::CommandExtension *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ8J1",&sipSelf,sipType_KTextEditor_CommandExtension,&sipCpp,sipType_KTextEditor_View,&a0,sipType_QString,&a1,&a1State))
        {
            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_CommandExtension, sipName_processText);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->processText(a0,*a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CommandExtension,sipName_processText);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KTextEditor_CommandExtension(void *, const sipTypeDef *);}
static void *cast_KTextEditor_CommandExtension(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_KTextEditor_CommandExtension)
        return ptr;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTextEditor_CommandExtension *>(sipCppV);
    else
        delete reinterpret_cast<KTextEditor::CommandExtension *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_CommandExtension(sipSimpleWrapper *);}
static void dealloc_KTextEditor_CommandExtension(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_CommandExtension *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_CommandExtension(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_KTextEditor_CommandExtension(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KTextEditor_CommandExtension(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipKTextEditor_CommandExtension *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_CommandExtension();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const KTextEditor::CommandExtension * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KTextEditor_CommandExtension,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_CommandExtension(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


static PyMethodDef methods_KTextEditor_CommandExtension[] = {
    {SIP_MLNAME_CAST(sipName_completionObject), meth_KTextEditor_CommandExtension_completionObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_flagCompletions), meth_KTextEditor_CommandExtension_flagCompletions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_processText), meth_KTextEditor_CommandExtension_processText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_wantsToProcessText), meth_KTextEditor_CommandExtension_wantsToProcessText, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_ktexteditor_KTextEditor_CommandExtension = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__CommandExtension,
        {0}
    },
    sipNameNr_CommandExtension,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {1, 255, 0},
    0,
    0,
    4, methods_KTextEditor_CommandExtension,
    0, 0,
    0, 0,
    init_KTextEditor_CommandExtension,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_CommandExtension,
    release_KTextEditor_CommandExtension,
    cast_KTextEditor_CommandExtension,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/commandinterface.sip"
#include <ktexteditor/commandinterface.h>
#line 432 "sipktexteditorpart6.cpp"

#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/view.sip"
#include <ktexteditor/view.h>

#include <ktexteditor/codecompletioninterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/texthintinterface.h>
#line 440 "sipktexteditorpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 443 "sipktexteditorpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 446 "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:
    const QStringList& cmds();
    bool exec(KTextEditor::View *,const QString&,QString&);
    bool help(KTextEditor::View *,const QString&,QString&);

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()
{
    sipCommonDtor(sipPySelf);
}

const QStringList& sipKTextEditor_Command::cmds()
{
    extern const QStringList& sipVH_ktexteditor_91(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_Command,sipName_cmds);

    if (!meth)
        return *new QStringList();

    return sipVH_ktexteditor_91(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return 0;

    return sipVH_ktexteditor_90(sipGILState,meth,a0,a1,a2);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_Command,sipName_help);

    if (!meth)
        return 0;

    return sipVH_ktexteditor_90(sipGILState,meth,a0,a1,a2);
}


extern "C" {static PyObject *meth_KTextEditor_Command_cmds(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Command_cmds(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Command *sipCpp;

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

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Command,sipName_cmds);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Command_exec_(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Command_exec_(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

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

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Command,sipName_exec_);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Command_help(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Command_help(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

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

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Command,sipName_help);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KTextEditor_Command(void *, const sipTypeDef *);}
static void *cast_KTextEditor_Command(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_KTextEditor_Command)
        return ptr;

    return NULL;
}


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

    if (state & 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 (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_Command *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_Command(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_KTextEditor_Command(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KTextEditor_Command(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipKTextEditor_Command *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Command();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const KTextEditor::Command * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KTextEditor_Command,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Command(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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}
};


pyqt4ClassTypeDef pyqt4Type_ktexteditor_KTextEditor_Command = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Command,
        {0}
    },
    sipNameNr_Command,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {1, 255, 0},
    0,
    0,
    3, methods_KTextEditor_Command,
    0, 0,
    0, 0,
    init_KTextEditor_Command,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Command,
    release_KTextEditor_Command,
    cast_KTextEditor_Command,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/codecompletionmodel.sip"
#include <ktexteditor/codecompletionmodel.h>
#line 781 "sipktexteditorpart6.cpp"

#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/codecompletionmodel.sip"
#include <ktexteditor/codecompletionmodel.h>
#line 785 "sipktexteditorpart6.cpp"


extern "C" {static int slot_KTextEditor_CodeCompletionModel_HighlightMethods___bool__(PyObject *sipSelf);}
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 271 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 803 "sipktexteditorpart6.cpp"

            return sipRes;
        }
    }
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___ne__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

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

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

#line 266 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 831 "sipktexteditorpart6.cpp"

            sipReleaseType(const_cast<KTextEditor::CodeCompletionModel::HighlightMethods *>(a0),sipType_KTextEditor_CodeCompletionModel_HighlightMethods,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___eq__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

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

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

#line 261 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 863 "sipktexteditorpart6.cpp"

            sipReleaseType(const_cast<KTextEditor::CodeCompletionModel::HighlightMethods *>(a0),sipType_KTextEditor_CodeCompletionModel_HighlightMethods,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___invert__(PyObject *sipSelf);}
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);
        }
    }
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___and__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

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

        if (sipParsePair(&sipArgsParsed,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);
        }
    }

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


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___xor__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

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

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_KTextEditor_CodeCompletionModel_HighlightMethods,&a0,&a0State,sipType_KTextEditor_CodeCompletionModel_HighlightMethods,&a1,&a1State))
        {
            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);
            sipReleaseType(a1,sipType_KTextEditor_CodeCompletionModel_HighlightMethods,a1State);

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

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


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___or__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

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

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_KTextEditor_CodeCompletionModel_HighlightMethods,&a0,&a0State,sipType_KTextEditor_CodeCompletionModel_HighlightMethods,&a1,&a1State))
        {
            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);
            sipReleaseType(a1,sipType_KTextEditor_CodeCompletionModel_HighlightMethods,a1State);

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

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


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___int__(PyObject *sipSelf);}
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);
        }
    }
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___ixor__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KTextEditor_CodeCompletionModel_HighlightMethods,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KTextEditor::CodeCompletionModel::HighlightMethods::operator^=(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KTextEditor_CodeCompletionModel_HighlightMethods,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___ior__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KTextEditor_CodeCompletionModel_HighlightMethods,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KTextEditor::CodeCompletionModel::HighlightMethods::operator|=(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KTextEditor_CodeCompletionModel_HighlightMethods,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_HighlightMethods___iand__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KTextEditor_CodeCompletionModel_HighlightMethods(void *, const sipTypeDef *);}
static void *cast_KTextEditor_CodeCompletionModel_HighlightMethods(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_KTextEditor_CodeCompletionModel_HighlightMethods)
        return ptr;

    return NULL;
}


/* 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 *, const void*);}
static void assign_KTextEditor_CodeCompletionModel_HighlightMethods(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KTextEditor::CodeCompletionModel::HighlightMethods *>(sipDst) = *reinterpret_cast<const KTextEditor::CodeCompletionModel::HighlightMethods *>(sipSrc);
}


extern "C" {static void dealloc_KTextEditor_CodeCompletionModel_HighlightMethods(sipSimpleWrapper *);}
static void dealloc_KTextEditor_CodeCompletionModel_HighlightMethods(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_CodeCompletionModel_HighlightMethods(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_KTextEditor_CodeCompletionModel_HighlightMethods(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KTextEditor_CodeCompletionModel_HighlightMethods(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KTextEditor::CodeCompletionModel::HighlightMethods *sipCpp = 0;

    if (!sipCpp)
    {
        const KTextEditor::CodeCompletionModel::HighlightMethods * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"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);
        }
    }

    if (!sipCpp)
    {
        int a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTextEditor::CodeCompletionModel::HighlightMethods(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTextEditor::CodeCompletionModel::HighlightMethods();
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


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 276 "/usr/local/share/py-sip/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(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 1234 "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___invert__, invert_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_HighlightMethods___and__, and_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_HighlightMethods___xor__, xor_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_HighlightMethods___or__, or_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_HighlightMethods___int__, int_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_HighlightMethods___ixor__, ixor_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_HighlightMethods___ior__, ior_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_HighlightMethods___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef pyqt4Type_ktexteditor_KTextEditor_CodeCompletionModel_HighlightMethods = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__CodeCompletionModel__HighlightMethods,
        {0}
    },
    sipNameNr_HighlightMethods,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {8, 255, 0},
    0,
    slots_KTextEditor_CodeCompletionModel_HighlightMethods,
    0, 0,
    0, 0,
    0, 0,
    init_KTextEditor_CodeCompletionModel_HighlightMethods,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_CodeCompletionModel_HighlightMethods,
    release_KTextEditor_CodeCompletionModel_HighlightMethods,
    cast_KTextEditor_CodeCompletionModel_HighlightMethods,
    convertTo_KTextEditor_CodeCompletionModel_HighlightMethods,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KTextEditor_CodeCompletionModel_HighlightMethods,
    0,
    1,
    0
};

#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/codecompletionmodel.sip"
#include <ktexteditor/codecompletionmodel.h>
#line 1302 "sipktexteditorpart6.cpp"

#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/codecompletionmodel.sip"
#include <ktexteditor/codecompletionmodel.h>
#line 1306 "sipktexteditorpart6.cpp"


extern "C" {static int slot_KTextEditor_CodeCompletionModel_CompletionProperties___bool__(PyObject *sipSelf);}
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 271 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 1324 "sipktexteditorpart6.cpp"

            return sipRes;
        }
    }
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___ne__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

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

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

#line 266 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 1352 "sipktexteditorpart6.cpp"

            sipReleaseType(const_cast<KTextEditor::CodeCompletionModel::CompletionProperties *>(a0),sipType_KTextEditor_CodeCompletionModel_CompletionProperties,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___eq__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

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

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

#line 261 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 1384 "sipktexteditorpart6.cpp"

            sipReleaseType(const_cast<KTextEditor::CodeCompletionModel::CompletionProperties *>(a0),sipType_KTextEditor_CodeCompletionModel_CompletionProperties,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___invert__(PyObject *sipSelf);}
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);
        }
    }
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___and__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

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

        if (sipParsePair(&sipArgsParsed,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);
        }
    }

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


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___xor__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

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

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_KTextEditor_CodeCompletionModel_CompletionProperties,&a0,&a0State,sipType_KTextEditor_CodeCompletionModel_CompletionProperties,&a1,&a1State))
        {
            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);
            sipReleaseType(a1,sipType_KTextEditor_CodeCompletionModel_CompletionProperties,a1State);

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

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


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___or__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

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

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_KTextEditor_CodeCompletionModel_CompletionProperties,&a0,&a0State,sipType_KTextEditor_CodeCompletionModel_CompletionProperties,&a1,&a1State))
        {
            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);
            sipReleaseType(a1,sipType_KTextEditor_CodeCompletionModel_CompletionProperties,a1State);

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

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


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___int__(PyObject *sipSelf);}
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);
        }
    }
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___ixor__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KTextEditor_CodeCompletionModel_CompletionProperties,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KTextEditor::CodeCompletionModel::CompletionProperties::operator^=(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KTextEditor_CodeCompletionModel_CompletionProperties,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___ior__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KTextEditor_CodeCompletionModel_CompletionProperties,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KTextEditor::CodeCompletionModel::CompletionProperties::operator|=(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KTextEditor_CodeCompletionModel_CompletionProperties,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KTextEditor_CodeCompletionModel_CompletionProperties___iand__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KTextEditor_CodeCompletionModel_CompletionProperties(void *, const sipTypeDef *);}
static void *cast_KTextEditor_CodeCompletionModel_CompletionProperties(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_KTextEditor_CodeCompletionModel_CompletionProperties)
        return ptr;

    return NULL;
}


/* 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 *, const void*);}
static void assign_KTextEditor_CodeCompletionModel_CompletionProperties(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KTextEditor::CodeCompletionModel::CompletionProperties *>(sipDst) = *reinterpret_cast<const KTextEditor::CodeCompletionModel::CompletionProperties *>(sipSrc);
}


extern "C" {static void dealloc_KTextEditor_CodeCompletionModel_CompletionProperties(sipSimpleWrapper *);}
static void dealloc_KTextEditor_CodeCompletionModel_CompletionProperties(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_CodeCompletionModel_CompletionProperties(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_KTextEditor_CodeCompletionModel_CompletionProperties(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KTextEditor_CodeCompletionModel_CompletionProperties(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KTextEditor::CodeCompletionModel::CompletionProperties *sipCpp = 0;

    if (!sipCpp)
    {
        const KTextEditor::CodeCompletionModel::CompletionProperties * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"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);
        }
    }

    if (!sipCpp)
    {
        int a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTextEditor::CodeCompletionModel::CompletionProperties(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTextEditor::CodeCompletionModel::CompletionProperties();
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


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 276 "/usr/local/share/py-sip/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(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 1755 "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___invert__, invert_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_CompletionProperties___and__, and_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_CompletionProperties___xor__, xor_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_CompletionProperties___or__, or_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_CompletionProperties___int__, int_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_CompletionProperties___ixor__, ixor_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_CompletionProperties___ior__, ior_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_CompletionProperties___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef pyqt4Type_ktexteditor_KTextEditor_CodeCompletionModel_CompletionProperties = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__CodeCompletionModel__CompletionProperties,
        {0}
    },
    sipNameNr_CompletionProperties,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {8, 255, 0},
    0,
    slots_KTextEditor_CodeCompletionModel_CompletionProperties,
    0, 0,
    0, 0,
    0, 0,
    init_KTextEditor_CodeCompletionModel_CompletionProperties,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_CodeCompletionModel_CompletionProperties,
    release_KTextEditor_CodeCompletionModel_CompletionProperties,
    cast_KTextEditor_CodeCompletionModel_CompletionProperties,
    convertTo_KTextEditor_CodeCompletionModel_CompletionProperties,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KTextEditor_CodeCompletionModel_CompletionProperties,
    0,
    1,
    0
};

#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/codecompletionmodel.sip"
#include <ktexteditor/codecompletionmodel.h>
#line 1823 "sipktexteditorpart6.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1827 "sipktexteditorpart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 1830 "sipktexteditorpart6.cpp"
#line 43 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 154 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 1835 "sipktexteditorpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1838 "sipktexteditorpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1841 "sipktexteditorpart6.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/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>
#line 1852 "sipktexteditorpart6.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/range.sip"
#include <ktexteditor/range.h>
#line 1855 "sipktexteditorpart6.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/view.sip"
#include <ktexteditor/view.h>

#include <ktexteditor/codecompletioninterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/texthintinterface.h>
#line 1862 "sipktexteditorpart6.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1865 "sipktexteditorpart6.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 1896 "sipktexteditorpart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 1899 "sipktexteditorpart6.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1902 "sipktexteditorpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 1905 "sipktexteditorpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 1908 "sipktexteditorpart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 1911 "sipktexteditorpart6.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1914 "sipktexteditorpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qsize.sip"
#include <qsize.h>
#line 1917 "sipktexteditorpart6.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1920 "sipktexteditorpart6.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1923 "sipktexteditorpart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 1926 "sipktexteditorpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1929 "sipktexteditorpart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1932 "sipktexteditorpart6.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1935 "sipktexteditorpart6.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1938 "sipktexteditorpart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1941 "sipktexteditorpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1944 "sipktexteditorpart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1947 "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 public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    void sipProtect_encodeData(const QModelIndexList&,QDataStream&) const;
    bool sipProtect_decodeData(int,int,const QModelIndex&,QDataStream&);
    void sipProtect_beginInsertRows(const QModelIndex&,int,int);
    void sipProtect_endInsertRows();
    void sipProtect_beginRemoveRows(const QModelIndex&,int,int);
    void sipProtect_endRemoveRows();
    void sipProtect_beginInsertColumns(const QModelIndex&,int,int);
    void sipProtect_endInsertColumns();
    void sipProtect_beginRemoveColumns(const QModelIndex&,int,int);
    void sipProtect_endRemoveColumns();
    QModelIndexList sipProtect_persistentIndexList() const;
    void sipProtect_reset();
    void sipProtect_changePersistentIndex(const QModelIndex&,const QModelIndex&);
    void sipProtect_changePersistentIndexList(const QModelIndexList&,const QModelIndexList&);
    QModelIndex sipProtect_createIndex(int,int,void *) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void completionInvoked(KTextEditor::View *,const KTextEditor::Range&,KTextEditor::CodeCompletionModel::InvocationType);
    void executeCompletionItem(KTextEditor::Document *,const KTextEditor::Range&,int) const;
    int columnCount(const QModelIndex&) const;
    QModelIndex index(int,int,const QModelIndex&) const;
    QMap<int,QVariant> itemData(const QModelIndex&) const;
    QModelIndex parent(const QModelIndex&) const;
    int rowCount(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);
    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();
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);

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()
{
    sipCommonDtor(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 && sip_ktexteditor_qt_metacast(sipPySelf,sipType_KTextEditor_CodeCompletionModel,_clname)) ? this : KTextEditor::CodeCompletionModel::qt_metacast(_clname);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_completionInvoked);

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

    sipVH_ktexteditor_93(sipGILState,meth,a0,a1,a2);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    sipVH_ktexteditor_92(sipGILState,meth,a0,a1,a2);
}

int sipKTextEditor_CodeCompletionModel::columnCount(const QModelIndex& a0) const
{
    typedef int (*sipVH_QtCore_39)(sip_gilstate_t,PyObject *,const QModelIndex&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtCore_39)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[39]))(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtCore_42)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[42]))(sipGILState,meth,a0,a1,a2);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtCore_52)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[52]))(sipGILState,meth,a0);
}

QModelIndex sipKTextEditor_CodeCompletionModel::parent(const QModelIndex& a0) const
{
    typedef QModelIndex (*sipVH_QtCore_40)(sip_gilstate_t,PyObject *,const QModelIndex&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtCore_40)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[40]))(sipGILState,meth,a0);
}

int sipKTextEditor_CodeCompletionModel::rowCount(const QModelIndex& a0) const
{
    typedef int (*sipVH_QtCore_39)(sip_gilstate_t,PyObject *,const QModelIndex&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtCore_39)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[39]))(sipGILState,meth,a0);
}

bool sipKTextEditor_CodeCompletionModel::hasChildren(const QModelIndex& a0) const
{
    typedef bool (*sipVH_QtCore_38)(sip_gilstate_t,PyObject *,const QModelIndex&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QAbstractItemModel::hasChildren(a0);

    return ((sipVH_QtCore_38)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[38]))(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QVariant();

    return ((sipVH_QtCore_56)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[56]))(sipGILState,meth,a0,a1);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_setData);

    if (!meth)
        return QAbstractItemModel::setData(a0,a1,a2);

    return ((sipVH_QtCore_55)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[55]))(sipGILState,meth,a0,a1,a2);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QAbstractItemModel::headerData(a0,a1,a2);

    return ((sipVH_QtCore_54)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[54]))(sipGILState,meth,a0,a1,a2);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_setHeaderData);

    if (!meth)
        return QAbstractItemModel::setHeaderData(a0,a1,a2,a3);

    return ((sipVH_QtCore_53)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[53]))(sipGILState,meth,a0,a1,a2,a3);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_setItemData);

    if (!meth)
        return QAbstractItemModel::setItemData(a0,a1);

    return ((sipVH_QtCore_51)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[51]))(sipGILState,meth,a0,a1);
}

QStringList sipKTextEditor_CodeCompletionModel::mimeTypes() const
{
    typedef QStringList (*sipVH_QtCore_23)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QAbstractItemModel::mimeTypes();

    return ((sipVH_QtCore_23)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[23]))(sipGILState,meth);
}

QMimeData * sipKTextEditor_CodeCompletionModel::mimeData(const QModelIndexList& a0) const
{
    typedef QMimeData * (*sipVH_QtCore_50)(sip_gilstate_t,PyObject *,const QList<QModelIndex>&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QAbstractItemModel::mimeData(a0);

    return ((sipVH_QtCore_50)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[50]))(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QAbstractItemModel::dropMimeData(a0,a1,a2,a3,a4);

    return ((sipVH_QtCore_41)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[41]))(sipGILState,meth,a0,a1,a2,a3,a4);
}

Qt::DropActions sipKTextEditor_CodeCompletionModel::supportedDropActions() const
{
    typedef Qt::DropActions (*sipVH_QtCore_49)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QAbstractItemModel::supportedDropActions();

    return ((sipVH_QtCore_49)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[49]))(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_insertRows);

    if (!meth)
        return QAbstractItemModel::insertRows(a0,a1,a2);

    return ((sipVH_QtCore_48)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[48]))(sipGILState,meth,a0,a1,a2);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_insertColumns);

    if (!meth)
        return QAbstractItemModel::insertColumns(a0,a1,a2);

    return ((sipVH_QtCore_48)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[48]))(sipGILState,meth,a0,a1,a2);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_removeRows);

    if (!meth)
        return QAbstractItemModel::removeRows(a0,a1,a2);

    return ((sipVH_QtCore_48)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[48]))(sipGILState,meth,a0,a1,a2);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_removeColumns);

    if (!meth)
        return QAbstractItemModel::removeColumns(a0,a1,a2);

    return ((sipVH_QtCore_48)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[48]))(sipGILState,meth,a0,a1,a2);
}

void sipKTextEditor_CodeCompletionModel::fetchMore(const QModelIndex& a0)
{
    typedef void (*sipVH_QtCore_47)(sip_gilstate_t,PyObject *,const QModelIndex&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_fetchMore);

    if (!meth)
    {
        QAbstractItemModel::fetchMore(a0);
        return;
    }

    ((sipVH_QtCore_47)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[47]))(sipGILState,meth,a0);
}

bool sipKTextEditor_CodeCompletionModel::canFetchMore(const QModelIndex& a0) const
{
    typedef bool (*sipVH_QtCore_38)(sip_gilstate_t,PyObject *,const QModelIndex&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QAbstractItemModel::canFetchMore(a0);

    return ((sipVH_QtCore_38)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[38]))(sipGILState,meth,a0);
}

Qt::ItemFlags sipKTextEditor_CodeCompletionModel::flags(const QModelIndex& a0) const
{
    typedef Qt::ItemFlags (*sipVH_QtCore_46)(sip_gilstate_t,PyObject *,const QModelIndex&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QAbstractItemModel::flags(a0);

    return ((sipVH_QtCore_46)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[46]))(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_sort);

    if (!meth)
    {
        QAbstractItemModel::sort(a0,a1);
        return;
    }

    ((sipVH_QtCore_45)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[45]))(sipGILState,meth,a0,a1);
}

QModelIndex sipKTextEditor_CodeCompletionModel::buddy(const QModelIndex& a0) const
{
    typedef QModelIndex (*sipVH_QtCore_40)(sip_gilstate_t,PyObject *,const QModelIndex&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QAbstractItemModel::buddy(a0);

    return ((sipVH_QtCore_40)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[40]))(sipGILState,meth,a0);
}

QModelIndexList sipKTextEditor_CodeCompletionModel::match(const QModelIndex& a0,int a1,const QVariant& a2,int a3,Qt::MatchFlags a4) const
{
    typedef QList<QModelIndex> (*sipVH_QtCore_44)(sip_gilstate_t,PyObject *,const QModelIndex&,int,const QVariant&,int,Qt::MatchFlags);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QAbstractItemModel::match(a0,a1,a2,a3,a4);

    return ((sipVH_QtCore_44)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[44]))(sipGILState,meth,a0,a1,a2,a3,a4);
}

QSize sipKTextEditor_CodeCompletionModel::span(const QModelIndex& a0) const
{
    typedef QSize (*sipVH_QtCore_43)(sip_gilstate_t,PyObject *,const QModelIndex&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QAbstractItemModel::span(a0);

    return ((sipVH_QtCore_43)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[43]))(sipGILState,meth,a0);
}

bool sipKTextEditor_CodeCompletionModel::submit()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_submit);

    if (!meth)
        return QAbstractItemModel::submit();

    return ((sipVH_QtCore_1)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

void sipKTextEditor_CodeCompletionModel::revert()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_revert);

    if (!meth)
    {
        QAbstractItemModel::revert();
        return;
    }

    ((sipVH_QtCore_5)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

bool sipKTextEditor_CodeCompletionModel::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,NULL,sipName_event);

    if (!meth)
        return QObject::event(a0);

    return ((sipVH_QtCore_13)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,NULL,sipName_eventFilter);

    if (!meth)
        return QObject::eventFilter(a0,a1);

    return ((sipVH_QtCore_21)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[21]))(sipGILState,meth,a0,a1);
}

void sipKTextEditor_CodeCompletionModel::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,NULL,sipName_timerEvent);

    if (!meth)
    {
        QObject::timerEvent(a0);
        return;
    }

    ((sipVH_QtCore_3)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipKTextEditor_CodeCompletionModel::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[33],sipPySelf,NULL,sipName_childEvent);

    if (!meth)
    {
        QObject::childEvent(a0);
        return;
    }

    ((sipVH_QtCore_20)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipKTextEditor_CodeCompletionModel::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],sipPySelf,NULL,sipName_customEvent);

    if (!meth)
    {
        QObject::customEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipKTextEditor_CodeCompletionModel::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],sipPySelf,NULL,sipName_connectNotify);

    if (!meth)
    {
        QObject::connectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipKTextEditor_CodeCompletionModel::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[36],sipPySelf,NULL,sipName_disconnectNotify);

    if (!meth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

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

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

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

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

void sipKTextEditor_CodeCompletionModel::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipKTextEditor_CodeCompletionModel::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

void sipKTextEditor_CodeCompletionModel::sipProtect_encodeData(const QModelIndexList& a0,QDataStream& a1) const
{
    QAbstractItemModel::encodeData(a0,a1);
}

bool sipKTextEditor_CodeCompletionModel::sipProtect_decodeData(int a0,int a1,const QModelIndex& a2,QDataStream& a3)
{
    return QAbstractItemModel::decodeData(a0,a1,a2,a3);
}

void sipKTextEditor_CodeCompletionModel::sipProtect_beginInsertRows(const QModelIndex& a0,int a1,int a2)
{
    QAbstractItemModel::beginInsertRows(a0,a1,a2);
}

void sipKTextEditor_CodeCompletionModel::sipProtect_endInsertRows()
{
    QAbstractItemModel::endInsertRows();
}

void sipKTextEditor_CodeCompletionModel::sipProtect_beginRemoveRows(const QModelIndex& a0,int a1,int a2)
{
    QAbstractItemModel::beginRemoveRows(a0,a1,a2);
}

void sipKTextEditor_CodeCompletionModel::sipProtect_endRemoveRows()
{
    QAbstractItemModel::endRemoveRows();
}

void sipKTextEditor_CodeCompletionModel::sipProtect_beginInsertColumns(const QModelIndex& a0,int a1,int a2)
{
    QAbstractItemModel::beginInsertColumns(a0,a1,a2);
}

void sipKTextEditor_CodeCompletionModel::sipProtect_endInsertColumns()
{
    QAbstractItemModel::endInsertColumns();
}

void sipKTextEditor_CodeCompletionModel::sipProtect_beginRemoveColumns(const QModelIndex& a0,int a1,int a2)
{
    QAbstractItemModel::beginRemoveColumns(a0,a1,a2);
}

void sipKTextEditor_CodeCompletionModel::sipProtect_endRemoveColumns()
{
    QAbstractItemModel::endRemoveColumns();
}

QModelIndexList sipKTextEditor_CodeCompletionModel::sipProtect_persistentIndexList() const
{
    return QAbstractItemModel::persistentIndexList();
}

void sipKTextEditor_CodeCompletionModel::sipProtect_reset()
{
    QAbstractItemModel::reset();
}

void sipKTextEditor_CodeCompletionModel::sipProtect_changePersistentIndex(const QModelIndex& a0,const QModelIndex& a1)
{
    QAbstractItemModel::changePersistentIndex(a0,a1);
}

void sipKTextEditor_CodeCompletionModel::sipProtect_changePersistentIndexList(const QModelIndexList& a0,const QModelIndexList& a1)
{
    QAbstractItemModel::changePersistentIndexList(a0,a1);
}

QModelIndex sipKTextEditor_CodeCompletionModel::sipProtect_createIndex(int a0,int a1,void *a2) const
{
    return QAbstractItemModel::createIndex(a0,a1,a2);
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_receivers(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KTextEditor_CodeCompletionModel,&sipCpp,&a0))
        {
            int sipRes = 0;

#line 462 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
#line 2785 "sipktexteditorpart6.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_timerEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_CodeCompletionModel,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_childEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_childEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_CodeCompletionModel,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_customEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_customEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_CodeCompletionModel,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_connectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KTextEditor_CodeCompletionModel,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_disconnectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KTextEditor_CodeCompletionModel,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_encodeData(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_encodeData(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QModelIndexList * a0;
        int a0State = 0;
        QDataStream * a1;
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1J9",&sipSelf,sipType_KTextEditor_CodeCompletionModel,&sipCpp,sipType_QList_0200QModelIndex,&a0,&a0State,sipType_QDataStream,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_encodeData(*a0,*a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QModelIndexList *>(a0),sipType_QList_0200QModelIndex,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_decodeData(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_decodeData(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        int a0;
        int a1;
        const QModelIndex * a2;
        QDataStream * a3;
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"piiJ9J9",&sipSelf,sipType_KTextEditor_CodeCompletionModel,&sipCpp,&a0,&a1,sipType_QModelIndex,&a2,sipType_QDataStream,&a3))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_decodeData(a0,a1,*a2,*a3);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_beginInsertRows(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_beginInsertRows(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QModelIndex * a0;
        int a1;
        int a2;
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9ii",&sipSelf,sipType_KTextEditor_CodeCompletionModel,&sipCpp,sipType_QModelIndex,&a0,&a1,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_beginInsertRows(*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(sipArgsParsed,sipName_CodeCompletionModel,sipName_beginInsertRows);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_endInsertRows(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_endInsertRows(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KTextEditor_CodeCompletionModel,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_endInsertRows();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_beginRemoveRows(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_beginRemoveRows(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QModelIndex * a0;
        int a1;
        int a2;
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9ii",&sipSelf,sipType_KTextEditor_CodeCompletionModel,&sipCpp,sipType_QModelIndex,&a0,&a1,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_beginRemoveRows(*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(sipArgsParsed,sipName_CodeCompletionModel,sipName_beginRemoveRows);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_endRemoveRows(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_endRemoveRows(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KTextEditor_CodeCompletionModel,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_endRemoveRows();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_beginInsertColumns(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_beginInsertColumns(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QModelIndex * a0;
        int a1;
        int a2;
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9ii",&sipSelf,sipType_KTextEditor_CodeCompletionModel,&sipCpp,sipType_QModelIndex,&a0,&a1,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_beginInsertColumns(*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(sipArgsParsed,sipName_CodeCompletionModel,sipName_beginInsertColumns);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_endInsertColumns(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_endInsertColumns(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KTextEditor_CodeCompletionModel,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_endInsertColumns();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_beginRemoveColumns(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_beginRemoveColumns(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QModelIndex * a0;
        int a1;
        int a2;
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9ii",&sipSelf,sipType_KTextEditor_CodeCompletionModel,&sipCpp,sipType_QModelIndex,&a0,&a1,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_beginRemoveColumns(*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(sipArgsParsed,sipName_CodeCompletionModel,sipName_beginRemoveColumns);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_endRemoveColumns(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_endRemoveColumns(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KTextEditor_CodeCompletionModel,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_endRemoveColumns();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_persistentIndexList(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_persistentIndexList(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KTextEditor_CodeCompletionModel,&sipCpp))
        {
            QModelIndexList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QModelIndexList(sipCpp->sipProtect_persistentIndexList());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200QModelIndex,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_reset(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_reset(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KTextEditor_CodeCompletionModel,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_reset();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_changePersistentIndex(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_changePersistentIndex(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QModelIndex * a0;
        const QModelIndex * a1;
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9J9",&sipSelf,sipType_KTextEditor_CodeCompletionModel,&sipCpp,sipType_QModelIndex,&a0,sipType_QModelIndex,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_changePersistentIndex(*a0,*a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_changePersistentIndexList(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_changePersistentIndexList(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QModelIndexList * a0;
        int a0State = 0;
        const QModelIndexList * a1;
        int a1State = 0;
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1J1",&sipSelf,sipType_KTextEditor_CodeCompletionModel,&sipCpp,sipType_QList_0200QModelIndex,&a0,&a0State,sipType_QList_0200QModelIndex,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_changePersistentIndexList(*a0,*a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QModelIndexList *>(a0),sipType_QList_0200QModelIndex,a0State);
            sipReleaseType(const_cast<QModelIndexList *>(a1),sipType_QList_0200QModelIndex,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_createIndex(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_createIndex(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        int a0;
        int a1;
        PyObject * a2 = 0;
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pii|P0",&sipSelf,sipType_KTextEditor_CodeCompletionModel,&sipCpp,&a0,&a1,&a2))
        {
            QModelIndex *sipRes = 0;

#line 226 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
        // The Qt API is broken (and won't be fixed as it would break binary
        // compatibility) regarding the internal id of a model index on different
        // architectures (32 vs 64 bits).  We choose to work around the breakage as it
        // is fairly subtle and continues to catch people out.  Instead of letting Qt
        // convert betweed an integer id and a pointer id (the internal format used by
        // Qt) we let Python do it.
        
        void *ptr;
        
        if (a2)
        {
            // Try and convert it to a Python long and fallback to the object's
            // address if it fails.
            ptr = PyLong_AsVoidPtr(a2);
        
            if (PyErr_Occurred())
            {
                PyErr_Clear();
                ptr = a2;
            }
        }
        else
        {
            ptr = 0;
        }
        
        sipRes = new QModelIndex(sipCpp->sipProtect_createIndex(a0, a1, ptr));
#line 3380 "sipktexteditorpart6.cpp"

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

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_setRowCount(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_setRowCount(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        int a0;
        KTextEditor::CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CodeCompletionModel,sipName_setRowCount);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_completionInvoked(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_completionInvoked(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CodeCompletionModel,sipName_completionInvoked);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_executeCompletionItem(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_executeCompletionItem(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CodeCompletionModel,sipName_executeCompletionItem);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_columnCount(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_columnCount(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CodeCompletionModel,sipName_columnCount);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_index(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_index(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CodeCompletionModel,sipName_index);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_itemData(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_itemData(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipArgsParsed,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

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QMap_1800_0200QVariant,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_parent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_parent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CodeCompletionModel,sipName_parent);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionModel_rowCount(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionModel_rowCount(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CodeCompletionModel,sipName_rowCount);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KTextEditor_CodeCompletionModel(void *, const sipTypeDef *);}
static void *cast_KTextEditor_CodeCompletionModel(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KTextEditor_CodeCompletionModel)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QAbstractItemModel)->ctd_cast((QAbstractItemModel *)(KTextEditor::CodeCompletionModel *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTextEditor_CodeCompletionModel *>(sipCppV);
    else
        delete reinterpret_cast<KTextEditor::CodeCompletionModel *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_CodeCompletionModel(sipSimpleWrapper *);}
static void dealloc_KTextEditor_CodeCompletionModel(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_CodeCompletionModel *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_CodeCompletionModel(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_KTextEditor_CodeCompletionModel(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KTextEditor_CodeCompletionModel(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipKTextEditor_CodeCompletionModel *sipCpp = 0;

    if (!sipCpp)
    {
        QObject * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J8",sipType_QObject,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_CodeCompletionModel(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_KTextEditor_CodeCompletionModel[] = {
    {SIP_MLNAME_CAST(sipName_beginInsertColumns), meth_KTextEditor_CodeCompletionModel_beginInsertColumns, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_beginInsertRows), meth_KTextEditor_CodeCompletionModel_beginInsertRows, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_beginRemoveColumns), meth_KTextEditor_CodeCompletionModel_beginRemoveColumns, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_beginRemoveRows), meth_KTextEditor_CodeCompletionModel_beginRemoveRows, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changePersistentIndex), meth_KTextEditor_CodeCompletionModel_changePersistentIndex, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changePersistentIndexList), meth_KTextEditor_CodeCompletionModel_changePersistentIndexList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KTextEditor_CodeCompletionModel_childEvent, METH_VARARGS, NULL},
    {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_connectNotify), meth_KTextEditor_CodeCompletionModel_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createIndex), meth_KTextEditor_CodeCompletionModel_createIndex, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KTextEditor_CodeCompletionModel_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_decodeData), meth_KTextEditor_CodeCompletionModel_decodeData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KTextEditor_CodeCompletionModel_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encodeData), meth_KTextEditor_CodeCompletionModel_encodeData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_endInsertColumns), meth_KTextEditor_CodeCompletionModel_endInsertColumns, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_endInsertRows), meth_KTextEditor_CodeCompletionModel_endInsertRows, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_endRemoveColumns), meth_KTextEditor_CodeCompletionModel_endRemoveColumns, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_endRemoveRows), meth_KTextEditor_CodeCompletionModel_endRemoveRows, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_executeCompletionItem), meth_KTextEditor_CodeCompletionModel_executeCompletionItem, 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_persistentIndexList), meth_KTextEditor_CodeCompletionModel_persistentIndexList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KTextEditor_CodeCompletionModel_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_reset), meth_KTextEditor_CodeCompletionModel_reset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rowCount), meth_KTextEditor_CodeCompletionModel_rowCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRowCount), meth_KTextEditor_CodeCompletionModel_setRowCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KTextEditor_CodeCompletionModel_timerEvent, METH_VARARGS, NULL}
};

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


extern "C" {static PyObject *varget_KTextEditor_CodeCompletionModel_ColumnCount(void *, PyObject *);}
static PyObject *varget_KTextEditor_CodeCompletionModel_ColumnCount(void *, PyObject *)
{
    int sipVal;
    sipVal = KTextEditor::CodeCompletionModel::ColumnCount;

    return SIPLong_FromLong(sipVal);
}


extern "C" {static PyObject *varget_KTextEditor_CodeCompletionModel_LastItemDataRole(void *, PyObject *);}
static PyObject *varget_KTextEditor_CodeCompletionModel_LastItemDataRole(void *, PyObject *)
{
    int sipVal;
    sipVal = KTextEditor::CodeCompletionModel::LastItemDataRole;

    return SIPLong_FromLong(sipVal);
}

sipVariableDef variables_KTextEditor_CodeCompletionModel[] = {
    {sipName_ColumnCount, varget_KTextEditor_CodeCompletionModel_ColumnCount, NULL, 1},
    {sipName_LastItemDataRole, varget_KTextEditor_CodeCompletionModel_LastItemDataRole, NULL, 1},
};


pyqt4ClassTypeDef pyqt4Type_ktexteditor_KTextEditor_CodeCompletionModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__CodeCompletionModel,
        {0}
    },
    sipNameNr_CodeCompletionModel,
    -1,
    -1,
    {1, 255, 0},
    supers_KTextEditor_CodeCompletionModel,
    0,
    29, methods_KTextEditor_CodeCompletionModel,
    53, enummembers_KTextEditor_CodeCompletionModel,
    2, variables_KTextEditor_CodeCompletionModel,
    init_KTextEditor_CodeCompletionModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_CodeCompletionModel,
    release_KTextEditor_CodeCompletionModel,
    cast_KTextEditor_CodeCompletionModel,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &KTextEditor::CodeCompletionModel::staticMetaObject,
    0,
    0
};

#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/codecompletioninterface.sip"
#include <ktexteditor/codecompletioninterface.h>
#line 3866 "sipktexteditorpart6.cpp"

#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/codecompletionmodel.sip"
#include <ktexteditor/codecompletionmodel.h>
#line 3870 "sipktexteditorpart6.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/range.sip"
#include <ktexteditor/range.h>
#line 3873 "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:
    bool isCompletionActive() const;
    void startCompletion(const KTextEditor::Range&,KTextEditor::CodeCompletionModel *);
    void abortCompletion();
    void forceCompletion();
    void registerCompletionModel(KTextEditor::CodeCompletionModel *);
    void unregisterCompletionModel(KTextEditor::CodeCompletionModel *);
    bool isAutomaticInvocationEnabled() const;
    void setAutomaticInvocationEnabled(bool);

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()
{
    sipCommonDtor(sipPySelf);
}

bool sipKTextEditor_CodeCompletionInterface::isCompletionActive() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,sipName_CodeCompletionInterface,sipName_isCompletionActive);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_1)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

void sipKTextEditor_CodeCompletionInterface::startCompletion(const KTextEditor::Range& a0,KTextEditor::CodeCompletionModel *a1)
{
    extern void sipVH_ktexteditor_95(sip_gilstate_t,PyObject *,const KTextEditor::Range&,KTextEditor::CodeCompletionModel *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_CodeCompletionInterface,sipName_startCompletion);

    if (!meth)
        return;

    sipVH_ktexteditor_95(sipGILState,meth,a0,a1);
}

void sipKTextEditor_CodeCompletionInterface::abortCompletion()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_CodeCompletionInterface,sipName_abortCompletion);

    if (!meth)
        return;

    ((sipVH_QtCore_5)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

void sipKTextEditor_CodeCompletionInterface::forceCompletion()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,sipName_CodeCompletionInterface,sipName_forceCompletion);

    if (!meth)
        return;

    ((sipVH_QtCore_5)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

void sipKTextEditor_CodeCompletionInterface::registerCompletionModel(KTextEditor::CodeCompletionModel *a0)
{
    extern void sipVH_ktexteditor_94(sip_gilstate_t,PyObject *,KTextEditor::CodeCompletionModel *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,sipName_CodeCompletionInterface,sipName_registerCompletionModel);

    if (!meth)
        return;

    sipVH_ktexteditor_94(sipGILState,meth,a0);
}

void sipKTextEditor_CodeCompletionInterface::unregisterCompletionModel(KTextEditor::CodeCompletionModel *a0)
{
    extern void sipVH_ktexteditor_94(sip_gilstate_t,PyObject *,KTextEditor::CodeCompletionModel *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,sipName_CodeCompletionInterface,sipName_unregisterCompletionModel);

    if (!meth)
        return;

    sipVH_ktexteditor_94(sipGILState,meth,a0);
}

bool sipKTextEditor_CodeCompletionInterface::isAutomaticInvocationEnabled() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return 0;

    return ((sipVH_QtCore_1)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

void sipKTextEditor_CodeCompletionInterface::setAutomaticInvocationEnabled(bool a0)
{
    typedef void (*sipVH_QtNetwork_2)(sip_gilstate_t,PyObject *,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,sipName_CodeCompletionInterface,sipName_setAutomaticInvocationEnabled);

    if (!meth)
        return;

    ((sipVH_QtNetwork_2)(sipModuleAPI_ktexteditor_QtNetwork->em_virthandlers[2]))(sipGILState,meth,a0);
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionInterface_isCompletionActive(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionInterface_isCompletionActive(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::CodeCompletionInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_CodeCompletionInterface,&sipCpp))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_CodeCompletionInterface,sipName_isCompletionActive);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionInterface_startCompletion(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionInterface_startCompletion(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTextEditor::Range * a0;
        KTextEditor::CodeCompletionModel * a1;
        KTextEditor::CodeCompletionInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J8",&sipSelf,sipType_KTextEditor_CodeCompletionInterface,&sipCpp,sipType_KTextEditor_Range,&a0,sipType_KTextEditor_CodeCompletionModel,&a1))
        {
            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_CodeCompletionInterface,sipName_startCompletion);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionInterface_abortCompletion(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionInterface_abortCompletion(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::CodeCompletionInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_CodeCompletionInterface,&sipCpp))
        {
            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_CodeCompletionInterface,sipName_abortCompletion);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionInterface_forceCompletion(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionInterface_forceCompletion(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::CodeCompletionInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_CodeCompletionInterface,&sipCpp))
        {
            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_CodeCompletionInterface,sipName_forceCompletion);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionInterface_registerCompletionModel(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionInterface_registerCompletionModel(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ8",&sipSelf,sipType_KTextEditor_CodeCompletionInterface,&sipCpp,sipType_KTextEditor_CodeCompletionModel,&a0))
        {
            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_CodeCompletionInterface,sipName_registerCompletionModel);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionInterface_unregisterCompletionModel(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionInterface_unregisterCompletionModel(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ8",&sipSelf,sipType_KTextEditor_CodeCompletionInterface,&sipCpp,sipType_KTextEditor_CodeCompletionModel,&a0))
        {
            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_CodeCompletionInterface,sipName_unregisterCompletionModel);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionInterface_isAutomaticInvocationEnabled(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionInterface_isAutomaticInvocationEnabled(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::CodeCompletionInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_CodeCompletionInterface,&sipCpp))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_CodeCompletionInterface,sipName_isAutomaticInvocationEnabled);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_CodeCompletionInterface_setAutomaticInvocationEnabled(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_CodeCompletionInterface_setAutomaticInvocationEnabled(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        bool a0 = 1;
        KTextEditor::CodeCompletionInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|b",&sipSelf,sipType_KTextEditor_CodeCompletionInterface,&sipCpp,&a0))
        {
            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_CodeCompletionInterface,sipName_setAutomaticInvocationEnabled);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KTextEditor_CodeCompletionInterface(void *, const sipTypeDef *);}
static void *cast_KTextEditor_CodeCompletionInterface(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_KTextEditor_CodeCompletionInterface)
        return ptr;

    return NULL;
}


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

    if (state & 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 (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_CodeCompletionInterface *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_CodeCompletionInterface(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_KTextEditor_CodeCompletionInterface(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KTextEditor_CodeCompletionInterface(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipKTextEditor_CodeCompletionInterface *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_CodeCompletionInterface();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const KTextEditor::CodeCompletionInterface * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KTextEditor_CodeCompletionInterface,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_CodeCompletionInterface(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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}
};


pyqt4ClassTypeDef pyqt4Type_ktexteditor_KTextEditor_CodeCompletionInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__CodeCompletionInterface,
        {0}
    },
    sipNameNr_CodeCompletionInterface,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {1, 255, 0},
    0,
    0,
    8, methods_KTextEditor_CodeCompletionInterface,
    0, 0,
    0, 0,
    init_KTextEditor_CodeCompletionInterface,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_CodeCompletionInterface,
    release_KTextEditor_CodeCompletionInterface,
    cast_KTextEditor_CodeCompletionInterface,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};
