/*
 * Module code.
 *
 * Generated by SIP 4.12.4 on Fri Dec 30 00:38:33 2011
 */

#include "sipAPIkparts.h"

#line 33 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 12 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"

#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 16 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"


extern "C" {static void assign_QMap_0100QByteArray_0100QByteArray(void *, SIP_SSIZE_T, const void *);}
static void assign_QMap_0100QByteArray_0100QByteArray(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QMap<QByteArray,QByteArray> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QMap<QByteArray,QByteArray> *>(sipSrc);
}


extern "C" {static void *array_QMap_0100QByteArray_0100QByteArray(SIP_SSIZE_T);}
static void *array_QMap_0100QByteArray_0100QByteArray(SIP_SSIZE_T sipNrElem)
{
    return new QMap<QByteArray,QByteArray>[sipNrElem];
}


extern "C" {static void *copy_QMap_0100QByteArray_0100QByteArray(const void *, SIP_SSIZE_T);}
static void *copy_QMap_0100QByteArray_0100QByteArray(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QMap<QByteArray,QByteArray>(reinterpret_cast<const QMap<QByteArray,QByteArray> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QMap_0100QByteArray_0100QByteArray(void *, int);}
static void release_QMap_0100QByteArray_0100QByteArray(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QMap<QByteArray,QByteArray> *>(ptr);
    Py_END_ALLOW_THREADS
}



extern "C" {static int convertTo_QMap_0100QByteArray_0100QByteArray(PyObject *, void **, int *, PyObject *);}
static int convertTo_QMap_0100QByteArray_0100QByteArray(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QMap<QByteArray,QByteArray> **sipCppPtr = reinterpret_cast<QMap<QByteArray,QByteArray> **>(sipCppPtrV);

#line 89 "/usr/local/share/py-sip/QtCore/qmap.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 (!sipCanConvertToType(t1obj, sipType_QByteArray, SIP_NOT_NONE))
                return 0;

            if (!sipCanConvertToType(t2obj, sipType_QByteArray, SIP_NOT_NONE))
                return 0;
        } 

        return 1;
    }

    QMap<QByteArray, QByteArray> *qm = new QMap<QByteArray, QByteArray>;
 
    while (PyDict_Next(sipPy, &i, &t1obj, &t2obj))
    {
        int state1, state2;

        QByteArray *t1 = reinterpret_cast<QByteArray *>(sipConvertToType(t1obj, sipType_QByteArray, sipTransferObj, SIP_NOT_NONE, &state1, sipIsErr));
        QByteArray *t2 = reinterpret_cast<QByteArray *>(sipConvertToType(t2obj, sipType_QByteArray, sipTransferObj, SIP_NOT_NONE, &state2, sipIsErr));
 
        if (*sipIsErr)
        {
            sipReleaseType(t1, sipType_QByteArray, state1);
            sipReleaseType(t2, sipType_QByteArray, state2);

            delete qm;
            return 0;
        }

        qm->insert(*t1, *t2);

        sipReleaseType(t1, sipType_QByteArray, state1);
        sipReleaseType(t2, sipType_QByteArray, state2);
    }
 
    *sipCppPtr = qm;
 
    return sipGetState(sipTransferObj);
#line 105 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
}


extern "C" {static PyObject *convertFrom_QMap_0100QByteArray_0100QByteArray(void *, PyObject *);}
static PyObject *convertFrom_QMap_0100QByteArray_0100QByteArray(void *sipCppV,PyObject *sipTransferObj)
{
   QMap<QByteArray,QByteArray> *sipCpp = reinterpret_cast<QMap<QByteArray,QByteArray> *>(sipCppV);

#line 37 "/usr/local/share/py-sip/QtCore/qmap.sip"
    // Create the dictionary.
    PyObject *d = PyDict_New();

    if (!d)
        return NULL;

    // Set the dictionary elements.
    QMap<QByteArray, QByteArray>::const_iterator i = sipCpp->constBegin();

    while (i != sipCpp->constEnd())
    {
        QByteArray *t1 = new QByteArray(i.key());
        QByteArray *t2 = new QByteArray(i.value());

        PyObject *t1obj = sipConvertFromNewType(t1, sipType_QByteArray, sipTransferObj);
        PyObject *t2obj = sipConvertFromNewType(t2, sipType_QByteArray, sipTransferObj);

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

            if (t1obj)
            {
                Py_DECREF(t1obj);
            }
            else
            {
                delete t1;
            }

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

            return NULL;
        }

        Py_DECREF(t1obj);
        Py_DECREF(t2obj);

        ++i;
    }

    return d;
#line 164 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
}


sipMappedTypeDef sipTypeDef_kparts_QMap_0100QByteArray_0100QByteArray = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_977,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QMap_0100QByteArray_0100QByteArray,
    array_QMap_0100QByteArray_0100QByteArray,
    copy_QMap_0100QByteArray_0100QByteArray,
    release_QMap_0100QByteArray_0100QByteArray,
    convertTo_QMap_0100QByteArray_0100QByteArray,
    convertFrom_QMap_0100QByteArray_0100QByteArray
};

#line 222 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <qmap.h>
#line 195 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"

#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 199 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"


extern "C" {static void assign_QMap_0100QByteArray_1800(void *, SIP_SSIZE_T, const void *);}
static void assign_QMap_0100QByteArray_1800(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QMap<QByteArray,int> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QMap<QByteArray,int> *>(sipSrc);
}


extern "C" {static void *array_QMap_0100QByteArray_1800(SIP_SSIZE_T);}
static void *array_QMap_0100QByteArray_1800(SIP_SSIZE_T sipNrElem)
{
    return new QMap<QByteArray,int>[sipNrElem];
}


