/*
 * Module code.
 *
 * Generated by SIP 4.10.2 on Sun Jul 11 10:06:29 2010
 */

#include "sipAPIkparts.h"

#line 38 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 12 "sipkpartspart1.cpp"

#line 43 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 16 "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 94 "/usr/local/share/py-sip/QtCore/qmap.sip"
    PyObject *t1obj, *t2obj;
    SIP_SSIZE_T i = 0;

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

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

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

        return 1;
    }

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

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

            delete qm;
            return 0;
        }

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

        sipReleaseType(t1, sipType_QByteArray, state1);
        sipReleaseType(t2, sipType_QByteArray, state2);
    }
 
    *sipCppPtr = qm;
 
    return sipGetState(sipTransferObj);
#line 105 "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 42 "/usr/local/share/py-sip/QtCore/qmap.sip"
    // Create the dictionary.
    PyObject *d = PyDict_New();

    if (!d)
        return NULL;

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

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

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

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

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

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

            return NULL;
        }

        Py_DECREF(t1obj);
        Py_DECREF(t2obj);

        ++i;
    }

    return d;
#line 164 "sipkpartspart1.cpp"
}


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

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

#line 43 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 199 "sipkpartspart1.cpp"


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


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


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


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



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

#line 273 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/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 "sipkpartspart1.cpp"
}


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

#line 226 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/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 "sipkpartspart1.cpp"
}


sipMappedTypeDef sipTypeDef_kparts_QMap_0100QByteArray_1800 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_1645,
        {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 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/statusbarextension.sip"
#include <kparts/statusbarextension.h>
#line 382 "sipkpartspart1.cpp"

#line 142 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 386 "sipkpartspart1.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 389 "sipkpartspart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 392 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kdeui/kstatusbar.sip"
#include <kstatusbar.h>
#line 395 "sipkpartspart1.cpp"
#line 41 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 398 "sipkpartspart1.cpp"
#line 318 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 401 "sipkpartspart1.cpp"
#line 305 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 404 "sipkpartspart1.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 407 "sipkpartspart1.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 410 "sipkpartspart1.cpp"
#line 43 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 413 "sipkpartspart1.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 416 "sipkpartspart1.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 419 "sipkpartspart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 422 "sipkpartspart1.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 425 "sipkpartspart1.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 428 "sipkpartspart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 431 "sipkpartspart1.cpp"


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

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

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[7];
};

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

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

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

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

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

    return _id;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        char * a0;
        sipKParts_StatusBarExtension *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKParts_StatusBarExtension *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKParts_StatusBarExtension *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_StatusBarExtension *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_StatusBarExtension *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_StatusBarExtension *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::StatusBarExtension *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->statusBar();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QObject * a0;

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

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

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

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_StatusBarExtension)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        KParts::ReadOnlyPart * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


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


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

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

#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1152 "sipkpartspart1.cpp"
#line 216 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 1155 "sipkpartspart1.cpp"


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


extern "C" {static void dealloc_KParts_Plugin_PluginInfo(sipSimpleWrapper *);}
static void dealloc_KParts_Plugin_PluginInfo(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KParts_Plugin_PluginInfo(sipSelf->u.cppPtr,0);
    }
}


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

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

            return sipCpp;
        }
    }

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

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

            return sipCpp;
        }
    }

    return NULL;
}


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

    sipVal = &sipCpp->m_absXMLFileName;

    return sipConvertFromType(sipVal,sipType_QString, NULL);
}


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

    int sipValState;
    int sipIsErr = 0;

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

    if (sipIsErr)
        return -1;

    sipCpp->m_absXMLFileName = *sipVal;

    sipReleaseType(sipVal, sipType_QString, sipValState);

    return 0;
}


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

    sipVal = &sipCpp->m_document;

    return sipConvertFromType(sipVal,sipType_QDomDocument, NULL);
}


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

    int sipIsErr = 0;

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

    if (sipIsErr)
        return -1;

    sipCpp->m_document = *sipVal;

    return 0;
}


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

    sipVal = &sipCpp->m_relXMLFileName;

    return sipConvertFromType(sipVal,sipType_QString, NULL);
}


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

    int sipValState;
    int sipIsErr = 0;

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

    if (sipIsErr)
        return -1;

    sipCpp->m_relXMLFileName = *sipVal;

    sipReleaseType(sipVal, sipType_QString, sipValState);

    return 0;
}

