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

#include "sipAPIktexteditor.h"

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

#line 32 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 16 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart2.cpp"


class sipKTextEditor_SessionConfigInterface : public  ::KTextEditor::SessionConfigInterface
{
public:
    sipKTextEditor_SessionConfigInterface();
    sipKTextEditor_SessionConfigInterface(const  ::KTextEditor::SessionConfigInterface&);
    virtual ~sipKTextEditor_SessionConfigInterface();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void writeSessionConfig( ::KConfigGroup&);
    void readSessionConfig(const  ::KConfigGroup&);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[2];
};

sipKTextEditor_SessionConfigInterface::sipKTextEditor_SessionConfigInterface():  ::KTextEditor::SessionConfigInterface(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

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

void sipKTextEditor_SessionConfigInterface::writeSessionConfig( ::KConfigGroup& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_SessionConfigInterface,sipName_writeSessionConfig);

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_192(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KConfigGroup&);

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

void sipKTextEditor_SessionConfigInterface::readSessionConfig(const  ::KConfigGroup& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_SessionConfigInterface,sipName_readSessionConfig);

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_191(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KConfigGroup&);

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


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

    {
        const  ::KConfigGroup* a0;
         ::KTextEditor::SessionConfigInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_SessionConfigInterface, &sipCpp, sipType_KConfigGroup, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_SessionConfigInterface, sipName_readSessionConfig);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->readSessionConfig(*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_SessionConfigInterface, sipName_readSessionConfig, NULL);

    return NULL;
}


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

    {
         ::KConfigGroup* a0;
         ::KTextEditor::SessionConfigInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_SessionConfigInterface, &sipCpp, sipType_KConfigGroup, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_SessionConfigInterface, sipName_writeSessionConfig);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->writeSessionConfig(*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_SessionConfigInterface, sipName_writeSessionConfig, NULL);

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::KTextEditor::SessionConfigInterface* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTextEditor_SessionConfigInterface[] = {
    {SIP_MLNAME_CAST(sipName_readSessionConfig), meth_KTextEditor_SessionConfigInterface_readSessionConfig, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeSessionConfig), meth_KTextEditor_SessionConfigInterface_writeSessionConfig, METH_VARARGS, NULL}
};


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


