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

#include "sipAPIktexteditor.h"

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

#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/smartrange.sip"
#include <ktexteditor/smartrange.h>
#line 33 "sipktexteditorpart3.cpp"
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 36 "sipktexteditorpart3.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/attribute.sip"
#include <ktexteditor/attribute.h>
#line 39 "sipktexteditorpart3.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/view.sip"
#include <ktexteditor/view.h>

#include <ktexteditor/codecompletioninterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/texthintinterface.h>
#line 46 "sipktexteditorpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 49 "sipktexteditorpart3.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 52 "sipktexteditorpart3.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 55 "sipktexteditorpart3.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 58 "sipktexteditorpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 61 "sipktexteditorpart3.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 92 "sipktexteditorpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 95 "sipktexteditorpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 98 "sipktexteditorpart3.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 101 "sipktexteditorpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 104 "sipktexteditorpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 107 "sipktexteditorpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 110 "sipktexteditorpart3.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 113 "sipktexteditorpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 116 "sipktexteditorpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 119 "sipktexteditorpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 122 "sipktexteditorpart3.cpp"


class sipKTextEditor_SmartRangeNotifier : public KTextEditor::SmartRangeNotifier
{
public:
    sipKTextEditor_SmartRangeNotifier();
    virtual ~sipKTextEditor_SmartRangeNotifier();

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

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    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_SmartRangeNotifier(const sipKTextEditor_SmartRangeNotifier &);
    sipKTextEditor_SmartRangeNotifier &operator = (const sipKTextEditor_SmartRangeNotifier &);

    char sipPyMethods[7];
};

sipKTextEditor_SmartRangeNotifier::sipKTextEditor_SmartRangeNotifier(): KTextEditor::SmartRangeNotifier(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKTextEditor_SmartRangeNotifier::metaObject() const
{
    return sip_ktexteditor_qt_metaobject(sipPySelf,sipType_KTextEditor_SmartRangeNotifier);
}

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

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

    return _id;
}

void *sipKTextEditor_SmartRangeNotifier::qt_metacast(const char *_clname)
{
    return (sip_ktexteditor_qt_metacast && sip_ktexteditor_qt_metacast(sipPySelf,sipType_KTextEditor_SmartRangeNotifier,_clname)) ? this : KTextEditor::SmartRangeNotifier::qt_metacast(_clname);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

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

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

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

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

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


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

    {
        char * a0;
        sipKTextEditor_SmartRangeNotifier *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKTextEditor_SmartRangeNotifier *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKTextEditor_SmartRangeNotifier *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKTextEditor_SmartRangeNotifier *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKTextEditor_SmartRangeNotifier *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKTextEditor_SmartRangeNotifier *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::SmartRangeNotifier *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->wantsDirectChanges();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KTextEditor::SmartRangeNotifier *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bb",&sipSelf,sipType_KTextEditor_SmartRangeNotifier,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setWantsDirectChanges(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KTextEditor_SmartRangeNotifier)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(KTextEditor::SmartRangeNotifier *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_KTextEditor_SmartRangeNotifier[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KTextEditor_SmartRangeNotifier_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KTextEditor_SmartRangeNotifier_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KTextEditor_SmartRangeNotifier_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KTextEditor_SmartRangeNotifier_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KTextEditor_SmartRangeNotifier_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setWantsDirectChanges), meth_KTextEditor_SmartRangeNotifier_setWantsDirectChanges, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KTextEditor_SmartRangeNotifier_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_wantsDirectChanges), meth_KTextEditor_SmartRangeNotifier_wantsDirectChanges, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KTextEditor_SmartRangeNotifier[] = {
    {"rangeAttributeChanged(KTextEditor::SmartRange *,KTextEditor::Attribute::Ptr,KTextEditor::Attribute::Ptr)", 0},
    {"childRangeRemoved(KTextEditor::SmartRange *,KTextEditor::SmartRange *)", 0},
    {"childRangeInserted(KTextEditor::SmartRange *,KTextEditor::SmartRange *)", 0},
    {"parentRangeChanged(KTextEditor::SmartRange *,KTextEditor::SmartRange *,KTextEditor::SmartRange *)", 0},
    {"rangeDeleted(KTextEditor::SmartRange *)", 0},
    {"rangeEliminated(KTextEditor::SmartRange *)", 0},
    {"caretExitedRange(KTextEditor::SmartRange *,KTextEditor::View *)", 0},
    {"caretEnteredRange(KTextEditor::SmartRange *,KTextEditor::View *)", 0},
    {"mouseExitedRange(KTextEditor::SmartRange *,KTextEditor::View *)", 0},
    {"mouseEnteredRange(KTextEditor::SmartRange *,KTextEditor::View *)", 0},
    {"rangeContentsChanged(KTextEditor::SmartRange *)", 0},
    {"rangeContentsChanged(KTextEditor::SmartRange *,KTextEditor::SmartRange *)", 0},
    {"rangePositionChanged(KTextEditor::SmartRange *)", 0},
    {0, 0}
};


pyqt4ClassTypeDef pyqt4Type_ktexteditor_KTextEditor_SmartRangeNotifier = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__SmartRangeNotifier,
        {0}
    },
    sipNameNr_SmartRangeNotifier,
    -1,
    -1,
    {1, 255, 0},
    supers_KTextEditor_SmartRangeNotifier,
    0,
    8, methods_KTextEditor_SmartRangeNotifier,
    0, 0,
    0, 0,
    init_KTextEditor_SmartRangeNotifier,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_SmartRangeNotifier,
    release_KTextEditor_SmartRangeNotifier,
    cast_KTextEditor_SmartRangeNotifier,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &KTextEditor::SmartRangeNotifier::staticMetaObject,
    0,
    pyqt4_signals_KTextEditor_SmartRangeNotifier
};

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