extern "C" {static void *copy_QMap_0100QByteArray_1800(const void *, SIP_SSIZE_T);}
static void *copy_QMap_0100QByteArray_1800(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QMap<QByteArray,int>(reinterpret_cast<const QMap<QByteArray,int> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QMap_0100QByteArray_1800(void *, int);}
static void release_QMap_0100QByteArray_1800(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QMap<QByteArray,int> *>(ptr);
    Py_END_ALLOW_THREADS
}



extern "C" {static int convertTo_QMap_0100QByteArray_1800(PyObject *, void **, int *, PyObject *);}
static int convertTo_QMap_0100QByteArray_1800(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QMap<QByteArray,int> **sipCppPtr = reinterpret_cast<QMap<QByteArray,int> **>(sipCppPtrV);

#line 273 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
    PyObject *t1obj;
    PyObject *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 (!sipCanConvertToType(t1obj, sipType_QByteArray, SIP_NOT_NONE))
                return 0;

#if PY_MAJOR_VERSION >= 3
            if (!PyNumber_Check(t2obj))
#else
            if (!PyInt_Check(t2obj))
#endif
                return 0;
        } 

        return 1;
    }

    QMap<QByteArray, int> *qm = new QMap<QByteArray, int>;
 
    i = 0;
    while (PyDict_Next(sipPy, &i, &t1obj, &t2obj))
    {
        int state1;

        QByteArray *t1 = reinterpret_cast<QByteArray *>(sipConvertToType(t1obj, sipType_QByteArray, sipTransferObj, SIP_NOT_NONE, &state1, sipIsErr));

#if PY_MAJOR_VERSION >= 3
        int t2 = PyLong_AsLong (t2obj);
#else
        int t2 = PyInt_AS_LONG (t2obj);
#endif
 
        if (*sipIsErr)
        {
            sipReleaseType(t1, sipType_QByteArray, state1);

            delete qm;
            return 0;
        }

        qm->insert(*t1, t2);

        sipReleaseType(t1, sipType_QByteArray, state1);
    }
 
    *sipCppPtr = qm;
 
    return sipGetState(sipTransferObj);
#line 297 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
}


extern "C" {static PyObject *convertFrom_QMap_0100QByteArray_1800(void *, PyObject *);}
static PyObject *convertFrom_QMap_0100QByteArray_1800(void *sipCppV,PyObject *sipTransferObj)
{
   QMap<QByteArray,int> *sipCpp = reinterpret_cast<QMap<QByteArray,int> *>(sipCppV);

#line 226 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
    // Create the dictionary.
    PyObject *d = PyDict_New();

    if (!d)
        return NULL;

    // Set the dictionary elements.
    QMap<QByteArray, int>::const_iterator i = sipCpp->constBegin();

    while (i != sipCpp->constEnd())
    {
        QByteArray *t1 = new QByteArray(i.key());
        int t2 = i.value();

        PyObject *t1obj = sipConvertFromNewType(t1, sipType_QByteArray, sipTransferObj);
#if PY_MAJOR_VERSION >= 3
        PyObject *t2obj = PyLong_FromLong(t2);
#else
        PyObject *t2obj = PyInt_FromLong(t2);
#endif

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

            if (t1obj) {
                Py_DECREF(t1obj);
            } else {
                delete t1;
            } 
            
            if (t2obj) {
                Py_DECREF(t2obj);
            }
            return NULL;
        }

        Py_DECREF(t1obj);
        Py_DECREF(t2obj);

        ++i;
    }

    return d;
#line 351 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
}


sipMappedTypeDef sipTypeDef_kparts_QMap_0100QByteArray_1800 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_2167,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QMap_0100QByteArray_1800,
    array_QMap_0100QByteArray_1800,
    copy_QMap_0100QByteArray_1800,
    release_QMap_0100QByteArray_1800,
    convertTo_QMap_0100QByteArray_1800,
    convertFrom_QMap_0100QByteArray_1800
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/textextension.sip"
#include <kparts/textextension.h>
#line 382 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"

#line 142 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 386 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 389 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kfind.sip"
#include <kfind.h>
#line 392 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 395 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 398 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 401 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 404 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 407 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 410 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 413 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 416 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 419 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 422 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 425 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 428 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"


class sipKParts_TextExtension : public KParts::TextExtension
{
public:
    sipKParts_TextExtension(KParts::ReadOnlyPart *);
    virtual ~sipKParts_TextExtension();

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

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool hasSelection() const;
    QString selectedText(KParts::TextExtension::Format) const;
    QString completeText(KParts::TextExtension::Format) const;
    int pageCount() const;
    int currentPage() const;
    QString pageText(KParts::TextExtension::Format) const;
    bool findText(const QString&,KFind::SearchOptions) const;
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[14];
};

sipKParts_TextExtension::sipKParts_TextExtension(KParts::ReadOnlyPart *a0): KParts::TextExtension(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKParts_TextExtension::metaObject() const
{
    return sip_kparts_qt_metaobject(sipPySelf,sipType_KParts_TextExtension);
}

int sipKParts_TextExtension::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KParts::TextExtension::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kparts_qt_metacall(sipPySelf,sipType_KParts_TextExtension,_c,_id,_a);

    return _id;
}

void *sipKParts_TextExtension::qt_metacast(const char *_clname)
{
    return (sip_kparts_qt_metacast && sip_kparts_qt_metacast(sipPySelf,sipType_KParts_TextExtension,_clname)) ? this : KParts::TextExtension::qt_metacast(_clname);
}

bool sipKParts_TextExtension::hasSelection() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::TextExtension::hasSelection();

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

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

QString sipKParts_TextExtension::selectedText(KParts::TextExtension::Format a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::TextExtension::selectedText(a0);

    extern QString sipVH_kparts_1(sip_gilstate_t,PyObject *,KParts::TextExtension::Format);

    return sipVH_kparts_1(sipGILState,sipMeth,a0);
}

QString sipKParts_TextExtension::completeText(KParts::TextExtension::Format a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::TextExtension::completeText(a0);

    extern QString sipVH_kparts_1(sip_gilstate_t,PyObject *,KParts::TextExtension::Format);

    return sipVH_kparts_1(sipGILState,sipMeth,a0);
}