sipVariableDef variables_KParts_Plugin_PluginInfo[] = {
    {sipName_m_absXMLFileName, varget_KParts_Plugin_PluginInfo_m_absXMLFileName, varset_KParts_Plugin_PluginInfo_m_absXMLFileName, 0},
    {sipName_m_document, varget_KParts_Plugin_PluginInfo_m_document, varset_KParts_Plugin_PluginInfo_m_document, 0},
    {sipName_m_relXMLFileName, varget_KParts_Plugin_PluginInfo_m_relXMLFileName, varset_KParts_Plugin_PluginInfo_m_relXMLFileName, 0},
};


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

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

#line 40 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1406 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 1409 "sipkpartspart1.cpp"
#line 43 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1412 "sipkpartspart1.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1415 "sipkpartspart1.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1418 "sipkpartspart1.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/plugin.sip"
#include <kparts/plugin.h>
#line 1421 "sipkpartspart1.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1424 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 1427 "sipkpartspart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1430 "sipkpartspart1.cpp"
#line 318 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1433 "sipkpartspart1.cpp"
#line 305 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1436 "sipkpartspart1.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1439 "sipkpartspart1.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1442 "sipkpartspart1.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1445 "sipkpartspart1.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1448 "sipkpartspart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1451 "sipkpartspart1.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1454 "sipkpartspart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1457 "sipkpartspart1.cpp"
#line 216 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 1460 "sipkpartspart1.cpp"
#line 41 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 1463 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 1466 "sipkpartspart1.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1469 "sipkpartspart1.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1472 "sipkpartspart1.cpp"
#line 37 "/usr/local/share/py-sip/QtGui/qaction.sip"
#include <qaction.h>
#line 1475 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kdeui/kxmlguibuilder.sip"
#include <kxmlguibuilder.h>
#line 1478 "sipkpartspart1.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1481 "sipkpartspart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kdeui/kxmlguifactory.sip"
#include <kxmlguifactory.h>
#line 1484 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kdeui/kactioncollection.sip"
#include <kactioncollection.h>
#line 1487 "sipkpartspart1.cpp"
#line 340 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 1490 "sipkpartspart1.cpp"


class sipKParts_Plugin : public KParts::Plugin
{
public:
    sipKParts_Plugin(QObject *);
    virtual ~sipKParts_Plugin();

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

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtectVirt_setXMLFile(bool,const QString&,bool,bool);
    void sipProtectVirt_setLocalXMLFile(bool,const QString&);
    void sipProtectVirt_setXML(bool,const QString&,bool);
    void sipProtectVirt_setDOMDocument(bool,const QDomDocument&,bool);
    void sipProtectVirt_stateChanged(bool,const QString&,KXMLGUIClient::ReverseStateChange);
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    static QList<KParts::Plugin::PluginInfo> sipProtect_pluginInfos(const KComponentData&);
    static KParts::Plugin * sipProtect_loadPlugin(QObject *,const char *);
    static KParts::Plugin * sipProtect_loadPlugin(QObject *,const QByteArray&);
    static KParts::Plugin * sipProtect_loadPlugin(QObject *,const QString&);
    void sipProtectVirt_setComponentData(bool,const KComponentData&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    QString xmlFile() const;
    QString localXMLFile() const;
    void setComponentData(const KComponentData&);
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);
    QAction * action(const QDomElement&) const;
    KActionCollection * actionCollection() const;
    KComponentData componentData() const;
    QDomDocument domDocument() const;
    void setXMLFile(const QString&,bool,bool);
    void setLocalXMLFile(const QString&);
    void setXML(const QString&,bool);
    void setDOMDocument(const QDomDocument&,bool);
    void stateChanged(const QString&,KXMLGUIClient::ReverseStateChange);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[19];
};

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

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

const QMetaObject *sipKParts_Plugin::metaObject() const
{
    return sip_kparts_qt_metaobject(sipPySelf,sipType_KParts_Plugin);
}

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

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

    return _id;
}

void *sipKParts_Plugin::qt_metacast(const char *_clname)
{
    return (sip_kparts_qt_metacast && sip_kparts_qt_metacast(sipPySelf,sipType_KParts_Plugin,_clname)) ? this : KParts::Plugin::qt_metacast(_clname);
}

QString sipKParts_Plugin::xmlFile() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KParts::Plugin::xmlFile();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_kparts_QtCore->em_virthandlers[62]))(sipGILState,meth);
}