sipClassTypeDef sipTypeDef_ktexteditor_KTextEditor_SessionConfigInterface = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__SessionConfigInterface,
        {0},
        &plugin_KTextEditor_SessionConfigInterface
    },
    {
        sipNameNr_SessionConfigInterface,
        {1, 255, 0},
        2, methods_KTextEditor_SessionConfigInterface,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTextEditor_SessionConfigInterface,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_SessionConfigInterface,
    0,
    0,
    0,
    release_KTextEditor_SessionConfigInterface,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 53 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/searchinterface.sip"
#include <ktexteditor/searchinterface.h>
#line 287 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart2.cpp"

#line 28 "/usr/share/sip/PyQt4/QtCore/qvector.sip"
#include <qvector.h>
#line 291 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart2.cpp"
#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/range.sip"
#include <ktexteditor/range.h>
#line 294 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart2.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 297 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart2.cpp"


class sipKTextEditor_SearchInterface : public  ::KTextEditor::SearchInterface
{
public:
    sipKTextEditor_SearchInterface();
    sipKTextEditor_SearchInterface(const  ::KTextEditor::SearchInterface&);
    virtual ~sipKTextEditor_SearchInterface();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
     ::KTextEditor::Search::SearchOptions supportedSearchOptions() const;
    QVector< ::KTextEditor::Range> searchText(const  ::KTextEditor::Range&,const  ::QString&,const  ::KTextEditor::Search::SearchOptions);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[2];
};

sipKTextEditor_SearchInterface::sipKTextEditor_SearchInterface():  ::KTextEditor::SearchInterface(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

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

 ::KTextEditor::Search::SearchOptions sipKTextEditor_SearchInterface::supportedSearchOptions() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KTextEditor::Search::SearchOptions();

    extern  ::KTextEditor::Search::SearchOptions sipVH_ktexteditor_190(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

QVector< ::KTextEditor::Range> sipKTextEditor_SearchInterface::searchText(const  ::KTextEditor::Range& a0,const  ::QString& a1,const  ::KTextEditor::Search::SearchOptions a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_SearchInterface,sipName_searchText);

    if (!sipMeth)
        return QVector< ::KTextEditor::Range>();

    extern QVector< ::KTextEditor::Range> sipVH_ktexteditor_189(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTextEditor::Range&,const  ::QString&,const  ::KTextEditor::Search::SearchOptions);

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


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

    {
        const  ::KTextEditor::Range* a0;
        const  ::QString* a1;
        int a1State = 0;
        const  ::KTextEditor::Search::SearchOptions a2def = KTextEditor::Search::Default;
        const  ::KTextEditor::Search::SearchOptions* a2 = &a2def;
        int a2State = 0;
         ::KTextEditor::SearchInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1|J1", &sipSelf, sipType_KTextEditor_SearchInterface, &sipCpp, sipType_KTextEditor_Range, &a0, sipType_QString,&a1, &a1State, sipType_KTextEditor_Search_SearchOptions, &a2, &a2State))
        {
            QVector< ::KTextEditor::Range>*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_SearchInterface, sipName_searchText);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVector< ::KTextEditor::Range>(sipCpp->searchText(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast< ::KTextEditor::Search::SearchOptions *>(a2),sipType_KTextEditor_Search_SearchOptions,a2State);

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

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

    return NULL;
}


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

    {
        const  ::KTextEditor::SearchInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_SearchInterface, &sipCpp))
        {
             ::KTextEditor::Search::SearchOptions*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_SearchInterface, sipName_supportedSearchOptions);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::Search::SearchOptions(sipCpp->supportedSearchOptions());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::KTextEditor::SearchInterface* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTextEditor_SearchInterface[] = {
    {SIP_MLNAME_CAST(sipName_searchText), meth_KTextEditor_SearchInterface_searchText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedSearchOptions), meth_KTextEditor_SearchInterface_supportedSearchOptions, METH_VARARGS, NULL}
};


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


sipClassTypeDef sipTypeDef_ktexteditor_KTextEditor_SearchInterface = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__SearchInterface,
        {0},
        &plugin_KTextEditor_SearchInterface
    },
    {
        sipNameNr_SearchInterface,
        {1, 255, 0},
        2, methods_KTextEditor_SearchInterface,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTextEditor_SearchInterface,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_SearchInterface,
    0,
    0,
    0,
    release_KTextEditor_SearchInterface,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};




extern "C" {static int slot_KTextEditor_Search_SearchOptions___bool__(PyObject *);}
static int slot_KTextEditor_Search_SearchOptions___bool__(PyObject *sipSelf)
{
     ::KTextEditor::Search::SearchOptions *sipCpp = reinterpret_cast< ::KTextEditor::Search::SearchOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Search_SearchOptions));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

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

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KTextEditor_Search_SearchOptions___ne__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_Search_SearchOptions___ne__(PyObject *sipSelf,PyObject *sipArg)
{
     ::KTextEditor::Search::SearchOptions *sipCpp = reinterpret_cast< ::KTextEditor::Search::SearchOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Search_SearchOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::KTextEditor::Search::SearchOptions* a0;
        int a0State = 0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KTextEditor_Search_SearchOptions___eq__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_Search_SearchOptions___eq__(PyObject *sipSelf,PyObject *sipArg)
{
     ::KTextEditor::Search::SearchOptions *sipCpp = reinterpret_cast< ::KTextEditor::Search::SearchOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Search_SearchOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::KTextEditor::Search::SearchOptions* a0;
        int a0State = 0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

     ::KTextEditor::Search::SearchOptions *sipCpp = reinterpret_cast< ::KTextEditor::Search::SearchOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Search_SearchOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    {
         ::KTextEditor::Search::SearchOptions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KTextEditor_Search_SearchOptions, &a0, &a0State, &a1))
        {
             ::KTextEditor::Search::SearchOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::Search::SearchOptions((*a0 ^ a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KTextEditor_Search_SearchOptions,a0State);

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_Search_SearchOptions,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_Search_SearchOptions___ior__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_Search_SearchOptions___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KTextEditor_Search_SearchOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

     ::KTextEditor::Search::SearchOptions *sipCpp = reinterpret_cast< ::KTextEditor::Search::SearchOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Search_SearchOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    {
         ::KTextEditor::Search::SearchOptions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KTextEditor_Search_SearchOptions, &a0, &a0State, &a1))
        {
             ::KTextEditor::Search::SearchOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::Search::SearchOptions((*a0 | a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KTextEditor_Search_SearchOptions,a0State);

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_Search_SearchOptions,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_Search_SearchOptions___iand__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_Search_SearchOptions___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KTextEditor_Search_SearchOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

     ::KTextEditor::Search::SearchOptions *sipCpp = reinterpret_cast< ::KTextEditor::Search::SearchOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Search_SearchOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    {
         ::KTextEditor::Search::SearchOptions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KTextEditor_Search_SearchOptions, &a0, &a0State, &a1))
        {
             ::KTextEditor::Search::SearchOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::Search::SearchOptions((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KTextEditor_Search_SearchOptions,a0State);

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_Search_SearchOptions,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_Search_SearchOptions___invert__(PyObject *);}
static PyObject *slot_KTextEditor_Search_SearchOptions___invert__(PyObject *sipSelf)
{
     ::KTextEditor::Search::SearchOptions *sipCpp = reinterpret_cast< ::KTextEditor::Search::SearchOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Search_SearchOptions));

    if (!sipCpp)
        return 0;


    {
        {
             ::KTextEditor::Search::SearchOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::Search::SearchOptions(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


extern "C" {static PyObject *slot_KTextEditor_Search_SearchOptions___int__(PyObject *);}
static PyObject *slot_KTextEditor_Search_SearchOptions___int__(PyObject *sipSelf)
{
     ::KTextEditor::Search::SearchOptions *sipCpp = reinterpret_cast< ::KTextEditor::Search::SearchOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Search_SearchOptions));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

    delete reinterpret_cast< ::KTextEditor::Search::SearchOptions *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_KTextEditor_Search_SearchOptions(SIP_SSIZE_T);}
static void *array_KTextEditor_Search_SearchOptions(SIP_SSIZE_T sipNrElem)
{
    return new  ::KTextEditor::Search::SearchOptions[sipNrElem];
}


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


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


extern "C" {static void *init_type_KTextEditor_Search_SearchOptions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTextEditor_Search_SearchOptions(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
     ::KTextEditor::Search::SearchOptions *sipCpp = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

    {
        const  ::KTextEditor::Search::SearchOptions* a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    return NULL;
}


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

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

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KTextEditor_Search_SearchOptionsEnum)) ||
            sipCanConvertToType(sipPy, sipType_KTextEditor_Search_SearchOptions, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KTextEditor_Search_SearchOptionsEnum)))
{
    *sipCppPtr = new KTextEditor::Search::SearchOptions(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KTextEditor::Search::SearchOptions *>(sipConvertToType(sipPy, sipType_KTextEditor_Search_SearchOptions, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

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


/* Define this type's Python slots. */
static sipPySlotDef slots_KTextEditor_Search_SearchOptions[] = {
    {(void *)slot_KTextEditor_Search_SearchOptions___bool__, bool_slot},
    {(void *)slot_KTextEditor_Search_SearchOptions___ne__, ne_slot},
    {(void *)slot_KTextEditor_Search_SearchOptions___eq__, eq_slot},
    {(void *)slot_KTextEditor_Search_SearchOptions___ixor__, ixor_slot},
    {(void *)slot_KTextEditor_Search_SearchOptions___xor__, xor_slot},
    {(void *)slot_KTextEditor_Search_SearchOptions___ior__, ior_slot},
    {(void *)slot_KTextEditor_Search_SearchOptions___or__, or_slot},
    {(void *)slot_KTextEditor_Search_SearchOptions___iand__, iand_slot},
    {(void *)slot_KTextEditor_Search_SearchOptions___and__, and_slot},
    {(void *)slot_KTextEditor_Search_SearchOptions___invert__, invert_slot},
    {(void *)slot_KTextEditor_Search_SearchOptions___int__, int_slot},
    {0, (sipPySlotType)0}
};


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


sipClassTypeDef sipTypeDef_ktexteditor_KTextEditor_Search_SearchOptions = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Search__SearchOptions,
        {0},
        &plugin_KTextEditor_Search_SearchOptions
    },
    {
        sipNameNr_SearchOptions,
        {60, 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_Search_SearchOptions,
    init_type_KTextEditor_Search_SearchOptions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Search_SearchOptions,
    assign_KTextEditor_Search_SearchOptions,
    array_KTextEditor_Search_SearchOptions,
    copy_KTextEditor_Search_SearchOptions,
    release_KTextEditor_Search_SearchOptions,
    0,
    convertTo_KTextEditor_Search_SearchOptions,
    0,
    0,
    0,
    0,
    0
};



static sipEnumMemberDef enummembers_KTextEditor_Search[] = {
    {sipName_Backwards, static_cast<int>( ::KTextEditor::Search::Backwards), 62},
    {sipName_BlockInputRange, static_cast<int>( ::KTextEditor::Search::BlockInputRange), 62},
    {sipName_CaseInsensitive, static_cast<int>( ::KTextEditor::Search::CaseInsensitive), 62},
    {sipName_Default, static_cast<int>( ::KTextEditor::Search::Default), 62},
    {sipName_DotMatchesNewline, static_cast<int>( ::KTextEditor::Search::DotMatchesNewline), 62},
    {sipName_EscapeSequences, static_cast<int>( ::KTextEditor::Search::EscapeSequences), 62},
    {sipName_Regex, static_cast<int>( ::KTextEditor::Search::Regex), 62},
    {sipName_WholeWords, static_cast<int>( ::KTextEditor::Search::WholeWords), 62},
};


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


sipClassTypeDef sipTypeDef_ktexteditor_KTextEditor_Search = {
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_KTextEditor__Search,
        {0},
        &plugin_KTextEditor_Search
    },
    {
        sipNameNr_Search,
        {1, 255, 0},
        0, 0,
        8, enummembers_KTextEditor_Search,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

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



class sipKTextEditor_RecoveryInterface : public  ::KTextEditor::RecoveryInterface
{
public:
    sipKTextEditor_RecoveryInterface();
    sipKTextEditor_RecoveryInterface(const  ::KTextEditor::RecoveryInterface&);
    virtual ~sipKTextEditor_RecoveryInterface();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void discardDataRecovery();
    void recoverData();
    bool isDataRecoveryAvailable() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[3];
};

sipKTextEditor_RecoveryInterface::sipKTextEditor_RecoveryInterface():  ::KTextEditor::RecoveryInterface(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

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

void sipKTextEditor_RecoveryInterface::discardDataRecovery()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_RecoveryInterface,sipName_discardDataRecovery);

    if (!sipMeth)
        return;

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

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

void sipKTextEditor_RecoveryInterface::recoverData()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_RecoveryInterface,sipName_recoverData);

    if (!sipMeth)
        return;

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

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

bool sipKTextEditor_RecoveryInterface::isDataRecoveryAvailable() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return 0;

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

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


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

    {
        const  ::KTextEditor::RecoveryInterface *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_RecoveryInterface, sipName_isDataRecoveryAvailable);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDataRecoveryAvailable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
         ::KTextEditor::RecoveryInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_RecoveryInterface, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_RecoveryInterface, sipName_recoverData);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->recoverData();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
         ::KTextEditor::RecoveryInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_RecoveryInterface, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_RecoveryInterface, sipName_discardDataRecovery);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->discardDataRecovery();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::KTextEditor::RecoveryInterface* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTextEditor_RecoveryInterface[] = {
    {SIP_MLNAME_CAST(sipName_discardDataRecovery), meth_KTextEditor_RecoveryInterface_discardDataRecovery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDataRecoveryAvailable), meth_KTextEditor_RecoveryInterface_isDataRecoveryAvailable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_recoverData), meth_KTextEditor_RecoveryInterface_recoverData, METH_VARARGS, NULL}
};


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


sipClassTypeDef sipTypeDef_ktexteditor_KTextEditor_RecoveryInterface = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__RecoveryInterface,
        {0},
        &plugin_KTextEditor_RecoveryInterface
    },
    {
        sipNameNr_RecoveryInterface,
        {1, 255, 0},
        3, methods_KTextEditor_RecoveryInterface,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTextEditor_RecoveryInterface,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_RecoveryInterface,
    0,
    0,
    0,
    release_KTextEditor_RecoveryInterface,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

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

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


class sipKTextEditor_Range : public  ::KTextEditor::Range
{
public:
    sipKTextEditor_Range();
    sipKTextEditor_Range(const  ::KTextEditor::Cursor&,const  ::KTextEditor::Cursor&);
    sipKTextEditor_Range(const  ::KTextEditor::Cursor&,int);
    sipKTextEditor_Range(const  ::KTextEditor::Cursor&,int,int);
    sipKTextEditor_Range(int,int,int,int);
    sipKTextEditor_Range(const  ::KTextEditor::Range&);
    sipKTextEditor_Range( ::KTextEditor::Cursor*, ::KTextEditor::Cursor*);
    virtual ~sipKTextEditor_Range();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void rangeChanged( ::KTextEditor::Cursor*,const  ::KTextEditor::Range&);
    bool confineToRange(const  ::KTextEditor::Range&);
    bool expandToRange(const  ::KTextEditor::Range&);
    void setRange(const  ::KTextEditor::Range&);
    bool isValid() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[5];
};

sipKTextEditor_Range::sipKTextEditor_Range():  ::KTextEditor::Range(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_Range::sipKTextEditor_Range(const  ::KTextEditor::Cursor& a0,const  ::KTextEditor::Cursor& a1):  ::KTextEditor::Range(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_Range::sipKTextEditor_Range(const  ::KTextEditor::Cursor& a0,int a1):  ::KTextEditor::Range(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_Range::sipKTextEditor_Range(const  ::KTextEditor::Cursor& a0,int a1,int a2):  ::KTextEditor::Range(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_Range::sipKTextEditor_Range(int a0,int a1,int a2,int a3):  ::KTextEditor::Range(a0,a1,a2,a3), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

sipKTextEditor_Range::sipKTextEditor_Range( ::KTextEditor::Cursor*a0, ::KTextEditor::Cursor*a1):  ::KTextEditor::Range(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

void sipKTextEditor_Range::rangeChanged( ::KTextEditor::Cursor*a0,const  ::KTextEditor::Range& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KTextEditor::Range::rangeChanged(a0,a1);
        return;
    }

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

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

bool sipKTextEditor_Range::confineToRange(const  ::KTextEditor::Range& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KTextEditor::Range::confineToRange(a0);

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

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

bool sipKTextEditor_Range::expandToRange(const  ::KTextEditor::Range& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KTextEditor::Range::expandToRange(a0);

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

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

void sipKTextEditor_Range::setRange(const  ::KTextEditor::Range& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KTextEditor::Range::setRange(a0);
        return;
    }

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

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

bool sipKTextEditor_Range::isValid() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KTextEditor::Range::isValid();

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

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


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

    {
        const  ::KTextEditor::Range *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTextEditor::Range::isValid() : sipCpp->isValid());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
             ::KTextEditor::Range*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::Range( ::KTextEditor::Range::invalid());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Range, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setBothLines(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_Range, sipName_setBothLines, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Range, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setBothColumns(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_Range, sipName_setBothColumns, NULL);

    return NULL;
}


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

    {
        const  ::KTextEditor::Range* a0;
         ::KTextEditor::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_Range, &sipCpp, sipType_KTextEditor_Range, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KTextEditor::Range::setRange(*a0) : sipCpp->setRange(*a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const  ::KTextEditor::Cursor* a0;
        const  ::KTextEditor::Cursor* a1;
         ::KTextEditor::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_KTextEditor_Range, &sipCpp, sipType_KTextEditor_Cursor, &a0, sipType_KTextEditor_Cursor, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setRange(*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_Range, sipName_setRange, NULL);

    return NULL;
}


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

    {
        const  ::KTextEditor::Range* a0;
         ::KTextEditor::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_Range, &sipCpp, sipType_KTextEditor_Range, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KTextEditor::Range* a0;
         ::KTextEditor::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_Range, &sipCpp, sipType_KTextEditor_Range, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KTextEditor::Range *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->onSingleLine();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KTextEditor::Range *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->numberOfLines();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KTextEditor::Range *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->columnWidth();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KTextEditor::Range *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isEmpty();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KTextEditor::Range* a0;
        const  ::KTextEditor::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_Range, &sipCpp, sipType_KTextEditor_Range, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const  ::KTextEditor::Cursor* a0;
        const  ::KTextEditor::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_Range, &sipCpp, sipType_KTextEditor_Cursor, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        const  ::KTextEditor::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Range, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->containsLine(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KTextEditor::Range* a0;
        const  ::KTextEditor::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_Range, &sipCpp, sipType_KTextEditor_Range, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        const  ::KTextEditor::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Range, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->overlapsLine(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        const  ::KTextEditor::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Range, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->overlapsColumn(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KTextEditor::Cursor* a0;
        const  ::KTextEditor::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_Range, &sipCpp, sipType_KTextEditor_Cursor, &a0))
        {
            int sipRes;

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        const  ::KTextEditor::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Range, &sipCpp, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->positionRelativeToLine(a0);
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KTextEditor::Cursor* a0;
        const  ::KTextEditor::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_Range, &sipCpp, sipType_KTextEditor_Cursor, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        const  ::KTextEditor::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Range, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->boundaryOnLine(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KTextEditor::Range* a0;
        const  ::KTextEditor::Range *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::Range(sipCpp->intersect(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const  ::KTextEditor::Range* a0;
        const  ::KTextEditor::Range *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::Range(sipCpp->encompass(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
         ::KTextEditor::Cursor* a0;
        const  ::KTextEditor::Range* a1;
         ::KTextEditor::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8J9", &sipSelf, sipType_KTextEditor_Range, &sipCpp, sipType_KTextEditor_Cursor, &a0, sipType_KTextEditor_Range, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KTextEditor::Range::rangeChanged(a0,*a1) : sipCpp->rangeChanged(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_Range, sipName_rangeChanged, NULL);

    return NULL;
}


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

    {
        const  ::KTextEditor::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Range, &sipCpp))
        {
             ::KTextEditor::Cursor*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::Cursor(sipCpp->start());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const  ::KTextEditor::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Range, &sipCpp))
        {
             ::KTextEditor::Cursor*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::Cursor(sipCpp->end());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::KTextEditor::Cursor* a0;
        const  ::KTextEditor::Cursor* a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J9", sipType_KTextEditor_Cursor, &a0, sipType_KTextEditor_Cursor, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Range(*a0,*a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::KTextEditor::Cursor* a0;
        int a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9i", sipType_KTextEditor_Cursor, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Range(*a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::KTextEditor::Cursor* a0;
        int a1;
        int a2;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9ii", sipType_KTextEditor_Cursor, &a0, &a1, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Range(*a0,a1,a2);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "iiii", &a0, &a1, &a2, &a3))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Range(a0,a1,a2,a3);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::KTextEditor::Range* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
         ::KTextEditor::Cursor* a0;
         ::KTextEditor::Cursor* a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8J8", sipType_KTextEditor_Cursor, &a0, sipType_KTextEditor_Cursor, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Range(a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTextEditor_Range[] = {
    {SIP_MLNAME_CAST(sipName_boundaryAtCursor), meth_KTextEditor_Range_boundaryAtCursor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_boundaryOnLine), meth_KTextEditor_Range_boundaryOnLine, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_columnWidth), meth_KTextEditor_Range_columnWidth, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_confineToRange), meth_KTextEditor_Range_confineToRange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_contains), meth_KTextEditor_Range_contains, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containsLine), meth_KTextEditor_Range_containsLine, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encompass), meth_KTextEditor_Range_encompass, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_end), meth_KTextEditor_Range_end, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_expandToRange), meth_KTextEditor_Range_expandToRange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_intersect), meth_KTextEditor_Range_intersect, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_invalid), meth_KTextEditor_Range_invalid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_KTextEditor_Range_isEmpty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KTextEditor_Range_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_numberOfLines), meth_KTextEditor_Range_numberOfLines, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_onSingleLine), meth_KTextEditor_Range_onSingleLine, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_overlaps), meth_KTextEditor_Range_overlaps, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_overlapsColumn), meth_KTextEditor_Range_overlapsColumn, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_overlapsLine), meth_KTextEditor_Range_overlapsLine, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_positionRelativeToCursor), meth_KTextEditor_Range_positionRelativeToCursor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_positionRelativeToLine), meth_KTextEditor_Range_positionRelativeToLine, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rangeChanged), meth_KTextEditor_Range_rangeChanged, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setBothColumns), meth_KTextEditor_Range_setBothColumns, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setBothLines), meth_KTextEditor_Range_setBothLines, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRange), meth_KTextEditor_Range_setRange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_start), meth_KTextEditor_Range_start, METH_VARARGS, NULL}
};


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


