/*
 * Module code.
 *
 * Generated by SIP 4.8.2 on Sun Oct 11 20:18:42 2009
 */

#include "sipAPIkparts.h"

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

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 16 "sipkpartspart1.cpp"
#line 221 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 19 "sipkpartspart1.cpp"


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KParts::Plugin::PluginInfo();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const KParts::Plugin::PluginInfo * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KParts_Plugin_PluginInfo,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KParts::Plugin::PluginInfo(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


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

    sipVal = &sipCpp->m_absXMLFileName;

    return sipConvertFromType(sipVal,sipType_QString, NULL);
}


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

    int sipValState;
    int sipIsErr = 0;

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

    if (sipIsErr)
        return -1;

    sipCpp->m_absXMLFileName = *sipVal;

    sipReleaseType(sipVal, sipType_QString, sipValState);

    return 0;
}


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

    sipVal = &sipCpp->m_document;

    return sipConvertFromType(sipVal,sipType_QDomDocument, NULL);
}


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

    int sipIsErr = 0;

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

    if (sipIsErr)
        return -1;

    sipCpp->m_document = *sipVal;

    return 0;
}


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

    sipVal = &sipCpp->m_relXMLFileName;

    return sipConvertFromType(sipVal,sipType_QString, NULL);
}


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

    int sipValState;
    int sipIsErr = 0;

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

    if (sipIsErr)
        return -1;

    sipCpp->m_relXMLFileName = *sipVal;

    sipReleaseType(sipVal, sipType_QString, sipValState);

    return 0;
}

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


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

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

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 249 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 252 "sipkpartspart1.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 255 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 258 "sipkpartspart1.cpp"
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 267 "sipkpartspart1.cpp"
#line 130 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 270 "sipkpartspart1.cpp"
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 273 "sipkpartspart1.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/plugin.sip"
#include <kparts/plugin.h>
#line 276 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 279 "sipkpartspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 282 "sipkpartspart1.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 285 "sipkpartspart1.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 288 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 291 "sipkpartspart1.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 322 "sipkpartspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 325 "sipkpartspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 328 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 331 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 334 "sipkpartspart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 337 "sipkpartspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 340 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 343 "sipkpartspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 346 "sipkpartspart1.cpp"
#line 221 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 349 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 352 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 355 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 358 "sipkpartspart1.cpp"
#line 136 "/usr/local/share/py-sip/QtGui/qfontdatabase.sip"
#include <qfontdatabase.h>
#include <qlist.h>
#line 66 "/usr/local/share/py-sip/QtGui/qprinterinfo.sip"
#include <qlist.h>
#line 229 "/usr/local/share/py-sip/QtGui/qwizard.sip"
#include <qwizard.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 520 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 419 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qsize.sip"
#include <qsize.h>
#line 422 "sipkpartspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qaction.sip"
#include <qaction.h>
#line 425 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 428 "sipkpartspart1.cpp"
#line 44 "/usr/local/share/py-sip/QtGui/qgraphicswidget.sip"
#include <qgraphicswidget.h>
#line 431 "sipkpartspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qabstractbutton.sip"
#include <qabstractbutton.h>
#line 434 "sipkpartspart1.cpp"
#line 466 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 482 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 439 "sipkpartspart1.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qgraphicsitem.sip"
#include <qgraphicsitem.h>
#line 442 "sipkpartspart1.cpp"
#line 99 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 445 "sipkpartspart1.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qgraphicsview.sip"
#include <qgraphicsview.h>
#line 448 "sipkpartspart1.cpp"
#line 165 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 451 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qlistwidget.sip"
#include <qlistwidget.h>
#line 454 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qdockwidget.sip"
#include <qdockwidget.h>
#line 457 "sipkpartspart1.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qmdisubwindow.sip"
#include <qmdisubwindow.h>
#line 460 "sipkpartspart1.cpp"
#line 334 "/usr/local/share/py-sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 463 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtextedit.sip"
#include <qtextedit.h>
#line 56 "/usr/local/share/py-sip/QtGui/qtextedit.sip"
#include <qtextedit.h>
#line 468 "sipkpartspart1.cpp"
#line 44 "/usr/local/share/py-sip/QtGui/qprinterinfo.sip"
#include <qprinterinfo.h>
#line 471 "sipkpartspart1.cpp"
#line 202 "/usr/local/share/py-sip/QtGui/qstandarditemmodel.sip"
#include <qstandarditemmodel.h>
#line 474 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtablewidget.sip"
#include <qtablewidget.h>
#line 477 "sipkpartspart1.cpp"
#line 66 "/usr/local/share/py-sip/QtGui/qtablewidget.sip"
#include <qtablewidget.h>
#line 480 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 114 "/usr/local/share/py-sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 485 "sipkpartspart1.cpp"
#line 65 "/usr/local/share/py-sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 88 "/usr/local/share/py-sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 490 "sipkpartspart1.cpp"
#line 149 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 175 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 495 "sipkpartspart1.cpp"
#line 83 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 101 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 500 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtreewidget.sip"
#include <qtreewidget.h>
#line 503 "sipkpartspart1.cpp"
#line 75 "/usr/local/share/py-sip/QtGui/qundostack.sip"
#include <qundostack.h>
#line 506 "sipkpartspart1.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qwizard.sip"
#include <qwizard.h>
#line 509 "sipkpartspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qprinter.sip"
#include <qprinter.h>
#line 512 "sipkpartspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qfontdatabase.sip"
#include <qfontdatabase.h>
#line 515 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kxmlguibuilder.sip"
#include <kxmlguibuilder.h>
#line 518 "sipkpartspart1.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kstandardaction.sip"
#include <qlist.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kwidgetitemdelegate.sip"
#include <qlist.h>
#line 114 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kwindowsystem.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 555 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kactioncollection.sip"
#include <kactioncollection.h>
#line 558 "sipkpartspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qactiongroup.sip"
#include <qactiongroup.h>
#line 561 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 564 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kicontheme.sip"
#include <kicontheme.h>
#line 567 "sipkpartspart1.cpp"
#line 212 "/usr/local/share/py-sip/QtGui/qtreewidget.sip"
#include <qtreewidget.h>
#line 570 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/ksessionmanager.sip"
#include <ksessionmanager.h>
#line 573 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kplotpoint.sip"
#include <kplotpoint.h>
#line 576 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kplotobject.sip"
#include <kplotobject.h>
#line 579 "sipkpartspart1.cpp"
#line 24 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kglobalshortcutinfo.sip"
#include <kglobalshortcutinfo.h>
#line 582 "sipkpartspart1.cpp"
#line 83 "/usr/local/share/py-sip/QtCore/qchar.sip"
#include <qchar.h>
#line 585 "sipkpartspart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kconfigdialogmanager.sip"
#include <kconfigdialogmanager.h>
#line 588 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kmainwindow.sip"
#include <kmainwindow.h>
#line 591 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/ktoolbar.sip"
#include <ktoolbar.h>
#line 594 "sipkpartspart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kxmlguifactory.sip"
#include <kxmlguifactory.h>
#line 597 "sipkpartspart1.cpp"
#line 345 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 600 "sipkpartspart1.cpp"


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

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

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[19];
};

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

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

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

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

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

    return _id;
}

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