#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/cursor.sip"
#include <ktexteditor/cursor.h>
#line 734 "sipktexteditorpart3.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/smartrange.sip"
#include <ktexteditor/smartrange.h>
#line 737 "sipktexteditorpart3.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 public method for every protected method visible from
     * this class.
     */
    void sipProtectVirt_rangeChanged(bool,KTextEditor::Cursor *,const KTextEditor::Range&);

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[7];
};

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

bool sipKTextEditor_Range::isValid() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

bool sipKTextEditor_Range::isSmartRange() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KTextEditor::Range::isSmartRange();

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

KTextEditor::SmartRange * sipKTextEditor_Range::toSmartRange() const
{
    extern KTextEditor::SmartRange * sipVH_ktexteditor_20(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KTextEditor::Range::toSmartRange();

    return sipVH_ktexteditor_20(sipGILState,meth);
}

void sipKTextEditor_Range::setRange(const KTextEditor::Range& a0)
{
    extern void sipVH_ktexteditor_19(sip_gilstate_t,PyObject *,const KTextEditor::Range&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    sipVH_ktexteditor_19(sipGILState,meth,a0);
}

bool sipKTextEditor_Range::expandToRange(const KTextEditor::Range& a0)
{
    extern bool sipVH_ktexteditor_2(sip_gilstate_t,PyObject *,const KTextEditor::Range&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_expandToRange);

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

    return sipVH_ktexteditor_2(sipGILState,meth,a0);
}

bool sipKTextEditor_Range::confineToRange(const KTextEditor::Range& a0)
{
    extern bool sipVH_ktexteditor_2(sip_gilstate_t,PyObject *,const KTextEditor::Range&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_confineToRange);

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

    return sipVH_ktexteditor_2(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_rangeChanged);

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

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

void sipKTextEditor_Range::sipProtectVirt_rangeChanged(bool sipSelfWasArg,KTextEditor::Cursor *a0,const KTextEditor::Range& a1)
{
    (sipSelfWasArg ? KTextEditor::Range::rangeChanged(a0,a1) : rangeChanged(a0,a1));
}


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

    {
        KTextEditor::Range *sipCpp;

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Range,sipName_invalid);

    return NULL;
}


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

    {
        KTextEditor::Range *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::Range *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KTextEditor::Range *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->start();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KTextEditor::Range *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->end();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        int a0;
        KTextEditor::Range *sipCpp;

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

    return NULL;
}


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

    {
        int a0;
        KTextEditor::Range *sipCpp;

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

    return NULL;
}


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

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

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

    return NULL;
}


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

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

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

    return NULL;
}


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

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

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

    return NULL;
}


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

    {
        KTextEditor::Range *sipCpp;

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

    return NULL;
}


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

    {
        KTextEditor::Range *sipCpp;

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

    return NULL;
}


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

    {
        KTextEditor::Range *sipCpp;

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

    return NULL;
}


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

    {
        KTextEditor::Range *sipCpp;

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,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;
        KTextEditor::Range *sipCpp;

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

    return NULL;
}


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

    {
        int a0;
        KTextEditor::Range *sipCpp;

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

    return NULL;
}


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

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

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

    return NULL;
}


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

    {
        int a0;
        KTextEditor::Range *sipCpp;

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

    return NULL;
}


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

    {
        int a0;
        KTextEditor::Range *sipCpp;

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

    return NULL;
}


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

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

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

    return NULL;
}


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

    {
        int a0;
        KTextEditor::Range *sipCpp;

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

    return NULL;
}


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

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

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

    return NULL;
}


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

    {
        int a0;
        KTextEditor::Range *sipCpp;

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

    return NULL;
}


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

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

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

    return NULL;
}


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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8J9",&sipSelf,sipType_KTextEditor_Range,&sipCpp,sipType_KTextEditor_Cursor,&a0,sipType_KTextEditor_Range,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_rangeChanged(sipSelfWasArg,a0,*a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

    if (state & 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 *, const void*);}
