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

#include "sipAPIkparts.h"

#line 28 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/plugin.sip"
#include <kparts/plugin.h>
#line 12 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"

#line 29 "/usr/share/sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 16 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 19 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 22 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 28 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 28 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/plugin.sip"
#include <kparts/plugin.h>
#line 31 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 34 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 37 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 40 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 368 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 43 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 351 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 46 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 265 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 49 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 55 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 58 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 61 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 64 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 67 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 207 "/usr/share/sip/PyQt4/QtXml/qdom.sip"
#include <qdom.h>
#line 70 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 73 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 76 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 79 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 82 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 85 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguibuilder.sip"
#include <kxmlguibuilder.h>
#line 88 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 91 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguifactory.sip"
#include <kxmlguifactory.h>
#line 94 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kactioncollection.sip"
#include <kactioncollection.h>
#line 97 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 336 "/usr/share/sip/PyQt4/QtXml/qdom.sip"
#include <qdom.h>
#line 100 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"


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

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
     ::QAction* action(const  ::QDomElement&) const;
     ::KActionCollection* actionCollection() const;
     ::KComponentData componentData() const;
     ::QDomDocument domDocument() const;
     ::QString xmlFile() const;
     ::QString localXMLFile() const;
    void setComponentData(const  ::KComponentData&);
    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);
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const char*);
    void disconnectNotify(const char*);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[19];
};

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

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

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

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

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

    return _id;
}

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

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

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

    if (!sipMeth)
        return  ::KParts::Plugin::action(a0);

    extern  ::QAction* sipVH_kparts_44(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QDomElement&);

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

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

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

    if (!sipMeth)
        return  ::KParts::Plugin::actionCollection();

    extern  ::KActionCollection* sipVH_kparts_43(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_43(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

    if (!sipMeth)
        return  ::KParts::Plugin::componentData();

    extern  ::KComponentData sipVH_kparts_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_9(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

    if (!sipMeth)
        return  ::KParts::Plugin::domDocument();

    extern  ::QDomDocument sipVH_kparts_42(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_42(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern  ::QString sipVH_kparts_41(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_41(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern  ::QString sipVH_kparts_41(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_41(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern void sipVH_kparts_40(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KComponentData&);

    sipVH_kparts_40(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

    if (!sipMeth)
    {
         ::KParts::Plugin::setXMLFile(a0,a1,a2);
        return;
    }

    extern void sipVH_kparts_39(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&,bool,bool);

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

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

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

    if (!sipMeth)
    {
         ::KParts::Plugin::setLocalXMLFile(a0);
        return;
    }

    extern void sipVH_kparts_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&);

    sipVH_kparts_23(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

    if (!sipMeth)
    {
         ::KParts::Plugin::setXML(a0,a1);
        return;
    }

    extern void sipVH_kparts_38(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&,bool);

    sipVH_kparts_38(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

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

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

    if (!sipMeth)
    {
         ::KParts::Plugin::setDOMDocument(a0,a1);
        return;
    }

    extern void sipVH_kparts_37(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QDomDocument&,bool);

    sipVH_kparts_37(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

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

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

    if (!sipMeth)
    {
         ::KParts::Plugin::stateChanged(a0,a1);
        return;
    }

    extern void sipVH_kparts_36(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&, ::KXMLGUIClient::ReverseStateChange);

    sipVH_kparts_36(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

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

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

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

    extern bool sipVH_kparts_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern bool sipVH_kparts_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

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

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

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

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

    extern void sipVH_kparts_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_kparts_5(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_kparts_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_kparts_6(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_kparts_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_kparts_7(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_kparts_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_kparts_8(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_kparts_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_kparts_8(sipGILState, 0, sipPySelf, sipMeth, a0);
}


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

    {
        const  ::KParts::Plugin *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const  ::KParts::Plugin *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
         ::QObject* a0;
        const  ::KComponentData* a1;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
         ::QObject* a0;

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

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

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

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

    return NULL;
}


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

    {
        const  ::KComponentData* a0;

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

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

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes =  ::KParts::Plugin::loadPlugin(a0,a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a1Keep);

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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes =  ::KParts::Plugin::loadPlugin(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QByteArray *>(a1),sipType_QByteArray,a1State);

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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes =  ::KParts::Plugin::loadPlugin(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a1),sipType_QString,a1State);

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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes =  ::KParts::Plugin::loadPlugin(a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast< ::QString *>(a2),sipType_QString,a2State);

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

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

    return NULL;
}


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

    {
        const  ::KComponentData* a0;
         ::KParts::Plugin *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9", &sipSelf, sipType_KParts_Plugin, &sipCpp, sipType_KComponentData, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KParts::Plugin::setComponentData(*a0) : sipCpp->setComponentData(*a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_KParts_Plugin(void *, const sipTypeDef *);}
static void *cast_KParts_Plugin(void *sipCppV, const sipTypeDef *targetType)
{
     ::KParts::Plugin *sipCpp = reinterpret_cast< ::KParts::Plugin *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    if (targetType == sipType_KXMLGUIClient)
        return static_cast< ::KXMLGUIClient *>(sipCpp);

    return sipCppV;
}


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KParts_Plugin(sipSimpleWrapper *);}
static void dealloc_KParts_Plugin(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKParts_Plugin *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KParts_Plugin(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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

    {
         ::QObject* a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KParts_Plugin[] = {
    {SIP_MLNAME_CAST(sipName_loadPlugin), meth_KParts_Plugin_loadPlugin, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_loadPlugins), meth_KParts_Plugin_loadPlugins, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localXMLFile), meth_KParts_Plugin_localXMLFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pluginInfos), meth_KParts_Plugin_pluginInfos, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pluginObjects), meth_KParts_Plugin_pluginObjects, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setComponentData), meth_KParts_Plugin_setComponentData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_xmlFile), meth_KParts_Plugin_xmlFile, METH_VARARGS, NULL}
};


static pyqt4ClassPluginDef plugin_KParts_Plugin = {
    & ::KParts::Plugin::staticMetaObject,
    0,
    0
};


sipClassTypeDef sipTypeDef_kparts_KParts_Plugin = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__Plugin,
        {0},
        &plugin_KParts_Plugin
    },
    {
        sipNameNr_Plugin,
        {0, 255, 0},
        7, methods_KParts_Plugin,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_Plugin,
    0,
    init_type_KParts_Plugin,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_Plugin,
    0,
    0,
    0,
    release_KParts_Plugin,
    cast_KParts_Plugin,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/partmanager.sip"
#include <kparts/partmanager.h>
#line 945 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"

#line 28 "/usr/share/sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 949 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 29 "/usr/share/sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 952 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 955 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 66 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 958 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 961 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 964 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 368 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 967 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 351 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 970 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 265 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 973 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 976 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 979 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 982 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 985 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 988 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 991 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 994 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 997 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/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 protected method for every virtual method visible from
     * this class.
     */
protected:
    void setActiveComponent(const  ::KComponentData&);
     ::QWidget* selectedWidget() const;
     ::KParts::Part* selectedPart() const;
    void setSelectedPart( ::KParts::Part*, ::QWidget*);
     ::QWidget* activeWidget() const;
     ::KParts::Part* activePart() const;
    void setActivePart( ::KParts::Part*, ::QWidget*);
    void replacePart( ::KParts::Part*, ::KParts::Part*,bool);
    void removePart( ::KParts::Part*);
    void addPart( ::KParts::Part*,bool);
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const char*);
    void disconnectNotify(const char*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKParts_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()
{
    sipInstanceDestroyed(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(sipPySelf, sipType_KParts_PartManager, _clname)) ? this :  ::KParts::PartManager::qt_metacast(_clname);
}

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

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

    if (!sipMeth)
    {
         ::KParts::PartManager::setActiveComponent(a0);
        return;
    }

    extern void sipVH_kparts_40(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KComponentData&);

    sipVH_kparts_40(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern  ::QWidget* sipVH_kparts_85(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_85(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern  ::KParts::Part* sipVH_kparts_96(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_96(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern void sipVH_kparts_95(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KParts::Part*, ::QWidget*);

    sipVH_kparts_95(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

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

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

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

    extern  ::QWidget* sipVH_kparts_85(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_85(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern  ::KParts::Part* sipVH_kparts_96(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_96(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern void sipVH_kparts_95(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KParts::Part*, ::QWidget*);

    sipVH_kparts_95(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

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

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

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

    extern void sipVH_kparts_94(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KParts::Part*, ::KParts::Part*,bool);

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

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

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

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

    extern void sipVH_kparts_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KParts::Part*);

    sipVH_kparts_93(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKParts_PartManager::addPart( ::KParts::Part*a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern void sipVH_kparts_92(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KParts::Part*,bool);

    sipVH_kparts_92(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

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

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

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

    extern bool sipVH_kparts_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern bool sipVH_kparts_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

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

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

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

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

    extern void sipVH_kparts_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_kparts_5(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_kparts_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_kparts_6(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_kparts_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_kparts_7(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_kparts_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_kparts_8(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_kparts_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_kparts_8(sipGILState, 0, sipPySelf, sipMeth, a0);
}


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;

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

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

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

    {
        const  ::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 || sipIsDerivedClass((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 || sipIsDerivedClass((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 || sipIsDerivedClass((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 || sipIsDerivedClass((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 || sipIsDerivedClass((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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::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 || sipIsDerivedClass((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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

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

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

    {
        const  ::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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9", &sipSelf, sipType_KParts_PartManager, &sipCpp, sipType_KComponentData, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KParts::PartManager::setActiveComponent(*a0) : sipCpp->setActiveComponent(*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;

    {
         ::KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KParts_PartManager, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;

    {
         ::KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KParts_PartManager, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;

    {
         ::KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KParts_PartManager, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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 inheritance hierarchy. */
extern "C" {static void *cast_KParts_PartManager(void *, const sipTypeDef *);}
static void *cast_KParts_PartManager(void *sipCppV, const sipTypeDef *targetType)
{
     ::KParts::PartManager *sipCpp = reinterpret_cast< ::KParts::PartManager *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KParts_PartManager(sipSimpleWrapper *);}
static void dealloc_KParts_PartManager(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKParts_PartManager *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KParts_PartManager(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_KParts_PartManager(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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[] = {{5, 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_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_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}
};

static sipEnumMemberDef enummembers_KParts_PartManager[] = {
    {sipName_Direct, static_cast<int>( ::KParts::PartManager::Direct), 42},
    {sipName_NoReason, static_cast<int>( ::KParts::PartManager::NoReason), 41},
    {sipName_ReasonLeftClick, static_cast<int>( ::KParts::PartManager::ReasonLeftClick), 41},
    {sipName_ReasonMidClick, static_cast<int>( ::KParts::PartManager::ReasonMidClick), 41},
    {sipName_ReasonRightClick, static_cast<int>( ::KParts::PartManager::ReasonRightClick), 41},
    {sipName_TriState, static_cast<int>( ::KParts::PartManager::TriState), 42},
};


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


static pyqt4ClassPluginDef plugin_KParts_PartManager = {
    & ::KParts::PartManager::staticMetaObject,
    0,
    signals_KParts_PartManager
};


sipClassTypeDef sipTypeDef_kparts_KParts_PartManager = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__PartManager,
        {0},
        &plugin_KParts_PartManager
    },
    {
        sipNameNr_PartManager,
        {0, 255, 0},
        26, 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_type_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,
    0,
    0,
    0
};

#line 191 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 2278 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"

#line 29 "/usr/share/sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 2282 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 33 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 2285 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2288 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 81 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/event.sip"
#include <kparts/event.h>
#line 2291 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 43 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 2294 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2297 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 113 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 2300 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 126 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 2303 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 2306 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 127 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/event.sip"
#include <kparts/event.h>
#line 2309 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 103 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/event.sip"
#include <kparts/event.h>
#line 2312 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2315 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kiconloader.sip"
#include <kiconloader.h>
#line 2318 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 66 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 2321 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 2324 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 28 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/partmanager.sip"
#include <kparts/partmanager.h>
#line 2327 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 368 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2330 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 351 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2333 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 265 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2336 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2339 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2342 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2345 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 2348 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2351 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2354 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 2357 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 2360 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 207 "/usr/share/sip/PyQt4/QtXml/qdom.sip"
#include <qdom.h>
#line 2363 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 2366 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 2369 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2372 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 2375 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguibuilder.sip"
#include <kxmlguibuilder.h>
#line 2378 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2381 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguifactory.sip"
#include <kxmlguifactory.h>
#line 2384 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kactioncollection.sip"
#include <kactioncollection.h>
#line 2387 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 336 "/usr/share/sip/PyQt4/QtXml/qdom.sip"
#include <qdom.h>
#line 2390 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/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;

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

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()
{
    sipInstanceDestroyed(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(sipPySelf, sipType_KParts_ReadWritePart, _clname)) ? this :  ::KParts::ReadWritePart::qt_metacast(_clname);
}

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

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

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

    extern bool sipVH_kparts_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_26(sipGILState, 0, sipPySelf, sipMeth);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_ReadWritePart,sipName_saveFile);

    if (!sipMeth)
        return 0;

    extern bool sipVH_kparts_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_26(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_kparts_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_26(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern void sipVH_kparts_55(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    sipVH_kparts_55(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern bool sipVH_kparts_91(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KUrl&);

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

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

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

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

    extern bool sipVH_kparts_77(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

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

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

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

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

    extern bool sipVH_kparts_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_26(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern void sipVH_kparts_55(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    sipVH_kparts_55(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

    if (!sipMeth)
    {
         ::KParts::ReadWritePart::guiActivateEvent(a0);
        return;
    }

    extern void sipVH_kparts_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KParts::GUIActivateEvent*);

    sipVH_kparts_90(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

    if (!sipMeth)
    {
         ::KParts::ReadWritePart::partSelectEvent(a0);
        return;
    }

    extern void sipVH_kparts_89(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KParts::PartSelectEvent*);

    sipVH_kparts_89(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKParts_ReadWritePart::partActivateEvent( ::KParts::PartActivateEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KParts::ReadWritePart::partActivateEvent(a0);
        return;
    }

    extern void sipVH_kparts_88(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KParts::PartActivateEvent*);

    sipVH_kparts_88(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

    if (!sipMeth)
    {
         ::KParts::ReadWritePart::setWidget(a0);
        return;
    }

    extern void sipVH_kparts_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWidget*);

    sipVH_kparts_84(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

    if (!sipMeth)
    {
         ::KParts::ReadWritePart::setSelectable(a0);
        return;
    }

    extern void sipVH_kparts_55(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    sipVH_kparts_55(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

    if (!sipMeth)
        return  ::KParts::ReadWritePart::hitTest(a0,a1);

    extern  ::KParts::Part* sipVH_kparts_87(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWidget*,const  ::QPoint&);

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

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

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

    if (!sipMeth)
    {
         ::KParts::ReadWritePart::setManager(a0);
        return;
    }

    extern void sipVH_kparts_86(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KParts::PartManager*);

    sipVH_kparts_86(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

    if (!sipMeth)
        return  ::KParts::ReadWritePart::widget();

    extern  ::QWidget* sipVH_kparts_85(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_85(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

    if (!sipMeth)
    {
         ::KParts::ReadWritePart::embed(a0);
        return;
    }

    extern void sipVH_kparts_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWidget*);

    sipVH_kparts_84(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

    if (!sipMeth)
    {
         ::KParts::ReadWritePart::stateChanged(a0,a1);
        return;
    }

    extern void sipVH_kparts_36(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&, ::KXMLGUIClient::ReverseStateChange);

    sipVH_kparts_36(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

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

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

    if (!sipMeth)
    {
         ::KParts::ReadWritePart::setDOMDocument(a0,a1);
        return;
    }

    extern void sipVH_kparts_37(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QDomDocument&,bool);

    sipVH_kparts_37(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

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

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

    if (!sipMeth)
    {
         ::KParts::ReadWritePart::setXML(a0,a1);
        return;
    }

    extern void sipVH_kparts_38(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&,bool);

    sipVH_kparts_38(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipKParts_ReadWritePart::setLocalXMLFile(const  ::QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KParts::ReadWritePart::setLocalXMLFile(a0);
        return;
    }

    extern void sipVH_kparts_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&);

    sipVH_kparts_23(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_setXMLFile);

    if (!sipMeth)
    {
         ::KParts::ReadWritePart::setXMLFile(a0,a1,a2);
        return;
    }

    extern void sipVH_kparts_39(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&,bool,bool);

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

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_setComponentData);

    if (!sipMeth)
    {
         ::KParts::ReadWritePart::setComponentData(a0);
        return;
    }

    extern void sipVH_kparts_40(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KComponentData&);

    sipVH_kparts_40(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

    if (!sipMeth)
        return  ::KParts::ReadWritePart::localXMLFile();

    extern  ::QString sipVH_kparts_41(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_41(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

    if (!sipMeth)
        return  ::KParts::ReadWritePart::xmlFile();

    extern  ::QString sipVH_kparts_41(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_41(sipGILState, 0, sipPySelf, sipMeth);
}

 ::QDomDocument sipKParts_ReadWritePart::domDocument() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KParts::ReadWritePart::domDocument();

    extern  ::QDomDocument sipVH_kparts_42(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_42(sipGILState, 0, sipPySelf, sipMeth);
}

 ::KComponentData sipKParts_ReadWritePart::componentData() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KParts::ReadWritePart::componentData();

    extern  ::KComponentData sipVH_kparts_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_9(sipGILState, 0, sipPySelf, sipMeth);
}

 ::KActionCollection* sipKParts_ReadWritePart::actionCollection() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KParts::ReadWritePart::actionCollection();

    extern  ::KActionCollection* sipVH_kparts_43(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_43(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

    if (!sipMeth)
        return  ::KParts::ReadWritePart::action(a0);

    extern  ::QAction* sipVH_kparts_44(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QDomElement&);

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

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_setComponentData);

    if (!sipMeth)
    {
         ::KParts::ReadWritePart::setComponentData(a0,a1);
        return;
    }

    extern void sipVH_kparts_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KComponentData&,bool);

    sipVH_kparts_45(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

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

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

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

    extern bool sipVH_kparts_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern bool sipVH_kparts_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

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

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

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

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

    extern void sipVH_kparts_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_kparts_5(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_kparts_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_kparts_6(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_kparts_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_kparts_7(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_kparts_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_kparts_8(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_kparts_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_kparts_8(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],sipPySelf,NULL,sipName_openUrl);

    if (!sipMeth)
        return  ::KParts::ReadWritePart::openUrl(a0);

    extern bool sipVH_kparts_91(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KUrl&);

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

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[38],sipPySelf,NULL,sipName_closeUrl);

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

    extern bool sipVH_kparts_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_26(sipGILState, 0, sipPySelf, sipMeth);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[39],sipPySelf,sipName_ReadWritePart,sipName_openFile);

    if (!sipMeth)
        return 0;

    extern bool sipVH_kparts_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_26(sipGILState, 0, sipPySelf, sipMeth);
}


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

    {
        const  ::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 || sipIsDerivedClass((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;

    {
        const  ::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 || sipIsDerivedClass((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 || sipIsDerivedClass((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 || sipIsDerivedClass((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 || sipIsDerivedClass((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 || sipIsDerivedClass((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;

    {
         ::KParts::ReadWritePart *sipCpp;

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::KParts::ReadWritePart *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KParts::ReadWritePart::saveToUrl() : sipCpp->saveToUrl());
            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 inheritance hierarchy. */
extern "C" {static void *cast_KParts_ReadWritePart(void *, const sipTypeDef *);}
static void *cast_KParts_ReadWritePart(void *sipCppV, const sipTypeDef *targetType)
{
     ::KParts::ReadWritePart *sipCpp = reinterpret_cast< ::KParts::ReadWritePart *>(sipCppV);

    if (targetType == sipType_KParts_ReadOnlyPart)
        return static_cast< ::KParts::ReadOnlyPart *>(sipCpp);

    if (targetType == sipType_KParts_Part)
        return static_cast< ::KParts::Part *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    if (targetType == sipType_KParts_PartBase)
        return static_cast< ::KParts::PartBase *>(sipCpp);

    if (targetType == sipType_KXMLGUIClient)
        return static_cast< ::KXMLGUIClient *>(sipCpp);

    return sipCppV;
}


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KParts_ReadWritePart(sipSimpleWrapper *);}
static void dealloc_KParts_ReadWritePart(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKParts_ReadWritePart *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KParts_ReadWritePart(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_KParts_ReadWritePart(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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[] = {{46, 255, 1}};


static PyMethodDef methods_KParts_ReadWritePart[] = {
    {SIP_MLNAME_CAST(sipName_closeUrl), meth_KParts_ReadWritePart_closeUrl, 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_queryClose), meth_KParts_ReadWritePart_queryClose, 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_setModified), meth_KParts_ReadWritePart_setModified, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setReadWrite), meth_KParts_ReadWritePart_setReadWrite, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_waitSaveComplete), meth_KParts_ReadWritePart_waitSaveComplete, METH_VARARGS, NULL}
};


static pyqt4ClassPluginDef plugin_KParts_ReadWritePart = {
    & ::KParts::ReadWritePart::staticMetaObject,
    0,
    0
};


sipClassTypeDef sipTypeDef_kparts_KParts_ReadWritePart = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__ReadWritePart,
        {0},
        &plugin_KParts_ReadWritePart
    },
    {
        sipNameNr_ReadWritePart,
        {0, 255, 0},
        11, 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_type_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,
    0,
    0,
    0
};

#line 142 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 3651 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"

#line 29 "/usr/share/sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 3655 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 3658 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 33 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 3661 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 81 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/event.sip"
#include <kparts/event.h>
#line 3664 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 43 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 3667 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3670 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 113 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 3673 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 126 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 3676 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 3679 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 127 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/event.sip"
#include <kparts/event.h>
#line 3682 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 103 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/event.sip"
#include <kparts/event.h>
#line 3685 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3688 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kiconloader.sip"
#include <kiconloader.h>
#line 3691 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 66 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 3694 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 3697 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 28 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/partmanager.sip"
#include <kparts/partmanager.h>
#line 3700 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 368 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3703 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 351 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3706 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 265 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3709 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3712 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3715 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3718 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 3721 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 3724 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 3727 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 3730 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 3733 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 207 "/usr/share/sip/PyQt4/QtXml/qdom.sip"
#include <qdom.h>
#line 3736 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 3739 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 3742 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3745 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 3748 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguibuilder.sip"
#include <kxmlguibuilder.h>
#line 3751 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3754 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguifactory.sip"
#include <kxmlguifactory.h>
#line 3757 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kactioncollection.sip"
#include <kactioncollection.h>
#line 3760 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 336 "/usr/share/sip/PyQt4/QtXml/qdom.sip"
#include <qdom.h>
#line 3763 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/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;

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

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()
{
    sipInstanceDestroyed(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(sipPySelf, sipType_KParts_ReadOnlyPart, _clname)) ? this :  ::KParts::ReadOnlyPart::qt_metacast(_clname);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_ReadOnlyPart,sipName_openFile);

    if (!sipMeth)
        return 0;

    extern bool sipVH_kparts_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_26(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_kparts_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_26(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_kparts_91(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KUrl&);

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

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

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

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

    extern void sipVH_kparts_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_kparts_8(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_kparts_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_kparts_8(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_kparts_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_kparts_7(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_kparts_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_kparts_6(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_kparts_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_kparts_5(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern bool sipVH_kparts_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

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

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

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

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

    extern bool sipVH_kparts_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

    if (!sipMeth)
    {
         ::KParts::ReadOnlyPart::setComponentData(a0,a1);
        return;
    }

    extern void sipVH_kparts_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KComponentData&,bool);

    sipVH_kparts_45(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

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

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

    if (!sipMeth)
        return  ::KParts::ReadOnlyPart::action(a0);

    extern  ::QAction* sipVH_kparts_44(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QDomElement&);

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

 ::KActionCollection* sipKParts_ReadOnlyPart::actionCollection() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KParts::ReadOnlyPart::actionCollection();

    extern  ::KActionCollection* sipVH_kparts_43(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_43(sipGILState, 0, sipPySelf, sipMeth);
}

 ::KComponentData sipKParts_ReadOnlyPart::componentData() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KParts::ReadOnlyPart::componentData();

    extern  ::KComponentData sipVH_kparts_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_9(sipGILState, 0, sipPySelf, sipMeth);
}

 ::QDomDocument sipKParts_ReadOnlyPart::domDocument() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KParts::ReadOnlyPart::domDocument();

    extern  ::QDomDocument sipVH_kparts_42(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_42(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

    if (!sipMeth)
        return  ::KParts::ReadOnlyPart::xmlFile();

    extern  ::QString sipVH_kparts_41(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_41(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

    if (!sipMeth)
        return  ::KParts::ReadOnlyPart::localXMLFile();

    extern  ::QString sipVH_kparts_41(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_41(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

    if (!sipMeth)
    {
         ::KParts::ReadOnlyPart::setComponentData(a0);
        return;
    }

    extern void sipVH_kparts_40(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KComponentData&);

    sipVH_kparts_40(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

    if (!sipMeth)
    {
         ::KParts::ReadOnlyPart::setXMLFile(a0,a1,a2);
        return;
    }

    extern void sipVH_kparts_39(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&,bool,bool);

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

void sipKParts_ReadOnlyPart::setLocalXMLFile(const  ::QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KParts::ReadOnlyPart::setLocalXMLFile(a0);
        return;
    }

    extern void sipVH_kparts_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&);

    sipVH_kparts_23(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

    if (!sipMeth)
    {
         ::KParts::ReadOnlyPart::setXML(a0,a1);
        return;
    }

    extern void sipVH_kparts_38(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&,bool);

    sipVH_kparts_38(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_setDOMDocument);

    if (!sipMeth)
    {
         ::KParts::ReadOnlyPart::setDOMDocument(a0,a1);
        return;
    }

    extern void sipVH_kparts_37(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QDomDocument&,bool);

    sipVH_kparts_37(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_stateChanged);

    if (!sipMeth)
    {
         ::KParts::ReadOnlyPart::stateChanged(a0,a1);
        return;
    }

    extern void sipVH_kparts_36(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&, ::KXMLGUIClient::ReverseStateChange);

    sipVH_kparts_36(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_embed);

    if (!sipMeth)
    {
         ::KParts::ReadOnlyPart::embed(a0);
        return;
    }

    extern void sipVH_kparts_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWidget*);

    sipVH_kparts_84(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_widget);

    if (!sipMeth)
        return  ::KParts::ReadOnlyPart::widget();

    extern  ::QWidget* sipVH_kparts_85(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_85(sipGILState, 0, sipPySelf, sipMeth);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,NULL,sipName_setManager);

    if (!sipMeth)
    {
         ::KParts::ReadOnlyPart::setManager(a0);
        return;
    }

    extern void sipVH_kparts_86(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KParts::PartManager*);

    sipVH_kparts_86(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_hitTest);

    if (!sipMeth)
        return  ::KParts::ReadOnlyPart::hitTest(a0,a1);

    extern  ::KParts::Part* sipVH_kparts_87(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWidget*,const  ::QPoint&);

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

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,NULL,sipName_setSelectable);

    if (!sipMeth)
    {
         ::KParts::ReadOnlyPart::setSelectable(a0);
        return;
    }

    extern void sipVH_kparts_55(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    sipVH_kparts_55(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_setWidget);

    if (!sipMeth)
    {
         ::KParts::ReadOnlyPart::setWidget(a0);
        return;
    }

    extern void sipVH_kparts_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWidget*);

    sipVH_kparts_84(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKParts_ReadOnlyPart::partActivateEvent( ::KParts::PartActivateEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_partActivateEvent);

    if (!sipMeth)
    {
         ::KParts::ReadOnlyPart::partActivateEvent(a0);
        return;
    }

    extern void sipVH_kparts_88(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KParts::PartActivateEvent*);

    sipVH_kparts_88(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,NULL,sipName_partSelectEvent);

    if (!sipMeth)
    {
         ::KParts::ReadOnlyPart::partSelectEvent(a0);
        return;
    }

    extern void sipVH_kparts_89(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KParts::PartSelectEvent*);

    sipVH_kparts_89(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,NULL,sipName_guiActivateEvent);

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

    extern void sipVH_kparts_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KParts::GUIActivateEvent*);

    sipVH_kparts_90(sipGILState, 0, sipPySelf, sipMeth, a0);
}


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;

    {
        const  ::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 || sipIsDerivedClass((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;

    {
        const  ::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 || sipIsDerivedClass((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;

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

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

    {
         ::KParts::ReadOnlyPart *sipCpp;

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->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;

    {
         ::KParts::ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KParts_ReadOnlyPart, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_KParts_ReadOnlyPart, &sipCpp, sipType_KParts_GUIActivateEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KParts::ReadOnlyPart::guiActivateEvent(a0) : sipCpp->guiActivateEvent(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;

    {
        const  ::KParts::ReadOnlyPart *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->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;
         ::KParts::ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pb", &sipSelf, sipType_KParts_ReadOnlyPart, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;
         ::KParts::ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9", &sipSelf, sipType_KParts_ReadOnlyPart, &sipCpp, sipType_KUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;

    {
        const  ::KParts::ReadOnlyPart *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->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;
         ::KParts::ReadOnlyPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_KParts_ReadOnlyPart, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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 inheritance hierarchy. */
extern "C" {static void *cast_KParts_ReadOnlyPart(void *, const sipTypeDef *);}
static void *cast_KParts_ReadOnlyPart(void *sipCppV, const sipTypeDef *targetType)
{
     ::KParts::ReadOnlyPart *sipCpp = reinterpret_cast< ::KParts::ReadOnlyPart *>(sipCppV);

    if (targetType == sipType_KParts_Part)
        return static_cast< ::KParts::Part *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    if (targetType == sipType_KParts_PartBase)
        return static_cast< ::KParts::PartBase *>(sipCpp);

    if (targetType == sipType_KXMLGUIClient)
        return static_cast< ::KXMLGUIClient *>(sipCpp);

    return sipCppV;
}


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KParts_ReadOnlyPart(sipSimpleWrapper *);}
static void dealloc_KParts_ReadOnlyPart(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKParts_ReadOnlyPart *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KParts_ReadOnlyPart(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_KParts_ReadOnlyPart(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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[] = {{36, 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_closeStream), meth_KParts_ReadOnlyPart_closeStream, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_closeUrl), meth_KParts_ReadOnlyPart_closeUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_guiActivateEvent), meth_KParts_ReadOnlyPart_guiActivateEvent, 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_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_setArguments), meth_KParts_ReadOnlyPart_setArguments, 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_setProgressInfoEnabled), meth_KParts_ReadOnlyPart_setProgressInfoEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setUrl), meth_KParts_ReadOnlyPart_setUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showProgressInfo), meth_KParts_ReadOnlyPart_showProgressInfo, 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 signals. */
static const pyqt4QtSignal signals_KParts_ReadOnlyPart[] = {
    {"canceled(QString)", 0, 0, 0},
    {"completed()", 0, 0, 0},
    {"completed(bool)", 0, 0, 0},
    {"started(KIO::Job*)", 0, 0, 0},
    {0, 0, 0, 0}
};


static pyqt4ClassPluginDef plugin_KParts_ReadOnlyPart = {
    & ::KParts::ReadOnlyPart::staticMetaObject,
    0,
    signals_KParts_ReadOnlyPart
};


sipClassTypeDef sipTypeDef_kparts_KParts_ReadOnlyPart = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__ReadOnlyPart,
        {0},
        &plugin_KParts_ReadOnlyPart
    },
    {
        sipNameNr_ReadOnlyPart,
        {0, 255, 0},
        20, 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_type_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,
    0,
    0,
    0
};

#line 113 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 5123 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"

#line 28 "/usr/share/sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 5127 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 68 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5130 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5133 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/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;

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

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

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

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

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


/* 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 (sipIsOwnedByPython(sipSelf))
    {
        release_KParts_OpenUrlArguments(sipGetAddress(sipSelf), 0);
    }
}


extern "C" {static void *init_type_KParts_OpenUrlArguments(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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}
};


static pyqt4ClassPluginDef plugin_KParts_OpenUrlArguments = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_kparts_KParts_OpenUrlArguments = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KParts__OpenUrlArguments,
        {0},
        &plugin_KParts_OpenUrlArguments
    },
    {
        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_type_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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 66 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 5584 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"

#line 29 "/usr/share/sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 5588 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 5591 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5594 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 81 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/event.sip"
#include <kparts/event.h>
#line 5597 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 127 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/event.sip"
#include <kparts/event.h>
#line 5600 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 103 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/event.sip"
#include <kparts/event.h>
#line 5603 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5606 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kiconloader.sip"
#include <kiconloader.h>
#line 5609 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 5612 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 28 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/partmanager.sip"
#include <kparts/partmanager.h>
#line 5615 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 368 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5618 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 351 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5621 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 265 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5624 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5627 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5630 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5633 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5636 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 5639 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5642 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 5645 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 5648 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 5651 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 207 "/usr/share/sip/PyQt4/QtXml/qdom.sip"
#include <qdom.h>
#line 5654 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 5657 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 5660 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5663 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 5666 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguibuilder.sip"
#include <kxmlguibuilder.h>
#line 5669 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5672 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguifactory.sip"
#include <kxmlguifactory.h>
#line 5675 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kactioncollection.sip"
#include <kactioncollection.h>
#line 5678 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/sipkpartspart2.cpp"
#line 336 "/usr/share/sip/PyQt4/QtXml/qdom.sip"
#include <qdom.h>
#line 5681 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py3/sip/kparts/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;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void guiActivateEvent( ::KParts::GUIActivateEvent*);
    void partSelectEvent( ::KParts::PartSelectEvent*);
    void partActivateEvent( ::KParts::PartActivateEvent*);
    void setWidget( ::QWidget*);
    void setSelectable(bool);
     ::KParts::Part* hitTest( ::QWidget*,const  ::QPoint&);
    void setManager( ::KParts::PartManager*);
     ::QWidget* widget();
    void embed( ::QWidget*);
    void stateChanged(const  ::QString&, ::KXMLGUIClient::ReverseStateChange);
    void setDOMDocument(const  ::QDomDocument&,bool);
    void setXML(const  ::QString&,bool);
    void setLocalXMLFile(const  ::QString&);
    void setXMLFile(const  ::QString&,bool,bool);
    void setComponentData(const  ::KComponentData&);
     ::QString localXMLFile() const;
     ::QString xmlFile() const;
     ::QDomDocument domDocument() const;
     ::KComponentData componentData() const;
     ::KActionCollection* actionCollection() const;
     ::QAction* action(const  ::QDomElement&) const;
    void setComponentData(const  ::KComponentData&,bool);
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const char*);
    void disconnectNotify(const char*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKParts_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()
{
    sipInstanceDestroyed(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(sipPySelf, sipType_KParts_Part, _clname)) ? this :  ::KParts::Part::qt_metacast(_clname);
}

void sipKParts_Part::guiActivateEvent( ::KParts::GUIActivateEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KParts::Part::guiActivateEvent(a0);
        return;
    }

    extern void sipVH_kparts_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KParts::GUIActivateEvent*);

    sipVH_kparts_90(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKParts_Part::partSelectEvent( ::KParts::PartSelectEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern void sipVH_kparts_89(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KParts::PartSelectEvent*);

    sipVH_kparts_89(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKParts_Part::partActivateEvent( ::KParts::PartActivateEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern void sipVH_kparts_88(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KParts::PartActivateEvent*);

    sipVH_kparts_88(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKParts_Part::setWidget( ::QWidget*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern void sipVH_kparts_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWidget*);

    sipVH_kparts_84(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKParts_Part::setSelectable(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern void sipVH_kparts_55(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    sipVH_kparts_55(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern  ::KParts::Part* sipVH_kparts_87(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWidget*,const  ::QPoint&);

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

void sipKParts_Part::setManager( ::KParts::PartManager*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern void sipVH_kparts_86(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KParts::PartManager*);

    sipVH_kparts_86(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::QWidget* sipKParts_Part::widget()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern  ::QWidget* sipVH_kparts_85(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_85(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKParts_Part::embed( ::QWidget*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern void sipVH_kparts_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWidget*);

    sipVH_kparts_84(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

    if (!sipMeth)
    {
         ::KParts::Part::stateChanged(a0,a1);
        return;
    }

    extern void sipVH_kparts_36(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&, ::KXMLGUIClient::ReverseStateChange);

    sipVH_kparts_36(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

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

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

    if (!sipMeth)
    {
         ::KParts::Part::setDOMDocument(a0,a1);
        return;
    }

    extern void sipVH_kparts_37(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QDomDocument&,bool);

    sipVH_kparts_37(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

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

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

    if (!sipMeth)
    {
         ::KParts::Part::setXML(a0,a1);
        return;
    }

    extern void sipVH_kparts_38(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&,bool);

    sipVH_kparts_38(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipKParts_Part::setLocalXMLFile(const  ::QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KParts::Part::setLocalXMLFile(a0);
        return;
    }

    extern void sipVH_kparts_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&);

    sipVH_kparts_23(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

    if (!sipMeth)
    {
         ::KParts::Part::setXMLFile(a0,a1,a2);
        return;
    }

    extern void sipVH_kparts_39(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&,bool,bool);

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

void sipKParts_Part::setComponentData(const  ::KComponentData& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KParts::Part::setComponentData(a0);
        return;
    }

    extern void sipVH_kparts_40(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KComponentData&);

    sipVH_kparts_40(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::QString sipKParts_Part::localXMLFile() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KParts::Part::localXMLFile();

    extern  ::QString sipVH_kparts_41(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_41(sipGILState, 0, sipPySelf, sipMeth);
}

 ::QString sipKParts_Part::xmlFile() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KParts::Part::xmlFile();

    extern  ::QString sipVH_kparts_41(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_41(sipGILState, 0, sipPySelf, sipMeth);
}

 ::QDomDocument sipKParts_Part::domDocument() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KParts::Part::domDocument();

    extern  ::QDomDocument sipVH_kparts_42(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_42(sipGILState, 0, sipPySelf, sipMeth);
}

 ::KComponentData sipKParts_Part::componentData() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KParts::Part::componentData();

    extern  ::KComponentData sipVH_kparts_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_9(sipGILState, 0, sipPySelf, sipMeth);
}

 ::KActionCollection* sipKParts_Part::actionCollection() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KParts::Part::actionCollection();

    extern  ::KActionCollection* sipVH_kparts_43(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kparts_43(sipGILState, 0, sipPySelf, sipMeth);
}

 ::QAction* sipKParts_Part::action(const  ::QDomElement& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KParts::Part::action(a0);

    extern  ::QAction* sipVH_kparts_44(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QDomElement&);

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

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_setComponentData);

    if (!sipMeth)
    {
         ::KParts::Part::setComponentData(a0,a1);
        return;
    }

    extern void sipVH_kparts_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KComponentData&,bool);

    sipVH_kparts_45(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

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

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

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

    extern bool sipVH_kparts_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern bool sipVH_kparts_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

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

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

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

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

    extern void sipVH_kparts_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_kparts_5(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_kparts_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_kparts_6(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_kparts_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_kparts_7(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_kparts_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_kparts_8(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_kparts_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_kparts_8(sipGILState, 0, sipPySelf, sipMeth, a0);
}


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 || sipIsDerivedClass((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 || sipIsDerivedClass((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 || sipIsDerivedClass((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;

    {
        const  ::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 || sipIsDerivedClass((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 || sipIsDerivedClass((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;

    {
        const  ::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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_KParts_Part, &sipCpp, sipType_QWidget, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KParts::Part::setWidget(a0) : sipCpp->setWidget(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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_KParts_Part, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KParts::Part::customEvent(a0) : sipCpp->customEvent(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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_KParts_Part, &sipCpp, sipType_KParts_PartActivateEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KParts::Part::partActivateEvent(a0) : sipCpp->partActivateEvent(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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_KParts_Part, &sipCpp, sipType_KParts_PartSelectEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KParts::Part::partSelectEvent(a0) : sipCpp->partSelectEvent(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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_KParts_Part, &sipCpp, sipType_KParts_GUIActivateEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KParts::Part::guiActivateEvent(a0) : sipCpp->guiActivateEvent(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;
         ::KParts::Part *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_KParts_Part, &sipCpp, sipType_QString,&a0, &a0State))
        {
             ::QWidget*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->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;

    {
         ::KParts::Part *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KParts_Part, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;

    {
         ::KParts::Part *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KParts_Part, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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 inheritance hierarchy. */
extern "C" {static void *cast_KParts_Part(void *, const sipTypeDef *);}
static void *cast_KParts_Part(void *sipCppV, const sipTypeDef *targetType)
{
     ::KParts::Part *sipCpp = reinterpret_cast< ::KParts::Part *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    if (targetType == sipType_KParts_PartBase)
        return static_cast< ::KParts::PartBase *>(sipCpp);

    if (targetType == sipType_KXMLGUIClient)
        return static_cast< ::KXMLGUIClient *>(sipCpp);

    return sipCppV;
}


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KParts_Part(sipSimpleWrapper *);}
static void dealloc_KParts_Part(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKParts_Part *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KParts_Part(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_KParts_Part(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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[] = {{5, 0, 0}, {38, 255, 1}};


static PyMethodDef methods_KParts_Part[] = {
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KParts_Part_customEvent, 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_setAutoDeletePart), meth_KParts_Part_setAutoDeletePart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAutoDeleteWidget), meth_KParts_Part_setAutoDeleteWidget, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setManager), meth_KParts_Part_setManager, 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_slotWidgetDestroyed), meth_KParts_Part_slotWidgetDestroyed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_widget), meth_KParts_Part_widget, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KParts_Part[] = {
    {"setStatusBarText(QString)", 0, 0, 0},
    {"setWindowCaption(QString)", 0, 0, 0},
    {0, 0, 0, 0}
};


static pyqt4ClassPluginDef plugin_KParts_Part = {
    & ::KParts::Part::staticMetaObject,
    0,
    signals_KParts_Part
};


sipClassTypeDef sipTypeDef_kparts_KParts_Part = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__Part,
        {0},
        &plugin_KParts_Part
    },
    {
        sipNameNr_Part,
        {0, 255, 0},
        18, 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_type_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,
    0,
    0,
    0
};
