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

#include "sipAPIkparts.h"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/partmanager.sip"
#include <kparts/partmanager.h>
#line 12 "sipkpartspart2.cpp"

#line 41 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 16 "sipkpartspart2.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 19 "sipkpartspart2.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 22 "sipkpartspart2.cpp"
#line 66 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 25 "sipkpartspart2.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 28 "sipkpartspart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 31 "sipkpartspart2.cpp"
#line 318 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 34 "sipkpartspart2.cpp"
#line 305 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 37 "sipkpartspart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 40 "sipkpartspart2.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "sipkpartspart2.cpp"
#line 43 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 46 "sipkpartspart2.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 49 "sipkpartspart2.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 52 "sipkpartspart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 55 "sipkpartspart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 58 "sipkpartspart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 61 "sipkpartspart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 64 "sipkpartspart2.cpp"


class sipKParts_PartManager : public KParts::PartManager
{
public:
    sipKParts_PartManager(QWidget *);
    sipKParts_PartManager(QWidget *,QObject *);
    virtual ~sipKParts_PartManager();

    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 *);
    void sipProtectVirt_setActiveComponent(bool,const KComponentData&);
    void sipProtect_slotObjectDestroyed();
    void sipProtect_slotWidgetDestroyed();
    void sipProtect_slotManagedTopLevelWidgetDestroyed();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool eventFilter(QObject *,QEvent *);
    void addPart(KParts::Part *,bool);
    void removePart(KParts::Part *);
    void replacePart(KParts::Part *,KParts::Part *,bool);
    void setActivePart(KParts::Part *,QWidget *);
    KParts::Part * activePart() const;
    QWidget * activeWidget() const;
    void setSelectedPart(KParts::Part *,QWidget *);
    KParts::Part * selectedPart() const;
    QWidget * selectedWidget() const;
    void setActiveComponent(const KComponentData&);
    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_PartManager(const sipKParts_PartManager &);
    sipKParts_PartManager &operator = (const sipKParts_PartManager &);

    char sipPyMethods[17];
};

sipKParts_PartManager::sipKParts_PartManager(QWidget *a0): KParts::PartManager(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKParts_PartManager::sipKParts_PartManager(QWidget *a0,QObject *a1): KParts::PartManager(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKParts_PartManager::metaObject() const
{
    return sip_kparts_qt_metaobject(sipPySelf,sipType_KParts_PartManager);
}

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

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

    return _id;
}

void *sipKParts_PartManager::qt_metacast(const char *_clname)
{
    return (sip_kparts_qt_metacast && sip_kparts_qt_metacast(sipPySelf,sipType_KParts_PartManager,_clname)) ? this : KParts::PartManager::qt_metacast(_clname);
}

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

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

    if (!meth)
        return KParts::PartManager::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_PartManager::addPart(KParts::Part *a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::PartManager::addPart(a0,a1);
        return;
    }

    extern void sipVH_kparts_4(sip_gilstate_t,PyObject *,KParts::Part *,bool);

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

void sipKParts_PartManager::removePart(KParts::Part *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::PartManager::removePart(a0);
        return;
    }

    extern void sipVH_kparts_3(sip_gilstate_t,PyObject *,KParts::Part *);

    sipVH_kparts_3(sipGILState,meth,a0);
}

void sipKParts_PartManager::replacePart(KParts::Part *a0,KParts::Part *a1,bool a2)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::PartManager::replacePart(a0,a1,a2);
        return;
    }

    extern void sipVH_kparts_2(sip_gilstate_t,PyObject *,KParts::Part *,KParts::Part *,bool);

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

void sipKParts_PartManager::setActivePart(KParts::Part *a0,QWidget *a1)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::PartManager::setActivePart(a0,a1);
        return;
    }

    extern void sipVH_kparts_1(sip_gilstate_t,PyObject *,KParts::Part *,QWidget *);

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

KParts::Part * sipKParts_PartManager::activePart() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KParts::PartManager::activePart();

    extern KParts::Part * sipVH_kparts_0(sip_gilstate_t,PyObject *);

    return sipVH_kparts_0(sipGILState,meth);
}

QWidget * sipKParts_PartManager::activeWidget() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KParts::PartManager::activeWidget();

    typedef QWidget * (*sipVH_QtGui_106)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtGui_106)(sipModuleAPI_kparts_QtGui->em_virthandlers[106]))(sipGILState,meth);
}

void sipKParts_PartManager::setSelectedPart(KParts::Part *a0,QWidget *a1)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::PartManager::setSelectedPart(a0,a1);
        return;
    }

    extern void sipVH_kparts_1(sip_gilstate_t,PyObject *,KParts::Part *,QWidget *);

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

KParts::Part * sipKParts_PartManager::selectedPart() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KParts::PartManager::selectedPart();

    extern KParts::Part * sipVH_kparts_0(sip_gilstate_t,PyObject *);

    return sipVH_kparts_0(sipGILState,meth);
}

QWidget * sipKParts_PartManager::selectedWidget() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KParts::PartManager::selectedWidget();

    typedef QWidget * (*sipVH_QtGui_106)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtGui_106)(sipModuleAPI_kparts_QtGui->em_virthandlers[106]))(sipGILState,meth);
}

void sipKParts_PartManager::setActiveComponent(const KComponentData& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::PartManager::setActiveComponent(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_PartManager::event(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],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_PartManager::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],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_PartManager::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],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_PartManager::customEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],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_PartManager::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],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_PartManager::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],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_PartManager::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

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

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

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

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

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

void sipKParts_PartManager::sipProtectVirt_setActiveComponent(bool sipSelfWasArg,const KComponentData& a0)
{
    (sipSelfWasArg ? KParts::PartManager::setActiveComponent(a0) : setActiveComponent(a0));
}

void sipKParts_PartManager::sipProtect_slotObjectDestroyed()
{
    KParts::PartManager::slotObjectDestroyed();
}

void sipKParts_PartManager::sipProtect_slotWidgetDestroyed()
{
    KParts::PartManager::slotWidgetDestroyed();
}