static void assign_KTextEditor_Range(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KTextEditor::Range *>(sipDst) = *reinterpret_cast<const KTextEditor::Range *>(sipSrc);
}


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

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


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

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

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

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9J9",sipType_KTextEditor_Cursor,&a0,sipType_KTextEditor_Cursor,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Range(*a0,*a1);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const KTextEditor::Cursor * a0;
        int a1;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9i",sipType_KTextEditor_Cursor,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Range(*a0,a1);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const KTextEditor::Cursor * a0;
        int a1;
        int a2;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9ii",sipType_KTextEditor_Cursor,&a0,&a1,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Range(*a0,a1,a2);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        int a0;
        int a1;
        int a2;
        int a3;

        if (sipParseArgs(sipArgsParsed,sipArgs,"iiii",&a0,&a1,&a2,&a3))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Range(a0,a1,a2,a3);
            Py_END_ALLOW_THREADS
        }
    }

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

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

    if (!sipCpp)
    {
        KTextEditor::Cursor * a0;
        KTextEditor::Cursor * a1;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J8J8",sipType_KTextEditor_Cursor,&a0,sipType_KTextEditor_Cursor,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Range(a0,a1);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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_isSmartRange), meth_KTextEditor_Range_isSmartRange, 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},
    {SIP_MLNAME_CAST(sipName_toSmartRange), meth_KTextEditor_Range_toSmartRange, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_ktexteditor_KTextEditor_Range = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Range,
        {0}
    },
    sipNameNr_Range,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {1, 255, 0},
    0,
    0,
    27, methods_KTextEditor_Range,
    0, 0,
    0, 0,
    init_KTextEditor_Range,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Range,
    release_KTextEditor_Range,
    cast_KTextEditor_Range,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KTextEditor_Range,
    0,
    0,
    0
};

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

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1948 "sipktexteditorpart3.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/view.sip"
#include <ktexteditor/view.h>

#include <ktexteditor/codecompletioninterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/texthintinterface.h>
#line 1955 "sipktexteditorpart3.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/document.sip"
#include <ktexteditor/document.h>

#include <ktexteditor/modificationinterface.h>
#include <ktexteditor/markinterface.h>
#include <ktexteditor/searchinterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/smartinterface.h>
#include <ktexteditor/templateinterface.h>
#include <ktexteditor/variableinterface.h>
#line 1966 "sipktexteditorpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1969 "sipktexteditorpart3.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1972 "sipktexteditorpart3.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1975 "sipktexteditorpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1978 "sipktexteditorpart3.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 2009 "sipktexteditorpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 2012 "sipktexteditorpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 2015 "sipktexteditorpart3.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2018 "sipktexteditorpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 2021 "sipktexteditorpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2024 "sipktexteditorpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 2027 "sipktexteditorpart3.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2030 "sipktexteditorpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 2033 "sipktexteditorpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2036 "sipktexteditorpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2039 "sipktexteditorpart3.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 public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void addDocument(KTextEditor::Document *);
    void removeDocument(KTextEditor::Document *);
    void addView(KTextEditor::View *);
    void removeView(KTextEditor::View *);
    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()
{
    sipCommonDtor(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 && sip_ktexteditor_qt_metacast(sipPySelf,sipType_KTextEditor_Plugin,_clname)) ? this : KTextEditor::Plugin::qt_metacast(_clname);
}