QString sipKParts_Plugin::localXMLFile() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KParts::Plugin::localXMLFile();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_kparts_QtCore->em_virthandlers[62]))(sipGILState,meth);
}

void sipKParts_Plugin::setComponentData(const KComponentData& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::Plugin::setComponentData(a0);
        return;
    }

    typedef void (*sipVH_kdeui_16)(sip_gilstate_t,PyObject *,const KComponentData&);

    ((sipVH_kdeui_16)(sipModuleAPI_kparts_kdeui->em_virthandlers[16]))(sipGILState,meth,a0);
}

bool sipKParts_Plugin::event(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

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

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

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

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

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

void sipKParts_Plugin::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipKParts_Plugin::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipKParts_Plugin::customEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipKParts_Plugin::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipKParts_Plugin::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

QAction * sipKParts_Plugin::action(const QDomElement& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KXMLGUIClient::action(a0);

    typedef QAction * (*sipVH_kdeui_20)(sip_gilstate_t,PyObject *,const QDomElement&);

    return ((sipVH_kdeui_20)(sipModuleAPI_kparts_kdeui->em_virthandlers[20]))(sipGILState,meth,a0);
}

KActionCollection * sipKParts_Plugin::actionCollection() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KXMLGUIClient::actionCollection();

    typedef KActionCollection * (*sipVH_kdeui_19)(sip_gilstate_t,PyObject *);

    return ((sipVH_kdeui_19)(sipModuleAPI_kparts_kdeui->em_virthandlers[19]))(sipGILState,meth);
}

KComponentData sipKParts_Plugin::componentData() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KXMLGUIClient::componentData();

    typedef KComponentData (*sipVH_kdeui_18)(sip_gilstate_t,PyObject *);

    return ((sipVH_kdeui_18)(sipModuleAPI_kparts_kdeui->em_virthandlers[18]))(sipGILState,meth);
}

QDomDocument sipKParts_Plugin::domDocument() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KXMLGUIClient::domDocument();

    typedef QDomDocument (*sipVH_kdeui_17)(sip_gilstate_t,PyObject *);

    return ((sipVH_kdeui_17)(sipModuleAPI_kparts_kdeui->em_virthandlers[17]))(sipGILState,meth);
}

void sipKParts_Plugin::setXMLFile(const QString& a0,bool a1,bool a2)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_setXMLFile);

    if (!meth)
    {
        KXMLGUIClient::setXMLFile(a0,a1,a2);
        return;
    }

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

    ((sipVH_kdeui_15)(sipModuleAPI_kparts_kdeui->em_virthandlers[15]))(sipGILState,meth,a0,a1,a2);
}

void sipKParts_Plugin::setLocalXMLFile(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_setLocalXMLFile);

    if (!meth)
    {
        KXMLGUIClient::setLocalXMLFile(a0);
        return;
    }

    typedef void (*sipVH_QtCore_33)(sip_gilstate_t,PyObject *,const QString&);

    ((sipVH_QtCore_33)(sipModuleAPI_kparts_QtCore->em_virthandlers[33]))(sipGILState,meth,a0);
}

void sipKParts_Plugin::setXML(const QString& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_setXML);

    if (!meth)
    {
        KXMLGUIClient::setXML(a0,a1);
        return;
    }

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

    ((sipVH_QtXml_24)(sipModuleAPI_kparts_QtXml->em_virthandlers[24]))(sipGILState,meth,a0,a1);
}

void sipKParts_Plugin::setDOMDocument(const QDomDocument& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_setDOMDocument);

    if (!meth)
    {
        KXMLGUIClient::setDOMDocument(a0,a1);
        return;
    }

    typedef void (*sipVH_kdeui_14)(sip_gilstate_t,PyObject *,const QDomDocument&,bool);

    ((sipVH_kdeui_14)(sipModuleAPI_kparts_kdeui->em_virthandlers[14]))(sipGILState,meth,a0,a1);
}

void sipKParts_Plugin::stateChanged(const QString& a0,KXMLGUIClient::ReverseStateChange a1)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_stateChanged);

    if (!meth)
    {
        KXMLGUIClient::stateChanged(a0,a1);
        return;
    }

    typedef void (*sipVH_kdeui_13)(sip_gilstate_t,PyObject *,const QString&,KXMLGUIClient::ReverseStateChange);

    ((sipVH_kdeui_13)(sipModuleAPI_kparts_kdeui->em_virthandlers[13]))(sipGILState,meth,a0,a1);
}