QString sipKParts_Plugin::xmlFile() const
{
    typedef QString (*sipVH_QtCore_58)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtCore_58)(sipModuleAPI_kparts_QtCore->em_virthandlers[58]))(sipGILState,meth);
}

QString sipKParts_Plugin::localXMLFile() const
{
    typedef QString (*sipVH_QtCore_58)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtCore_58)(sipModuleAPI_kparts_QtCore->em_virthandlers[58]))(sipGILState,meth);
}

void sipKParts_Plugin::setComponentData(const KComponentData& a0)
{
    typedef void (*sipVH_kdeui_6)(sip_gilstate_t,PyObject *,const KComponentData&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_kdeui_6)(sipModuleAPI_kparts_kdeui->em_virthandlers[6]))(sipGILState,meth,a0);
}

bool sipKParts_Plugin::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtCore_13)(sipModuleAPI_kparts_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

void sipKParts_Plugin::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtCore_3)(sipModuleAPI_kparts_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipKParts_Plugin::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtCore_20)(sipModuleAPI_kparts_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipKParts_Plugin::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtCore_19)(sipModuleAPI_kparts_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipKParts_Plugin::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

void sipKParts_Plugin::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

QAction * sipKParts_Plugin::action(const QDomElement& a0) const
{
    typedef QAction * (*sipVH_kdeui_10)(sip_gilstate_t,PyObject *,const QDomElement&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_kdeui_10)(sipModuleAPI_kparts_kdeui->em_virthandlers[10]))(sipGILState,meth,a0);
}

KActionCollection * sipKParts_Plugin::actionCollection() const
{
    typedef KActionCollection * (*sipVH_kdeui_9)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_kdeui_9)(sipModuleAPI_kparts_kdeui->em_virthandlers[9]))(sipGILState,meth);
}

KComponentData sipKParts_Plugin::componentData() const
{
    typedef KComponentData (*sipVH_kdeui_8)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_kdeui_8)(sipModuleAPI_kparts_kdeui->em_virthandlers[8]))(sipGILState,meth);
}

QDomDocument sipKParts_Plugin::domDocument() const
{
    typedef QDomDocument (*sipVH_kdeui_7)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_kdeui_7)(sipModuleAPI_kparts_kdeui->em_virthandlers[7]))(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

void sipKParts_Plugin::setLocalXMLFile(const QString& a0)
{
    typedef void (*sipVH_QtCore_29)(sip_gilstate_t,PyObject *,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtCore_29)(sipModuleAPI_kparts_QtCore->em_virthandlers[29]))(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_kdeui_4)(sipModuleAPI_kparts_kdeui->em_virthandlers[4]))(sipGILState,meth,a0,a1);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_kdeui_3)(sipModuleAPI_kparts_kdeui->em_virthandlers[3]))(sipGILState,meth,a0,a1);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1|bb",&sipSelf,sipType_KParts_Plugin,&sipCpp,sipType_QString,&a0,&a0State,&a1,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setXMLFile(sipSelfWasArg,*a0,a1,a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_KParts_Plugin,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setLocalXMLFile(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1|b",&sipSelf,sipType_KParts_Plugin,&sipCpp,sipType_QString,&a0,&a0State,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setXML(sipSelfWasArg,*a0,a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1|E",&sipSelf,sipType_KParts_Plugin,&sipCpp,sipType_QString,&a0,&a0State,sipType_KXMLGUIClient_ReverseStateChange,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_stateChanged(sipSelfWasArg,*a0,a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_Plugin_receivers(PyObject *, PyObject *);}
static PyObject *meth_KParts_Plugin_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipKParts_Plugin *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKParts_Plugin *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKParts_Plugin *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_Plugin *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_Plugin *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_Plugin *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::Plugin *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Plugin,sipName_xmlFile);

    return NULL;
}


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

    {
        KParts::Plugin *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Plugin,sipName_localXMLFile);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_Plugin_loadPlugins(PyObject *, PyObject *);}