void sipKTextEditor_Plugin::addDocument(KTextEditor::Document *a0)
{
    extern void sipVH_ktexteditor_44(sip_gilstate_t,PyObject *,KTextEditor::Document *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    sipVH_ktexteditor_44(sipGILState,meth,a0);
}

void sipKTextEditor_Plugin::removeDocument(KTextEditor::Document *a0)
{
    extern void sipVH_ktexteditor_44(sip_gilstate_t,PyObject *,KTextEditor::Document *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_removeDocument);

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

    sipVH_ktexteditor_44(sipGILState,meth,a0);
}

void sipKTextEditor_Plugin::addView(KTextEditor::View *a0)
{
    extern void sipVH_ktexteditor_22(sip_gilstate_t,PyObject *,KTextEditor::View *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_addView);

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

    sipVH_ktexteditor_22(sipGILState,meth,a0);
}

void sipKTextEditor_Plugin::removeView(KTextEditor::View *a0)
{
    extern void sipVH_ktexteditor_22(sip_gilstate_t,PyObject *,KTextEditor::View *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_removeView);

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

    sipVH_ktexteditor_22(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

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

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

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

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

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


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

    {
        char * a0;
        sipKTextEditor_Plugin *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKTextEditor_Plugin *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKTextEditor_Plugin *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKTextEditor_Plugin *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKTextEditor_Plugin *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKTextEditor_Plugin *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

    return NULL;
}


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

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

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

    return NULL;
}


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

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

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

    return NULL;
}


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

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

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

    return NULL;
}


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

    if (targetType == sipType_KTextEditor_Plugin)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(KTextEditor::Plugin *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    if (!sipCpp)
    {
        QObject * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"JH",sipType_QObject,&a0,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Plugin(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_KTextEditor_Plugin[] = {{111, 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_childEvent), meth_KTextEditor_Plugin_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KTextEditor_Plugin_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KTextEditor_Plugin_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KTextEditor_Plugin_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KTextEditor_Plugin_receivers, 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},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KTextEditor_Plugin_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_ktexteditor_KTextEditor_Plugin = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Plugin,
        {0}
    },
    sipNameNr_Plugin,
    -1,
    -1,
    {1, 255, 0},
    supers_KTextEditor_Plugin,
    0,
    10, methods_KTextEditor_Plugin,
    0, 0,
    0, 0,
    init_KTextEditor_Plugin,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Plugin,
    release_KTextEditor_Plugin,
    cast_KTextEditor_Plugin,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &KTextEditor::Plugin::staticMetaObject,
    0,
    0
};

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

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

#include <ktexteditor/modificationinterface.h>
#include <ktexteditor/markinterface.h>
#include <ktexteditor/searchinterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/smartinterface.h>
#include <ktexteditor/templateinterface.h>
#include <ktexteditor/variableinterface.h>
#line 2778 "sipktexteditorpart3.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/view.sip"
#include <ktexteditor/view.h>

#include <ktexteditor/codecompletioninterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/texthintinterface.h>
#line 2785 "sipktexteditorpart3.cpp"


class sipKTextEditor_ModificationInterface : public KTextEditor::ModificationInterface
{
public:
    sipKTextEditor_ModificationInterface();
    virtual ~sipKTextEditor_ModificationInterface();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void setModifiedOnDisk(KTextEditor::ModificationInterface::ModifiedOnDiskReason);
    void setModifiedOnDiskWarning(bool);
    void slotModifiedOnDisk(KTextEditor::View *);
    void modifiedOnDisk(KTextEditor::Document *,bool,KTextEditor::ModificationInterface::ModifiedOnDiskReason);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[4];
};

sipKTextEditor_ModificationInterface::sipKTextEditor_ModificationInterface(): KTextEditor::ModificationInterface(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

void sipKTextEditor_ModificationInterface::setModifiedOnDisk(KTextEditor::ModificationInterface::ModifiedOnDiskReason a0)
{
    extern void sipVH_ktexteditor_46(sip_gilstate_t,PyObject *,KTextEditor::ModificationInterface::ModifiedOnDiskReason);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_ModificationInterface,sipName_setModifiedOnDisk);

    if (!meth)
        return;

    sipVH_ktexteditor_46(sipGILState,meth,a0);
}

void sipKTextEditor_ModificationInterface::setModifiedOnDiskWarning(bool a0)
{
    typedef void (*sipVH_QtNetwork_2)(sip_gilstate_t,PyObject *,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_ModificationInterface,sipName_setModifiedOnDiskWarning);

    if (!meth)
        return;

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

void sipKTextEditor_ModificationInterface::slotModifiedOnDisk(KTextEditor::View *a0)
{
    extern void sipVH_ktexteditor_22(sip_gilstate_t,PyObject *,KTextEditor::View *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_ModificationInterface,sipName_slotModifiedOnDisk);

    if (!meth)
        return;

    sipVH_ktexteditor_22(sipGILState,meth,a0);
}

void sipKTextEditor_ModificationInterface::modifiedOnDisk(KTextEditor::Document *a0,bool a1,KTextEditor::ModificationInterface::ModifiedOnDiskReason a2)
{
    extern void sipVH_ktexteditor_45(sip_gilstate_t,PyObject *,KTextEditor::Document *,bool,KTextEditor::ModificationInterface::ModifiedOnDiskReason);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,sipName_ModificationInterface,sipName_modifiedOnDisk);

    if (!meth)
        return;

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


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

    {
        KTextEditor::ModificationInterface::ModifiedOnDiskReason a0;
        KTextEditor::ModificationInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE",&sipSelf,sipType_KTextEditor_ModificationInterface,&sipCpp,sipType_KTextEditor_ModificationInterface_ModifiedOnDiskReason,&a0))
        {
            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_ModificationInterface, sipName_setModifiedOnDisk);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setModifiedOnDisk(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KTextEditor::ModificationInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bb",&sipSelf,sipType_KTextEditor_ModificationInterface,&sipCpp,&a0))
        {
            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_ModificationInterface, sipName_setModifiedOnDiskWarning);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setModifiedOnDiskWarning(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::View * a0 = 0;
        KTextEditor::ModificationInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|J8",&sipSelf,sipType_KTextEditor_ModificationInterface,&sipCpp,sipType_KTextEditor_View,&a0))
        {
            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_ModificationInterface, sipName_slotModifiedOnDisk);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->slotModifiedOnDisk(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::Document * a0;
        bool a1;
        KTextEditor::ModificationInterface::ModifiedOnDiskReason a2;
        KTextEditor::ModificationInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ8bE",&sipSelf,sipType_KTextEditor_ModificationInterface,&sipCpp,sipType_KTextEditor_Document,&a0,&a1,sipType_KTextEditor_ModificationInterface_ModifiedOnDiskReason,&a2))
        {
            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_ModificationInterface, sipName_modifiedOnDisk);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->modifiedOnDisk(a0,a1,a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


static PyMethodDef methods_KTextEditor_ModificationInterface[] = {
    {SIP_MLNAME_CAST(sipName_modifiedOnDisk), meth_KTextEditor_ModificationInterface_modifiedOnDisk, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setModifiedOnDisk), meth_KTextEditor_ModificationInterface_setModifiedOnDisk, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setModifiedOnDiskWarning), meth_KTextEditor_ModificationInterface_setModifiedOnDiskWarning, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotModifiedOnDisk), meth_KTextEditor_ModificationInterface_slotModifiedOnDisk, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KTextEditor_ModificationInterface[] = {
    {sipName_OnDiskCreated, KTextEditor::ModificationInterface::OnDiskCreated, 32},
    {sipName_OnDiskDeleted, KTextEditor::ModificationInterface::OnDiskDeleted, 32},
    {sipName_OnDiskModified, KTextEditor::ModificationInterface::OnDiskModified, 32},
    {sipName_OnDiskUnmodified, KTextEditor::ModificationInterface::OnDiskUnmodified, 32},
};


pyqt4ClassTypeDef pyqt4Type_ktexteditor_KTextEditor_ModificationInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__ModificationInterface,
        {0}
    },
    sipNameNr_ModificationInterface,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {1, 255, 0},
    0,
    0,
    4, methods_KTextEditor_ModificationInterface,
    4, enummembers_KTextEditor_ModificationInterface,
    0, 0,
    init_KTextEditor_ModificationInterface,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_ModificationInterface,
    release_KTextEditor_ModificationInterface,
    cast_KTextEditor_ModificationInterface,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/markinterface.sip"
#include <qhash.h>
#line 3146 "sipktexteditorpart3.cpp"

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


extern "C" {static void assign_QHash_1800_0201KTextEditor_Mark(void *, const void*);}
static void assign_QHash_1800_0201KTextEditor_Mark(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<QHash<int,KTextEditor::Mark *> *>(sipDst) = *reinterpret_cast<const QHash<int,KTextEditor::Mark *> *>(sipSrc);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QHash_1800_0201KTextEditor_Mark(void *, int);}
static void release_QHash_1800_0201KTextEditor_Mark(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QHash<int,KTextEditor::Mark *> *>(ptr);
    Py_END_ALLOW_THREADS
}



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

#line 182 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/markinterface.sip"
    PyObject *t1obj, *t2obj;
    SIP_SSIZE_T i = 0;

    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PyDict_Check(sipPy))
            return 0;

        while (PyDict_Next(sipPy, &i, &t1obj, &t2obj))
        {
            if (!PyInt_Check (t1obj))
                return 0;

            if (!sipCanConvertToInstance(t2obj, sipClass_KTextEditor_Mark, SIP_NOT_NONE))
                return 0;
        } 

        return 1;
    }

    QHash<int, KTextEditor::Mark*> *qm = new QHash<int, KTextEditor::Mark*>;
 
    while (PyDict_Next(sipPy, &i, &t1obj, &t2obj))
    {
        int state2;

        int t1 = PyInt_AS_LONG (t1obj);
        KTextEditor::Mark *t2 = reinterpret_cast<KTextEditor::Mark *>(sipConvertToInstance(t2obj, sipClass_KTextEditor_Mark, sipTransferObj, SIP_NOT_NONE, &state2, sipIsErr));
 
        if (*sipIsErr)
        {
            sipReleaseInstance(t2, sipClass_KTextEditor_Mark, state2);

            delete qm;
            return 0;
        }

        qm->insert(t1, t2);

        sipReleaseInstance(t2, sipClass_KTextEditor_Mark, state2);
    }
 
    *sipCppPtr = qm;
 
    return sipGetState(sipTransferObj);
#line 3223 "sipktexteditorpart3.cpp"
}


extern "C" {static PyObject *convertFrom_QHash_1800_0201KTextEditor_Mark(void *, PyObject *);}
static PyObject *convertFrom_QHash_1800_0201KTextEditor_Mark(void *sipCppV,PyObject *sipTransferObj)
{
   QHash<int,KTextEditor::Mark *> *sipCpp = reinterpret_cast<QHash<int,KTextEditor::Mark *> *>(sipCppV);

#line 140 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/markinterface.sip"
    // Create the dictionary.
    PyObject *d = PyDict_New();

    if (!d)
        return NULL;

    // Set the dictionary elements.
    QHash<int, KTextEditor::Mark*>::const_iterator i = sipCpp->constBegin();

    while (i != sipCpp->constEnd())
    {
        int t1 = i.key();
        KTextEditor::Mark *t2 = i.value();

        PyObject *t1obj = PyInt_FromLong ((long)t1);
        PyObject *t2obj = sipConvertFromNewInstance(t2, sipClass_KTextEditor_Mark, sipTransferObj);

        if (t2obj == NULL || PyDict_SetItem(d, t1obj, t2obj) < 0)
        {
            Py_DECREF(d);

            if (t1obj)
                Py_DECREF(t1obj);

            if (t2obj)
                Py_DECREF(t2obj);
            else
                delete t2;

            return NULL;
        }

        Py_DECREF(t1obj);
        Py_DECREF(t2obj);

        ++i;
    }

    return d;
#line 3272 "sipktexteditorpart3.cpp"
}


pyqt4MappedTypeDef pyqt4MappedTypeDef_ktexteditor_QHash_1800_0201KTextEditor_Mark = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_1599,
        {0}
    },
    release_QHash_1800_0201KTextEditor_Mark,
    convertTo_QHash_1800_0201KTextEditor_Mark,
    convertFrom_QHash_1800_0201KTextEditor_Mark
},
    assign_QHash_1800_0201KTextEditor_Mark
};