sipClassTypeDef sipTypeDef_ktexteditor_KTextEditor_Range = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Range,
        {0},
        &plugin_KTextEditor_Range
    },
    {
        sipNameNr_Range,
        {1, 255, 0},
        25, methods_KTextEditor_Range,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTextEditor_Range,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Range,
    assign_KTextEditor_Range,
    array_KTextEditor_Range,
    copy_KTextEditor_Range,
    release_KTextEditor_Range,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

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

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

#include <ktexteditor/codecompletioninterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/texthintinterface.h>
#include <ktexteditor/annotationinterface.h>
#include <ktexteditor/configinterface.h>
#include <ktexteditor/templateinterface.h>
#include <ktexteditor/templateinterface2.h>
#line 2698 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart2.cpp"
#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
#include <ktexteditor/document.h>

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

#line 2717 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2720 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart2.cpp"
#line 368 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2723 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart2.cpp"
#line 351 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2726 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart2.cpp"
#line 265 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2729 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2732 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart2.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2735 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2738 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart2.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2741 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 2744 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart2.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2747 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2750 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2753 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart2.cpp"


class sipKTextEditor_Plugin : public  ::KTextEditor::Plugin
{
public:
    sipKTextEditor_Plugin( ::QObject*);
    virtual ~sipKTextEditor_Plugin();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void removeView( ::KTextEditor::View*);
    void addView( ::KTextEditor::View*);
    void removeDocument( ::KTextEditor::Document*);
    void addDocument( ::KTextEditor::Document*);
    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_Plugin(const sipKTextEditor_Plugin &);
    sipKTextEditor_Plugin &operator = (const sipKTextEditor_Plugin &);

    char sipPyMethods[11];
};

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

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

const QMetaObject *sipKTextEditor_Plugin::metaObject() const
{
    return sip_ktexteditor_qt_metaobject(sipPySelf,sipType_KTextEditor_Plugin);
}

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

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

    return _id;
}