int sipKParts_TextExtension::pageCount() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::TextExtension::pageCount();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_kparts_QtCore->em_virthandlers[6]))(sipGILState,sipMeth);
}

int sipKParts_TextExtension::currentPage() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::TextExtension::currentPage();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_kparts_QtCore->em_virthandlers[6]))(sipGILState,sipMeth);
}

QString sipKParts_TextExtension::pageText(KParts::TextExtension::Format a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::TextExtension::pageText(a0);

    extern QString sipVH_kparts_1(sip_gilstate_t,PyObject *,KParts::TextExtension::Format);

    return sipVH_kparts_1(sipGILState,sipMeth,a0);
}

bool sipKParts_TextExtension::findText(const QString& a0,KFind::SearchOptions a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::TextExtension::findText(a0,a1);

    extern bool sipVH_kparts_0(sip_gilstate_t,PyObject *,const QString&,KFind::SearchOptions);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        sipKParts_TextExtension *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_TextExtension *sipCpp;

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

#line 649 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 842 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKParts_TextExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_TextExtension, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKParts_TextExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_TextExtension, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_TextExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_TextExtension, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_TextExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_TextExtension, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_TextExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_TextExtension, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QObject * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_QObject, &a0))
        {
            KParts::TextExtension *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KParts::TextExtension::childObject(a0);
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KParts::TextExtension *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::TextExtension::hasSelection() : sipCpp->hasSelection());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KParts::TextExtension::Format a0;
        KParts::TextExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KParts_TextExtension, &sipCpp, sipType_KParts_TextExtension_Format, &a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString((sipSelfWasArg ? sipCpp->KParts::TextExtension::selectedText(a0) : sipCpp->selectedText(a0)));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KParts::TextExtension::Format a0;
        KParts::TextExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KParts_TextExtension, &sipCpp, sipType_KParts_TextExtension_Format, &a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString((sipSelfWasArg ? sipCpp->KParts::TextExtension::completeText(a0) : sipCpp->completeText(a0)));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KParts::TextExtension *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::TextExtension::pageCount() : sipCpp->pageCount());
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KParts::TextExtension *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::TextExtension::currentPage() : sipCpp->currentPage());
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KParts::TextExtension::Format a0;
        KParts::TextExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KParts_TextExtension, &sipCpp, sipType_KParts_TextExtension_Format, &a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString((sipSelfWasArg ? sipCpp->KParts::TextExtension::pageText(a0) : sipCpp->pageText(a0)));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        KFind::SearchOptions * a1;
        int a1State = 0;
        KParts::TextExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_KParts_TextExtension, &sipCpp, sipType_QString,&a0, &a0State, sipType_KFind_SearchOptions, &a1, &a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::TextExtension::findText(*a0,*a1) : sipCpp->findText(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_KFind_SearchOptions,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_TextExtension)
        return ptr;

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKParts_TextExtension *>(sipCppV);
    else
        delete reinterpret_cast<KParts::TextExtension *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        KParts::ReadOnlyPart * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KParts_TextExtension[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KParts_TextExtension_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childObject), meth_KParts_TextExtension_childObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_completeText), meth_KParts_TextExtension_completeText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KParts_TextExtension_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentPage), meth_KParts_TextExtension_currentPage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KParts_TextExtension_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KParts_TextExtension_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findText), meth_KParts_TextExtension_findText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasSelection), meth_KParts_TextExtension_hasSelection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pageCount), meth_KParts_TextExtension_pageCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pageText), meth_KParts_TextExtension_pageText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KParts_TextExtension_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedText), meth_KParts_TextExtension_selectedText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KParts_TextExtension_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KParts_TextExtension_timerEvent, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KParts_TextExtension[] = {
    {sipName_HTML, KParts::TextExtension::HTML, 48},
    {sipName_PlainText, KParts::TextExtension::PlainText, 48},
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KParts_TextExtension[] = {
    {"selectionChanged()", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_TextExtension = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__TextExtension,
        {0}
    },
    {
        sipNameNr_TextExtension,
        {0, 255, 0},
        15, methods_KParts_TextExtension,
        2, enummembers_KParts_TextExtension,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_TextExtension,
    0,
    init_KParts_TextExtension,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_TextExtension,
    0,
    0,
    0,
    release_KParts_TextExtension,
    cast_KParts_TextExtension,
    0,
    0,
    0
},
    &KParts::TextExtension::staticMetaObject,
    0,
    pyqt4_signals_KParts_TextExtension
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/statusbarextension.sip"
#include <kparts/statusbarextension.h>
#line 1382 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"

#line 142 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 1386 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1389 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1392 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kstatusbar.sip"
#include <kstatusbar.h>
#line 1395 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 1398 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1401 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1404 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1407 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1410 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1413 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1416 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1419 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1422 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1425 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1428 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1431 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"


class sipKParts_StatusBarExtension : public KParts::StatusBarExtension
{
public:
    sipKParts_StatusBarExtension(KParts::ReadOnlyPart *);
    virtual ~sipKParts_StatusBarExtension();

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

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool eventFilter(QObject *,QEvent *);
    bool event(QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[7];
};

sipKParts_StatusBarExtension::sipKParts_StatusBarExtension(KParts::ReadOnlyPart *a0): KParts::StatusBarExtension(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKParts_StatusBarExtension::metaObject() const
{
    return sip_kparts_qt_metaobject(sipPySelf,sipType_KParts_StatusBarExtension);
}

int sipKParts_StatusBarExtension::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KParts::StatusBarExtension::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kparts_qt_metacall(sipPySelf,sipType_KParts_StatusBarExtension,_c,_id,_a);

    return _id;
}

void *sipKParts_StatusBarExtension::qt_metacast(const char *_clname)
{
    return (sip_kparts_qt_metacast && sip_kparts_qt_metacast(sipPySelf,sipType_KParts_StatusBarExtension,_clname)) ? this : KParts::StatusBarExtension::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        sipKParts_StatusBarExtension *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_StatusBarExtension *sipCpp;

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

#line 649 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 1733 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKParts_StatusBarExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_StatusBarExtension, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKParts_StatusBarExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_StatusBarExtension, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_StatusBarExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_StatusBarExtension, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_StatusBarExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_StatusBarExtension, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_StatusBarExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_StatusBarExtension, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QWidget * a0;
        int a1;
        bool a2;
        KParts::StatusBarExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8ib", &sipSelf, sipType_KParts_StatusBarExtension, &sipCpp, sipType_QWidget, &a0, &a1, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addStatusBarItem(a0,a1,a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QWidget * a0;
        KParts::StatusBarExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_StatusBarExtension, &sipCpp, sipType_QWidget, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeStatusBarItem(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::StatusBarExtension *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->statusBar();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KStatusBar * a0;
        KParts::StatusBarExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_StatusBarExtension, &sipCpp, sipType_KStatusBar, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setStatusBar(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QObject * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_QObject, &a0))
        {
            KParts::StatusBarExtension *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KParts::StatusBarExtension::childObject(a0);
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        QObject * a0;
        QEvent * a1;
        KParts::StatusBarExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J8", &sipSelf, sipType_KParts_StatusBarExtension, &sipCpp, sipType_QObject, &a0, sipType_QEvent, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::StatusBarExtension::eventFilter(a0,a1) : sipCpp->eventFilter(a0,a1));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_StatusBarExtension)
        return ptr;

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKParts_StatusBarExtension *>(sipCppV);
    else
        delete reinterpret_cast<KParts::StatusBarExtension *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        KParts::ReadOnlyPart * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KParts_StatusBarExtension[] = {
    {SIP_MLNAME_CAST(sipName_addStatusBarItem), meth_KParts_StatusBarExtension_addStatusBarItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KParts_StatusBarExtension_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childObject), meth_KParts_StatusBarExtension_childObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KParts_StatusBarExtension_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KParts_StatusBarExtension_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KParts_StatusBarExtension_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_eventFilter), meth_KParts_StatusBarExtension_eventFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KParts_StatusBarExtension_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeStatusBarItem), meth_KParts_StatusBarExtension_removeStatusBarItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KParts_StatusBarExtension_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setStatusBar), meth_KParts_StatusBarExtension_setStatusBar, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statusBar), meth_KParts_StatusBarExtension_statusBar, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KParts_StatusBarExtension_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_StatusBarExtension = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__StatusBarExtension,
        {0}
    },
    {
        sipNameNr_StatusBarExtension,
        {0, 255, 0},
        13, methods_KParts_StatusBarExtension,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_StatusBarExtension,
    0,
    init_KParts_StatusBarExtension,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_StatusBarExtension,
    0,
    0,
    0,
    release_KParts_StatusBarExtension,
    cast_KParts_StatusBarExtension,
    0,
    0,
    0
},
    &KParts::StatusBarExtension::staticMetaObject,
    0,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/scriptableextension.sip"
#include <kparts/scriptableextension.h>
#line 2194 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 2198 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2201 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2204 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 2207 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2210 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2213 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 276 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 2216 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2219 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2222 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2225 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2228 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2231 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2234 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2237 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 2240 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2243 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2246 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"


class sipKParts_ScriptableExtension : public KParts::ScriptableExtension
{
public:
    sipKParts_ScriptableExtension(QObject *);
    virtual ~sipKParts_ScriptableExtension();

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

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    QVariant rootObject();
    QVariant callAsFunction(KParts::ScriptableExtension *,quint64,const KParts::ScriptableExtension::ArgList&);
    QVariant callFunctionReference(KParts::ScriptableExtension *,quint64,const QString&,const KParts::ScriptableExtension::ArgList&);
    QVariant callAsConstructor(KParts::ScriptableExtension *,quint64,const KParts::ScriptableExtension::ArgList&);
    bool hasProperty(KParts::ScriptableExtension *,quint64,const QString&);
    QVariant get(KParts::ScriptableExtension *,quint64,const QString&);
    bool put(KParts::ScriptableExtension *,quint64,const QString&,const QVariant&);
    bool removeProperty(KParts::ScriptableExtension *,quint64,const QString&);
    bool enumerateProperties(KParts::ScriptableExtension *,quint64,QStringList *);
    bool setException(KParts::ScriptableExtension *,const QString&);
    QVariant evaluateScript(KParts::ScriptableExtension *,quint64,const QString&,KParts::ScriptableExtension::ScriptLanguage);
    bool isScriptLanguageSupported(KParts::ScriptableExtension::ScriptLanguage) const;
    void acquire(quint64);
    void release(quint64);
    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:
    sipKParts_ScriptableExtension(const sipKParts_ScriptableExtension &);
    sipKParts_ScriptableExtension &operator = (const sipKParts_ScriptableExtension &);

    char sipPyMethods[21];
};

sipKParts_ScriptableExtension::sipKParts_ScriptableExtension(QObject *a0): KParts::ScriptableExtension(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKParts_ScriptableExtension::metaObject() const
{
    return sip_kparts_qt_metaobject(sipPySelf,sipType_KParts_ScriptableExtension);
}

int sipKParts_ScriptableExtension::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KParts::ScriptableExtension::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kparts_qt_metacall(sipPySelf,sipType_KParts_ScriptableExtension,_c,_id,_a);

    return _id;
}

void *sipKParts_ScriptableExtension::qt_metacast(const char *_clname)
{
    return (sip_kparts_qt_metacast && sip_kparts_qt_metacast(sipPySelf,sipType_KParts_ScriptableExtension,_clname)) ? this : KParts::ScriptableExtension::qt_metacast(_clname);
}

QVariant sipKParts_ScriptableExtension::rootObject()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::ScriptableExtension::rootObject();

    typedef QVariant (*sipVH_kdecore_48)(sip_gilstate_t,PyObject *);

    return ((sipVH_kdecore_48)(sipModuleAPI_kparts_kdecore->em_virthandlers[48]))(sipGILState,sipMeth);
}