#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/markinterface.sip"
#include <ktexteditor/markinterface.h>
#line 3295 "sipktexteditorpart3.cpp"

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

#include <ktexteditor/modificationinterface.h>
#include <ktexteditor/markinterface.h>
#include <ktexteditor/searchinterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/smartinterface.h>
#include <ktexteditor/templateinterface.h>
#include <ktexteditor/variableinterface.h>
#line 3307 "sipktexteditorpart3.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/markinterface.sip"
#include <ktexteditor/markinterface.h>
#line 3310 "sipktexteditorpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3313 "sipktexteditorpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 3316 "sipktexteditorpart3.cpp"
#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/markinterface.sip"
#include <qhash.h>
#line 3319 "sipktexteditorpart3.cpp"


class sipKTextEditor_MarkInterface : public KTextEditor::MarkInterface
{
public:
    sipKTextEditor_MarkInterface();
    virtual ~sipKTextEditor_MarkInterface();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    uint mark(int);
    void setMark(int,uint);
    void clearMark(int);
    void addMark(int,uint);
    void removeMark(int,uint);
    const QHash<int,KTextEditor::Mark *>& marks();
    void clearMarks();
    void marksChanged(KTextEditor::Document *);
    void setMarkPixmap(KTextEditor::MarkInterface::MarkTypes,const QPixmap&);
    QPixmap markPixmap(KTextEditor::MarkInterface::MarkTypes) const;
    void setMarkDescription(KTextEditor::MarkInterface::MarkTypes,const QString&);
    QString markDescription(KTextEditor::MarkInterface::MarkTypes) const;
    void setEditableMarks(uint);
    uint editableMarks() const;
    void markChanged(KTextEditor::Document *,KTextEditor::Mark,KTextEditor::MarkInterface::MarkChangeAction);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[15];
};