void *sipKTextEditor_Plugin::qt_metacast(const char *_clname)
{
    return (sip_ktexteditor_qt_metacast(sipPySelf, sipType_KTextEditor_Plugin, _clname)) ? this :  ::KTextEditor::Plugin::qt_metacast(_clname);
}

void sipKTextEditor_Plugin::removeView( ::KTextEditor::View*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KTextEditor::Plugin::removeView(a0);
        return;
    }

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

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

void sipKTextEditor_Plugin::addView( ::KTextEditor::View*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KTextEditor::Plugin::addView(a0);
        return;
    }

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

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

void sipKTextEditor_Plugin::removeDocument( ::KTextEditor::Document*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KTextEditor::Plugin::removeDocument(a0);
        return;
    }

    extern void sipVH_ktexteditor_151(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KTextEditor::Document*);

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

void sipKTextEditor_Plugin::addDocument( ::KTextEditor::Document*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KTextEditor::Plugin::addDocument(a0);
        return;
    }

    extern void sipVH_ktexteditor_151(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KTextEditor::Document*);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
         ::KTextEditor::Document* a0;
         ::KTextEditor::Plugin *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_Plugin, &sipCpp, sipType_KTextEditor_Document, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KTextEditor::Plugin::addDocument(a0) : sipCpp->addDocument(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_Plugin, sipName_addDocument, NULL);

    return NULL;
}


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

    {
         ::KTextEditor::Document* a0;
         ::KTextEditor::Plugin *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_Plugin, &sipCpp, sipType_KTextEditor_Document, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KTextEditor::Plugin::removeDocument(a0) : sipCpp->removeDocument(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_Plugin, sipName_removeDocument, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_Plugin, &sipCpp, sipType_KTextEditor_View, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KTextEditor::Plugin::addView(a0) : sipCpp->addView(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_Plugin, sipName_addView, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_Plugin, &sipCpp, sipType_KTextEditor_View, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KTextEditor::Plugin::removeView(a0) : sipCpp->removeView(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_Plugin, sipName_removeView, NULL);

    return NULL;
}


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

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

    return sipCppV;
}


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
         ::QObject* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KTextEditor_Plugin[] = {
    {SIP_MLNAME_CAST(sipName_addDocument), meth_KTextEditor_Plugin_addDocument, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addView), meth_KTextEditor_Plugin_addView, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeDocument), meth_KTextEditor_Plugin_removeDocument, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeView), meth_KTextEditor_Plugin_removeView, METH_VARARGS, NULL}
};


