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

#include "sipAPIkparts.h"

#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 12 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"

#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 16 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 84 "/usr/share/python3-sip/PyQt4/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 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 32 "/usr/share/python3-sip/PyQt4/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 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
}


sipMappedTypeDef sipTypeDef_kparts_QMap_0100QByteArray_0100QByteArray = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_1422,
        {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 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qmap.h>
#line 195 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"

#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 199 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.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 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.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 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
}


sipMappedTypeDef sipTypeDef_kparts_QMap_0100QByteArray_1800 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_2612,
        {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 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/textextension.sip"
#include <kparts/textextension.h>
#line 382 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"

#line 142 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 386 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 389 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kfind.sip"
#include <kfind.h>
#line 392 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 395 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 398 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 401 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 404 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 407 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 410 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 413 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 416 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 419 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 422 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 425 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 428 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    bool findText(const QString&,KFind::SearchOptions) const;
    QString pageText(KParts::TextExtension::Format) const;
    int currentPage() const;
    int pageCount() const;
    QString completeText(KParts::TextExtension::Format) const;
    QString selectedText(KParts::TextExtension::Format) const;
    bool hasSelection() const;

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(sipPySelf, sipType_KParts_TextExtension, _clname)) ? this : KParts::TextExtension::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    return ((sipVH_QtCore_5)(sipModuleAPI_kparts_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, 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[7]),sipPySelf,NULL,sipName_findText);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        const 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;
        const 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;
        const 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));

    {
        const 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));

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


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

    Py_BEGIN_ALLOW_THREADS

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

    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_type_KParts_TextExtension(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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[] = {{141, 0, 1}};


static PyMethodDef methods_KParts_TextExtension[] = {
    {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_currentPage), meth_KParts_TextExtension_currentPage, 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_selectedText), meth_KParts_TextExtension_selectedText, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KParts_TextExtension[] = {
    {sipName_HTML, static_cast<int>(KParts::TextExtension::HTML), 56},
    {sipName_PlainText, static_cast<int>(KParts::TextExtension::PlainText), 56},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KParts_TextExtension[] = {
    {"selectionChanged()", 0, 0, 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},
        8, 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_type_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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KParts::TextExtension::staticMetaObject,
    0,
    signals_KParts_TextExtension,
};

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/statusbarextension.sip"
#include <kparts/statusbarextension.h>
#line 1096 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"

#line 142 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 1100 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 1103 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1106 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kstatusbar.sip"
#include <kstatusbar.h>
#line 1109 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 1112 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1115 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1118 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1121 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1124 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1127 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1130 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1133 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 1136 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1139 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1142 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1145 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool event(QEvent*);
    bool eventFilter(QObject*,QEvent*);

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(sipPySelf, sipType_KParts_StatusBarExtension, _clname)) ? this : KParts::StatusBarExtension::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    ((sipVH_QtCore_17)(sipModuleAPI_kparts_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, 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)
    {
        KParts::StatusBarExtension::childEvent(a0);
        return;
    }

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return KParts::StatusBarExtension::event(a0);

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

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

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

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

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

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

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


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;

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


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

    Py_BEGIN_ALLOW_THREADS

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

    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_type_KParts_StatusBarExtension(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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[] = {{141, 0, 1}};


static PyMethodDef methods_KParts_StatusBarExtension[] = {
    {SIP_MLNAME_CAST(sipName_addStatusBarItem), meth_KParts_StatusBarExtension_addStatusBarItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childObject), meth_KParts_StatusBarExtension_childObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_eventFilter), meth_KParts_StatusBarExtension_eventFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeStatusBarItem), meth_KParts_StatusBarExtension_removeStatusBarItem, 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}
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_StatusBarExtension = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__StatusBarExtension,
        {0}
    },
    {
        sipNameNr_StatusBarExtension,
        {0, 255, 0},
        6, 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_type_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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KParts::StatusBarExtension::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/scriptableextension.sip"
#include <kparts/scriptableextension.h>
#line 1622 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 1626 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1629 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1632 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1635 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1638 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1641 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 276 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 1644 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1647 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1650 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1653 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1656 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1659 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1662 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1665 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 1668 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1671 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1674 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    void release(quint64);
    void acquire(quint64);
    bool isScriptLanguageSupported(KParts::ScriptableExtension::ScriptLanguage) const;
    QVariant evaluateScript(KParts::ScriptableExtension*,quint64,const QString&,KParts::ScriptableExtension::ScriptLanguage);
    bool setException(KParts::ScriptableExtension*,const QString&);
    bool enumerateProperties(KParts::ScriptableExtension*,quint64,QStringList*);
    bool removeProperty(KParts::ScriptableExtension*,quint64,const QString&);
    bool put(KParts::ScriptableExtension*,quint64,const QString&,const QVariant&);
    QVariant get(KParts::ScriptableExtension*,quint64,const QString&);
    bool hasProperty(KParts::ScriptableExtension*,quint64,const QString&);
    QVariant callAsConstructor(KParts::ScriptableExtension*,quint64,const KParts::ScriptableExtension::ArgList&);
    QVariant callFunctionReference(KParts::ScriptableExtension*,quint64,const QString&,const KParts::ScriptableExtension::ArgList&);
    QVariant callAsFunction(KParts::ScriptableExtension*,quint64,const KParts::ScriptableExtension::ArgList&);
    QVariant rootObject();

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(sipPySelf, sipType_KParts_ScriptableExtension, _clname)) ? this : KParts::ScriptableExtension::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KParts::ScriptableExtension*,unsigned PY_LONG_LONG,const QString&,KParts::ScriptableExtension::ScriptLanguage);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    return sipVH_kparts_6(sipGILState, 0, sipPySelf, 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[14],sipPySelf,NULL,sipName_put);

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

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

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

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

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

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

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

    return sipVH_kparts_8(sipGILState, 0, sipPySelf, 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[16],sipPySelf,NULL,sipName_hasProperty);

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

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

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

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

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

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

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

    return sipVH_kparts_9(sipGILState, 0, sipPySelf, 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[18],sipPySelf,NULL,sipName_callFunctionReference);

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

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

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

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

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

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

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

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

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

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

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

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

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


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;

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


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

    Py_BEGIN_ALLOW_THREADS

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

    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_type_KParts_ScriptableExtension(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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[] = {{141, 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_childObject), meth_KParts_ScriptableExtension_childObject, 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_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_setException), meth_KParts_ScriptableExtension_setException, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setHost), meth_KParts_ScriptableExtension_setHost, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KParts_ScriptableExtension[] = {
    {sipName_ECMAScript, static_cast<int>(KParts::ScriptableExtension::ECMAScript), 49},
    {sipName_EnumLimit, static_cast<int>(KParts::ScriptableExtension::EnumLimit), 49},
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_ScriptableExtension = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__ScriptableExtension,
        {0}
    },
    {
        sipNameNr_ScriptableExtension,
        {0, 255, 0},
        21, 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_type_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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KParts::ScriptableExtension::staticMetaObject,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/plugin.sip"
#include <kparts/plugin.h>
#line 2877 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2881 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"
#line 211 "/usr/share/python3-sip/PyQt4/QtXml/qdom.sip"
#include <qdom.h>
#line 2884 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kparts/sipkpartspart1.cpp"


/* 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_type_KParts_Plugin_PluginInfo(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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 *, PyObject *);}
static PyObject *varget_KParts_Plugin_PluginInfo_m_absXMLFileName(void *sipSelf, PyObject *sipPySelf, PyObject *)
{
    PyObject *sipPy;
    QString*sipVal;
    KParts::Plugin::PluginInfo *sipCpp = reinterpret_cast<KParts::Plugin::PluginInfo *>(sipSelf);

    sipPy = sipGetReference(sipPySelf, -1);
    if (sipPy)
        return sipPy;

    sipVal = &sipCpp->m_absXMLFileName;

    sipPy = sipConvertFromType(sipVal, sipType_QString, NULL);
    sipKeepReference(sipPySelf, -1, sipPy);

    return sipPy;
}


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 *, PyObject *);}
static PyObject *varget_KParts_Plugin_PluginInfo_m_document(void *sipSelf, PyObject *sipPySelf, PyObject *)
{
    PyObject *sipPy;
    QDomDocument*sipVal;
    KParts::Plugin::PluginInfo *sipCpp = reinterpret_cast<KParts::Plugin::PluginInfo *>(sipSelf);

    sipPy = sipGetReference(sipPySelf, -2);
    if (sipPy)
        return sipPy;

    sipVal = &sipCpp->m_document;

    sipPy = sipConvertFromType(sipVal, sipType_QDomDocument, NULL);
    sipKeepReference(sipPySelf, -2, sipPy);

    return sipPy;
}


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 *, PyObject *);}
static PyObject *varget_KParts_Plugin_PluginInfo_m_relXMLFileName(void *sipSelf, PyObject *sipPySelf, PyObject *)
{
    PyObject *sipPy;
    QString*sipVal;
    KParts::Plugin::PluginInfo *sipCpp = reinterpret_cast<KParts::Plugin::PluginInfo *>(sipSelf);

    sipPy = sipGetReference(sipPySelf, -3);
    if (sipPy)
        return sipPy;

    sipVal = &sipCpp->m_relXMLFileName;

    sipPy = sipConvertFromType(sipVal, sipType_QString, NULL);
    sipKeepReference(sipPySelf, -3, sipPy);

    return sipPy;
}


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,
        {44, 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_type_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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};