sipKTextEditor_MarkInterface::sipKTextEditor_MarkInterface(): KTextEditor::MarkInterface(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

uint sipKTextEditor_MarkInterface::mark(int a0)
{
    extern unsigned sipVH_ktexteditor_56(sip_gilstate_t,PyObject *,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_MarkInterface,sipName_mark);

    if (!meth)
        return 0;

    return sipVH_ktexteditor_56(sipGILState,meth,a0);
}

void sipKTextEditor_MarkInterface::setMark(int a0,uint a1)
{
    extern void sipVH_ktexteditor_55(sip_gilstate_t,PyObject *,int,unsigned);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_MarkInterface,sipName_setMark);

    if (!meth)
        return;

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

void sipKTextEditor_MarkInterface::clearMark(int a0)
{
    typedef void (*sipVH_QtNetwork_1)(sip_gilstate_t,PyObject *,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_MarkInterface,sipName_clearMark);

    if (!meth)
        return;

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

void sipKTextEditor_MarkInterface::addMark(int a0,uint a1)
{
    extern void sipVH_ktexteditor_55(sip_gilstate_t,PyObject *,int,unsigned);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,sipName_MarkInterface,sipName_addMark);

    if (!meth)
        return;

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

void sipKTextEditor_MarkInterface::removeMark(int a0,uint a1)
{
    extern void sipVH_ktexteditor_55(sip_gilstate_t,PyObject *,int,unsigned);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,sipName_MarkInterface,sipName_removeMark);

    if (!meth)
        return;

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

const QHash<int,KTextEditor::Mark *>& sipKTextEditor_MarkInterface::marks()
{
    extern const QHash<int,KTextEditor::Mark *>& sipVH_ktexteditor_54(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,sipName_MarkInterface,sipName_marks);

    if (!meth)
        return *new QHash<int,KTextEditor::Mark *>();

    return sipVH_ktexteditor_54(sipGILState,meth);
}

void sipKTextEditor_MarkInterface::clearMarks()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,sipName_MarkInterface,sipName_clearMarks);

    if (!meth)
        return;

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

void sipKTextEditor_MarkInterface::marksChanged(KTextEditor::Document *a0)
{
    extern void sipVH_ktexteditor_44(sip_gilstate_t,PyObject *,KTextEditor::Document *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,sipName_MarkInterface,sipName_marksChanged);

    if (!meth)
        return;

    sipVH_ktexteditor_44(sipGILState,meth,a0);
}

void sipKTextEditor_MarkInterface::setMarkPixmap(KTextEditor::MarkInterface::MarkTypes a0,const QPixmap& a1)
{
    extern void sipVH_ktexteditor_53(sip_gilstate_t,PyObject *,KTextEditor::MarkInterface::MarkTypes,const QPixmap&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,sipName_MarkInterface,sipName_setMarkPixmap);

    if (!meth)
        return;

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

QPixmap sipKTextEditor_MarkInterface::markPixmap(KTextEditor::MarkInterface::MarkTypes a0) const
{
    extern QPixmap sipVH_ktexteditor_52(sip_gilstate_t,PyObject *,KTextEditor::MarkInterface::MarkTypes);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,sipName_MarkInterface,sipName_markPixmap);

    if (!meth)
        return QPixmap();

    return sipVH_ktexteditor_52(sipGILState,meth,a0);
}

void sipKTextEditor_MarkInterface::setMarkDescription(KTextEditor::MarkInterface::MarkTypes a0,const QString& a1)
{
    extern void sipVH_ktexteditor_51(sip_gilstate_t,PyObject *,KTextEditor::MarkInterface::MarkTypes,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,sipName_MarkInterface,sipName_setMarkDescription);

    if (!meth)
        return;

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

QString sipKTextEditor_MarkInterface::markDescription(KTextEditor::MarkInterface::MarkTypes a0) const
{
    extern QString sipVH_ktexteditor_50(sip_gilstate_t,PyObject *,KTextEditor::MarkInterface::MarkTypes);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,sipName_MarkInterface,sipName_markDescription);

    if (!meth)
        return QString();

    return sipVH_ktexteditor_50(sipGILState,meth,a0);
}

void sipKTextEditor_MarkInterface::setEditableMarks(uint a0)
{
    extern void sipVH_ktexteditor_49(sip_gilstate_t,PyObject *,unsigned);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,sipName_MarkInterface,sipName_setEditableMarks);

    if (!meth)
        return;

    sipVH_ktexteditor_49(sipGILState,meth,a0);
}