QVariant sipKParts_ScriptableExtension::callAsFunction(KParts::ScriptableExtension *a0,quint64 a1,const KParts::ScriptableExtension::ArgList& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::ScriptableExtension::callAsFunction(a0,a1,a2);

    extern QVariant sipVH_kparts_9(sip_gilstate_t,PyObject *,KParts::ScriptableExtension *,unsigned PY_LONG_LONG,const QList<QVariant>&);

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

QVariant sipKParts_ScriptableExtension::callFunctionReference(KParts::ScriptableExtension *a0,quint64 a1,const QString& a2,const KParts::ScriptableExtension::ArgList& a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::ScriptableExtension::callFunctionReference(a0,a1,a2,a3);

    extern QVariant sipVH_kparts_10(sip_gilstate_t,PyObject *,KParts::ScriptableExtension *,unsigned PY_LONG_LONG,const QString&,const QList<QVariant>&);

    return sipVH_kparts_10(sipGILState,sipMeth,a0,a1,a2,a3);
}

QVariant sipKParts_ScriptableExtension::callAsConstructor(KParts::ScriptableExtension *a0,quint64 a1,const KParts::ScriptableExtension::ArgList& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::ScriptableExtension::callAsConstructor(a0,a1,a2);

    extern QVariant sipVH_kparts_9(sip_gilstate_t,PyObject *,KParts::ScriptableExtension *,unsigned PY_LONG_LONG,const QList<QVariant>&);

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

bool sipKParts_ScriptableExtension::hasProperty(KParts::ScriptableExtension *a0,quint64 a1,const QString& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::ScriptableExtension::hasProperty(a0,a1,a2);

    extern bool sipVH_kparts_6(sip_gilstate_t,PyObject *,KParts::ScriptableExtension *,unsigned PY_LONG_LONG,const QString&);

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

QVariant sipKParts_ScriptableExtension::get(KParts::ScriptableExtension *a0,quint64 a1,const QString& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::ScriptableExtension::get(a0,a1,a2);

    extern QVariant sipVH_kparts_8(sip_gilstate_t,PyObject *,KParts::ScriptableExtension *,unsigned PY_LONG_LONG,const QString&);

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

bool sipKParts_ScriptableExtension::put(KParts::ScriptableExtension *a0,quint64 a1,const QString& a2,const QVariant& a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::ScriptableExtension::put(a0,a1,a2,a3);

    extern bool sipVH_kparts_7(sip_gilstate_t,PyObject *,KParts::ScriptableExtension *,unsigned PY_LONG_LONG,const QString&,const QVariant&);

    return sipVH_kparts_7(sipGILState,sipMeth,a0,a1,a2,a3);
}

bool sipKParts_ScriptableExtension::removeProperty(KParts::ScriptableExtension *a0,quint64 a1,const QString& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::ScriptableExtension::removeProperty(a0,a1,a2);

    extern bool sipVH_kparts_6(sip_gilstate_t,PyObject *,KParts::ScriptableExtension *,unsigned PY_LONG_LONG,const QString&);

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

bool sipKParts_ScriptableExtension::enumerateProperties(KParts::ScriptableExtension *a0,quint64 a1,QStringList *a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::ScriptableExtension::enumerateProperties(a0,a1,a2);

    extern bool sipVH_kparts_5(sip_gilstate_t,PyObject *,KParts::ScriptableExtension *,unsigned PY_LONG_LONG,QStringList *);

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

bool sipKParts_ScriptableExtension::setException(KParts::ScriptableExtension *a0,const QString& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::ScriptableExtension::setException(a0,a1);

    extern bool sipVH_kparts_4(sip_gilstate_t,PyObject *,KParts::ScriptableExtension *,const QString&);

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

QVariant sipKParts_ScriptableExtension::evaluateScript(KParts::ScriptableExtension *a0,quint64 a1,const QString& a2,KParts::ScriptableExtension::ScriptLanguage a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::ScriptableExtension::evaluateScript(a0,a1,a2,a3);

    extern QVariant sipVH_kparts_3(sip_gilstate_t,PyObject *,KParts::ScriptableExtension *,unsigned PY_LONG_LONG,const QString&,KParts::ScriptableExtension::ScriptLanguage);

    return sipVH_kparts_3(sipGILState,sipMeth,a0,a1,a2,a3);
}

bool sipKParts_ScriptableExtension::isScriptLanguageSupported(KParts::ScriptableExtension::ScriptLanguage a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::ScriptableExtension::isScriptLanguageSupported(a0);

    extern bool sipVH_kparts_2(sip_gilstate_t,PyObject *,KParts::ScriptableExtension::ScriptLanguage);

    return sipVH_kparts_2(sipGILState,sipMeth,a0);
}

void sipKParts_ScriptableExtension::acquire(quint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KParts::ScriptableExtension::acquire(a0);
        return;
    }

    typedef void (*sipVH_kio_14)(sip_gilstate_t,PyObject *,unsigned PY_LONG_LONG);

    ((sipVH_kio_14)(sipModuleAPI_kparts_kio->em_virthandlers[14]))(sipGILState,sipMeth,a0);
}

void sipKParts_ScriptableExtension::release(quint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KParts::ScriptableExtension::release(a0);
        return;
    }

    typedef void (*sipVH_kio_14)(sip_gilstate_t,PyObject *,unsigned PY_LONG_LONG);

    ((sipVH_kio_14)(sipModuleAPI_kparts_kio->em_virthandlers[14]))(sipGILState,sipMeth,a0);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        sipKParts_ScriptableExtension *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_ScriptableExtension *sipCpp;

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

#line 649 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 2778 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKParts_ScriptableExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_ScriptableExtension, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKParts_ScriptableExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_ScriptableExtension, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_ScriptableExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_ScriptableExtension, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_ScriptableExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_ScriptableExtension, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_ScriptableExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_ScriptableExtension, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QObject * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_QObject, &a0))
        {
            KParts::ScriptableExtension *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KParts::ScriptableExtension::childObject(a0);
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        QObject * a0;
        KParts::LiveConnectExtension * a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8J8", sipType_QObject, &a0, sipType_KParts_LiveConnectExtension, &a1))
        {
            KParts::ScriptableExtension *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KParts::ScriptableExtension::adapterFromLiveConnect(a0,a1);
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KParts::ScriptableExtension * a0;
        KParts::ScriptableExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_ScriptableExtension, &sipCpp, sipType_KParts_ScriptableExtension, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setHost(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::ScriptableExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_ScriptableExtension, &sipCpp))
        {
            KParts::ScriptableExtension *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->host();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KParts::ScriptableExtension *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant((sipSelfWasArg ? sipCpp->KParts::ScriptableExtension::rootObject() : sipCpp->rootObject()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KParts::ScriptableExtension *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->enclosingObject());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KParts::ScriptableExtension * a0;
        quint64 a1;
        const KParts::ScriptableExtension::ArgList * a2;
        int a2State = 0;
        KParts::ScriptableExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8oJ1", &sipSelf, sipType_KParts_ScriptableExtension, &sipCpp, sipType_KParts_ScriptableExtension, &a0, &a1, sipType_QList_0100QVariant,&a2, &a2State))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant((sipSelfWasArg ? sipCpp->KParts::ScriptableExtension::callAsFunction(a0,a1,*a2) : sipCpp->callAsFunction(a0,a1,*a2)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KParts::ScriptableExtension::ArgList *>(a2),sipType_QList_0100QVariant,a2State);

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

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

    return NULL;
}


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

    {
        KParts::ScriptableExtension * a0;
        quint64 a1;
        const QString * a2;
        int a2State = 0;
        const KParts::ScriptableExtension::ArgList * a3;
        int a3State = 0;
        KParts::ScriptableExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8oJ1J1", &sipSelf, sipType_KParts_ScriptableExtension, &sipCpp, sipType_KParts_ScriptableExtension, &a0, &a1, sipType_QString,&a2, &a2State, sipType_QList_0100QVariant,&a3, &a3State))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant((sipSelfWasArg ? sipCpp->KParts::ScriptableExtension::callFunctionReference(a0,a1,*a2,*a3) : sipCpp->callFunctionReference(a0,a1,*a2,*a3)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<KParts::ScriptableExtension::ArgList *>(a3),sipType_QList_0100QVariant,a3State);

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

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

    return NULL;
}


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

    {
        KParts::ScriptableExtension * a0;
        quint64 a1;
        const KParts::ScriptableExtension::ArgList * a2;
        int a2State = 0;
        KParts::ScriptableExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8oJ1", &sipSelf, sipType_KParts_ScriptableExtension, &sipCpp, sipType_KParts_ScriptableExtension, &a0, &a1, sipType_QList_0100QVariant,&a2, &a2State))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant((sipSelfWasArg ? sipCpp->KParts::ScriptableExtension::callAsConstructor(a0,a1,*a2) : sipCpp->callAsConstructor(a0,a1,*a2)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KParts::ScriptableExtension::ArgList *>(a2),sipType_QList_0100QVariant,a2State);

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

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

    return NULL;
}


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

    {
        KParts::ScriptableExtension * a0;
        quint64 a1;
        const QString * a2;
        int a2State = 0;
        KParts::ScriptableExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8oJ1", &sipSelf, sipType_KParts_ScriptableExtension, &sipCpp, sipType_KParts_ScriptableExtension, &a0, &a1, sipType_QString,&a2, &a2State))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KParts::ScriptableExtension * a0;
        quint64 a1;
        const QString * a2;
        int a2State = 0;
        KParts::ScriptableExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8oJ1", &sipSelf, sipType_KParts_ScriptableExtension, &sipCpp, sipType_KParts_ScriptableExtension, &a0, &a1, sipType_QString,&a2, &a2State))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant((sipSelfWasArg ? sipCpp->KParts::ScriptableExtension::get(a0,a1,*a2) : sipCpp->get(a0,a1,*a2)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

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

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

    return NULL;
}


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

    {
        KParts::ScriptableExtension * a0;
        quint64 a1;
        const QString * a2;
        int a2State = 0;
        const QVariant * a3;
        int a3State = 0;
        KParts::ScriptableExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8oJ1J1", &sipSelf, sipType_KParts_ScriptableExtension, &sipCpp, sipType_KParts_ScriptableExtension, &a0, &a1, sipType_QString,&a2, &a2State, sipType_QVariant,&a3, &a3State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::ScriptableExtension::put(a0,a1,*a2,*a3) : sipCpp->put(a0,a1,*a2,*a3));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QVariant *>(a3),sipType_QVariant,a3State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KParts::ScriptableExtension * a0;
        quint64 a1;
        const QString * a2;
        int a2State = 0;
        KParts::ScriptableExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8oJ1", &sipSelf, sipType_KParts_ScriptableExtension, &sipCpp, sipType_KParts_ScriptableExtension, &a0, &a1, sipType_QString,&a2, &a2State))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KParts::ScriptableExtension * a0;
        quint64 a1;
        QStringList * a2;
        int a2State = 0;
        KParts::ScriptableExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8oJ0", &sipSelf, sipType_KParts_ScriptableExtension, &sipCpp, sipType_KParts_ScriptableExtension, &a0, &a1, sipType_QStringList,&a2, &a2State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::ScriptableExtension::enumerateProperties(a0,a1,a2) : sipCpp->enumerateProperties(a0,a1,a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(a2,sipType_QStringList,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KParts::ScriptableExtension * a0;
        const QString * a1;
        int a1State = 0;
        KParts::ScriptableExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1", &sipSelf, sipType_KParts_ScriptableExtension, &sipCpp, sipType_KParts_ScriptableExtension, &a0, sipType_QString,&a1, &a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::ScriptableExtension::setException(a0,*a1) : sipCpp->setException(a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KParts::ScriptableExtension * a0;
        quint64 a1;
        const QString * a2;
        int a2State = 0;
        KParts::ScriptableExtension::ScriptLanguage a3 = KParts::ScriptableExtension::ECMAScript;
        KParts::ScriptableExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8oJ1|E", &sipSelf, sipType_KParts_ScriptableExtension, &sipCpp, sipType_KParts_ScriptableExtension, &a0, &a1, sipType_QString,&a2, &a2State, sipType_KParts_ScriptableExtension_ScriptLanguage, &a3))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant((sipSelfWasArg ? sipCpp->KParts::ScriptableExtension::evaluateScript(a0,a1,*a2,a3) : sipCpp->evaluateScript(a0,a1,*a2,a3)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

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

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

    return NULL;
}


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

    {
        KParts::ScriptableExtension::ScriptLanguage a0;
        KParts::ScriptableExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KParts_ScriptableExtension, &sipCpp, sipType_KParts_ScriptableExtension_ScriptLanguage, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::ScriptableExtension::isScriptLanguageSupported(a0) : sipCpp->isScriptLanguageSupported(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        quint64 a0;
        KParts::ScriptableExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bo", &sipSelf, sipType_KParts_ScriptableExtension, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KParts::ScriptableExtension::acquire(a0) : sipCpp->acquire(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        quint64 a0;
        KParts::ScriptableExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bo", &sipSelf, sipType_KParts_ScriptableExtension, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KParts::ScriptableExtension::release(a0) : sipCpp->release(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QVariant * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QVariant,&a0, &a0State))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(KParts::ScriptableExtension::acquireValue(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

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

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

    return NULL;
}


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

    {
        const QVariant * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QVariant,&a0, &a0State))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(KParts::ScriptableExtension::releaseValue(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

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

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

    return NULL;
}


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

    if (targetType == sipType_KParts_ScriptableExtension)
        return ptr;

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKParts_ScriptableExtension *>(sipCppV);
    else
        delete reinterpret_cast<KParts::ScriptableExtension *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QObject * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KParts_ScriptableExtension[] = {
    {SIP_MLNAME_CAST(sipName_acquire), meth_KParts_ScriptableExtension_acquire, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_acquireValue), meth_KParts_ScriptableExtension_acquireValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_adapterFromLiveConnect), meth_KParts_ScriptableExtension_adapterFromLiveConnect, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_callAsConstructor), meth_KParts_ScriptableExtension_callAsConstructor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_callAsFunction), meth_KParts_ScriptableExtension_callAsFunction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_callFunctionReference), meth_KParts_ScriptableExtension_callFunctionReference, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KParts_ScriptableExtension_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childObject), meth_KParts_ScriptableExtension_childObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KParts_ScriptableExtension_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KParts_ScriptableExtension_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KParts_ScriptableExtension_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enclosingObject), meth_KParts_ScriptableExtension_enclosingObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enumerateProperties), meth_KParts_ScriptableExtension_enumerateProperties, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_evaluateScript), meth_KParts_ScriptableExtension_evaluateScript, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_get), meth_KParts_ScriptableExtension_get, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasProperty), meth_KParts_ScriptableExtension_hasProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_host), meth_KParts_ScriptableExtension_host, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isScriptLanguageSupported), meth_KParts_ScriptableExtension_isScriptLanguageSupported, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_put), meth_KParts_ScriptableExtension_put, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KParts_ScriptableExtension_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_release), meth_KParts_ScriptableExtension_release, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_releaseValue), meth_KParts_ScriptableExtension_releaseValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeProperty), meth_KParts_ScriptableExtension_removeProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rootObject), meth_KParts_ScriptableExtension_rootObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KParts_ScriptableExtension_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setException), meth_KParts_ScriptableExtension_setException, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setHost), meth_KParts_ScriptableExtension_setHost, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KParts_ScriptableExtension_timerEvent, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KParts_ScriptableExtension[] = {
    {sipName_ECMAScript, KParts::ScriptableExtension::ECMAScript, 41},
    {sipName_EnumLimit, KParts::ScriptableExtension::EnumLimit, 41},
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_ScriptableExtension = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__ScriptableExtension,
        {0}
    },
    {
        sipNameNr_ScriptableExtension,
        {0, 255, 0},
        28, methods_KParts_ScriptableExtension,
        2, enummembers_KParts_ScriptableExtension,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_ScriptableExtension,
    0,
    init_KParts_ScriptableExtension,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_ScriptableExtension,
    0,
    0,
    0,
    release_KParts_ScriptableExtension,
    cast_KParts_ScriptableExtension,
    0,
    0,
    0
},
    &KParts::ScriptableExtension::staticMetaObject,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/plugin.sip"