void sipKParts_Plugin::sipProtectVirt_setXMLFile(bool sipSelfWasArg,const QString& a0,bool a1,bool a2)
{
    (sipSelfWasArg ? KXMLGUIClient::setXMLFile(a0,a1,a2) : setXMLFile(a0,a1,a2));
}

void sipKParts_Plugin::sipProtectVirt_setLocalXMLFile(bool sipSelfWasArg,const QString& a0)
{
    (sipSelfWasArg ? KXMLGUIClient::setLocalXMLFile(a0) : setLocalXMLFile(a0));
}

void sipKParts_Plugin::sipProtectVirt_setXML(bool sipSelfWasArg,const QString& a0,bool a1)
{
    (sipSelfWasArg ? KXMLGUIClient::setXML(a0,a1) : setXML(a0,a1));
}

void sipKParts_Plugin::sipProtectVirt_setDOMDocument(bool sipSelfWasArg,const QDomDocument& a0,bool a1)
{
    (sipSelfWasArg ? KXMLGUIClient::setDOMDocument(a0,a1) : setDOMDocument(a0,a1));
}

void sipKParts_Plugin::sipProtectVirt_stateChanged(bool sipSelfWasArg,const QString& a0,KXMLGUIClient::ReverseStateChange a1)
{
    (sipSelfWasArg ? KXMLGUIClient::stateChanged(a0,a1) : stateChanged(a0,a1));
}

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

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

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

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

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

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

QList<KParts::Plugin::PluginInfo> sipKParts_Plugin::sipProtect_pluginInfos(const KComponentData& a0)
{
    return KParts::Plugin::pluginInfos(a0);
}

KParts::Plugin * sipKParts_Plugin::sipProtect_loadPlugin(QObject *a0,const char *a1)
{
    return KParts::Plugin::loadPlugin(a0,a1);
}

KParts::Plugin * sipKParts_Plugin::sipProtect_loadPlugin(QObject *a0,const QByteArray& a1)
{
    return KParts::Plugin::loadPlugin(a0,a1);
}

KParts::Plugin * sipKParts_Plugin::sipProtect_loadPlugin(QObject *a0,const QString& a1)
{
    return KParts::Plugin::loadPlugin(a0,a1);
}