uint sipKTextEditor_MarkInterface::editableMarks() const
{
    extern unsigned sipVH_ktexteditor_48(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return 0;

    return sipVH_ktexteditor_48(sipGILState,meth);
}

void sipKTextEditor_MarkInterface::markChanged(KTextEditor::Document *a0,KTextEditor::Mark a1,KTextEditor::MarkInterface::MarkChangeAction a2)
{
    extern void sipVH_ktexteditor_47(sip_gilstate_t,PyObject *,KTextEditor::Document *,KTextEditor::Mark,KTextEditor::MarkInterface::MarkChangeAction);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,sipName_MarkInterface,sipName_markChanged);

    if (!meth)
        return;

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


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

    {
        int a0;
        KTextEditor::MarkInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_KTextEditor_MarkInterface,&sipCpp,&a0))
        {
            uint sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_MarkInterface, sipName_mark);
                return NULL;
            }

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

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        uint a1;
        KTextEditor::MarkInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Biu",&sipSelf,sipType_KTextEditor_MarkInterface,&sipCpp,&a0,&a1))
        {
            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_MarkInterface, sipName_setMark);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMark(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KTextEditor::MarkInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_KTextEditor_MarkInterface,&sipCpp,&a0))
        {
            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_MarkInterface, sipName_clearMark);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->clearMark(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        uint a1;
        KTextEditor::MarkInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Biu",&sipSelf,sipType_KTextEditor_MarkInterface,&sipCpp,&a0,&a1))
        {
            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_MarkInterface, sipName_addMark);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->addMark(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        uint a1;
        KTextEditor::MarkInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Biu",&sipSelf,sipType_KTextEditor_MarkInterface,&sipCpp,&a0,&a1))
        {
            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_MarkInterface, sipName_removeMark);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeMark(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::MarkInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_MarkInterface,&sipCpp))
        {
            QHash<int,KTextEditor::Mark *> *sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_MarkInterface, sipName_marks);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QHash<int,KTextEditor::Mark *>(sipCpp->marks());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::MarkInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_MarkInterface,&sipCpp))
        {
            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_MarkInterface, sipName_clearMarks);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->clearMarks();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KTextEditor::MarkInterface::reservedMarkersCount();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ8",&sipSelf,sipType_KTextEditor_MarkInterface,&sipCpp,sipType_KTextEditor_Document,&a0))
        {
            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_MarkInterface, sipName_marksChanged);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->marksChanged(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::MarkInterface::MarkTypes a0;
        const QPixmap * a1;
        KTextEditor::MarkInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BEJ9",&sipSelf,sipType_KTextEditor_MarkInterface,&sipCpp,sipType_KTextEditor_MarkInterface_MarkTypes,&a0,sipType_QPixmap,&a1))
        {
            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_MarkInterface, sipName_setMarkPixmap);
                return NULL;
            }

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::MarkInterface::MarkTypes a0;
        KTextEditor::MarkInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE",&sipSelf,sipType_KTextEditor_MarkInterface,&sipCpp,sipType_KTextEditor_MarkInterface_MarkTypes,&a0))
        {
            QPixmap *sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_MarkInterface, sipName_markPixmap);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QPixmap(sipCpp->markPixmap(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KTextEditor::MarkInterface::MarkTypes a0;
        const QString * a1;
        int a1State = 0;
        KTextEditor::MarkInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BEJ1",&sipSelf,sipType_KTextEditor_MarkInterface,&sipCpp,sipType_KTextEditor_MarkInterface_MarkTypes,&a0,sipType_QString,&a1,&a1State))
        {
            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_MarkInterface, sipName_setMarkDescription);
                return NULL;
            }

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::MarkInterface::MarkTypes a0;
        KTextEditor::MarkInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE",&sipSelf,sipType_KTextEditor_MarkInterface,&sipCpp,sipType_KTextEditor_MarkInterface_MarkTypes,&a0))
        {
            QString *sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_MarkInterface, sipName_markDescription);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->markDescription(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        uint a0;
        KTextEditor::MarkInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bu",&sipSelf,sipType_KTextEditor_MarkInterface,&sipCpp,&a0))
        {
            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_MarkInterface, sipName_setEditableMarks);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setEditableMarks(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::MarkInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_MarkInterface,&sipCpp))
        {
            uint sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_MarkInterface, sipName_editableMarks);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->editableMarks();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::Document * a0;
        KTextEditor::Mark * a1;
        KTextEditor::MarkInterface::MarkChangeAction a2;
        KTextEditor::MarkInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ8J9E",&sipSelf,sipType_KTextEditor_MarkInterface,&sipCpp,sipType_KTextEditor_Document,&a0,sipType_KTextEditor_Mark,&a1,sipType_KTextEditor_MarkInterface_MarkChangeAction,&a2))
        {
            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_MarkInterface, sipName_markChanged);
                return NULL;
            }

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