static PyObject *meth_KParts_Plugin_loadPlugins(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        QObject * a0;
        const KComponentData * a1;

        if (sipParseArgs(&sipArgsParsed,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(&sipArgsParsed,sipArgs,"J:J1",sipType_QObject,&a0,sipType_QList_0200KParts_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_0200KParts_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(&sipArgsParsed,sipArgs,"J:J1J9",sipType_QObject,&a0,sipType_QList_0200KParts_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_0200KParts_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(&sipArgsParsed,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(sipArgsParsed,sipName_Plugin,sipName_loadPlugins);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_Plugin_pluginObjects(PyObject *, PyObject *);}
static PyObject *meth_KParts_Plugin_pluginObjects(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        QObject * a0;

        if (sipParseArgs(&sipArgsParsed,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

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0201KParts_Plugin,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_Plugin_pluginInfos(PyObject *, PyObject *);}
static PyObject *meth_KParts_Plugin_pluginInfos(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KComponentData * a0;

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

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

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200KParts_Plugin_PluginInfo,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_Plugin_loadPlugin(PyObject *, PyObject *);}
static PyObject *meth_KParts_Plugin_loadPlugin(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

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

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

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

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

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

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

            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

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

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

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

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

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


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

    {
        const KComponentData * a0;
        sipKParts_Plugin *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_Plugin)
        return ptr;

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

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    if (!sipCpp)
    {
        QObject * a0 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|JH",sipType_QObject,&a0,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKParts_Plugin(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_KParts_Plugin[] = {{111, 0, 0}, {308, 6, 1}};


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


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

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/partmanager.sip"
#include <kparts/partmanager.h>
#line 1871 "sipkpartspart1.cpp"

#line 46 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 1875 "sipkpartspart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1878 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 1881 "sipkpartspart1.cpp"
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 1884 "sipkpartspart1.cpp"
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1893 "sipkpartspart1.cpp"
#line 130 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 1896 "sipkpartspart1.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/plugin.sip"
#include <kparts/plugin.h>
#line 1899 "sipkpartspart1.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/plugin.sip"
#include <kparts/plugin.h>
#line 1902 "sipkpartspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1905 "sipkpartspart1.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1908 "sipkpartspart1.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1911 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1914 "sipkpartspart1.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 1945 "sipkpartspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 1948 "sipkpartspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 1951 "sipkpartspart1.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1954 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 1957 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1960 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 1963 "sipkpartspart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1966 "sipkpartspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1969 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1972 "sipkpartspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1975 "sipkpartspart1.cpp"


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

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

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool eventFilter(QObject *,QEvent *);
    void addPart(KParts::Part *,bool);
    void removePart(KParts::Part *);
    void replacePart(KParts::Part *,KParts::Part *,bool);
    void setActivePart(KParts::Part *,QWidget *);
    KParts::Part * activePart() const;
    QWidget * activeWidget() const;
    void setSelectedPart(KParts::Part *,QWidget *);
    KParts::Part * selectedPart() const;
    QWidget * selectedWidget() const;
    void setActiveComponent(const KComponentData&);
    bool event(QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[17];
};

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

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

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

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

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

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

    return _id;
}

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

void sipKParts_PartManager::removePart(KParts::Part *a0)
{
    extern void sipVH_kparts_3(sip_gilstate_t,PyObject *,KParts::Part *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    sipVH_kparts_3(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

KParts::Part * sipKParts_PartManager::activePart() const
{
    extern KParts::Part * sipVH_kparts_0(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_kparts_0(sipGILState,meth);
}

QWidget * sipKParts_PartManager::activeWidget() const
{
    typedef QWidget * (*sipVH_QtGui_105)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtGui_105)(sipModuleAPI_kparts_QtGui->em_virthandlers[105]))(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

KParts::Part * sipKParts_PartManager::selectedPart() const
{
    extern KParts::Part * sipVH_kparts_0(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_kparts_0(sipGILState,meth);
}

QWidget * sipKParts_PartManager::selectedWidget() const
{
    typedef QWidget * (*sipVH_QtGui_105)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtGui_105)(sipModuleAPI_kparts_QtGui->em_virthandlers[105]))(sipGILState,meth);
}

void sipKParts_PartManager::setActiveComponent(const KComponentData& a0)
{
    typedef void (*sipVH_kdeui_6)(sip_gilstate_t,PyObject *,const KComponentData&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_kdeui_6)(sipModuleAPI_kparts_kdeui->em_virthandlers[6]))(sipGILState,meth,a0);
}

bool sipKParts_PartManager::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtCore_13)(sipModuleAPI_kparts_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

void sipKParts_PartManager::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtCore_3)(sipModuleAPI_kparts_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipKParts_PartManager::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtCore_20)(sipModuleAPI_kparts_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipKParts_PartManager::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtCore_19)(sipModuleAPI_kparts_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipKParts_PartManager::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

void sipKParts_PartManager::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

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

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

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

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

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

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

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

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

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


extern "C" {static PyObject *meth_KParts_PartManager_receivers(PyObject *, PyObject *);}
static PyObject *meth_KParts_PartManager_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipKParts_PartManager *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KParts_PartManager,&sipCpp,&a0))
        {
            int sipRes = 0;

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKParts_PartManager *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_PartManager,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKParts_PartManager *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_PartManager,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_PartManager *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_PartManager,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_PartManager *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KParts_PartManager,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_PartManager *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KParts_PartManager,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_PartManager_setSelectionPolicy(PyObject *, PyObject *);}
static PyObject *meth_KParts_PartManager_setSelectionPolicy(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_PartManager,sipName_setSelectionPolicy);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_PartManager_selectionPolicy(PyObject *, PyObject *);}
static PyObject *meth_KParts_PartManager_selectionPolicy(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_PartManager,sipName_selectionPolicy);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_PartManager_setAllowNestedParts(PyObject *, PyObject *);}
static PyObject *meth_KParts_PartManager_setAllowNestedParts(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_PartManager,sipName_setAllowNestedParts);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_PartManager_allowNestedParts(PyObject *, PyObject *);}
static PyObject *meth_KParts_PartManager_allowNestedParts(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_PartManager,sipName_allowNestedParts);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_PartManager_setIgnoreScrollBars(PyObject *, PyObject *);}
static PyObject *meth_KParts_PartManager_setIgnoreScrollBars(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_PartManager,sipName_setIgnoreScrollBars);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_PartManager_ignoreScrollBars(PyObject *, PyObject *);}
static PyObject *meth_KParts_PartManager_ignoreScrollBars(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_PartManager,sipName_ignoreScrollBars);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_PartManager_setActivationButtonMask(PyObject *, PyObject *);}
static PyObject *meth_KParts_PartManager_setActivationButtonMask(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        short a0;
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_PartManager,sipName_setActivationButtonMask);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_PartManager_activationButtonMask(PyObject *, PyObject *);}
static PyObject *meth_KParts_PartManager_activationButtonMask(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_PartManager,sipName_activationButtonMask);

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_PartManager,sipName_eventFilter);

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_PartManager,sipName_addPart);

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_PartManager,sipName_removePart);

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_PartManager,sipName_replacePart);

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_PartManager,sipName_setActivePart);

    return NULL;
}


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

    {
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_PartManager,sipName_activePart);

    return NULL;
}


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

    {
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_PartManager,sipName_activeWidget);

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_PartManager,sipName_setSelectedPart);

    return NULL;
}


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

    {
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_PartManager,sipName_selectedPart);

    return NULL;
}


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

    {
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_PartManager,sipName_selectedWidget);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_PartManager_parts(PyObject *, PyObject *);}
static PyObject *meth_KParts_PartManager_parts(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0201KParts_Part,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_PartManager_addManagedTopLevelWidget(PyObject *, PyObject *);}
static PyObject *meth_KParts_PartManager_addManagedTopLevelWidget(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_PartManager,sipName_addManagedTopLevelWidget);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_PartManager_removeManagedTopLevelWidget(PyObject *, PyObject *);}
static PyObject *meth_KParts_PartManager_removeManagedTopLevelWidget(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_PartManager,sipName_removeManagedTopLevelWidget);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_PartManager_reason(PyObject *, PyObject *);}
static PyObject *meth_KParts_PartManager_reason(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KParts::PartManager *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_PartManager,sipName_reason);

    return NULL;
}


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

    {
        const KComponentData * a0;
        sipKParts_PartManager *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_KParts_PartManager,&sipCpp,sipType_KComponentData,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setActiveComponent(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_PartManager_slotObjectDestroyed(PyObject *, PyObject *);}
static PyObject *meth_KParts_PartManager_slotObjectDestroyed(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKParts_PartManager *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_PartManager_slotWidgetDestroyed(PyObject *, PyObject *);}
static PyObject *meth_KParts_PartManager_slotWidgetDestroyed(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKParts_PartManager *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_PartManager_slotManagedTopLevelWidgetDestroyed(PyObject *, PyObject *);}
static PyObject *meth_KParts_PartManager_slotManagedTopLevelWidgetDestroyed(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKParts_PartManager *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_PartManager)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    if (!sipCpp)
    {
        QWidget * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"JH",sipType_QWidget,&a0,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKParts_PartManager(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        QWidget * a0;
        QObject * a1;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J8JH",sipType_QWidget,&a0,sipType_QObject,&a1,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKParts_PartManager(a0,a1);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


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

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


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


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

#line 174 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 3495 "sipkpartspart1.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 3499 "sipkpartspart1.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 3502 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3505 "sipkpartspart1.cpp"
#line 76 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/event.sip"
#include <kparts/event.h>
#line 3508 "sipkpartspart1.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 3511 "sipkpartspart1.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3514 "sipkpartspart1.cpp"
#line 103 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 3517 "sipkpartspart1.cpp"
#line 126 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 3520 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 3523 "sipkpartspart1.cpp"
#line 112 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/event.sip"
#include <kparts/event.h>
#line 3526 "sipkpartspart1.cpp"
#line 93 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/event.sip"
#include <kparts/event.h>
#line 3529 "sipkpartspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3532 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kiconloader.sip"
#include <kiconloader.h>
#line 3535 "sipkpartspart1.cpp"
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 3538 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 3541 "sipkpartspart1.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/partmanager.sip"
#include <kparts/partmanager.h>
#line 3544 "sipkpartspart1.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3547 "sipkpartspart1.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3550 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3553 "sipkpartspart1.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 3584 "sipkpartspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 3587 "sipkpartspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 3590 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 3593 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 3596 "sipkpartspart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3599 "sipkpartspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 3602 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 3605 "sipkpartspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 3608 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 3611 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 3614 "sipkpartspart1.cpp"
#line 221 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 3617 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 3620 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 3623 "sipkpartspart1.cpp"
#line 136 "/usr/local/share/py-sip/QtGui/qfontdatabase.sip"
#include <qfontdatabase.h>
#include <qlist.h>
#line 66 "/usr/local/share/py-sip/QtGui/qprinterinfo.sip"
#include <qlist.h>
#line 229 "/usr/local/share/py-sip/QtGui/qwizard.sip"
#include <qwizard.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 520 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3684 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qsize.sip"
#include <qsize.h>
#line 3687 "sipkpartspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qaction.sip"
#include <qaction.h>
#line 3690 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 3693 "sipkpartspart1.cpp"
#line 44 "/usr/local/share/py-sip/QtGui/qgraphicswidget.sip"
#include <qgraphicswidget.h>
#line 3696 "sipkpartspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qabstractbutton.sip"
#include <qabstractbutton.h>
#line 3699 "sipkpartspart1.cpp"
#line 466 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 482 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3704 "sipkpartspart1.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qgraphicsitem.sip"
#include <qgraphicsitem.h>
#line 3707 "sipkpartspart1.cpp"
#line 99 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 3710 "sipkpartspart1.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qgraphicsview.sip"
#include <qgraphicsview.h>
#line 3713 "sipkpartspart1.cpp"
#line 165 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 3716 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qlistwidget.sip"
#include <qlistwidget.h>
#line 3719 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qdockwidget.sip"
#include <qdockwidget.h>
#line 3722 "sipkpartspart1.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qmdisubwindow.sip"
#include <qmdisubwindow.h>
#line 3725 "sipkpartspart1.cpp"
#line 334 "/usr/local/share/py-sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 3728 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtextedit.sip"
#include <qtextedit.h>
#line 56 "/usr/local/share/py-sip/QtGui/qtextedit.sip"
#include <qtextedit.h>
#line 3733 "sipkpartspart1.cpp"
#line 44 "/usr/local/share/py-sip/QtGui/qprinterinfo.sip"
#include <qprinterinfo.h>
#line 3736 "sipkpartspart1.cpp"
#line 202 "/usr/local/share/py-sip/QtGui/qstandarditemmodel.sip"
#include <qstandarditemmodel.h>
#line 3739 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtablewidget.sip"
#include <qtablewidget.h>
#line 3742 "sipkpartspart1.cpp"
#line 66 "/usr/local/share/py-sip/QtGui/qtablewidget.sip"
#include <qtablewidget.h>
#line 3745 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 114 "/usr/local/share/py-sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 3750 "sipkpartspart1.cpp"
#line 65 "/usr/local/share/py-sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 88 "/usr/local/share/py-sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 3755 "sipkpartspart1.cpp"
#line 149 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 175 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 3760 "sipkpartspart1.cpp"
#line 83 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 101 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 3765 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtreewidget.sip"
#include <qtreewidget.h>
#line 3768 "sipkpartspart1.cpp"
#line 75 "/usr/local/share/py-sip/QtGui/qundostack.sip"
#include <qundostack.h>
#line 3771 "sipkpartspart1.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qwizard.sip"
#include <qwizard.h>
#line 3774 "sipkpartspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qprinter.sip"
#include <qprinter.h>
#line 3777 "sipkpartspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qfontdatabase.sip"
#include <qfontdatabase.h>
#line 3780 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kxmlguibuilder.sip"
#include <kxmlguibuilder.h>
#line 3783 "sipkpartspart1.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kstandardaction.sip"
#include <qlist.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kwidgetitemdelegate.sip"
#include <qlist.h>
#line 114 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kwindowsystem.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3820 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kactioncollection.sip"
#include <kactioncollection.h>
#line 3823 "sipkpartspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qactiongroup.sip"
#include <qactiongroup.h>
#line 3826 "sipkpartspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 3829 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kicontheme.sip"
#include <kicontheme.h>
#line 3832 "sipkpartspart1.cpp"
#line 212 "/usr/local/share/py-sip/QtGui/qtreewidget.sip"
#include <qtreewidget.h>
#line 3835 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/ksessionmanager.sip"
#include <ksessionmanager.h>
#line 3838 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kplotpoint.sip"
#include <kplotpoint.h>
#line 3841 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kplotobject.sip"
#include <kplotobject.h>
#line 3844 "sipkpartspart1.cpp"
#line 24 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kglobalshortcutinfo.sip"
#include <kglobalshortcutinfo.h>
#line 3847 "sipkpartspart1.cpp"
#line 83 "/usr/local/share/py-sip/QtCore/qchar.sip"
#include <qchar.h>
#line 3850 "sipkpartspart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kconfigdialogmanager.sip"
#include <kconfigdialogmanager.h>
#line 3853 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kmainwindow.sip"
#include <kmainwindow.h>
#line 3856 "sipkpartspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/ktoolbar.sip"
#include <ktoolbar.h>
#line 3859 "sipkpartspart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kxmlguifactory.sip"
#include <kxmlguifactory.h>
#line 3862 "sipkpartspart1.cpp"
#line 345 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 3865 "sipkpartspart1.cpp"


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

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

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

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtectVirt_setXMLFile(bool,const QString&,bool,bool);
    void sipProtectVirt_setLocalXMLFile(bool,const QString&);
    void sipProtectVirt_setXML(bool,const QString&,bool);
    void sipProtectVirt_setDOMDocument(bool,const QDomDocument&,bool);
    void sipProtectVirt_stateChanged(bool,const QString&,KXMLGUIClient::ReverseStateChange);
    void sipProtectVirt_setComponentData(bool,const KComponentData&);
    void sipProtectVirt_setComponentData(bool,const KComponentData&,bool);
    void sipProtect_setPluginInterfaceVersion(int);
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    void sipProtectVirt_setWidget(bool,QWidget *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_partActivateEvent(bool,KParts::PartActivateEvent *);
    void sipProtectVirt_partSelectEvent(bool,KParts::PartSelectEvent *);
    QWidget * sipProtect_hostContainer(const QString&);
    void sipProtect_loadPlugins();
    void sipProtect_slotWidgetDestroyed();
    bool sipProtect_openFile();
    void sipProtect_abortLoad();
    void sipProtectVirt_guiActivateEvent(bool,KParts::GUIActivateEvent *);
    bool sipProtect_isLocalFileTemporary() const;
    void sipProtect_setLocalFileTemporary(bool);
    void sipProtect_setUrl(const KUrl&);
    QString sipProtect_localFilePath() const;
    void sipProtect_setLocalFilePath(const QString&);
    bool sipProtect_saveFile();
    bool sipProtectVirt_saveToUrl(bool);

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[40];
};

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

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

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

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

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

    return _id;
}

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

void sipKParts_ReadWritePart::setReadWrite(bool a0)
{
    typedef void (*sipVH_QtNetwork_2)(sip_gilstate_t,PyObject *,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtNetwork_2)(sipModuleAPI_kparts_QtNetwork->em_virthandlers[2]))(sipGILState,meth,a0);
}

bool sipKParts_ReadWritePart::queryClose()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtCore_1)(sipModuleAPI_kparts_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipKParts_ReadWritePart::closeUrl()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtCore_1)(sipModuleAPI_kparts_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipKParts_ReadWritePart::closeUrl(bool a0)
{
    typedef bool (*sipVH_QtGui_12)(sip_gilstate_t,PyObject *,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtGui_12)(sipModuleAPI_kparts_QtGui->em_virthandlers[12]))(sipGILState,meth,a0);
}