static pyqt4ClassPluginDef plugin_KTextEditor_Plugin = {
    & ::KTextEditor::Plugin::staticMetaObject,
    0,
    0
};


sipClassTypeDef sipTypeDef_ktexteditor_KTextEditor_Plugin = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Plugin,
        {0},
        &plugin_KTextEditor_Plugin
    },
    {
        sipNameNr_Plugin,
        {1, 255, 0},
        4, methods_KTextEditor_Plugin,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTextEditor_Plugin,
    0,
    init_type_KTextEditor_Plugin,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Plugin,
    0,
    0,
    0,
    release_KTextEditor_Plugin,
    cast_KTextEditor_Plugin,
    0,
    0,
    0,
    0,
    0,
    0
};

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

#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/movingrange.sip"
#include <ktexteditor/movingrange.h>
#line 3269 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart2.cpp"
#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/view.sip"
#include <ktexteditor/view.h>

#include <ktexteditor/codecompletioninterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/texthintinterface.h>
#include <ktexteditor/annotationinterface.h>
#include <ktexteditor/configinterface.h>
#include <ktexteditor/templateinterface.h>
#include <ktexteditor/templateinterface2.h>
#line 3280 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/ktexteditor/sipktexteditorpart2.cpp"


class sipKTextEditor_MovingRangeFeedback : public  ::KTextEditor::MovingRangeFeedback
{
public:
    sipKTextEditor_MovingRangeFeedback();
    virtual ~sipKTextEditor_MovingRangeFeedback();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void caretExitedRange( ::KTextEditor::MovingRange*, ::KTextEditor::View*);
    void caretEnteredRange( ::KTextEditor::MovingRange*, ::KTextEditor::View*);
    void mouseExitedRange( ::KTextEditor::MovingRange*, ::KTextEditor::View*);
    void mouseEnteredRange( ::KTextEditor::MovingRange*, ::KTextEditor::View*);
    void rangeInvalid( ::KTextEditor::MovingRange*);
    void rangeEmpty( ::KTextEditor::MovingRange*);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[6];
};