#include <kparts/plugin.h>
#line 3735 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3739 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"
#line 206 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 3742 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart1.cpp"


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

    return NULL;
}


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

    delete reinterpret_cast<KParts::Plugin::PluginInfo *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KParts_Plugin_PluginInfo(void *, SIP_SSIZE_T, const void *);}
static void assign_KParts_Plugin_PluginInfo(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KParts::Plugin::PluginInfo *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KParts::Plugin::PluginInfo *>(sipSrc);
}


extern "C" {static void *array_KParts_Plugin_PluginInfo(SIP_SSIZE_T);}
static void *array_KParts_Plugin_PluginInfo(SIP_SSIZE_T sipNrElem)
{
    return new KParts::Plugin::PluginInfo[sipNrElem];
}


extern "C" {static void *copy_KParts_Plugin_PluginInfo(const void *, SIP_SSIZE_T);}
static void *copy_KParts_Plugin_PluginInfo(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KParts::Plugin::PluginInfo(reinterpret_cast<const KParts::Plugin::PluginInfo *>(sipSrc)[sipSrcIdx]);
}


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


extern "C" {static void *init_KParts_Plugin_PluginInfo(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KParts_Plugin_PluginInfo(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KParts::Plugin::PluginInfo *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KParts::Plugin::PluginInfo();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const KParts::Plugin::PluginInfo * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KParts_Plugin_PluginInfo, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KParts::Plugin::PluginInfo(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static PyObject *varget_KParts_Plugin_PluginInfo_m_absXMLFileName(void *, PyObject *);}
static PyObject *varget_KParts_Plugin_PluginInfo_m_absXMLFileName(void *sipSelf, PyObject *)
{
    QString *sipVal;
    KParts::Plugin::PluginInfo *sipCpp = reinterpret_cast<KParts::Plugin::PluginInfo *>(sipSelf);

    sipVal = &sipCpp->m_absXMLFileName;

    return sipConvertFromType(sipVal,sipType_QString, NULL);
}


extern "C" {static int varset_KParts_Plugin_PluginInfo_m_absXMLFileName(void *, PyObject *, PyObject *);}
static int varset_KParts_Plugin_PluginInfo_m_absXMLFileName(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QString *sipVal;
    KParts::Plugin::PluginInfo *sipCpp = reinterpret_cast<KParts::Plugin::PluginInfo *>(sipSelf);

    int sipValState;
    int sipIsErr = 0;

    sipVal = reinterpret_cast<QString *>(sipForceConvertToType(sipPy,sipType_QString,NULL,SIP_NOT_NONE,&sipValState,&sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->m_absXMLFileName = *sipVal;

    sipReleaseType(sipVal, sipType_QString, sipValState);

    return 0;
}


extern "C" {static PyObject *varget_KParts_Plugin_PluginInfo_m_document(void *, PyObject *);}
static PyObject *varget_KParts_Plugin_PluginInfo_m_document(void *sipSelf, PyObject *)
{
    QDomDocument *sipVal;
    KParts::Plugin::PluginInfo *sipCpp = reinterpret_cast<KParts::Plugin::PluginInfo *>(sipSelf);

    sipVal = &sipCpp->m_document;

    return sipConvertFromType(sipVal,sipType_QDomDocument, NULL);
}


extern "C" {static int varset_KParts_Plugin_PluginInfo_m_document(void *, PyObject *, PyObject *);}
static int varset_KParts_Plugin_PluginInfo_m_document(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QDomDocument *sipVal;
    KParts::Plugin::PluginInfo *sipCpp = reinterpret_cast<KParts::Plugin::PluginInfo *>(sipSelf);

    int sipIsErr = 0;

    sipVal = reinterpret_cast<QDomDocument *>(sipForceConvertToType(sipPy,sipType_QDomDocument,NULL,SIP_NOT_NONE,NULL,&sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->m_document = *sipVal;

    return 0;
}


extern "C" {static PyObject *varget_KParts_Plugin_PluginInfo_m_relXMLFileName(void *, PyObject *);}
static PyObject *varget_KParts_Plugin_PluginInfo_m_relXMLFileName(void *sipSelf, PyObject *)
{
    QString *sipVal;
    KParts::Plugin::PluginInfo *sipCpp = reinterpret_cast<KParts::Plugin::PluginInfo *>(sipSelf);

    sipVal = &sipCpp->m_relXMLFileName;

    return sipConvertFromType(sipVal,sipType_QString, NULL);
}


extern "C" {static int varset_KParts_Plugin_PluginInfo_m_relXMLFileName(void *, PyObject *, PyObject *);}
static int varset_KParts_Plugin_PluginInfo_m_relXMLFileName(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QString *sipVal;
    KParts::Plugin::PluginInfo *sipCpp = reinterpret_cast<KParts::Plugin::PluginInfo *>(sipSelf);

    int sipValState;
    int sipIsErr = 0;

    sipVal = reinterpret_cast<QString *>(sipForceConvertToType(sipPy,sipType_QString,NULL,SIP_NOT_NONE,&sipValState,&sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->m_relXMLFileName = *sipVal;

    sipReleaseType(sipVal, sipType_QString, sipValState);

    return 0;
}

sipVariableDef variables_KParts_Plugin_PluginInfo[] = {
    {InstanceVariable, sipName_m_absXMLFileName, (PyMethodDef *)varget_KParts_Plugin_PluginInfo_m_absXMLFileName, (PyMethodDef *)varset_KParts_Plugin_PluginInfo_m_absXMLFileName, NULL, NULL},
    {InstanceVariable, sipName_m_document, (PyMethodDef *)varget_KParts_Plugin_PluginInfo_m_document, (PyMethodDef *)varset_KParts_Plugin_PluginInfo_m_document, NULL, NULL},
    {InstanceVariable, sipName_m_relXMLFileName, (PyMethodDef *)varget_KParts_Plugin_PluginInfo_m_relXMLFileName, (PyMethodDef *)varset_KParts_Plugin_PluginInfo_m_relXMLFileName, NULL, NULL},
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_Plugin_PluginInfo = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KParts__Plugin__PluginInfo,
        {0}
    },
    {
        sipNameNr_PluginInfo,
        {36, 255, 0},
        0, 0,
        0, 0,
        3, variables_KParts_Plugin_PluginInfo,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_KParts_Plugin_PluginInfo,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_Plugin_PluginInfo,
    assign_KParts_Plugin_PluginInfo,
    array_KParts_Plugin_PluginInfo,
    copy_KParts_Plugin_PluginInfo,
    release_KParts_Plugin_PluginInfo,
    cast_KParts_Plugin_PluginInfo,
    0,
    0,
    0
},
    0,
    0,
    0
};