bool sipKParts_ReadWritePart::saveAs(const KUrl& a0)
{
    extern bool sipVH_kparts_5(sip_gilstate_t,PyObject *,const KUrl&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_kparts_5(sipGILState,meth,a0);
}

void sipKParts_ReadWritePart::setModified(bool a0)
{
    typedef void (*sipVH_QtNetwork_2)(sip_gilstate_t,PyObject *,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtNetwork_2)(sipModuleAPI_kparts_QtNetwork->em_virthandlers[2]))(sipGILState,meth,a0);
}

bool sipKParts_ReadWritePart::save()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtCore_1)(sipModuleAPI_kparts_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipKParts_ReadWritePart::saveFile()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return 0;

    return ((sipVH_QtCore_1)(sipModuleAPI_kparts_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipKParts_ReadWritePart::saveToUrl()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtCore_1)(sipModuleAPI_kparts_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipKParts_ReadWritePart::openUrl(const KUrl& a0)
{
    extern bool sipVH_kparts_5(sip_gilstate_t,PyObject *,const KUrl&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_kparts_5(sipGILState,meth,a0);
}

bool sipKParts_ReadWritePart::openFile()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return 0;

    return ((sipVH_QtCore_1)(sipModuleAPI_kparts_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

void sipKParts_ReadWritePart::guiActivateEvent(KParts::GUIActivateEvent *a0)
{
    extern void sipVH_kparts_6(sip_gilstate_t,PyObject *,KParts::GUIActivateEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    sipVH_kparts_6(sipGILState,meth,a0);
}

void sipKParts_ReadWritePart::embed(QWidget *a0)
{
    typedef void (*sipVH_QtGui_8)(sip_gilstate_t,PyObject *,QWidget *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtGui_8)(sipModuleAPI_kparts_QtGui->em_virthandlers[8]))(sipGILState,meth,a0);
}

QWidget * sipKParts_ReadWritePart::widget()
{
    typedef QWidget * (*sipVH_QtGui_105)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtGui_105)(sipModuleAPI_kparts_QtGui->em_virthandlers[105]))(sipGILState,meth);
}

void sipKParts_ReadWritePart::setManager(KParts::PartManager *a0)
{
    extern void sipVH_kparts_10(sip_gilstate_t,PyObject *,KParts::PartManager *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    sipVH_kparts_10(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

void sipKParts_ReadWritePart::setSelectable(bool a0)
{
    typedef void (*sipVH_QtNetwork_2)(sip_gilstate_t,PyObject *,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtNetwork_2)(sipModuleAPI_kparts_QtNetwork->em_virthandlers[2]))(sipGILState,meth,a0);
}

void sipKParts_ReadWritePart::setWidget(QWidget *a0)
{
    typedef void (*sipVH_QtGui_8)(sip_gilstate_t,PyObject *,QWidget *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtGui_8)(sipModuleAPI_kparts_QtGui->em_virthandlers[8]))(sipGILState,meth,a0);
}

void sipKParts_ReadWritePart::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtCore_19)(sipModuleAPI_kparts_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipKParts_ReadWritePart::partActivateEvent(KParts::PartActivateEvent *a0)
{
    extern void sipVH_kparts_8(sip_gilstate_t,PyObject *,KParts::PartActivateEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    sipVH_kparts_8(sipGILState,meth,a0);
}

void sipKParts_ReadWritePart::partSelectEvent(KParts::PartSelectEvent *a0)
{
    extern void sipVH_kparts_7(sip_gilstate_t,PyObject *,KParts::PartSelectEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    sipVH_kparts_7(sipGILState,meth,a0);
}

bool sipKParts_ReadWritePart::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtCore_13)(sipModuleAPI_kparts_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

void sipKParts_ReadWritePart::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtCore_3)(sipModuleAPI_kparts_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipKParts_ReadWritePart::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtCore_20)(sipModuleAPI_kparts_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipKParts_ReadWritePart::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

void sipKParts_ReadWritePart::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

void sipKParts_ReadWritePart::setComponentData(const KComponentData& a0)
{
    typedef void (*sipVH_kdeui_6)(sip_gilstate_t,PyObject *,const KComponentData&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_kdeui_6)(sipModuleAPI_kparts_kdeui->em_virthandlers[6]))(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

QAction * sipKParts_ReadWritePart::action(const QDomElement& a0) const
{
    typedef QAction * (*sipVH_kdeui_10)(sip_gilstate_t,PyObject *,const QDomElement&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_kdeui_10)(sipModuleAPI_kparts_kdeui->em_virthandlers[10]))(sipGILState,meth,a0);
}

KActionCollection * sipKParts_ReadWritePart::actionCollection() const
{
    typedef KActionCollection * (*sipVH_kdeui_9)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_kdeui_9)(sipModuleAPI_kparts_kdeui->em_virthandlers[9]))(sipGILState,meth);
}

KComponentData sipKParts_ReadWritePart::componentData() const
{
    typedef KComponentData (*sipVH_kdeui_8)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_kdeui_8)(sipModuleAPI_kparts_kdeui->em_virthandlers[8]))(sipGILState,meth);
}

QDomDocument sipKParts_ReadWritePart::domDocument() const
{
    typedef QDomDocument (*sipVH_kdeui_7)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_kdeui_7)(sipModuleAPI_kparts_kdeui->em_virthandlers[7]))(sipGILState,meth);
}

QString sipKParts_ReadWritePart::xmlFile() const
{
    typedef QString (*sipVH_QtCore_58)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtCore_58)(sipModuleAPI_kparts_QtCore->em_virthandlers[58]))(sipGILState,meth);
}

