/*
 * Module code.
 *
 * Generated by SIP 4.12.4 on Fri Dec 30 00:39:50 2011
 *
 * 
 *  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/pykde4-4.7.3/sip/ktexteditor/commandinterface.sip"
#include <ktexteditor/commandinterface.h>
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"

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

#include <ktexteditor/codecompletioninterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/texthintinterface.h>
#line 37 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 40 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 31 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kcompletion.sip"
#include <kcompletion.h>
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 46 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/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)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_88(sip_gilstate_t,PyObject *,QStringList&);

    sipVH_ktexteditor_88(sipGILState,sipMeth,a0);
}

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

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

    if (!sipMeth)
        return 0;

    extern KCompletion * sipVH_ktexteditor_87(sip_gilstate_t,PyObject *,KTextEditor::View *,const QString&);

    return sipVH_ktexteditor_87(sipGILState,sipMeth,a0,a1);
}

bool sipKTextEditor_CommandExtension::wantsToProcessText(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_28)(sip_gilstate_t,PyObject *,const QString&);

    return ((sipVH_QtCore_28)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[28]))(sipGILState,sipMeth,a0);
}

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

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

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_86(sip_gilstate_t,PyObject *,KTextEditor::View *,const QString&);

    sipVH_ktexteditor_86(sipGILState,sipMeth,a0,a1);
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTextEditor_CommandExtension, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            if (!sipOrigSelf)
            {
                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(sipParseErr, sipName_CommandExtension, sipName_flagCompletions, NULL);

    return NULL;
}


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

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

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

            if (!sipOrigSelf)
            {
                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(sipParseErr, sipName_CommandExtension, sipName_completionObject, NULL);

    return NULL;
}


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

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

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

            if (!sipOrigSelf)
            {
                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(sipParseErr, sipName_CommandExtension, sipName_wantsToProcessText, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1", &sipSelf, sipType_KTextEditor_CommandExtension, &sipCpp, sipType_KTextEditor_View, &a0, sipType_QString,&a1, &a1State))
        {
            if (!sipOrigSelf)
            {
                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(sipParseErr, sipName_CommandExtension, sipName_processText, NULL);

    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 sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & 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 *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_CommandExtension(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KTextEditor::CommandExtension * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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 sipTypeDef_ktexteditor_KTextEditor_CommandExtension = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__CommandExtension,
        {0}
    },
    {
        sipNameNr_CommandExtension,
        {1, 255, 0},
        4, methods_KTextEditor_CommandExtension,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_KTextEditor_CommandExtension,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_CommandExtension,
    0,
    0,
    0,
    release_KTextEditor_CommandExtension,
    cast_KTextEditor_CommandExtension,
    0,
    0,
    0
},
    0,
    0,
    0
};

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

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

#include <ktexteditor/codecompletioninterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/texthintinterface.h>
#line 444 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 447 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 450 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"


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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    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()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern const QStringList& sipVH_ktexteditor_90(sip_gilstate_t,PyObject *);

    return sipVH_ktexteditor_90(sipGILState,sipMeth);
}

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

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

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_89(sip_gilstate_t,PyObject *,KTextEditor::View *,const QString&,QString&);

    return sipVH_ktexteditor_89(sipGILState,sipMeth,a0,a1,a2);
}

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

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

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_89(sip_gilstate_t,PyObject *,KTextEditor::View *,const QString&,QString&);

    return sipVH_ktexteditor_89(sipGILState,sipMeth,a0,a1,a2);
}


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

    {
        KTextEditor::Command *sipCpp;

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

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

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

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

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

    return NULL;
}


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

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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


/* 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 sipState)
{
    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


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

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_Command(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KTextEditor::Command * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


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

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

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


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

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 813 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"

            return sipRes;
        }
    }

    return 0;
}


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

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

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 843 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
            sipReleaseType(const_cast<KTextEditor::CodeCompletionModel::HighlightMethods *>(a0),sipType_KTextEditor_CodeCompletionModel_HighlightMethods,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

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

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 879 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
            sipReleaseType(const_cast<KTextEditor::CodeCompletionModel::HighlightMethods *>(a0),sipType_KTextEditor_CodeCompletionModel_HighlightMethods,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;


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

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

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

    return 0;
}


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

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

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

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

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

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

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

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

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

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KTextEditor::CodeCompletionModel::HighlightMethods(*a0 ^ a1);
#line 988 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
            sipReleaseType(a0,sipType_KTextEditor_CodeCompletionModel_HighlightMethods,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

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

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

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

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

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KTextEditor::CodeCompletionModel::HighlightMethods(*a0 | a1);
#line 1040 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
            sipReleaseType(a0,sipType_KTextEditor_CodeCompletionModel_HighlightMethods,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

        if (sipParseArgs(&sipParseErr, 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;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

        if (sipParseArgs(&sipParseErr, 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;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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


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


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


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


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

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

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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

#line 336 "/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 1335 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KTextEditor_CodeCompletionModel_HighlightMethods[] = {
    {(void *)slot_KTextEditor_CodeCompletionModel_HighlightMethods___bool__, bool_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_HighlightMethods___ne__, ne_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_HighlightMethods___eq__, eq_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_HighlightMethods___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 sipTypeDef_ktexteditor_KTextEditor_CodeCompletionModel_HighlightMethods = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__CodeCompletionModel__HighlightMethods,
        {0}
    },
    {
        sipNameNr_HighlightMethods,
        {8, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KTextEditor_CodeCompletionModel_HighlightMethods,
    init_KTextEditor_CodeCompletionModel_HighlightMethods,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_CodeCompletionModel_HighlightMethods,
    assign_KTextEditor_CodeCompletionModel_HighlightMethods,
    array_KTextEditor_CodeCompletionModel_HighlightMethods,
    copy_KTextEditor_CodeCompletionModel_HighlightMethods,
    release_KTextEditor_CodeCompletionModel_HighlightMethods,
    cast_KTextEditor_CodeCompletionModel_HighlightMethods,
    convertTo_KTextEditor_CodeCompletionModel_HighlightMethods,
    0,
    0
},
    0,
    1,
    0
};

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

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


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

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 1430 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"

            return sipRes;
        }
    }

    return 0;
}


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

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

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 1460 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
            sipReleaseType(const_cast<KTextEditor::CodeCompletionModel::CompletionProperties *>(a0),sipType_KTextEditor_CodeCompletionModel_CompletionProperties,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

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

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 1496 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
            sipReleaseType(const_cast<KTextEditor::CodeCompletionModel::CompletionProperties *>(a0),sipType_KTextEditor_CodeCompletionModel_CompletionProperties,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;


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

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

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

    return 0;
}


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

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

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

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

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

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

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

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

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

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KTextEditor::CodeCompletionModel::CompletionProperties(*a0 ^ a1);
#line 1605 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
            sipReleaseType(a0,sipType_KTextEditor_CodeCompletionModel_CompletionProperties,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

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

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

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

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

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KTextEditor::CodeCompletionModel::CompletionProperties(*a0 | a1);
#line 1657 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
            sipReleaseType(a0,sipType_KTextEditor_CodeCompletionModel_CompletionProperties,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

        if (sipParseArgs(&sipParseErr, 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;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

        if (sipParseArgs(&sipParseErr, 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;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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


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


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


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


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

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

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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

#line 336 "/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 1952 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KTextEditor_CodeCompletionModel_CompletionProperties[] = {
    {(void *)slot_KTextEditor_CodeCompletionModel_CompletionProperties___bool__, bool_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_CompletionProperties___ne__, ne_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_CompletionProperties___eq__, eq_slot},
    {(void *)slot_KTextEditor_CodeCompletionModel_CompletionProperties___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 sipTypeDef_ktexteditor_KTextEditor_CodeCompletionModel_CompletionProperties = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__CodeCompletionModel__CompletionProperties,
        {0}
    },
    {
        sipNameNr_CompletionProperties,
        {8, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KTextEditor_CodeCompletionModel_CompletionProperties,
    init_KTextEditor_CodeCompletionModel_CompletionProperties,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_CodeCompletionModel_CompletionProperties,
    assign_KTextEditor_CodeCompletionModel_CompletionProperties,
    array_KTextEditor_CodeCompletionModel_CompletionProperties,
    copy_KTextEditor_CodeCompletionModel_CompletionProperties,
    release_KTextEditor_CodeCompletionModel_CompletionProperties,
    cast_KTextEditor_CodeCompletionModel_CompletionProperties,
    convertTo_KTextEditor_CodeCompletionModel_CompletionProperties,
    0,
    0
},
    0,
    1,
    0
};

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

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 2029 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 2032 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 144 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 2035 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2038 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2041 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/document.sip"
#include <ktexteditor/document.h>

#include <ktexteditor/modificationinterface.h>
#include <ktexteditor/markinterface.h>
#include <ktexteditor/searchinterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/smartinterface.h>
#include <ktexteditor/templateinterface.h>
#include <ktexteditor/variableinterface.h>
#line 2052 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/range.sip"
#include <ktexteditor/range.h>
#line 2055 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/view.sip"
#include <ktexteditor/view.h>

#include <ktexteditor/codecompletioninterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/texthintinterface.h>
#line 2062 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 144 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 2065 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2068 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2071 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2074 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 2077 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2080 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qsize.sip"
#include <qsize.h>
#line 2083 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2086 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2089 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 2092 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 2095 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2098 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2101 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2104 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2107 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2110 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 2113 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2116 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2119 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2122 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"


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

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

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const 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;
    bool sipProtect_beginMoveRows(const QModelIndex&,int,int,const QModelIndex&,int);
    void sipProtect_endMoveRows();
    bool sipProtect_beginMoveColumns(const QModelIndex&,int,int,const QModelIndex&,int);
    void sipProtect_endMoveColumns();
    void sipProtect_beginResetModel();
    void sipProtect_endResetModel();
    void sipProtect_setRoleNames(const QHash<int,QByteArray>&);

    /*
     * 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)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

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

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

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

    sipVH_ktexteditor_91(sipGILState,sipMeth,a0,a1,a2);
}

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

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

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

    typedef int (*sipVH_QtCore_43)(sip_gilstate_t,PyObject *,const QModelIndex&);

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

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

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

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

    typedef QModelIndex (*sipVH_QtCore_46)(sip_gilstate_t,PyObject *,int,int,const QModelIndex&);

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

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

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

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

    typedef QMap<int,QVariant> (*sipVH_QtCore_56)(sip_gilstate_t,PyObject *,const QModelIndex&);

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

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

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

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

    typedef QModelIndex (*sipVH_QtCore_44)(sip_gilstate_t,PyObject *,const QModelIndex&);

    return ((sipVH_QtCore_44)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[44]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef int (*sipVH_QtCore_43)(sip_gilstate_t,PyObject *,const QModelIndex&);

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

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

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

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

    typedef bool (*sipVH_QtCore_42)(sip_gilstate_t,PyObject *,const QModelIndex&);

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

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

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

    if (!sipMeth)
        return QVariant();

    typedef QVariant (*sipVH_QtCore_60)(sip_gilstate_t,PyObject *,const QModelIndex&,int);

    return ((sipVH_QtCore_60)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[60]))(sipGILState,sipMeth,a0,a1);
}

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

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

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

    typedef bool (*sipVH_QtCore_59)(sip_gilstate_t,PyObject *,const QModelIndex&,const QVariant&,int);

    return ((sipVH_QtCore_59)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[59]))(sipGILState,sipMeth,a0,a1,a2);
}

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

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

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

    typedef QVariant (*sipVH_QtCore_58)(sip_gilstate_t,PyObject *,int,Qt::Orientation,int);

    return ((sipVH_QtCore_58)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[58]))(sipGILState,sipMeth,a0,a1,a2);
}

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

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

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

    typedef bool (*sipVH_QtCore_57)(sip_gilstate_t,PyObject *,int,Qt::Orientation,const QVariant&,int);

    return ((sipVH_QtCore_57)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[57]))(sipGILState,sipMeth,a0,a1,a2,a3);
}

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

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

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

    typedef bool (*sipVH_QtCore_55)(sip_gilstate_t,PyObject *,const QModelIndex&,const QMap<int,QVariant>&);

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

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

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

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

    typedef QStringList (*sipVH_QtCore_27)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_27)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[27]))(sipGILState,sipMeth);
}

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

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

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

    typedef QMimeData * (*sipVH_QtCore_54)(sip_gilstate_t,PyObject *,const QList<QModelIndex>&);

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

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

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

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

    typedef bool (*sipVH_QtCore_45)(sip_gilstate_t,PyObject *,const QMimeData *,Qt::DropAction,int,int,const QModelIndex&);

    return ((sipVH_QtCore_45)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[45]))(sipGILState,sipMeth,a0,a1,a2,a3,a4);
}

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

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

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

    typedef Qt::DropActions (*sipVH_QtCore_53)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_53)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[53]))(sipGILState,sipMeth);
}

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

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

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

    typedef bool (*sipVH_QtCore_52)(sip_gilstate_t,PyObject *,int,int,const QModelIndex&);

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

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

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

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

    typedef bool (*sipVH_QtCore_52)(sip_gilstate_t,PyObject *,int,int,const QModelIndex&);

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

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

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

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

    typedef bool (*sipVH_QtCore_52)(sip_gilstate_t,PyObject *,int,int,const QModelIndex&);

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

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

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

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

    typedef bool (*sipVH_QtCore_52)(sip_gilstate_t,PyObject *,int,int,const QModelIndex&);

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

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

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

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

    typedef void (*sipVH_QtCore_51)(sip_gilstate_t,PyObject *,const QModelIndex&);

    ((sipVH_QtCore_51)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[51]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef bool (*sipVH_QtCore_42)(sip_gilstate_t,PyObject *,const QModelIndex&);

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

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

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

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

    typedef Qt::ItemFlags (*sipVH_QtCore_50)(sip_gilstate_t,PyObject *,const QModelIndex&);

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

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

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

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

    typedef void (*sipVH_QtCore_49)(sip_gilstate_t,PyObject *,int,Qt::SortOrder);

    ((sipVH_QtCore_49)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[49]))(sipGILState,sipMeth,a0,a1);
}

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

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

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

    typedef QModelIndex (*sipVH_QtCore_44)(sip_gilstate_t,PyObject *,const QModelIndex&);

    return ((sipVH_QtCore_44)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[44]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef QList<QModelIndex> (*sipVH_QtCore_48)(sip_gilstate_t,PyObject *,const QModelIndex&,int,const QVariant&,int,Qt::MatchFlags);

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

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

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

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

    typedef QSize (*sipVH_QtCore_47)(sip_gilstate_t,PyObject *,const QModelIndex&);

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

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

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

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

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

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

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

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

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

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

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

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

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *,QEvent *);

    return ((sipVH_QtCore_5)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[5]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    return ((sipVH_QtCore_18)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[18]))(sipGILState,sipMeth,a0,a1);
}

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

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

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

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t,PyObject *,QTimerEvent *);

    ((sipVH_QtCore_9)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[9]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t,PyObject *,QChildEvent *);

    ((sipVH_QtCore_25)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[25]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,QEvent *);

    ((sipVH_QtCore_17)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

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

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

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

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

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

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

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

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

bool sipKTextEditor_CodeCompletionModel::sipProtect_beginMoveRows(const QModelIndex& a0,int a1,int a2,const QModelIndex& a3,int a4)
{
    return QAbstractItemModel::beginMoveRows(a0,a1,a2,a3,a4);
}

void sipKTextEditor_CodeCompletionModel::sipProtect_endMoveRows()
{
    QAbstractItemModel::endMoveRows();
}

bool sipKTextEditor_CodeCompletionModel::sipProtect_beginMoveColumns(const QModelIndex& a0,int a1,int a2,const QModelIndex& a3,int a4)
{
    return QAbstractItemModel::beginMoveColumns(a0,a1,a2,a3,a4);
}

void sipKTextEditor_CodeCompletionModel::sipProtect_endMoveColumns()
{
    QAbstractItemModel::endMoveColumns();
}

void sipKTextEditor_CodeCompletionModel::sipProtect_beginResetModel()
{
    QAbstractItemModel::beginResetModel();
}

void sipKTextEditor_CodeCompletionModel::sipProtect_endResetModel()
{
    QAbstractItemModel::endResetModel();
}

void sipKTextEditor_CodeCompletionModel::sipProtect_setRoleNames(const QHash<int,QByteArray>& a0)
{
    QAbstractItemModel::setRoleNames(a0);
}


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

    {
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_CodeCompletionModel, &sipCpp))
        {
            QObject *sipRes = 0;

#line 632 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 3009 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKTextEditor_CodeCompletionModel *sipCpp;

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

#line 649 "/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)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 3051 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &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(sipParseErr, sipName_CodeCompletionModel, sipName_timerEvent, NULL);

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &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(sipParseErr, sipName_CodeCompletionModel, sipName_childEvent, NULL);

    return NULL;
}


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

    {
        QEvent * a0;
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &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(sipParseErr, sipName_CodeCompletionModel, sipName_customEvent, NULL);

    return NULL;
}


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

    {
        char * a0;
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &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(sipParseErr, sipName_CodeCompletionModel, sipName_connectNotify, NULL);

    return NULL;
}


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

    {
        char * a0;
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &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(sipParseErr, sipName_CodeCompletionModel, sipName_disconnectNotify, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9", &sipSelf, sipType_KTextEditor_CodeCompletionModel, &sipCpp, sipType_QList_0100QModelIndex,&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_0100QModelIndex,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BiiJ9J9", &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(sipParseErr, sipName_CodeCompletionModel, sipName_decodeData, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9ii", &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(sipParseErr, sipName_CodeCompletionModel, sipName_beginInsertRows, NULL);

    return NULL;
}


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

    {
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &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(sipParseErr, sipName_CodeCompletionModel, sipName_endInsertRows, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9ii", &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(sipParseErr, sipName_CodeCompletionModel, sipName_beginRemoveRows, NULL);

    return NULL;
}


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

    {
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &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(sipParseErr, sipName_CodeCompletionModel, sipName_endRemoveRows, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9ii", &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(sipParseErr, sipName_CodeCompletionModel, sipName_beginInsertColumns, NULL);

    return NULL;
}


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

    {
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &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(sipParseErr, sipName_CodeCompletionModel, sipName_endInsertColumns, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9ii", &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(sipParseErr, sipName_CodeCompletionModel, sipName_beginRemoveColumns, NULL);

    return NULL;
}


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

    {
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &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(sipParseErr, sipName_CodeCompletionModel, sipName_endRemoveColumns, NULL);

    return NULL;
}


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

    {
        sipKTextEditor_CodeCompletionModel *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &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(sipParseErr, sipName_CodeCompletionModel, sipName_reset, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &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(sipParseErr, sipName_CodeCompletionModel, sipName_changePersistentIndex, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_KTextEditor_CodeCompletionModel, &sipCpp, sipType_QList_0100QModelIndex,&a0, &a0State, sipType_QList_0100QModelIndex,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_changePersistentIndexList(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QModelIndexList *>(a0),sipType_QList_0100QModelIndex,a0State);
            sipReleaseType(const_cast<QModelIndexList *>(a1),sipType_QList_0100QModelIndex,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_object,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bii|P0", &sipSelf, sipType_KTextEditor_CodeCompletionModel, &sipCpp, &a0, &a1, &a2))
        {
            QModelIndex *sipRes = 0;

#line 216 "/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;
        }
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = new QModelIndex(sipCpp->createIndex(a0, a1, ptr));
        #else
        sipRes = new QModelIndex(sipCpp->sipProtect_createIndex(a0, a1, ptr));
        #endif
#line 3651 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9iiJ9i", &sipSelf, sipType_KTextEditor_CodeCompletionModel, &sipCpp, sipType_QModelIndex, &a0, &a1, &a2, sipType_QModelIndex, &a3, &a4))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_CodeCompletionModel, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_endMoveRows();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9iiJ9i", &sipSelf, sipType_KTextEditor_CodeCompletionModel, &sipCpp, sipType_QModelIndex, &a0, &a1, &a2, sipType_QModelIndex, &a3, &a4))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_CodeCompletionModel, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_endMoveColumns();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_CodeCompletionModel, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_beginResetModel();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_CodeCompletionModel, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_endResetModel();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QHash<int,QByteArray> * a0;
        int a0State = 0;
        sipKTextEditor_CodeCompletionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTextEditor_CodeCompletionModel, &sipCpp, sipType_QHash_1800_0100QByteArray,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setRoleNames(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHash<int,QByteArray> *>(a0),sipType_QHash_1800_0100QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KTextEditor::CodeCompletionModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


/* 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 sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & 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 *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_CodeCompletionModel(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

    {
        QObject * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KTextEditor_CodeCompletionModel[] = {{13, 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_beginMoveColumns), meth_KTextEditor_CodeCompletionModel_beginMoveColumns, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_beginMoveRows), meth_KTextEditor_CodeCompletionModel_beginMoveRows, 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_beginResetModel), meth_KTextEditor_CodeCompletionModel_beginResetModel, 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), (PyCFunction)meth_KTextEditor_CodeCompletionModel_createIndex, METH_VARARGS|METH_KEYWORDS, 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_endMoveColumns), meth_KTextEditor_CodeCompletionModel_endMoveColumns, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_endMoveRows), meth_KTextEditor_CodeCompletionModel_endMoveRows, 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_endResetModel), meth_KTextEditor_CodeCompletionModel_endResetModel, 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_sender), meth_KTextEditor_CodeCompletionModel_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRoleNames), meth_KTextEditor_CodeCompletionModel_setRoleNames, 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[] = {
    {ClassVariable, sipName_ColumnCount, (PyMethodDef *)varget_KTextEditor_CodeCompletionModel_ColumnCount, NULL, NULL, NULL},
    {ClassVariable, sipName_LastItemDataRole, (PyMethodDef *)varget_KTextEditor_CodeCompletionModel_LastItemDataRole, NULL, NULL, NULL},
};


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

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

#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/codecompletionmodel.sip"
#include <ktexteditor/codecompletionmodel.h>
#line 4348 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/range.sip"
#include <ktexteditor/range.h>
#line 4351 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"


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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    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
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

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

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

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_94(sip_gilstate_t,PyObject *,const KTextEditor::Range&,KTextEditor::CodeCompletionModel *);

    sipVH_ktexteditor_94(sipGILState,sipMeth,a0,a1);
}

void sipKTextEditor_CodeCompletionInterface::abortCompletion()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

void sipKTextEditor_CodeCompletionInterface::forceCompletion()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

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

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

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_93(sip_gilstate_t,PyObject *,KTextEditor::CodeCompletionModel *);

    sipVH_ktexteditor_93(sipGILState,sipMeth,a0);
}

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

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

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_93(sip_gilstate_t,PyObject *,KTextEditor::CodeCompletionModel *);

    sipVH_ktexteditor_93(sipGILState,sipMeth,a0);
}

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

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

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

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

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

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtNetwork_1)(sip_gilstate_t,PyObject *,bool);

    ((sipVH_QtNetwork_1)(sipModuleAPI_ktexteditor_QtNetwork->em_virthandlers[1]))(sipGILState,sipMeth,a0);
}


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

    {
        KTextEditor::CodeCompletionInterface *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_CodeCompletionInterface, sipName_isCompletionActive);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isCompletionActive();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J8", &sipSelf, sipType_KTextEditor_CodeCompletionInterface, &sipCpp, sipType_KTextEditor_Range, &a0, sipType_KTextEditor_CodeCompletionModel, &a1))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_CodeCompletionInterface, sipName_startCompletion);
                return NULL;
            }

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::CodeCompletionInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_CodeCompletionInterface, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_CodeCompletionInterface, sipName_abortCompletion);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->abortCompletion();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::CodeCompletionInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_CodeCompletionInterface, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_CodeCompletionInterface, sipName_forceCompletion);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->forceCompletion();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_CodeCompletionInterface, &sipCpp, sipType_KTextEditor_CodeCompletionModel, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_CodeCompletionInterface, sipName_registerCompletionModel);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->registerCompletionModel(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_CodeCompletionInterface, &sipCpp, sipType_KTextEditor_CodeCompletionModel, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_CodeCompletionInterface, sipName_unregisterCompletionModel);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->unregisterCompletionModel(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::CodeCompletionInterface *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_CodeCompletionInterface, sipName_isAutomaticInvocationEnabled);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isAutomaticInvocationEnabled();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_KTextEditor_CodeCompletionInterface, &sipCpp, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_CodeCompletionInterface, sipName_setAutomaticInvocationEnabled);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAutomaticInvocationEnabled(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


/* 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 sipState)
{
    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_CodeCompletionInterface(sipSimpleWrapper *);}
static void dealloc_KTextEditor_CodeCompletionInterface(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_CodeCompletionInterface *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_CodeCompletionInterface(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KTextEditor::CodeCompletionInterface * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTextEditor_CodeCompletionInterface[] = {
    {SIP_MLNAME_CAST(sipName_abortCompletion), meth_KTextEditor_CodeCompletionInterface_abortCompletion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_forceCompletion), meth_KTextEditor_CodeCompletionInterface_forceCompletion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isAutomaticInvocationEnabled), meth_KTextEditor_CodeCompletionInterface_isAutomaticInvocationEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isCompletionActive), meth_KTextEditor_CodeCompletionInterface_isCompletionActive, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_registerCompletionModel), meth_KTextEditor_CodeCompletionInterface_registerCompletionModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAutomaticInvocationEnabled), meth_KTextEditor_CodeCompletionInterface_setAutomaticInvocationEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startCompletion), meth_KTextEditor_CodeCompletionInterface_startCompletion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_unregisterCompletionModel), meth_KTextEditor_CodeCompletionInterface_unregisterCompletionModel, METH_VARARGS, NULL}
};


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

#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/attribute.sip"
#include <ktexteditor/attribute.h>
#line 4932 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"

#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/attribute.sip"
#include <ktexteditor/attribute.h>
#line 4936 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"


extern "C" {static int slot_KTextEditor_Attribute_Effects___bool__(PyObject *);}
static int slot_KTextEditor_Attribute_Effects___bool__(PyObject *sipSelf)
{
    KTextEditor::Attribute::Effects *sipCpp = reinterpret_cast<KTextEditor::Attribute::Effects *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Attribute_Effects));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 4954 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KTextEditor_Attribute_Effects___ne__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_Attribute_Effects___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KTextEditor::Attribute::Effects *sipCpp = reinterpret_cast<KTextEditor::Attribute::Effects *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Attribute_Effects));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KTextEditor::Attribute::Effects * a0;
        int a0State = 0;

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

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 4984 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
            sipReleaseType(const_cast<KTextEditor::Attribute::Effects *>(a0),sipType_KTextEditor_Attribute_Effects,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KTextEditor_Attribute_Effects___eq__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_Attribute_Effects___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KTextEditor::Attribute::Effects *sipCpp = reinterpret_cast<KTextEditor::Attribute::Effects *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Attribute_Effects));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KTextEditor::Attribute::Effects * a0;
        int a0State = 0;

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

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 5020 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
            sipReleaseType(const_cast<KTextEditor::Attribute::Effects *>(a0),sipType_KTextEditor_Attribute_Effects,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KTextEditor_Attribute_Effects___invert__(PyObject *);}
static PyObject *slot_KTextEditor_Attribute_Effects___invert__(PyObject *sipSelf)
{
    KTextEditor::Attribute::Effects *sipCpp = reinterpret_cast<KTextEditor::Attribute::Effects *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Attribute_Effects));

    if (!sipCpp)
        return 0;


    {
        {
            KTextEditor::Attribute::Effects *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTextEditor::Attribute::Effects(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        KTextEditor::Attribute::Effects * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KTextEditor_Attribute_Effects, &a0, &a0State, &a1))
        {
            KTextEditor::Attribute::Effects *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTextEditor::Attribute::Effects((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KTextEditor_Attribute_Effects,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KTextEditor::Attribute::Effects * a0;
        int a0State = 0;
        KTextEditor::Attribute::Effects * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KTextEditor_Attribute_Effects, &a0, &a0State, sipType_KTextEditor_Attribute_Effects, &a1, &a1State))
        {
            KTextEditor::Attribute::Effects *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTextEditor::Attribute::Effects((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KTextEditor_Attribute_Effects,a0State);
            sipReleaseType(a1,sipType_KTextEditor_Attribute_Effects,a1State);

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

    {
        KTextEditor::Attribute::Effects * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KTextEditor_Attribute_Effects, &a0, &a0State, &a1))
        {
            KTextEditor::Attribute::Effects *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KTextEditor::Attribute::Effects(*a0 ^ a1);
#line 5129 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
            sipReleaseType(a0,sipType_KTextEditor_Attribute_Effects,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KTextEditor::Attribute::Effects * a0;
        int a0State = 0;
        KTextEditor::Attribute::Effects * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KTextEditor_Attribute_Effects, &a0, &a0State, sipType_KTextEditor_Attribute_Effects, &a1, &a1State))
        {
            KTextEditor::Attribute::Effects *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTextEditor::Attribute::Effects((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KTextEditor_Attribute_Effects,a0State);
            sipReleaseType(a1,sipType_KTextEditor_Attribute_Effects,a1State);

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

    {
        KTextEditor::Attribute::Effects * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KTextEditor_Attribute_Effects, &a0, &a0State, &a1))
        {
            KTextEditor::Attribute::Effects *sipRes = 0;

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KTextEditor::Attribute::Effects(*a0 | a1);
#line 5181 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
            sipReleaseType(a0,sipType_KTextEditor_Attribute_Effects,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KTextEditor_Attribute_Effects___int__(PyObject *);}
static PyObject *slot_KTextEditor_Attribute_Effects___int__(PyObject *sipSelf)
{
    KTextEditor::Attribute::Effects *sipCpp = reinterpret_cast<KTextEditor::Attribute::Effects *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Attribute_Effects));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

    KTextEditor::Attribute::Effects *sipCpp = reinterpret_cast<KTextEditor::Attribute::Effects *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Attribute_Effects));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KTextEditor::Attribute::Effects * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KTextEditor_Attribute_Effects, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KTextEditor::Attribute::Effects::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KTextEditor_Attribute_Effects,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    KTextEditor::Attribute::Effects *sipCpp = reinterpret_cast<KTextEditor::Attribute::Effects *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Attribute_Effects));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KTextEditor::Attribute::Effects * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KTextEditor_Attribute_Effects, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KTextEditor::Attribute::Effects::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KTextEditor_Attribute_Effects,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    KTextEditor::Attribute::Effects *sipCpp = reinterpret_cast<KTextEditor::Attribute::Effects *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Attribute_Effects));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KTextEditor::Attribute::Effects *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_KTextEditor_Attribute_Effects(SIP_SSIZE_T);}
static void *array_KTextEditor_Attribute_Effects(SIP_SSIZE_T sipNrElem)
{
    return new KTextEditor::Attribute::Effects[sipNrElem];
}


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


extern "C" {static void dealloc_KTextEditor_Attribute_Effects(sipSimpleWrapper *);}
static void dealloc_KTextEditor_Attribute_Effects(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_Attribute_Effects(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_KTextEditor_Attribute_Effects(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KTextEditor_Attribute_Effects(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KTextEditor::Attribute::Effects *sipCpp = 0;

    {
        const KTextEditor::Attribute::Effects * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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

#line 336 "/usr/local/share/py-sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a KTextEditor::Attribute::Effects is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KTextEditor_Attribute_Effect)) ||
            sipCanConvertToType(sipPy, sipType_KTextEditor_Attribute_Effects, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KTextEditor_Attribute_Effect)))
{
    *sipCppPtr = new KTextEditor::Attribute::Effects(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KTextEditor::Attribute::Effects *>(sipConvertToType(sipPy, sipType_KTextEditor_Attribute_Effects, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 5476 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart6.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KTextEditor_Attribute_Effects[] = {
    {(void *)slot_KTextEditor_Attribute_Effects___bool__, bool_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___ne__, ne_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___eq__, eq_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___invert__, invert_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___and__, and_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___xor__, xor_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___or__, or_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___int__, int_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___ixor__, ixor_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___ior__, ior_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_Attribute_Effects = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Attribute__Effects,
        {0}
    },
    {
        sipNameNr_Effects,
        {2, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KTextEditor_Attribute_Effects,
    init_KTextEditor_Attribute_Effects,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Attribute_Effects,
    assign_KTextEditor_Attribute_Effects,
    array_KTextEditor_Attribute_Effects,
    copy_KTextEditor_Attribute_Effects,
    release_KTextEditor_Attribute_Effects,
    cast_KTextEditor_Attribute_Effects,
    convertTo_KTextEditor_Attribute_Effects,
    0,
    0
},
    0,
    1,
    0
};