sipKTextEditor_MovingRangeFeedback::sipKTextEditor_MovingRangeFeedback():  ::KTextEditor::MovingRangeFeedback(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

void sipKTextEditor_MovingRangeFeedback::caretExitedRange( ::KTextEditor::MovingRange*a0, ::KTextEditor::View*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KTextEditor::MovingRangeFeedback::caretExitedRange(a0,a1);
        return;
    }

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

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

void sipKTextEditor_MovingRangeFeedback::caretEnteredRange( ::KTextEditor::MovingRange*a0, ::KTextEditor::View*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KTextEditor::MovingRangeFeedback::caretEnteredRange(a0,a1);
        return;
    }

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

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

void sipKTextEditor_MovingRangeFeedback::mouseExitedRange( ::KTextEditor::MovingRange*a0, ::KTextEditor::View*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KTextEditor::MovingRangeFeedback::mouseExitedRange(a0,a1);
        return;
    }

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

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

void sipKTextEditor_MovingRangeFeedback::mouseEnteredRange( ::KTextEditor::MovingRange*a0, ::KTextEditor::View*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KTextEditor::MovingRangeFeedback::mouseEnteredRange(a0,a1);
        return;
    }

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

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

void sipKTextEditor_MovingRangeFeedback::rangeInvalid( ::KTextEditor::MovingRange*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KTextEditor::MovingRangeFeedback::rangeInvalid(a0);
        return;
    }

    extern void sipVH_ktexteditor_185(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KTextEditor::MovingRange*);

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

void sipKTextEditor_MovingRangeFeedback::rangeEmpty( ::KTextEditor::MovingRange*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KTextEditor::MovingRangeFeedback::rangeEmpty(a0);
        return;
    }

    extern void sipVH_ktexteditor_185(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KTextEditor::MovingRange*);

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


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

    {
         ::KTextEditor::MovingRange* a0;
         ::KTextEditor::MovingRangeFeedback *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_MovingRangeFeedback, &sipCpp, sipType_KTextEditor_MovingRange, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KTextEditor::MovingRangeFeedback::rangeEmpty(a0) : sipCpp->rangeEmpty(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_MovingRangeFeedback, sipName_rangeEmpty, NULL);

    return NULL;
}


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

    {
         ::KTextEditor::MovingRange* a0;
         ::KTextEditor::MovingRangeFeedback *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_MovingRangeFeedback, &sipCpp, sipType_KTextEditor_MovingRange, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KTextEditor::MovingRangeFeedback::rangeInvalid(a0) : sipCpp->rangeInvalid(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_MovingRangeFeedback, sipName_rangeInvalid, NULL);

    return NULL;
}


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

    {
         ::KTextEditor::MovingRange* a0;
         ::KTextEditor::View* a1;
         ::KTextEditor::MovingRangeFeedback *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J8", &sipSelf, sipType_KTextEditor_MovingRangeFeedback, &sipCpp, sipType_KTextEditor_MovingRange, &a0, sipType_KTextEditor_View, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KTextEditor::MovingRangeFeedback::mouseEnteredRange(a0,a1) : sipCpp->mouseEnteredRange(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_MovingRangeFeedback, sipName_mouseEnteredRange, NULL);

    return NULL;
}


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

    {
         ::KTextEditor::MovingRange* a0;
         ::KTextEditor::View* a1;
         ::KTextEditor::MovingRangeFeedback *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J8", &sipSelf, sipType_KTextEditor_MovingRangeFeedback, &sipCpp, sipType_KTextEditor_MovingRange, &a0, sipType_KTextEditor_View, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KTextEditor::MovingRangeFeedback::mouseExitedRange(a0,a1) : sipCpp->mouseExitedRange(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_MovingRangeFeedback, sipName_mouseExitedRange, NULL);

    return NULL;
}


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

    {
         ::KTextEditor::MovingRange* a0;
         ::KTextEditor::View* a1;
         ::KTextEditor::MovingRangeFeedback *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J8", &sipSelf, sipType_KTextEditor_MovingRangeFeedback, &sipCpp, sipType_KTextEditor_MovingRange, &a0, sipType_KTextEditor_View, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KTextEditor::MovingRangeFeedback::caretEnteredRange(a0,a1) : sipCpp->caretEnteredRange(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_MovingRangeFeedback, sipName_caretEnteredRange, NULL);

    return NULL;
}


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

    {
         ::KTextEditor::MovingRange* a0;
         ::KTextEditor::View* a1;
         ::KTextEditor::MovingRangeFeedback *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J8", &sipSelf, sipType_KTextEditor_MovingRangeFeedback, &sipCpp, sipType_KTextEditor_MovingRange, &a0, sipType_KTextEditor_View, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KTextEditor::MovingRangeFeedback::caretExitedRange(a0,a1) : sipCpp->caretExitedRange(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_MovingRangeFeedback, sipName_caretExitedRange, NULL);

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTextEditor_MovingRangeFeedback[] = {
    {SIP_MLNAME_CAST(sipName_caretEnteredRange), meth_KTextEditor_MovingRangeFeedback_caretEnteredRange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_caretExitedRange), meth_KTextEditor_MovingRangeFeedback_caretExitedRange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseEnteredRange), meth_KTextEditor_MovingRangeFeedback_mouseEnteredRange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseExitedRange), meth_KTextEditor_MovingRangeFeedback_mouseExitedRange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rangeEmpty), meth_KTextEditor_MovingRangeFeedback_rangeEmpty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rangeInvalid), meth_KTextEditor_MovingRangeFeedback_rangeInvalid, METH_VARARGS, NULL}
};


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


sipClassTypeDef sipTypeDef_ktexteditor_KTextEditor_MovingRangeFeedback = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__MovingRangeFeedback,
        {0},
        &plugin_KTextEditor_MovingRangeFeedback
    },
    {
        sipNameNr_MovingRangeFeedback,
        {1, 255, 0},
        6, methods_KTextEditor_MovingRangeFeedback,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTextEditor_MovingRangeFeedback,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_MovingRangeFeedback,
    0,
    0,
    0,
    release_KTextEditor_MovingRangeFeedback,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};