static PyMethodDef methods_KTextEditor_MarkInterface[] = {
    {SIP_MLNAME_CAST(sipName_addMark), meth_KTextEditor_MarkInterface_addMark, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearMark), meth_KTextEditor_MarkInterface_clearMark, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearMarks), meth_KTextEditor_MarkInterface_clearMarks, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_editableMarks), meth_KTextEditor_MarkInterface_editableMarks, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mark), meth_KTextEditor_MarkInterface_mark, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_markChanged), meth_KTextEditor_MarkInterface_markChanged, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_markDescription), meth_KTextEditor_MarkInterface_markDescription, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_markPixmap), meth_KTextEditor_MarkInterface_markPixmap, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_marks), meth_KTextEditor_MarkInterface_marks, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_marksChanged), meth_KTextEditor_MarkInterface_marksChanged, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeMark), meth_KTextEditor_MarkInterface_removeMark, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_reservedMarkersCount), meth_KTextEditor_MarkInterface_reservedMarkersCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setEditableMarks), meth_KTextEditor_MarkInterface_setEditableMarks, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMark), meth_KTextEditor_MarkInterface_setMark, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMarkDescription), meth_KTextEditor_MarkInterface_setMarkDescription, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMarkPixmap), meth_KTextEditor_MarkInterface_setMarkPixmap, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KTextEditor_MarkInterface[] = {
    {sipName_Bookmark, KTextEditor::MarkInterface::Bookmark, 30},
    {sipName_BreakpointActive, KTextEditor::MarkInterface::BreakpointActive, 30},
    {sipName_BreakpointDisabled, KTextEditor::MarkInterface::BreakpointDisabled, 30},
    {sipName_BreakpointReached, KTextEditor::MarkInterface::BreakpointReached, 30},
    {sipName_Error, KTextEditor::MarkInterface::Error, 30},
    {sipName_Execution, KTextEditor::MarkInterface::Execution, 30},
    {sipName_MarkAdded, KTextEditor::MarkInterface::MarkAdded, 29},
    {sipName_MarkRemoved, KTextEditor::MarkInterface::MarkRemoved, 29},
    {sipName_Warning, KTextEditor::MarkInterface::Warning, 30},
    {sipName_markType01, KTextEditor::MarkInterface::markType01, 30},
    {sipName_markType02, KTextEditor::MarkInterface::markType02, 30},
    {sipName_markType03, KTextEditor::MarkInterface::markType03, 30},
    {sipName_markType04, KTextEditor::MarkInterface::markType04, 30},
    {sipName_markType05, KTextEditor::MarkInterface::markType05, 30},
    {sipName_markType06, KTextEditor::MarkInterface::markType06, 30},
    {sipName_markType07, KTextEditor::MarkInterface::markType07, 30},
    {sipName_markType08, KTextEditor::MarkInterface::markType08, 30},
    {sipName_markType09, KTextEditor::MarkInterface::markType09, 30},
    {sipName_markType10, KTextEditor::MarkInterface::markType10, 30},
    {sipName_markType11, KTextEditor::MarkInterface::markType11, 30},
    {sipName_markType12, KTextEditor::MarkInterface::markType12, 30},
    {sipName_markType13, KTextEditor::MarkInterface::markType13, 30},
    {sipName_markType14, KTextEditor::MarkInterface::markType14, 30},
    {sipName_markType15, KTextEditor::MarkInterface::markType15, 30},
    {sipName_markType16, KTextEditor::MarkInterface::markType16, 30},
    {sipName_markType17, KTextEditor::MarkInterface::markType17, 30},
    {sipName_markType18, KTextEditor::MarkInterface::markType18, 30},
    {sipName_markType19, KTextEditor::MarkInterface::markType19, 30},
    {sipName_markType20, KTextEditor::MarkInterface::markType20, 30},
    {sipName_markType21, KTextEditor::MarkInterface::markType21, 30},
    {sipName_markType22, KTextEditor::MarkInterface::markType22, 30},
    {sipName_markType23, KTextEditor::MarkInterface::markType23, 30},
    {sipName_markType24, KTextEditor::MarkInterface::markType24, 30},
    {sipName_markType25, KTextEditor::MarkInterface::markType25, 30},
    {sipName_markType26, KTextEditor::MarkInterface::markType26, 30},
    {sipName_markType27, KTextEditor::MarkInterface::markType27, 30},
    {sipName_markType28, KTextEditor::MarkInterface::markType28, 30},
    {sipName_markType29, KTextEditor::MarkInterface::markType29, 30},
    {sipName_markType30, KTextEditor::MarkInterface::markType30, 30},
    {sipName_markType31, KTextEditor::MarkInterface::markType31, 30},
    {sipName_markType32, KTextEditor::MarkInterface::markType32, 30},
};


pyqt4ClassTypeDef pyqt4Type_ktexteditor_KTextEditor_MarkInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__MarkInterface,
        {0}
    },
    sipNameNr_MarkInterface,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {1, 255, 0},
    0,
    0,
    16, methods_KTextEditor_MarkInterface,
    41, enummembers_KTextEditor_MarkInterface,
    0, 0,
    init_KTextEditor_MarkInterface,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_MarkInterface,
    release_KTextEditor_MarkInterface,
    cast_KTextEditor_MarkInterface,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};