void sipKParts_Plugin::sipProtectVirt_setComponentData(bool sipSelfWasArg,const KComponentData& a0)
{
    (sipSelfWasArg ? KParts::Plugin::setComponentData(a0) : setComponentData(a0));
}


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

    {
        const QString * a0;
        int a0State = 0;
        bool a1 = 0;
        bool a2 = 1;
        sipKParts_Plugin *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|bb", &sipSelf, sipType_KParts_Plugin, &sipCpp, sipType_QString,&a0, &a0State, &a1, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setXMLFile(sipSelfWasArg,*a0,a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        sipKParts_Plugin *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KParts_Plugin, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setLocalXMLFile(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        bool a1 = 0;
        sipKParts_Plugin *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|b", &sipSelf, sipType_KParts_Plugin, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setXML(sipSelfWasArg,*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QDomDocument * a0;
        bool a1 = 0;
        sipKParts_Plugin *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|b", &sipSelf, sipType_KParts_Plugin, &sipCpp, sipType_QDomDocument, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setDOMDocument(sipSelfWasArg,*a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        KXMLGUIClient::ReverseStateChange a1 = KXMLGUIClient::StateNoReverse;
        sipKParts_Plugin *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KParts_Plugin, &sipCpp, sipType_QString,&a0, &a0State, sipType_KXMLGUIClient_ReverseStateChange, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_stateChanged(sipSelfWasArg,*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_Plugin *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKParts_Plugin *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKParts_Plugin *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_Plugin *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_Plugin *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_Plugin *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::Plugin *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString((sipSelfWasArg ? sipCpp->KParts::Plugin::xmlFile() : sipCpp->xmlFile()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KParts::Plugin *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString((sipSelfWasArg ? sipCpp->KParts::Plugin::localXMLFile() : sipCpp->localXMLFile()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        QObject * a0;
        const KComponentData * a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J:J9", sipType_QObject, &a0, sipType_KComponentData, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            KParts::Plugin::loadPlugins(a0,*a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        QObject * a0;
        const QList<KParts::Plugin::PluginInfo> * a1;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J:J1", sipType_QObject, &a0, sipType_QList_0100KParts_Plugin_PluginInfo,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            KParts::Plugin::loadPlugins(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<KParts::Plugin::PluginInfo> *>(a1),sipType_QList_0100KParts_Plugin_PluginInfo,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        QObject * a0;
        const QList<KParts::Plugin::PluginInfo> * a1;
        int a1State = 0;
        const KComponentData * a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "J:J1J9", sipType_QObject, &a0, sipType_QList_0100KParts_Plugin_PluginInfo,&a1, &a1State, sipType_KComponentData, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            KParts::Plugin::loadPlugins(a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<KParts::Plugin::PluginInfo> *>(a1),sipType_QList_0100KParts_Plugin_PluginInfo,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        QObject * a0;
        KXMLGUIClient * a1;
        const KComponentData * a2;
        bool a3 = 1;
        int a4 = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J:J8J9|bi", sipType_QObject, &a0, sipType_KXMLGUIClient, &a1, sipType_KComponentData, &a2, &a3, &a4))
        {
            Py_BEGIN_ALLOW_THREADS
            KParts::Plugin::loadPlugins(a0,a1,*a2,a3,a4);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QObject * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J:", sipType_QObject, &a0))
        {
            QList<KParts::Plugin *> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KParts::Plugin *>(KParts::Plugin::pluginObjects(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KComponentData * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_KComponentData, &a0))
        {
            QList<KParts::Plugin::PluginInfo> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KParts::Plugin::PluginInfo>(sipKParts_Plugin::sipProtect_pluginInfos(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        QObject * a0;
        const char * a1;
        PyObject *a1Keep;

        if (sipParseArgs(&sipParseErr, sipArgs, "J:AA", sipType_QObject, &a0, &a1Keep, &a1))
        {
            KParts::Plugin *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipKParts_Plugin::sipProtect_loadPlugin(a0,a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a1Keep);

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

    {
        QObject * a0;
        const QByteArray * a1;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J:J1", sipType_QObject, &a0, sipType_QByteArray, &a1, &a1State))
        {
            KParts::Plugin *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipKParts_Plugin::sipProtect_loadPlugin(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

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

    {
        QObject * a0;
        const QString * a1;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J:J1", sipType_QObject, &a0, sipType_QString,&a1, &a1State))
        {
            KParts::Plugin *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipKParts_Plugin::sipProtect_loadPlugin(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


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

    {
        const KComponentData * a0;
        sipKParts_Plugin *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KParts_Plugin, &sipCpp, sipType_KComponentData, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setComponentData(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_Plugin)
        return ptr;

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

    if ((res = ((const sipClassTypeDef *)sipType_KXMLGUIClient)->ctd_cast((KXMLGUIClient *)(KParts::Plugin *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QObject * a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KParts_Plugin[] = {{129, 0, 0}, {319, 7, 1}};


static PyMethodDef methods_KParts_Plugin[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KParts_Plugin_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KParts_Plugin_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KParts_Plugin_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KParts_Plugin_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_loadPlugin), meth_KParts_Plugin_loadPlugin, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_loadPlugins), meth_KParts_Plugin_loadPlugins, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localXMLFile), meth_KParts_Plugin_localXMLFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pluginInfos), meth_KParts_Plugin_pluginInfos, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pluginObjects), meth_KParts_Plugin_pluginObjects, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KParts_Plugin_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setComponentData), meth_KParts_Plugin_setComponentData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDOMDocument), meth_KParts_Plugin_setDOMDocument, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalXMLFile), meth_KParts_Plugin_setLocalXMLFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setXML), meth_KParts_Plugin_setXML, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setXMLFile), meth_KParts_Plugin_setXMLFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stateChanged), meth_KParts_Plugin_stateChanged, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KParts_Plugin_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_xmlFile), meth_KParts_Plugin_xmlFile, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_Plugin = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__Plugin,
        {0}
    },
    {
        sipNameNr_Plugin,
        {0, 255, 0},
        18, methods_KParts_Plugin,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_Plugin,
    0,
    init_KParts_Plugin,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_Plugin,
    0,
    0,
    0,
    release_KParts_Plugin,
    cast_KParts_Plugin,
    0,
    0,
    0
},
    &KParts::Plugin::staticMetaObject,
    0,
    0
};