void sipKParts_PartManager::sipProtect_slotManagedTopLevelWidgetDestroyed()
{
    KParts::PartManager::slotManagedTopLevelWidgetDestroyed();
}


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

    {
        char * a0;
        sipKParts_PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_PartManager, &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 529 "sipkpartspart2.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKParts_PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_PartManager, &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_PartManager, sipName_timerEvent, NULL);

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKParts_PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_PartManager, &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_PartManager, sipName_childEvent, NULL);

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_PartManager, &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_PartManager, sipName_customEvent, NULL);

    return NULL;
}


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

    {
        char * a0;
        sipKParts_PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_PartManager, &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_PartManager, sipName_connectNotify, NULL);

    return NULL;
}


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

    {
        char * a0;
        sipKParts_PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_PartManager, &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_PartManager, sipName_disconnectNotify, NULL);

    return NULL;
}


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

    {
        KParts::PartManager::SelectionPolicy a0;
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KParts_PartManager, &sipCpp, sipType_KParts_PartManager_SelectionPolicy, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSelectionPolicy(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_PartManager, sipName_setSelectionPolicy, NULL);

    return NULL;
}


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

    {
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_PartManager, &sipCpp))
        {
            KParts::PartManager::SelectionPolicy sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->selectionPolicy();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KParts_PartManager_SelectionPolicy);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KParts_PartManager, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAllowNestedParts(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_PartManager, sipName_setAllowNestedParts, NULL);

    return NULL;
}


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

    {
        KParts::PartManager *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->allowNestedParts();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KParts_PartManager, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIgnoreScrollBars(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_PartManager, sipName_setIgnoreScrollBars, NULL);

    return NULL;
}


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

    {
        KParts::PartManager *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->ignoreScrollBars();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        short a0;
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bh", &sipSelf, sipType_KParts_PartManager, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setActivationButtonMask(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_PartManager, sipName_setActivationButtonMask, NULL);

    return NULL;
}


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

    {
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_PartManager, &sipCpp))
        {
            short sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->activationButtonMask();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::PartManager::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_PartManager, sipName_eventFilter, NULL);

    return NULL;
}


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

    {
        KParts::Part * a0;
        bool a1 = 1;
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8|b", &sipSelf, sipType_KParts_PartManager, &sipCpp, sipType_KParts_Part, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KParts::PartManager::addPart(a0,a1) : sipCpp->addPart(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_PartManager, sipName_addPart, NULL);

    return NULL;
}


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

    {
        KParts::Part * a0;
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_PartManager, &sipCpp, sipType_KParts_Part, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KParts::PartManager::removePart(a0) : sipCpp->removePart(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_PartManager, sipName_removePart, NULL);

    return NULL;
}


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

    {
        KParts::Part * a0;
        KParts::Part * a1;
        bool a2 = 1;
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J8|b", &sipSelf, sipType_KParts_PartManager, &sipCpp, sipType_KParts_Part, &a0, sipType_KParts_Part, &a1, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KParts::PartManager::replacePart(a0,a1,a2) : sipCpp->replacePart(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_PartManager, sipName_replacePart, NULL);

    return NULL;
}


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

    {
        KParts::Part * a0;
        QWidget * a1 = 0;
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8|J8", &sipSelf, sipType_KParts_PartManager, &sipCpp, sipType_KParts_Part, &a0, sipType_QWidget, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KParts::PartManager::setActivePart(a0,a1) : sipCpp->setActivePart(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_PartManager, sipName_setActivePart, NULL);

    return NULL;
}


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

    {
        KParts::PartManager *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::PartManager::activePart() : sipCpp->activePart());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KParts::PartManager *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::PartManager::activeWidget() : sipCpp->activeWidget());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KParts::Part * a0;
        QWidget * a1 = 0;
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8|J8", &sipSelf, sipType_KParts_PartManager, &sipCpp, sipType_KParts_Part, &a0, sipType_QWidget, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KParts::PartManager::setSelectedPart(a0,a1) : sipCpp->setSelectedPart(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_PartManager, sipName_setSelectedPart, NULL);

    return NULL;
}


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

    {
        KParts::PartManager *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::PartManager::selectedPart() : sipCpp->selectedPart());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KParts::PartManager *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::PartManager::selectedWidget() : sipCpp->selectedWidget());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_PartManager, &sipCpp))
        {
            QList<KParts::Part *> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KParts::Part *>(sipCpp->parts());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QWidget * a0;
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_PartManager, &sipCpp, sipType_QWidget, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addManagedTopLevelWidget(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_PartManager, sipName_addManagedTopLevelWidget, NULL);

    return NULL;
}


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

    {
        const QWidget * a0;
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_PartManager, &sipCpp, sipType_QWidget, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeManagedTopLevelWidget(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_PartManager, sipName_removeManagedTopLevelWidget, NULL);

    return NULL;
}


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

    {
        KParts::PartManager *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->reason();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KComponentData * a0;
        sipKParts_PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KParts_PartManager, &sipCpp, sipType_KComponentData, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setActiveComponent(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_PartManager, sipName_setActiveComponent, NULL);

    return NULL;
}


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

    {
        sipKParts_PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_PartManager, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_slotObjectDestroyed();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_PartManager, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_slotWidgetDestroyed();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_PartManager, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_slotManagedTopLevelWidgetDestroyed();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_PartManager)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QWidget * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QWidget * a0;
        QObject * a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8JH", sipType_QWidget, &a0, sipType_QObject, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKParts_PartManager(a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KParts_PartManager[] = {
    {SIP_MLNAME_CAST(sipName_activationButtonMask), meth_KParts_PartManager_activationButtonMask, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_activePart), meth_KParts_PartManager_activePart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_activeWidget), meth_KParts_PartManager_activeWidget, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addManagedTopLevelWidget), meth_KParts_PartManager_addManagedTopLevelWidget, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addPart), meth_KParts_PartManager_addPart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allowNestedParts), meth_KParts_PartManager_allowNestedParts, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KParts_PartManager_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KParts_PartManager_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KParts_PartManager_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KParts_PartManager_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_eventFilter), meth_KParts_PartManager_eventFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ignoreScrollBars), meth_KParts_PartManager_ignoreScrollBars, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parts), meth_KParts_PartManager_parts, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_reason), meth_KParts_PartManager_reason, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KParts_PartManager_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeManagedTopLevelWidget), meth_KParts_PartManager_removeManagedTopLevelWidget, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removePart), meth_KParts_PartManager_removePart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_replacePart), meth_KParts_PartManager_replacePart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedPart), meth_KParts_PartManager_selectedPart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedWidget), meth_KParts_PartManager_selectedWidget, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectionPolicy), meth_KParts_PartManager_selectionPolicy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setActivationButtonMask), meth_KParts_PartManager_setActivationButtonMask, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setActiveComponent), meth_KParts_PartManager_setActiveComponent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setActivePart), meth_KParts_PartManager_setActivePart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAllowNestedParts), meth_KParts_PartManager_setAllowNestedParts, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIgnoreScrollBars), meth_KParts_PartManager_setIgnoreScrollBars, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSelectedPart), meth_KParts_PartManager_setSelectedPart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSelectionPolicy), meth_KParts_PartManager_setSelectionPolicy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotManagedTopLevelWidgetDestroyed), meth_KParts_PartManager_slotManagedTopLevelWidgetDestroyed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotObjectDestroyed), meth_KParts_PartManager_slotObjectDestroyed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotWidgetDestroyed), meth_KParts_PartManager_slotWidgetDestroyed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KParts_PartManager_timerEvent, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KParts_PartManager[] = {
    {sipName_Direct, KParts::PartManager::Direct, 30},
    {sipName_NoReason, KParts::PartManager::NoReason, 29},
    {sipName_ReasonLeftClick, KParts::PartManager::ReasonLeftClick, 29},
    {sipName_ReasonMidClick, KParts::PartManager::ReasonMidClick, 29},
    {sipName_ReasonRightClick, KParts::PartManager::ReasonRightClick, 29},
    {sipName_TriState, KParts::PartManager::TriState, 30},
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KParts_PartManager[] = {
    {"activePartChanged(KParts::Part *)", 0, 0},
    {"partRemoved(KParts::Part *)", 0, 0},
    {"partAdded(KParts::Part *)", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_PartManager = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__PartManager,
        {0}
    },
    {
        sipNameNr_PartManager,
        {0, 255, 0},
        32, methods_KParts_PartManager,
        6, enummembers_KParts_PartManager,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_PartManager,
    0,
    init_KParts_PartManager,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_PartManager,
    0,
    0,
    0,
    release_KParts_PartManager,
    cast_KParts_PartManager,
    0,
    0,
    0
},
    &KParts::PartManager::staticMetaObject,
    0,
    pyqt4_signals_KParts_PartManager
};

#line 191 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 1593 "sipkpartspart2.cpp"

#line 40 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1597 "sipkpartspart2.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 1600 "sipkpartspart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1603 "sipkpartspart2.cpp"
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/event.sip"
#include <kparts/event.h>
#line 1606 "sipkpartspart2.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 1609 "sipkpartspart2.cpp"
#line 43 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1612 "sipkpartspart2.cpp"
#line 113 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 1615 "sipkpartspart2.cpp"
#line 122 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 1618 "sipkpartspart2.cpp"
#line 41 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 1621 "sipkpartspart2.cpp"
#line 127 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/event.sip"
#include <kparts/event.h>
#line 1624 "sipkpartspart2.cpp"
#line 103 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/event.sip"
#include <kparts/event.h>
#line 1627 "sipkpartspart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1630 "sipkpartspart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kdeui/kiconloader.sip"
#include <kiconloader.h>
#line 1633 "sipkpartspart2.cpp"
#line 66 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 1636 "sipkpartspart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 1639 "sipkpartspart2.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/partmanager.sip"
#include <kparts/partmanager.h>
#line 1642 "sipkpartspart2.cpp"
#line 318 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1645 "sipkpartspart2.cpp"
#line 305 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1648 "sipkpartspart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1651 "sipkpartspart2.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1654 "sipkpartspart2.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1657 "sipkpartspart2.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1660 "sipkpartspart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1663 "sipkpartspart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1666 "sipkpartspart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1669 "sipkpartspart2.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 1672 "sipkpartspart2.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 1675 "sipkpartspart2.cpp"
#line 216 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 1678 "sipkpartspart2.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 1681 "sipkpartspart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1684 "sipkpartspart2.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1687 "sipkpartspart2.cpp"
#line 37 "/usr/local/share/py-sip/QtGui/qaction.sip"
#include <qaction.h>
#line 1690 "sipkpartspart2.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 1693 "sipkpartspart2.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1696 "sipkpartspart2.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 1699 "sipkpartspart2.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 1702 "sipkpartspart2.cpp"
#line 340 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 1705 "sipkpartspart2.cpp"


class sipKParts_ReadWritePart : public KParts::ReadWritePart
{
public:
    sipKParts_ReadWritePart(QObject *);
    virtual ~sipKParts_ReadWritePart();

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

    /* Expose this protected enum. */
    enum sipPluginLoadingMode {
        DoNotLoadPlugins = KParts::PartBase::DoNotLoadPlugins,
        LoadPlugins = KParts::PartBase::LoadPlugins,
        LoadPluginsIfEnabled = KParts::PartBase::LoadPluginsIfEnabled
    };

    /*
     * 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);
    void sipProtectVirt_setComponentData(bool,const KComponentData&);
    void sipProtectVirt_setComponentData(bool,const KComponentData&,bool);
    void sipProtect_setPluginInterfaceVersion(int);
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    void sipProtectVirt_setWidget(bool,QWidget *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_partActivateEvent(bool,KParts::PartActivateEvent *);
    void sipProtectVirt_partSelectEvent(bool,KParts::PartSelectEvent *);
    QWidget * sipProtect_hostContainer(const QString&);
    void sipProtect_loadPlugins();
    void sipProtect_slotWidgetDestroyed();
    bool sipProtect_openFile();
    void sipProtect_abortLoad();
    void sipProtectVirt_guiActivateEvent(bool,KParts::GUIActivateEvent *);
    bool sipProtect_isLocalFileTemporary() const;
    void sipProtect_setLocalFileTemporary(bool);
    void sipProtect_setUrl(const KUrl&);
    QString sipProtect_localFilePath() const;
    void sipProtect_setLocalFilePath(const QString&);
    bool sipProtect_saveFile();
    bool sipProtectVirt_saveToUrl(bool);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void setReadWrite(bool);
    bool queryClose();
    bool closeUrl();
    bool closeUrl(bool);
    bool saveAs(const KUrl&);
    void setModified(bool);
    bool save();
    bool saveFile();
    bool saveToUrl();
    bool openUrl(const KUrl&);
    bool openFile();
    void guiActivateEvent(KParts::GUIActivateEvent *);
    void embed(QWidget *);
    QWidget * widget();
    void setManager(KParts::PartManager *);
    KParts::Part * hitTest(QWidget *,const QPoint&);
    void setSelectable(bool);
    void setWidget(QWidget *);
    void customEvent(QEvent *);
    void partActivateEvent(KParts::PartActivateEvent *);
    void partSelectEvent(KParts::PartSelectEvent *);
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);
    void setComponentData(const KComponentData&);
    void setComponentData(const KComponentData&,bool);
    QAction * action(const QDomElement&) const;
    KActionCollection * actionCollection() const;
    KComponentData componentData() const;
    QDomDocument domDocument() const;
    QString xmlFile() const;
    QString localXMLFile() 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_ReadWritePart(const sipKParts_ReadWritePart &);
    sipKParts_ReadWritePart &operator = (const sipKParts_ReadWritePart &);

    char sipPyMethods[40];
};

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

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

const QMetaObject *sipKParts_ReadWritePart::metaObject() const
{
    return sip_kparts_qt_metaobject(sipPySelf,sipType_KParts_ReadWritePart);
}

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

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

    return _id;
}

void *sipKParts_ReadWritePart::qt_metacast(const char *_clname)
{
    return (sip_kparts_qt_metacast && sip_kparts_qt_metacast(sipPySelf,sipType_KParts_ReadWritePart,_clname)) ? this : KParts::ReadWritePart::qt_metacast(_clname);
}

void sipKParts_ReadWritePart::setReadWrite(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::ReadWritePart::setReadWrite(a0);
        return;
    }

    typedef void (*sipVH_QtNetwork_1)(sip_gilstate_t,PyObject *,bool);

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

bool sipKParts_ReadWritePart::queryClose()
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KParts::ReadWritePart::queryClose();

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

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

bool sipKParts_ReadWritePart::closeUrl()
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KParts::ReadWritePart::closeUrl();

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

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

bool sipKParts_ReadWritePart::closeUrl(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KParts::ReadWritePart::closeUrl(a0);

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

    return ((sipVH_QtGui_11)(sipModuleAPI_kparts_QtGui->em_virthandlers[11]))(sipGILState,meth,a0);
}

bool sipKParts_ReadWritePart::saveAs(const KUrl& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KParts::ReadWritePart::saveAs(a0);

    extern bool sipVH_kparts_5(sip_gilstate_t,PyObject *,const KUrl&);

    return sipVH_kparts_5(sipGILState,meth,a0);
}

void sipKParts_ReadWritePart::setModified(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::ReadWritePart::setModified(a0);
        return;
    }

    typedef void (*sipVH_QtNetwork_1)(sip_gilstate_t,PyObject *,bool);

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

bool sipKParts_ReadWritePart::save()
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KParts::ReadWritePart::save();

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

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

bool sipKParts_ReadWritePart::saveFile()
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,sipName_ReadWritePart,sipName_saveFile);

    if (!meth)
        return 0;

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

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

bool sipKParts_ReadWritePart::saveToUrl()
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KParts::ReadWritePart::saveToUrl();

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

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

bool sipKParts_ReadWritePart::openUrl(const KUrl& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KParts::ReadOnlyPart::openUrl(a0);

    extern bool sipVH_kparts_5(sip_gilstate_t,PyObject *,const KUrl&);

    return sipVH_kparts_5(sipGILState,meth,a0);
}

bool sipKParts_ReadWritePart::openFile()
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,sipName_ReadWritePart,sipName_openFile);

    if (!meth)
        return 0;

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

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

void sipKParts_ReadWritePart::guiActivateEvent(KParts::GUIActivateEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_guiActivateEvent);

    if (!meth)
    {
        KParts::ReadOnlyPart::guiActivateEvent(a0);
        return;
    }

    extern void sipVH_kparts_6(sip_gilstate_t,PyObject *,KParts::GUIActivateEvent *);

    sipVH_kparts_6(sipGILState,meth,a0);
}

void sipKParts_ReadWritePart::embed(QWidget *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_embed);

    if (!meth)
    {
        KParts::Part::embed(a0);
        return;
    }

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t,PyObject *,QWidget *);

    ((sipVH_QtGui_7)(sipModuleAPI_kparts_QtGui->em_virthandlers[7]))(sipGILState,meth,a0);
}

QWidget * sipKParts_ReadWritePart::widget()
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_widget);

    if (!meth)
        return KParts::Part::widget();

    typedef QWidget * (*sipVH_QtGui_106)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtGui_106)(sipModuleAPI_kparts_QtGui->em_virthandlers[106]))(sipGILState,meth);
}

void sipKParts_ReadWritePart::setManager(KParts::PartManager *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::Part::setManager(a0);
        return;
    }

    extern void sipVH_kparts_10(sip_gilstate_t,PyObject *,KParts::PartManager *);

    sipVH_kparts_10(sipGILState,meth,a0);
}

KParts::Part * sipKParts_ReadWritePart::hitTest(QWidget *a0,const QPoint& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KParts::Part::hitTest(a0,a1);

    extern KParts::Part * sipVH_kparts_9(sip_gilstate_t,PyObject *,QWidget *,const QPoint&);

    return sipVH_kparts_9(sipGILState,meth,a0,a1);
}

void sipKParts_ReadWritePart::setSelectable(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::Part::setSelectable(a0);
        return;
    }

    typedef void (*sipVH_QtNetwork_1)(sip_gilstate_t,PyObject *,bool);

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

void sipKParts_ReadWritePart::setWidget(QWidget *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::Part::setWidget(a0);
        return;
    }

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t,PyObject *,QWidget *);

    ((sipVH_QtGui_7)(sipModuleAPI_kparts_QtGui->em_virthandlers[7]))(sipGILState,meth,a0);
}

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

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

    if (!meth)
    {
        KParts::Part::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_ReadWritePart::partActivateEvent(KParts::PartActivateEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_partActivateEvent);

    if (!meth)
    {
        KParts::Part::partActivateEvent(a0);
        return;
    }

    extern void sipVH_kparts_8(sip_gilstate_t,PyObject *,KParts::PartActivateEvent *);

    sipVH_kparts_8(sipGILState,meth,a0);
}

void sipKParts_ReadWritePart::partSelectEvent(KParts::PartSelectEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_partSelectEvent);

    if (!meth)
    {
        KParts::Part::partSelectEvent(a0);
        return;
    }

    extern void sipVH_kparts_7(sip_gilstate_t,PyObject *,KParts::PartSelectEvent *);

    sipVH_kparts_7(sipGILState,meth,a0);
}

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

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],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_ReadWritePart::eventFilter(QObject *a0,QEvent *a1)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],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_ReadWritePart::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],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_ReadWritePart::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],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_ReadWritePart::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],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_ReadWritePart::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],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);
}

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

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

    if (!meth)
    {
        KParts::PartBase::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);
}

void sipKParts_ReadWritePart::setComponentData(const KComponentData& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::PartBase::setComponentData(a0,a1);
        return;
    }

    extern void sipVH_kparts_11(sip_gilstate_t,PyObject *,const KComponentData&,bool);

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

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

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[29]),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_ReadWritePart::actionCollection() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[30]),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_ReadWritePart::componentData() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[31]),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_ReadWritePart::domDocument() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[32]),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);
}

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

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

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

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

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

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

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

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

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

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

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

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],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_ReadWritePart::setLocalXMLFile(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[36],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_ReadWritePart::setXML(const QString& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],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_ReadWritePart::setDOMDocument(const QDomDocument& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[38],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_ReadWritePart::stateChanged(const QString& a0,KXMLGUIClient::ReverseStateChange a1)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[39],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_ReadWritePart::sipProtectVirt_setXMLFile(bool sipSelfWasArg,const QString& a0,bool a1,bool a2)
{
    (sipSelfWasArg ? KXMLGUIClient::setXMLFile(a0,a1,a2) : setXMLFile(a0,a1,a2));
}

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

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

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

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

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

void sipKParts_ReadWritePart::sipProtectVirt_setComponentData(bool sipSelfWasArg,const KComponentData& a0,bool a1)
{
    (sipSelfWasArg ? KParts::PartBase::setComponentData(a0,a1) : setComponentData(a0,a1));
}

void sipKParts_ReadWritePart::sipProtect_setPluginInterfaceVersion(int a0)
{
    KParts::PartBase::setPluginInterfaceVersion(a0);
}

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

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

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

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

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

void sipKParts_ReadWritePart::sipProtectVirt_setWidget(bool sipSelfWasArg,QWidget *a0)
{
    (sipSelfWasArg ? KParts::Part::setWidget(a0) : setWidget(a0));
}

void sipKParts_ReadWritePart::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? KParts::Part::customEvent(a0) : customEvent(a0));
}

void sipKParts_ReadWritePart::sipProtectVirt_partActivateEvent(bool sipSelfWasArg,KParts::PartActivateEvent *a0)
{
    (sipSelfWasArg ? KParts::Part::partActivateEvent(a0) : partActivateEvent(a0));
}

void sipKParts_ReadWritePart::sipProtectVirt_partSelectEvent(bool sipSelfWasArg,KParts::PartSelectEvent *a0)
{
    (sipSelfWasArg ? KParts::Part::partSelectEvent(a0) : partSelectEvent(a0));
}

QWidget * sipKParts_ReadWritePart::sipProtect_hostContainer(const QString& a0)
{
    return KParts::Part::hostContainer(a0);
}

void sipKParts_ReadWritePart::sipProtect_loadPlugins()
{
    KParts::Part::loadPlugins();
}

void sipKParts_ReadWritePart::sipProtect_slotWidgetDestroyed()
{
    KParts::Part::slotWidgetDestroyed();
}

bool sipKParts_ReadWritePart::sipProtect_openFile()
{
    return openFile();
}

void sipKParts_ReadWritePart::sipProtect_abortLoad()
{
    KParts::ReadOnlyPart::abortLoad();
}

void sipKParts_ReadWritePart::sipProtectVirt_guiActivateEvent(bool sipSelfWasArg,KParts::GUIActivateEvent *a0)
{
    (sipSelfWasArg ? KParts::ReadOnlyPart::guiActivateEvent(a0) : guiActivateEvent(a0));
}

bool sipKParts_ReadWritePart::sipProtect_isLocalFileTemporary() const
{
    return KParts::ReadOnlyPart::isLocalFileTemporary();
}

void sipKParts_ReadWritePart::sipProtect_setLocalFileTemporary(bool a0)
{
    KParts::ReadOnlyPart::setLocalFileTemporary(a0);
}

void sipKParts_ReadWritePart::sipProtect_setUrl(const KUrl& a0)
{
    KParts::ReadOnlyPart::setUrl(a0);
}

QString sipKParts_ReadWritePart::sipProtect_localFilePath() const
{
    return KParts::ReadOnlyPart::localFilePath();
}

void sipKParts_ReadWritePart::sipProtect_setLocalFilePath(const QString& a0)
{
    KParts::ReadOnlyPart::setLocalFilePath(a0);
}

bool sipKParts_ReadWritePart::sipProtect_saveFile()
{
    return saveFile();
}

bool sipKParts_ReadWritePart::sipProtectVirt_saveToUrl(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KParts::ReadWritePart::saveToUrl() : saveToUrl());
}


extern "C" {static PyObject *meth_KParts_ReadWritePart_setXMLFile(PyObject *, PyObject *);}
static PyObject *meth_KParts_ReadWritePart_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_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|bb", &sipSelf, sipType_KParts_ReadWritePart, &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_ReadWritePart, sipName_setXMLFile, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KParts_ReadWritePart, &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_ReadWritePart, sipName_setLocalXMLFile, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|b", &sipSelf, sipType_KParts_ReadWritePart, &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_ReadWritePart, sipName_setXML, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|b", &sipSelf, sipType_KParts_ReadWritePart, &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_ReadWritePart, sipName_setDOMDocument, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_ReadWritePart_stateChanged(PyObject *, PyObject *);}
static PyObject *meth_KParts_ReadWritePart_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_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KParts_ReadWritePart, &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_ReadWritePart, sipName_stateChanged, NULL);

    return NULL;
}


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

    {
        const KComponentData * a0;
        sipKParts_ReadWritePart *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const KComponentData * a0;
        bool a1;
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9b", &sipSelf, sipType_KParts_ReadWritePart, &sipCpp, sipType_KComponentData, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setComponentData(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_ReadWritePart, sipName_setComponentData, NULL);

    return NULL;
}


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

    {
        int a0;
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KParts_ReadWritePart, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPluginInterfaceVersion(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_ReadWritePart, sipName_setPluginInterfaceVersion, NULL);

    return NULL;
}


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

    {
        char * a0;
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_ReadWritePart, &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 2913 "sipkpartspart2.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_ReadWritePart, &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_ReadWritePart, sipName_timerEvent, NULL);

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_ReadWritePart, &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_ReadWritePart, sipName_childEvent, NULL);

    return NULL;
}


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

    {
        char * a0;
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_ReadWritePart, &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_ReadWritePart, sipName_connectNotify, NULL);

    return NULL;
}


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

    {
        char * a0;
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_ReadWritePart, &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_ReadWritePart, sipName_disconnectNotify, NULL);

    return NULL;
}


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

    {
        QWidget * a0;
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_ReadWritePart, &sipCpp, sipType_QWidget, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setWidget(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_ReadWritePart, sipName_setWidget, NULL);

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_ReadWritePart, &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_ReadWritePart, sipName_customEvent, NULL);

    return NULL;
}


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

    {
        KParts::PartActivateEvent * a0;
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_ReadWritePart, &sipCpp, sipType_KParts_PartActivateEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_partActivateEvent(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_ReadWritePart, sipName_partActivateEvent, NULL);

    return NULL;
}


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

    {
        KParts::PartSelectEvent * a0;
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_ReadWritePart, &sipCpp, sipType_KParts_PartSelectEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_partSelectEvent(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_ReadWritePart, sipName_partSelectEvent, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KParts_ReadWritePart, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QWidget *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_hostContainer(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_ReadWritePart, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_loadPlugins();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_ReadWritePart, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_slotWidgetDestroyed();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_ReadWritePart *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_ReadWritePart, sipName_openFile);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_openFile();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_ReadWritePart, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_abortLoad();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::GUIActivateEvent * a0;
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_ReadWritePart, &sipCpp, sipType_KParts_GUIActivateEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_guiActivateEvent(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_ReadWritePart, sipName_guiActivateEvent, NULL);

    return NULL;
}


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

    {
        sipKParts_ReadWritePart *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_isLocalFileTemporary();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KParts_ReadWritePart, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setLocalFileTemporary(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_ReadWritePart, sipName_setLocalFileTemporary, NULL);

    return NULL;
}


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

    {
        const KUrl * a0;
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KParts_ReadWritePart, &sipCpp, sipType_KUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setUrl(*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_ReadWritePart, sipName_setUrl, NULL);

    return NULL;
}


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

    {
        sipKParts_ReadWritePart *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KParts_ReadWritePart, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setLocalFilePath(*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_ReadWritePart, sipName_setLocalFilePath, NULL);

    return NULL;
}


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

    {
        KParts::ReadWritePart *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isReadWrite();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0 = 1;
        KParts::ReadWritePart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_KParts_ReadWritePart, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KParts::ReadWritePart::setReadWrite(a0) : sipCpp->setReadWrite(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_ReadWritePart, sipName_setReadWrite, NULL);

    return NULL;
}


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

    {
        KParts::ReadWritePart *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isModified();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KParts::ReadWritePart *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::ReadWritePart::queryClose() : sipCpp->queryClose());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KParts::ReadWritePart *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::ReadWritePart::closeUrl() : sipCpp->closeUrl());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        bool a0;
        KParts::ReadWritePart *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::ReadWritePart::closeUrl(a0) : sipCpp->closeUrl(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KUrl * a0;
        KParts::ReadWritePart *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::ReadWritePart::saveAs(*a0) : sipCpp->saveAs(*a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::ReadWritePart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KParts_ReadWritePart, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KParts::ReadWritePart::setModified(a0) : sipCpp->setModified(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        KParts::ReadWritePart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_ReadWritePart, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setModified();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::ReadWritePart *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::ReadWritePart::save() : sipCpp->save());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KParts::ReadWritePart *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->waitSaveComplete();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_ReadWritePart *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_ReadWritePart, sipName_saveFile);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_saveFile();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_ReadWritePart *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_saveToUrl(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_ReadWritePart)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KParts_ReadOnlyPart)->ctd_cast((KParts::ReadOnlyPart *)(KParts::ReadWritePart *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QObject * a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KParts_ReadWritePart[] = {{34, 255, 1}};


static PyMethodDef methods_KParts_ReadWritePart[] = {
    {SIP_MLNAME_CAST(sipName_abortLoad), meth_KParts_ReadWritePart_abortLoad, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KParts_ReadWritePart_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_closeUrl), meth_KParts_ReadWritePart_closeUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KParts_ReadWritePart_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KParts_ReadWritePart_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KParts_ReadWritePart_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_guiActivateEvent), meth_KParts_ReadWritePart_guiActivateEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hostContainer), meth_KParts_ReadWritePart_hostContainer, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isLocalFileTemporary), meth_KParts_ReadWritePart_isLocalFileTemporary, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isModified), meth_KParts_ReadWritePart_isModified, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isReadWrite), meth_KParts_ReadWritePart_isReadWrite, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_loadPlugins), meth_KParts_ReadWritePart_loadPlugins, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localFilePath), meth_KParts_ReadWritePart_localFilePath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_openFile), meth_KParts_ReadWritePart_openFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_partActivateEvent), meth_KParts_ReadWritePart_partActivateEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_partSelectEvent), meth_KParts_ReadWritePart_partSelectEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryClose), meth_KParts_ReadWritePart_queryClose, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KParts_ReadWritePart_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_save), meth_KParts_ReadWritePart_save, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_saveAs), meth_KParts_ReadWritePart_saveAs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_saveFile), meth_KParts_ReadWritePart_saveFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_saveToUrl), meth_KParts_ReadWritePart_saveToUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setComponentData), meth_KParts_ReadWritePart_setComponentData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDOMDocument), meth_KParts_ReadWritePart_setDOMDocument, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalFilePath), meth_KParts_ReadWritePart_setLocalFilePath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalFileTemporary), meth_KParts_ReadWritePart_setLocalFileTemporary, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalXMLFile), meth_KParts_ReadWritePart_setLocalXMLFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setModified), meth_KParts_ReadWritePart_setModified, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPluginInterfaceVersion), meth_KParts_ReadWritePart_setPluginInterfaceVersion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setReadWrite), meth_KParts_ReadWritePart_setReadWrite, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setUrl), meth_KParts_ReadWritePart_setUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setWidget), meth_KParts_ReadWritePart_setWidget, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setXML), meth_KParts_ReadWritePart_setXML, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setXMLFile), meth_KParts_ReadWritePart_setXMLFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotWidgetDestroyed), meth_KParts_ReadWritePart_slotWidgetDestroyed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stateChanged), meth_KParts_ReadWritePart_stateChanged, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KParts_ReadWritePart_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_waitSaveComplete), meth_KParts_ReadWritePart_waitSaveComplete, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_ReadWritePart = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__ReadWritePart,
        {0}
    },
    {
        sipNameNr_ReadWritePart,
        {0, 255, 0},
        38, methods_KParts_ReadWritePart,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_ReadWritePart,
    0,
    init_KParts_ReadWritePart,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_ReadWritePart,
    0,
    0,
    0,
    release_KParts_ReadWritePart,
    cast_KParts_ReadWritePart,
    0,
    0,
    0
},
    &KParts::ReadWritePart::staticMetaObject,
    0,
    0
};

#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 3965 "sipkpartspart2.cpp"

#line 40 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 3969 "sipkpartspart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3972 "sipkpartspart2.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 3975 "sipkpartspart2.cpp"
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/event.sip"
#include <kparts/event.h>
#line 3978 "sipkpartspart2.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 3981 "sipkpartspart2.cpp"
#line 43 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3984 "sipkpartspart2.cpp"
#line 113 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 3987 "sipkpartspart2.cpp"
#line 122 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 3990 "sipkpartspart2.cpp"
#line 41 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 3993 "sipkpartspart2.cpp"
#line 127 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/event.sip"
#include <kparts/event.h>
#line 3996 "sipkpartspart2.cpp"
#line 103 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/event.sip"
#include <kparts/event.h>
#line 3999 "sipkpartspart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4002 "sipkpartspart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kdeui/kiconloader.sip"
#include <kiconloader.h>
#line 4005 "sipkpartspart2.cpp"
#line 66 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 4008 "sipkpartspart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 4011 "sipkpartspart2.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/partmanager.sip"
#include <kparts/partmanager.h>
#line 4014 "sipkpartspart2.cpp"
#line 318 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4017 "sipkpartspart2.cpp"
#line 305 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4020 "sipkpartspart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4023 "sipkpartspart2.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4026 "sipkpartspart2.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4029 "sipkpartspart2.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4032 "sipkpartspart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 4035 "sipkpartspart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 4038 "sipkpartspart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4041 "sipkpartspart2.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 4044 "sipkpartspart2.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 4047 "sipkpartspart2.cpp"
#line 216 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 4050 "sipkpartspart2.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 4053 "sipkpartspart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 4056 "sipkpartspart2.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4059 "sipkpartspart2.cpp"
#line 37 "/usr/local/share/py-sip/QtGui/qaction.sip"
#include <qaction.h>
#line 4062 "sipkpartspart2.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 4065 "sipkpartspart2.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4068 "sipkpartspart2.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 4071 "sipkpartspart2.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 4074 "sipkpartspart2.cpp"
#line 340 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 4077 "sipkpartspart2.cpp"


class sipKParts_ReadOnlyPart : public KParts::ReadOnlyPart
{
public:
    sipKParts_ReadOnlyPart(QObject *);
    virtual ~sipKParts_ReadOnlyPart();

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

    /* Expose this protected enum. */
    enum sipPluginLoadingMode {
        DoNotLoadPlugins = KParts::PartBase::DoNotLoadPlugins,
        LoadPlugins = KParts::PartBase::LoadPlugins,
        LoadPluginsIfEnabled = KParts::PartBase::LoadPluginsIfEnabled
    };

    /*
     * 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);
    void sipProtectVirt_setComponentData(bool,const KComponentData&);
    void sipProtectVirt_setComponentData(bool,const KComponentData&,bool);
    void sipProtect_setPluginInterfaceVersion(int);
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    void sipProtectVirt_setWidget(bool,QWidget *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_partActivateEvent(bool,KParts::PartActivateEvent *);
    void sipProtectVirt_partSelectEvent(bool,KParts::PartSelectEvent *);
    QWidget * sipProtect_hostContainer(const QString&);
    void sipProtect_loadPlugins();
    void sipProtect_slotWidgetDestroyed();
    bool sipProtect_openFile();
    void sipProtect_abortLoad();
    void sipProtectVirt_guiActivateEvent(bool,KParts::GUIActivateEvent *);
    bool sipProtect_isLocalFileTemporary() const;
    void sipProtect_setLocalFileTemporary(bool);
    void sipProtect_setUrl(const KUrl&);
    QString sipProtect_localFilePath() const;
    void sipProtect_setLocalFilePath(const QString&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool openUrl(const KUrl&);
    bool closeUrl();
    bool openFile();
    void guiActivateEvent(KParts::GUIActivateEvent *);
    void embed(QWidget *);
    QWidget * widget();
    void setManager(KParts::PartManager *);
    KParts::Part * hitTest(QWidget *,const QPoint&);
    void setSelectable(bool);
    void setWidget(QWidget *);
    void customEvent(QEvent *);
    void partActivateEvent(KParts::PartActivateEvent *);
    void partSelectEvent(KParts::PartSelectEvent *);
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);
    void setComponentData(const KComponentData&);
    void setComponentData(const KComponentData&,bool);
    QAction * action(const QDomElement&) const;
    KActionCollection * actionCollection() const;
    KComponentData componentData() const;
    QDomDocument domDocument() const;
    QString xmlFile() const;
    QString localXMLFile() 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_ReadOnlyPart(const sipKParts_ReadOnlyPart &);
    sipKParts_ReadOnlyPart &operator = (const sipKParts_ReadOnlyPart &);

    char sipPyMethods[32];
};

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

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

const QMetaObject *sipKParts_ReadOnlyPart::metaObject() const
{
    return sip_kparts_qt_metaobject(sipPySelf,sipType_KParts_ReadOnlyPart);
}

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

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

    return _id;
}

void *sipKParts_ReadOnlyPart::qt_metacast(const char *_clname)
{
    return (sip_kparts_qt_metacast && sip_kparts_qt_metacast(sipPySelf,sipType_KParts_ReadOnlyPart,_clname)) ? this : KParts::ReadOnlyPart::qt_metacast(_clname);
}

bool sipKParts_ReadOnlyPart::openUrl(const KUrl& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KParts::ReadOnlyPart::openUrl(a0);

    extern bool sipVH_kparts_5(sip_gilstate_t,PyObject *,const KUrl&);

    return sipVH_kparts_5(sipGILState,meth,a0);
}

bool sipKParts_ReadOnlyPart::closeUrl()
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KParts::ReadOnlyPart::closeUrl();

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

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

bool sipKParts_ReadOnlyPart::openFile()
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_ReadOnlyPart,sipName_openFile);

    if (!meth)
        return 0;

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

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

void sipKParts_ReadOnlyPart::guiActivateEvent(KParts::GUIActivateEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::ReadOnlyPart::guiActivateEvent(a0);
        return;
    }

    extern void sipVH_kparts_6(sip_gilstate_t,PyObject *,KParts::GUIActivateEvent *);

    sipVH_kparts_6(sipGILState,meth,a0);
}

void sipKParts_ReadOnlyPart::embed(QWidget *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::Part::embed(a0);
        return;
    }

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t,PyObject *,QWidget *);

    ((sipVH_QtGui_7)(sipModuleAPI_kparts_QtGui->em_virthandlers[7]))(sipGILState,meth,a0);
}

QWidget * sipKParts_ReadOnlyPart::widget()
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KParts::Part::widget();

    typedef QWidget * (*sipVH_QtGui_106)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtGui_106)(sipModuleAPI_kparts_QtGui->em_virthandlers[106]))(sipGILState,meth);
}

void sipKParts_ReadOnlyPart::setManager(KParts::PartManager *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::Part::setManager(a0);
        return;
    }

    extern void sipVH_kparts_10(sip_gilstate_t,PyObject *,KParts::PartManager *);

    sipVH_kparts_10(sipGILState,meth,a0);
}

KParts::Part * sipKParts_ReadOnlyPart::hitTest(QWidget *a0,const QPoint& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KParts::Part::hitTest(a0,a1);

    extern KParts::Part * sipVH_kparts_9(sip_gilstate_t,PyObject *,QWidget *,const QPoint&);

    return sipVH_kparts_9(sipGILState,meth,a0,a1);
}

void sipKParts_ReadOnlyPart::setSelectable(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::Part::setSelectable(a0);
        return;
    }

    typedef void (*sipVH_QtNetwork_1)(sip_gilstate_t,PyObject *,bool);

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

void sipKParts_ReadOnlyPart::setWidget(QWidget *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::Part::setWidget(a0);
        return;
    }

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t,PyObject *,QWidget *);

    ((sipVH_QtGui_7)(sipModuleAPI_kparts_QtGui->em_virthandlers[7]))(sipGILState,meth,a0);
}

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

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

    if (!meth)
    {
        KParts::Part::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_ReadOnlyPart::partActivateEvent(KParts::PartActivateEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_partActivateEvent);

    if (!meth)
    {
        KParts::Part::partActivateEvent(a0);
        return;
    }

    extern void sipVH_kparts_8(sip_gilstate_t,PyObject *,KParts::PartActivateEvent *);

    sipVH_kparts_8(sipGILState,meth,a0);
}

void sipKParts_ReadOnlyPart::partSelectEvent(KParts::PartSelectEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_partSelectEvent);

    if (!meth)
    {
        KParts::Part::partSelectEvent(a0);
        return;
    }

    extern void sipVH_kparts_7(sip_gilstate_t,PyObject *,KParts::PartSelectEvent *);

    sipVH_kparts_7(sipGILState,meth,a0);
}

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

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],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_ReadOnlyPart::eventFilter(QObject *a0,QEvent *a1)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],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_ReadOnlyPart::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],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_ReadOnlyPart::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],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_ReadOnlyPart::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],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_ReadOnlyPart::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],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);
}

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

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

    if (!meth)
    {
        KParts::PartBase::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);
}

void sipKParts_ReadOnlyPart::setComponentData(const KComponentData& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::PartBase::setComponentData(a0,a1);
        return;
    }

    extern void sipVH_kparts_11(sip_gilstate_t,PyObject *,const KComponentData&,bool);

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

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

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[21]),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_ReadOnlyPart::actionCollection() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[22]),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_ReadOnlyPart::componentData() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[23]),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_ReadOnlyPart::domDocument() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[24]),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);
}

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

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

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

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

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

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

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

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

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

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

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

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],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_ReadOnlyPart::setLocalXMLFile(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],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_ReadOnlyPart::setXML(const QString& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],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_ReadOnlyPart::setDOMDocument(const QDomDocument& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],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_ReadOnlyPart::stateChanged(const QString& a0,KXMLGUIClient::ReverseStateChange a1)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],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_ReadOnlyPart::sipProtectVirt_setXMLFile(bool sipSelfWasArg,const QString& a0,bool a1,bool a2)
{
    (sipSelfWasArg ? KXMLGUIClient::setXMLFile(a0,a1,a2) : setXMLFile(a0,a1,a2));
}

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

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

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

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

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

void sipKParts_ReadOnlyPart::sipProtectVirt_setComponentData(bool sipSelfWasArg,const KComponentData& a0,bool a1)
{
    (sipSelfWasArg ? KParts::PartBase::setComponentData(a0,a1) : setComponentData(a0,a1));
}

void sipKParts_ReadOnlyPart::sipProtect_setPluginInterfaceVersion(int a0)
{
    KParts::PartBase::setPluginInterfaceVersion(a0);
}

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

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

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

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

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

void sipKParts_ReadOnlyPart::sipProtectVirt_setWidget(bool sipSelfWasArg,QWidget *a0)
{
    (sipSelfWasArg ? KParts::Part::setWidget(a0) : setWidget(a0));
}

void sipKParts_ReadOnlyPart::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? KParts::Part::customEvent(a0) : customEvent(a0));
}

void sipKParts_ReadOnlyPart::sipProtectVirt_partActivateEvent(bool sipSelfWasArg,KParts::PartActivateEvent *a0)
{
    (sipSelfWasArg ? KParts::Part::partActivateEvent(a0) : partActivateEvent(a0));
}

void sipKParts_ReadOnlyPart::sipProtectVirt_partSelectEvent(bool sipSelfWasArg,KParts::PartSelectEvent *a0)
{
    (sipSelfWasArg ? KParts::Part::partSelectEvent(a0) : partSelectEvent(a0));
}

QWidget * sipKParts_ReadOnlyPart::sipProtect_hostContainer(const QString& a0)
{
    return KParts::Part::hostContainer(a0);
}

void sipKParts_ReadOnlyPart::sipProtect_loadPlugins()
{
    KParts::Part::loadPlugins();
}

void sipKParts_ReadOnlyPart::sipProtect_slotWidgetDestroyed()
{
    KParts::Part::slotWidgetDestroyed();
}

bool sipKParts_ReadOnlyPart::sipProtect_openFile()
{
    return openFile();
}

void sipKParts_ReadOnlyPart::sipProtect_abortLoad()
{
    KParts::ReadOnlyPart::abortLoad();
}

void sipKParts_ReadOnlyPart::sipProtectVirt_guiActivateEvent(bool sipSelfWasArg,KParts::GUIActivateEvent *a0)
{
    (sipSelfWasArg ? KParts::ReadOnlyPart::guiActivateEvent(a0) : guiActivateEvent(a0));
}

bool sipKParts_ReadOnlyPart::sipProtect_isLocalFileTemporary() const
{
    return KParts::ReadOnlyPart::isLocalFileTemporary();
}

void sipKParts_ReadOnlyPart::sipProtect_setLocalFileTemporary(bool a0)
{
    KParts::ReadOnlyPart::setLocalFileTemporary(a0);
}

void sipKParts_ReadOnlyPart::sipProtect_setUrl(const KUrl& a0)
{
    KParts::ReadOnlyPart::setUrl(a0);
}

QString sipKParts_ReadOnlyPart::sipProtect_localFilePath() const
{
    return KParts::ReadOnlyPart::localFilePath();
}

void sipKParts_ReadOnlyPart::sipProtect_setLocalFilePath(const QString& a0)
{
    KParts::ReadOnlyPart::setLocalFilePath(a0);
}


extern "C" {static PyObject *meth_KParts_ReadOnlyPart_setXMLFile(PyObject *, PyObject *);}
static PyObject *meth_KParts_ReadOnlyPart_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_ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|bb", &sipSelf, sipType_KParts_ReadOnlyPart, &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_ReadOnlyPart, sipName_setXMLFile, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KParts_ReadOnlyPart, &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_ReadOnlyPart, sipName_setLocalXMLFile, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|b", &sipSelf, sipType_KParts_ReadOnlyPart, &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_ReadOnlyPart, sipName_setXML, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|b", &sipSelf, sipType_KParts_ReadOnlyPart, &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_ReadOnlyPart, sipName_setDOMDocument, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_ReadOnlyPart_stateChanged(PyObject *, PyObject *);}
static PyObject *meth_KParts_ReadOnlyPart_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_ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KParts_ReadOnlyPart, &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_ReadOnlyPart, sipName_stateChanged, NULL);

    return NULL;
}


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

    {
        const KComponentData * a0;
        sipKParts_ReadOnlyPart *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const KComponentData * a0;
        bool a1;
        sipKParts_ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9b", &sipSelf, sipType_KParts_ReadOnlyPart, &sipCpp, sipType_KComponentData, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setComponentData(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_ReadOnlyPart, sipName_setComponentData, NULL);

    return NULL;
}


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

    {
        int a0;
        sipKParts_ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KParts_ReadOnlyPart, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPluginInterfaceVersion(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_ReadOnlyPart, sipName_setPluginInterfaceVersion, NULL);

    return NULL;
}


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

    {
        char * a0;
        sipKParts_ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_ReadOnlyPart, &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 5139 "sipkpartspart2.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKParts_ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_ReadOnlyPart, &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_ReadOnlyPart, sipName_timerEvent, NULL);

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKParts_ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_ReadOnlyPart, &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_ReadOnlyPart, sipName_childEvent, NULL);

    return NULL;
}


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

    {
        char * a0;
        sipKParts_ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_ReadOnlyPart, &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_ReadOnlyPart, sipName_connectNotify, NULL);

    return NULL;
}


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

    {
        char * a0;
        sipKParts_ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_ReadOnlyPart, &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_ReadOnlyPart, sipName_disconnectNotify, NULL);

    return NULL;
}


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

    {
        QWidget * a0;
        sipKParts_ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_ReadOnlyPart, &sipCpp, sipType_QWidget, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setWidget(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_ReadOnlyPart, sipName_setWidget, NULL);

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_ReadOnlyPart, &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_ReadOnlyPart, sipName_customEvent, NULL);

    return NULL;
}


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

    {
        KParts::PartActivateEvent * a0;
        sipKParts_ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_ReadOnlyPart, &sipCpp, sipType_KParts_PartActivateEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_partActivateEvent(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_ReadOnlyPart, sipName_partActivateEvent, NULL);

    return NULL;
}


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

    {
        KParts::PartSelectEvent * a0;
        sipKParts_ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_ReadOnlyPart, &sipCpp, sipType_KParts_PartSelectEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_partSelectEvent(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_ReadOnlyPart, sipName_partSelectEvent, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KParts_ReadOnlyPart, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QWidget *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_hostContainer(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        sipKParts_ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_ReadOnlyPart, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_loadPlugins();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_ReadOnlyPart, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_slotWidgetDestroyed();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KParts_ReadOnlyPart, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProgressInfoEnabled(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_ReadOnlyPart, sipName_setProgressInfoEnabled, NULL);

    return NULL;
}


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

    {
        KParts::ReadOnlyPart *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isProgressInfoEnabled();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KParts_ReadOnlyPart, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->showProgressInfo(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_ReadOnlyPart, sipName_showProgressInfo, NULL);

    return NULL;
}


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

    {
        const KUrl * a0;
        KParts::ReadOnlyPart *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::ReadOnlyPart::openUrl(*a0) : sipCpp->openUrl(*a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KParts::ReadOnlyPart *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->url());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KParts::ReadOnlyPart *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::ReadOnlyPart::closeUrl() : sipCpp->closeUrl());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KParts::ReadOnlyPart *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->browserExtension();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KParts::OpenUrlArguments * a0;
        KParts::ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KParts_ReadOnlyPart, &sipCpp, sipType_KParts_OpenUrlArguments, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setArguments(*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_ReadOnlyPart, sipName_setArguments, NULL);

    return NULL;
}


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

    {
        KParts::ReadOnlyPart *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KParts::OpenUrlArguments(sipCpp->arguments());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const KUrl * a1;
        KParts::ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9", &sipSelf, sipType_KParts_ReadOnlyPart, &sipCpp, sipType_QString,&a0, &a0State, sipType_KUrl, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->openStream(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QByteArray * a0;
        int a0State = 0;
        KParts::ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KParts_ReadOnlyPart, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->writeStream(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KParts::ReadOnlyPart *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->closeStream();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_ReadOnlyPart *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_ReadOnlyPart, sipName_openFile);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_openFile();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_ReadOnlyPart, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_abortLoad();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::GUIActivateEvent * a0;
        sipKParts_ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_ReadOnlyPart, &sipCpp, sipType_KParts_GUIActivateEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_guiActivateEvent(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_ReadOnlyPart, sipName_guiActivateEvent, NULL);

    return NULL;
}


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

    {
        sipKParts_ReadOnlyPart *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_isLocalFileTemporary();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        sipKParts_ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KParts_ReadOnlyPart, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setLocalFileTemporary(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_ReadOnlyPart, sipName_setLocalFileTemporary, NULL);

    return NULL;
}


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

    {
        const KUrl * a0;
        sipKParts_ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KParts_ReadOnlyPart, &sipCpp, sipType_KUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setUrl(*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_ReadOnlyPart, sipName_setUrl, NULL);

    return NULL;
}


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

    {
        sipKParts_ReadOnlyPart *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KParts_ReadOnlyPart, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setLocalFilePath(*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_ReadOnlyPart, sipName_setLocalFilePath, NULL);

    return NULL;
}


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

    if (targetType == sipType_KParts_ReadOnlyPart)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KParts_Part)->ctd_cast((KParts::Part *)(KParts::ReadOnlyPart *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QObject * a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KParts_ReadOnlyPart[] = {{24, 255, 1}};


static PyMethodDef methods_KParts_ReadOnlyPart[] = {
    {SIP_MLNAME_CAST(sipName_abortLoad), meth_KParts_ReadOnlyPart_abortLoad, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_arguments), meth_KParts_ReadOnlyPart_arguments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_browserExtension), meth_KParts_ReadOnlyPart_browserExtension, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KParts_ReadOnlyPart_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_closeStream), meth_KParts_ReadOnlyPart_closeStream, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_closeUrl), meth_KParts_ReadOnlyPart_closeUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KParts_ReadOnlyPart_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KParts_ReadOnlyPart_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KParts_ReadOnlyPart_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_guiActivateEvent), meth_KParts_ReadOnlyPart_guiActivateEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hostContainer), meth_KParts_ReadOnlyPart_hostContainer, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isLocalFileTemporary), meth_KParts_ReadOnlyPart_isLocalFileTemporary, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isProgressInfoEnabled), meth_KParts_ReadOnlyPart_isProgressInfoEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_loadPlugins), meth_KParts_ReadOnlyPart_loadPlugins, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localFilePath), meth_KParts_ReadOnlyPart_localFilePath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_openFile), meth_KParts_ReadOnlyPart_openFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_openStream), meth_KParts_ReadOnlyPart_openStream, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_openUrl), meth_KParts_ReadOnlyPart_openUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_partActivateEvent), meth_KParts_ReadOnlyPart_partActivateEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_partSelectEvent), meth_KParts_ReadOnlyPart_partSelectEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KParts_ReadOnlyPart_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setArguments), meth_KParts_ReadOnlyPart_setArguments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setComponentData), meth_KParts_ReadOnlyPart_setComponentData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDOMDocument), meth_KParts_ReadOnlyPart_setDOMDocument, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalFilePath), meth_KParts_ReadOnlyPart_setLocalFilePath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalFileTemporary), meth_KParts_ReadOnlyPart_setLocalFileTemporary, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalXMLFile), meth_KParts_ReadOnlyPart_setLocalXMLFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPluginInterfaceVersion), meth_KParts_ReadOnlyPart_setPluginInterfaceVersion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProgressInfoEnabled), meth_KParts_ReadOnlyPart_setProgressInfoEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setUrl), meth_KParts_ReadOnlyPart_setUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setWidget), meth_KParts_ReadOnlyPart_setWidget, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setXML), meth_KParts_ReadOnlyPart_setXML, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setXMLFile), meth_KParts_ReadOnlyPart_setXMLFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showProgressInfo), meth_KParts_ReadOnlyPart_showProgressInfo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotWidgetDestroyed), meth_KParts_ReadOnlyPart_slotWidgetDestroyed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stateChanged), meth_KParts_ReadOnlyPart_stateChanged, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KParts_ReadOnlyPart_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_url), meth_KParts_ReadOnlyPart_url, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeStream), meth_KParts_ReadOnlyPart_writeStream, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KParts_ReadOnlyPart[] = {
    {"canceled(const QString&)", 0, 0},
    {"completed()", 0, 0},
    {"completed(bool)", 0, 0},
    {"started(KIO::Job *)", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_ReadOnlyPart = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__ReadOnlyPart,
        {0}
    },
    {
        sipNameNr_ReadOnlyPart,
        {0, 255, 0},
        39, methods_KParts_ReadOnlyPart,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_ReadOnlyPart,
    0,
    init_KParts_ReadOnlyPart,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_ReadOnlyPart,
    0,
    0,
    0,
    release_KParts_ReadOnlyPart,
    cast_KParts_ReadOnlyPart,
    0,
    0,
    0
},
    &KParts::ReadOnlyPart::staticMetaObject,
    0,
    pyqt4_signals_KParts_ReadOnlyPart
};

#line 113 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 6194 "sipkpartspart2.cpp"

#line 38 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 6198 "sipkpartspart2.cpp"
#line 83 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6201 "sipkpartspart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6204 "sipkpartspart2.cpp"


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

    {
        KParts::OpenUrlArguments *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->reload();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::OpenUrlArguments *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KParts_OpenUrlArguments, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setReload(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_OpenUrlArguments, sipName_setReload, NULL);

    return NULL;
}


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

    {
        KParts::OpenUrlArguments *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->xOffset();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KParts::OpenUrlArguments *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KParts_OpenUrlArguments, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setXOffset(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_OpenUrlArguments, sipName_setXOffset, NULL);

    return NULL;
}


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

    {
        KParts::OpenUrlArguments *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->yOffset();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KParts::OpenUrlArguments *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KParts_OpenUrlArguments, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setYOffset(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_OpenUrlArguments, sipName_setYOffset, NULL);

    return NULL;
}


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

    {
        KParts::OpenUrlArguments *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        KParts::OpenUrlArguments *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KParts_OpenUrlArguments, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMimeType(*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_OpenUrlArguments, sipName_setMimeType, NULL);

    return NULL;
}


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

    {
        KParts::OpenUrlArguments *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->actionRequestedByUser();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::OpenUrlArguments *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KParts_OpenUrlArguments, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setActionRequestedByUser(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_OpenUrlArguments, sipName_setActionRequestedByUser, NULL);

    return NULL;
}


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

    {
        KParts::OpenUrlArguments *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_OpenUrlArguments, &sipCpp))
        {
            QMap<QString,QString> *sipRes;

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

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

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

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KParts::OpenUrlArguments *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_KParts_OpenUrlArguments(SIP_SSIZE_T);}
static void *array_KParts_OpenUrlArguments(SIP_SSIZE_T sipNrElem)
{
    return new KParts::OpenUrlArguments[sipNrElem];
}


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


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


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

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

            return sipCpp;
        }
    }

    {
        const KParts::OpenUrlArguments * a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KParts_OpenUrlArguments[] = {
    {SIP_MLNAME_CAST(sipName_actionRequestedByUser), meth_KParts_OpenUrlArguments_actionRequestedByUser, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_metaData), meth_KParts_OpenUrlArguments_metaData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeType), meth_KParts_OpenUrlArguments_mimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_reload), meth_KParts_OpenUrlArguments_reload, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setActionRequestedByUser), meth_KParts_OpenUrlArguments_setActionRequestedByUser, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMimeType), meth_KParts_OpenUrlArguments_setMimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setReload), meth_KParts_OpenUrlArguments_setReload, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setXOffset), meth_KParts_OpenUrlArguments_setXOffset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setYOffset), meth_KParts_OpenUrlArguments_setYOffset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_xOffset), meth_KParts_OpenUrlArguments_xOffset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_yOffset), meth_KParts_OpenUrlArguments_yOffset, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_OpenUrlArguments = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KParts__OpenUrlArguments,
        {0}
    },
    {
        sipNameNr_OpenUrlArguments,
        {0, 255, 0},
        11, methods_KParts_OpenUrlArguments,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_KParts_OpenUrlArguments,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_OpenUrlArguments,
    assign_KParts_OpenUrlArguments,
    array_KParts_OpenUrlArguments,
    copy_KParts_OpenUrlArguments,
    release_KParts_OpenUrlArguments,
    cast_KParts_OpenUrlArguments,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 66 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 6660 "sipkpartspart2.cpp"

#line 40 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 6664 "sipkpartspart2.cpp"
#line 41 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 6667 "sipkpartspart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6670 "sipkpartspart2.cpp"
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/event.sip"
#include <kparts/event.h>
#line 6673 "sipkpartspart2.cpp"
#line 127 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/event.sip"
#include <kparts/event.h>
#line 6676 "sipkpartspart2.cpp"
#line 103 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/event.sip"
#include <kparts/event.h>
#line 6679 "sipkpartspart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6682 "sipkpartspart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kdeui/kiconloader.sip"
#include <kiconloader.h>
#line 6685 "sipkpartspart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 6688 "sipkpartspart2.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/partmanager.sip"
#include <kparts/partmanager.h>
#line 6691 "sipkpartspart2.cpp"
#line 318 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6694 "sipkpartspart2.cpp"
#line 305 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6697 "sipkpartspart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6700 "sipkpartspart2.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6703 "sipkpartspart2.cpp"
#line 43 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 6706 "sipkpartspart2.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 6709 "sipkpartspart2.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6712 "sipkpartspart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 6715 "sipkpartspart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 6718 "sipkpartspart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 6721 "sipkpartspart2.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 6724 "sipkpartspart2.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 6727 "sipkpartspart2.cpp"
#line 216 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 6730 "sipkpartspart2.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 6733 "sipkpartspart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 6736 "sipkpartspart2.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6739 "sipkpartspart2.cpp"
#line 37 "/usr/local/share/py-sip/QtGui/qaction.sip"
#include <qaction.h>
#line 6742 "sipkpartspart2.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 6745 "sipkpartspart2.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6748 "sipkpartspart2.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 6751 "sipkpartspart2.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 6754 "sipkpartspart2.cpp"
#line 340 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 6757 "sipkpartspart2.cpp"


class sipKParts_Part : public KParts::Part
{
public:
    sipKParts_Part(QObject *);
    virtual ~sipKParts_Part();

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

    /* Expose this protected enum. */
    enum sipPluginLoadingMode {
        DoNotLoadPlugins = KParts::PartBase::DoNotLoadPlugins,
        LoadPlugins = KParts::PartBase::LoadPlugins,
        LoadPluginsIfEnabled = KParts::PartBase::LoadPluginsIfEnabled
    };

    /*
     * 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);
    void sipProtectVirt_setComponentData(bool,const KComponentData&);
    void sipProtectVirt_setComponentData(bool,const KComponentData&,bool);
    void sipProtect_setPluginInterfaceVersion(int);
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    void sipProtectVirt_setWidget(bool,QWidget *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_partActivateEvent(bool,KParts::PartActivateEvent *);
    void sipProtectVirt_partSelectEvent(bool,KParts::PartSelectEvent *);
    void sipProtectVirt_guiActivateEvent(bool,KParts::GUIActivateEvent *);
    QWidget * sipProtect_hostContainer(const QString&);
    void sipProtect_loadPlugins();
    void sipProtect_slotWidgetDestroyed();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void embed(QWidget *);
    QWidget * widget();
    void setManager(KParts::PartManager *);
    KParts::Part * hitTest(QWidget *,const QPoint&);
    void setSelectable(bool);
    void setWidget(QWidget *);
    void customEvent(QEvent *);
    void partActivateEvent(KParts::PartActivateEvent *);
    void partSelectEvent(KParts::PartSelectEvent *);
    void guiActivateEvent(KParts::GUIActivateEvent *);
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);
    void setComponentData(const KComponentData&);
    void setComponentData(const KComponentData&,bool);
    QAction * action(const QDomElement&) const;
    KActionCollection * actionCollection() const;
    KComponentData componentData() const;
    QDomDocument domDocument() const;
    QString xmlFile() const;
    QString localXMLFile() 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_Part(const sipKParts_Part &);
    sipKParts_Part &operator = (const sipKParts_Part &);

    char sipPyMethods[29];
};

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

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

const QMetaObject *sipKParts_Part::metaObject() const
{
    return sip_kparts_qt_metaobject(sipPySelf,sipType_KParts_Part);
}

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

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

    return _id;
}

void *sipKParts_Part::qt_metacast(const char *_clname)
{
    return (sip_kparts_qt_metacast && sip_kparts_qt_metacast(sipPySelf,sipType_KParts_Part,_clname)) ? this : KParts::Part::qt_metacast(_clname);
}

void sipKParts_Part::embed(QWidget *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::Part::embed(a0);
        return;
    }

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t,PyObject *,QWidget *);

    ((sipVH_QtGui_7)(sipModuleAPI_kparts_QtGui->em_virthandlers[7]))(sipGILState,meth,a0);
}

QWidget * sipKParts_Part::widget()
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KParts::Part::widget();

    typedef QWidget * (*sipVH_QtGui_106)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtGui_106)(sipModuleAPI_kparts_QtGui->em_virthandlers[106]))(sipGILState,meth);
}

void sipKParts_Part::setManager(KParts::PartManager *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::Part::setManager(a0);
        return;
    }

    extern void sipVH_kparts_10(sip_gilstate_t,PyObject *,KParts::PartManager *);

    sipVH_kparts_10(sipGILState,meth,a0);
}

KParts::Part * sipKParts_Part::hitTest(QWidget *a0,const QPoint& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KParts::Part::hitTest(a0,a1);

    extern KParts::Part * sipVH_kparts_9(sip_gilstate_t,PyObject *,QWidget *,const QPoint&);

    return sipVH_kparts_9(sipGILState,meth,a0,a1);
}

void sipKParts_Part::setSelectable(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::Part::setSelectable(a0);
        return;
    }

    typedef void (*sipVH_QtNetwork_1)(sip_gilstate_t,PyObject *,bool);

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

void sipKParts_Part::setWidget(QWidget *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::Part::setWidget(a0);
        return;
    }

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t,PyObject *,QWidget *);

    ((sipVH_QtGui_7)(sipModuleAPI_kparts_QtGui->em_virthandlers[7]))(sipGILState,meth,a0);
}

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

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

    if (!meth)
    {
        KParts::Part::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_Part::partActivateEvent(KParts::PartActivateEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::Part::partActivateEvent(a0);
        return;
    }

    extern void sipVH_kparts_8(sip_gilstate_t,PyObject *,KParts::PartActivateEvent *);

    sipVH_kparts_8(sipGILState,meth,a0);
}

void sipKParts_Part::partSelectEvent(KParts::PartSelectEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::Part::partSelectEvent(a0);
        return;
    }

    extern void sipVH_kparts_7(sip_gilstate_t,PyObject *,KParts::PartSelectEvent *);

    sipVH_kparts_7(sipGILState,meth,a0);
}

void sipKParts_Part::guiActivateEvent(KParts::GUIActivateEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::Part::guiActivateEvent(a0);
        return;
    }

    extern void sipVH_kparts_6(sip_gilstate_t,PyObject *,KParts::GUIActivateEvent *);

    sipVH_kparts_6(sipGILState,meth,a0);
}

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

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],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_Part::eventFilter(QObject *a0,QEvent *a1)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],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_Part::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],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_Part::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],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_Part::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],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_Part::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],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);
}

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

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

    if (!meth)
    {
        KParts::PartBase::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);
}

void sipKParts_Part::setComponentData(const KComponentData& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::PartBase::setComponentData(a0,a1);
        return;
    }

    extern void sipVH_kparts_11(sip_gilstate_t,PyObject *,const KComponentData&,bool);

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

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

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[18]),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_Part::actionCollection() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[19]),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_Part::componentData() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[20]),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_Part::domDocument() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[21]),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);
}

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

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

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

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

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

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

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

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

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

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

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

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],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_Part::setLocalXMLFile(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],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_Part::setXML(const QString& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],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_Part::setDOMDocument(const QDomDocument& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],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_Part::stateChanged(const QString& a0,KXMLGUIClient::ReverseStateChange a1)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],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_Part::sipProtectVirt_setXMLFile(bool sipSelfWasArg,const QString& a0,bool a1,bool a2)
{
    (sipSelfWasArg ? KXMLGUIClient::setXMLFile(a0,a1,a2) : setXMLFile(a0,a1,a2));
}

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

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

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

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

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

void sipKParts_Part::sipProtectVirt_setComponentData(bool sipSelfWasArg,const KComponentData& a0,bool a1)
{
    (sipSelfWasArg ? KParts::PartBase::setComponentData(a0,a1) : setComponentData(a0,a1));
}

void sipKParts_Part::sipProtect_setPluginInterfaceVersion(int a0)
{
    KParts::PartBase::setPluginInterfaceVersion(a0);
}

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

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

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

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

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

void sipKParts_Part::sipProtectVirt_setWidget(bool sipSelfWasArg,QWidget *a0)
{
    (sipSelfWasArg ? KParts::Part::setWidget(a0) : setWidget(a0));
}

void sipKParts_Part::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? KParts::Part::customEvent(a0) : customEvent(a0));
}

void sipKParts_Part::sipProtectVirt_partActivateEvent(bool sipSelfWasArg,KParts::PartActivateEvent *a0)
{
    (sipSelfWasArg ? KParts::Part::partActivateEvent(a0) : partActivateEvent(a0));
}

void sipKParts_Part::sipProtectVirt_partSelectEvent(bool sipSelfWasArg,KParts::PartSelectEvent *a0)
{
    (sipSelfWasArg ? KParts::Part::partSelectEvent(a0) : partSelectEvent(a0));
}

void sipKParts_Part::sipProtectVirt_guiActivateEvent(bool sipSelfWasArg,KParts::GUIActivateEvent *a0)
{
    (sipSelfWasArg ? KParts::Part::guiActivateEvent(a0) : guiActivateEvent(a0));
}

QWidget * sipKParts_Part::sipProtect_hostContainer(const QString& a0)
{
    return KParts::Part::hostContainer(a0);
}

void sipKParts_Part::sipProtect_loadPlugins()
{
    KParts::Part::loadPlugins();
}

void sipKParts_Part::sipProtect_slotWidgetDestroyed()
{
    KParts::Part::slotWidgetDestroyed();
}


extern "C" {static PyObject *meth_KParts_Part_setXMLFile(PyObject *, PyObject *);}
static PyObject *meth_KParts_Part_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_Part *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|bb", &sipSelf, sipType_KParts_Part, &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_Part, sipName_setXMLFile, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KParts_Part, &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_Part, sipName_setLocalXMLFile, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|b", &sipSelf, sipType_KParts_Part, &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_Part, sipName_setXML, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|b", &sipSelf, sipType_KParts_Part, &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_Part, sipName_setDOMDocument, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_Part_stateChanged(PyObject *, PyObject *);}
static PyObject *meth_KParts_Part_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_Part *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KParts_Part, &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_Part, sipName_stateChanged, NULL);

    return NULL;
}


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

    {
        const KComponentData * a0;
        sipKParts_Part *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const KComponentData * a0;
        bool a1;
        sipKParts_Part *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9b", &sipSelf, sipType_KParts_Part, &sipCpp, sipType_KComponentData, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setComponentData(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_Part, sipName_setComponentData, NULL);

    return NULL;
}


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

    {
        int a0;
        sipKParts_Part *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KParts_Part, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPluginInterfaceVersion(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_Part, sipName_setPluginInterfaceVersion, NULL);

    return NULL;
}


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

    {
        char * a0;
        sipKParts_Part *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_Part, &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 7729 "sipkpartspart2.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKParts_Part *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_Part, &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_Part, sipName_timerEvent, NULL);

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKParts_Part *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_Part, &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_Part, sipName_childEvent, NULL);

    return NULL;
}


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

    {
        char * a0;
        sipKParts_Part *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_Part, &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_Part, sipName_connectNotify, NULL);

    return NULL;
}


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

    {
        char * a0;
        sipKParts_Part *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_Part, &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_Part, sipName_disconnectNotify, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_Part, &sipCpp, sipType_QWidget, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KParts::Part::embed(a0) : sipCpp->embed(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_Part, sipName_embed, NULL);

    return NULL;
}


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

    {
        KParts::Part *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::Part::widget() : sipCpp->widget());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KParts::PartManager * a0;
        KParts::Part *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_Part, &sipCpp, sipType_KParts_PartManager, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KParts::Part::setManager(a0) : sipCpp->setManager(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_Part, sipName_setManager, NULL);

    return NULL;
}


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

    {
        KParts::Part *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->manager();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        bool a0;
        KParts::Part *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KParts_Part, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAutoDeleteWidget(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_Part, sipName_setAutoDeleteWidget, NULL);

    return NULL;
}


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

    {
        bool a0;
        KParts::Part *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KParts_Part, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAutoDeletePart(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_Part, sipName_setAutoDeletePart, NULL);

    return NULL;
}


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

    {
        QWidget * a0;
        const QPoint * a1;
        KParts::Part *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J9", &sipSelf, sipType_KParts_Part, &sipCpp, sipType_QWidget, &a0, sipType_QPoint, &a1))
        {
            KParts::Part *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::Part::hitTest(a0,*a1) : sipCpp->hitTest(a0,*a1));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        bool a0;
        KParts::Part *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KParts_Part, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KParts::Part::setSelectable(a0) : sipCpp->setSelectable(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_Part, sipName_setSelectable, NULL);

    return NULL;
}


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

    {
        KParts::Part *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isSelectable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KParts::Part *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->iconLoader();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        QWidget * a0;
        sipKParts_Part *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_Part, &sipCpp, sipType_QWidget, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setWidget(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_Part, sipName_setWidget, NULL);

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_Part *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_Part, &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_Part, sipName_customEvent, NULL);

    return NULL;
}


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

    {
        KParts::PartActivateEvent * a0;
        sipKParts_Part *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_Part, &sipCpp, sipType_KParts_PartActivateEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_partActivateEvent(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_Part, sipName_partActivateEvent, NULL);

    return NULL;
}


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

    {
        KParts::PartSelectEvent * a0;
        sipKParts_Part *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_Part, &sipCpp, sipType_KParts_PartSelectEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_partSelectEvent(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_Part, sipName_partSelectEvent, NULL);

    return NULL;
}


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

    {
        KParts::GUIActivateEvent * a0;
        sipKParts_Part *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_Part, &sipCpp, sipType_KParts_GUIActivateEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_guiActivateEvent(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_Part, sipName_guiActivateEvent, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KParts_Part, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QWidget *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_hostContainer(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        sipKParts_Part *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_Part, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_loadPlugins();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_Part *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_Part, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_slotWidgetDestroyed();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_Part)
        return ptr;

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

    if ((res = ((const sipClassTypeDef *)sipType_KParts_PartBase)->ctd_cast((KParts::PartBase *)(KParts::Part *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QObject * a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KParts_Part[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KParts_Part_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KParts_Part_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KParts_Part_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KParts_Part_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_embed), meth_KParts_Part_embed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_guiActivateEvent), meth_KParts_Part_guiActivateEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hitTest), meth_KParts_Part_hitTest, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hostContainer), meth_KParts_Part_hostContainer, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_iconLoader), meth_KParts_Part_iconLoader, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSelectable), meth_KParts_Part_isSelectable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_loadPlugins), meth_KParts_Part_loadPlugins, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_manager), meth_KParts_Part_manager, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_partActivateEvent), meth_KParts_Part_partActivateEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_partSelectEvent), meth_KParts_Part_partSelectEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KParts_Part_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAutoDeletePart), meth_KParts_Part_setAutoDeletePart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAutoDeleteWidget), meth_KParts_Part_setAutoDeleteWidget, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setComponentData), meth_KParts_Part_setComponentData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDOMDocument), meth_KParts_Part_setDOMDocument, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalXMLFile), meth_KParts_Part_setLocalXMLFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setManager), meth_KParts_Part_setManager, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPluginInterfaceVersion), meth_KParts_Part_setPluginInterfaceVersion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSelectable), meth_KParts_Part_setSelectable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setWidget), meth_KParts_Part_setWidget, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setXML), meth_KParts_Part_setXML, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setXMLFile), meth_KParts_Part_setXMLFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotWidgetDestroyed), meth_KParts_Part_slotWidgetDestroyed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stateChanged), meth_KParts_Part_stateChanged, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KParts_Part_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_widget), meth_KParts_Part_widget, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KParts_Part[] = {
    {"setStatusBarText(const QString&)", 0, 0},
    {"setWindowCaption(const QString&)", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_Part = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__Part,
        {0}
    },
    {
        sipNameNr_Part,
        {0, 255, 0},
        30, methods_KParts_Part,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_Part,
    0,
    init_KParts_Part,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_Part,
    0,
    0,
    0,
    release_KParts_Part,
    cast_KParts_Part,
    0,
    0,
    0
},
    &KParts::Part::staticMetaObject,
    0,
    pyqt4_signals_KParts_Part
};