QString sipKParts_ReadWritePart::localXMLFile() const
{
    typedef QString (*sipVH_QtCore_58)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtCore_58)(sipModuleAPI_kparts_QtCore->em_virthandlers[58]))(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

void sipKParts_ReadWritePart::setLocalXMLFile(const QString& a0)
{
    typedef void (*sipVH_QtCore_29)(sip_gilstate_t,PyObject *,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtCore_29)(sipModuleAPI_kparts_QtCore->em_virthandlers[29]))(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_kdeui_4)(sipModuleAPI_kparts_kdeui->em_virthandlers[4]))(sipGILState,meth,a0,a1);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_kdeui_3)(sipModuleAPI_kparts_kdeui->em_virthandlers[3]))(sipGILState,meth,a0,a1);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


extern "C" {static PyObject *meth_KParts_ReadWritePart_setXMLFile(PyObject *, PyObject *);}
static PyObject *meth_KParts_ReadWritePart_setXMLFile(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1|bb",&sipSelf,sipType_KParts_ReadWritePart,&sipCpp,sipType_QString,&a0,&a0State,&a1,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setXMLFile(sipSelfWasArg,*a0,a1,a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_KParts_ReadWritePart,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setLocalXMLFile(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1|b",&sipSelf,sipType_KParts_ReadWritePart,&sipCpp,sipType_QString,&a0,&a0State,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setXML(sipSelfWasArg,*a0,a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_ReadWritePart_stateChanged(PyObject *, PyObject *);}
static PyObject *meth_KParts_ReadWritePart_stateChanged(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1|E",&sipSelf,sipType_KParts_ReadWritePart,&sipCpp,sipType_QString,&a0,&a0State,sipType_KXMLGUIClient_ReverseStateChange,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_stateChanged(sipSelfWasArg,*a0,a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KComponentData * a0;
        sipKParts_ReadWritePart *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_ReadWritePart_setPluginInterfaceVersion(PyObject *, PyObject *);}
static PyObject *meth_KParts_ReadWritePart_setPluginInterfaceVersion(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        int a0;
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pi",&sipSelf,sipType_KParts_ReadWritePart,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPluginInterfaceVersion(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_ReadWritePart_receivers(PyObject *, PyObject *);}
static PyObject *meth_KParts_ReadWritePart_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KParts_ReadWritePart,&sipCpp,&a0))
        {
            int sipRes = 0;

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_ReadWritePart,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_ReadWritePart,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KParts_ReadWritePart,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KParts_ReadWritePart,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QWidget * a0;
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_ReadWritePart,&sipCpp,sipType_QWidget,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setWidget(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_ReadWritePart,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_ReadWritePart,&sipCpp,sipType_KParts_PartActivateEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_partActivateEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_ReadWritePart,&sipCpp,sipType_KParts_PartSelectEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_partSelectEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_ReadWritePart_hostContainer(PyObject *, PyObject *);}
static PyObject *meth_KParts_ReadWritePart_hostContainer(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_hostContainer(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_ReadWritePart_loadPlugins(PyObject *, PyObject *);}
static PyObject *meth_KParts_ReadWritePart_loadPlugins(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKParts_ReadWritePart *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_ReadWritePart_slotWidgetDestroyed(PyObject *, PyObject *);}
static PyObject *meth_KParts_ReadWritePart_slotWidgetDestroyed(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKParts_ReadWritePart *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_ReadWritePart_openFile(PyObject *, PyObject *);}
static PyObject *meth_KParts_ReadWritePart_openFile(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipKParts_ReadWritePart *sipCpp;

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_openFile();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_ReadWritePart_abortLoad(PyObject *, PyObject *);}
static PyObject *meth_KParts_ReadWritePart_abortLoad(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKParts_ReadWritePart *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_ReadWritePart,&sipCpp,sipType_KParts_GUIActivateEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_guiActivateEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_ReadWritePart_isLocalFileTemporary(PyObject *, PyObject *);}
static PyObject *meth_KParts_ReadWritePart_isLocalFileTemporary(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKParts_ReadWritePart *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_isLocalFileTemporary();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_ReadWritePart_setLocalFileTemporary(PyObject *, PyObject *);}
static PyObject *meth_KParts_ReadWritePart_setLocalFileTemporary(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pb",&sipSelf,sipType_KParts_ReadWritePart,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setLocalFileTemporary(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_ReadWritePart_setUrl(PyObject *, PyObject *);}
static PyObject *meth_KParts_ReadWritePart_setUrl(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KUrl * a0;
        sipKParts_ReadWritePart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_KParts_ReadWritePart,&sipCpp,sipType_KUrl,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setUrl(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_ReadWritePart_localFilePath(PyObject *, PyObject *);}
static PyObject *meth_KParts_ReadWritePart_localFilePath(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKParts_ReadWritePart *sipCpp;

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_ReadWritePart_setLocalFilePath(PyObject *, PyObject *);}
static PyObject *meth_KParts_ReadWritePart_setLocalFilePath(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_KParts_ReadWritePart,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setLocalFilePath(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KParts_ReadWritePart_isReadWrite(PyObject *, PyObject *);}
static PyObject *meth_KParts_ReadWritePart_isReadWrite(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KParts::ReadWritePart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_ReadWritePart,sipName_isReadWrite);

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_ReadWritePart,sipName_setReadWrite);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_ReadWritePart_isModified(PyObject *, PyObject *);}
static PyObject *meth_KParts_ReadWritePart_isModified(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KParts::ReadWritePart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_ReadWritePart,sipName_isModified);

    return NULL;
}


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

    {
        KParts::ReadWritePart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_ReadWritePart,sipName_queryClose);

    return NULL;
}


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

    {
        KParts::ReadWritePart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(&sipArgsParsed,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(sipArgsParsed,sipName_ReadWritePart,sipName_closeUrl);

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_ReadWritePart,sipName_saveAs);

    return NULL;
}


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

    {
        bool a0;
        KParts::ReadWritePart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(&sipArgsParsed,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(sipArgsParsed,sipName_ReadWritePart,sipName_setModified);

    return NULL;
}


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

    {
        KParts::ReadWritePart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_ReadWritePart,sipName_save);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_ReadWritePart_waitSaveComplete(PyObject *, PyObject *);}
static PyObject *meth_KParts_ReadWritePart_waitSaveComplete(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KParts::ReadWritePart *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_ReadWritePart,sipName_waitSaveComplete);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_ReadWritePart_saveFile(PyObject *, PyObject *);}
static PyObject *meth_KParts_ReadWritePart_saveFile(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipKParts_ReadWritePart *sipCpp;

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_saveFile();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_ReadWritePart *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_ReadWritePart)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    if (!sipCpp)
    {
        QObject * a0 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|JH",sipType_QObject,&a0,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKParts_ReadWritePart(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


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


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