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

#include "sipAPIkparts.h"

#line 257 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 12 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"

#line 142 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 16 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 19 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 22 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 113 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 47 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 31 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 34 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 37 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 40 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 43 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 46 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 49 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 55 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 58 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 64 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 67 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 70 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"


class sipKParts_BrowserHostExtension : public KParts::BrowserHostExtension
{
public:
    sipKParts_BrowserHostExtension(KParts::ReadOnlyPart*);
    virtual ~sipKParts_BrowserHostExtension();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    bool openUrlInFrame(const KUrl&,const KParts::OpenUrlArguments&,const KParts::BrowserArguments&);
    KParts::BrowserHostExtension* findFrameParent(KParts::ReadOnlyPart*,const QString&);
    const QList<KParts::ReadOnlyPart*> frames() const;
    QStringList frameNames() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[11];
};

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

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

const QMetaObject *sipKParts_BrowserHostExtension::metaObject() const
{
    return sip_kparts_qt_metaobject(sipPySelf,sipType_KParts_BrowserHostExtension);
}

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

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

    return _id;
}

void *sipKParts_BrowserHostExtension::qt_metacast(const char *_clname)
{
    return (sip_kparts_qt_metacast(sipPySelf, sipType_KParts_BrowserHostExtension, _clname)) ? this : KParts::BrowserHostExtension::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

bool sipKParts_BrowserHostExtension::openUrlInFrame(const KUrl& a0,const KParts::OpenUrlArguments& a1,const KParts::BrowserArguments& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::BrowserHostExtension::openUrlInFrame(a0,a1,a2);

    extern bool sipVH_kparts_36(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KUrl&,const KParts::OpenUrlArguments&,const KParts::BrowserArguments&);

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

KParts::BrowserHostExtension* sipKParts_BrowserHostExtension::findFrameParent(KParts::ReadOnlyPart*a0,const QString& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::BrowserHostExtension::findFrameParent(a0,a1);

    extern KParts::BrowserHostExtension* sipVH_kparts_37(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KParts::ReadOnlyPart*,const QString&);

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

const QList<KParts::ReadOnlyPart*> sipKParts_BrowserHostExtension::frames() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::BrowserHostExtension::frames();

    extern const QList<KParts::ReadOnlyPart*> sipVH_kparts_38(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

QStringList sipKParts_BrowserHostExtension::frameNames() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::BrowserHostExtension::frameNames();

    typedef QStringList (*sipVH_QtCore_27)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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


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

    {
        const KParts::BrowserHostExtension *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList((sipSelfWasArg ? sipCpp->KParts::BrowserHostExtension::frameNames() : sipCpp->frameNames()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KParts::BrowserHostExtension *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KParts::ReadOnlyPart*>((sipSelfWasArg ? sipCpp->KParts::BrowserHostExtension::frames() : sipCpp->frames()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KParts::ReadOnlyPart* a0;
        const QString* a1;
        int a1State = 0;
        KParts::BrowserHostExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1", &sipSelf, sipType_KParts_BrowserHostExtension, &sipCpp, sipType_KParts_ReadOnlyPart, &a0, sipType_QString,&a1, &a1State))
        {
            KParts::BrowserHostExtension*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::BrowserHostExtension::findFrameParent(a0,*a1) : sipCpp->findFrameParent(a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


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

    {
        const KUrl* a0;
        const KParts::OpenUrlArguments* a1;
        const KParts::BrowserArguments* a2;
        KParts::BrowserHostExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9", &sipSelf, sipType_KParts_BrowserHostExtension, &sipCpp, sipType_KUrl, &a0, sipType_KParts_OpenUrlArguments, &a1, sipType_KParts_BrowserArguments, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::BrowserHostExtension::openUrlInFrame(*a0,*a1,*a2) : sipCpp->openUrlInFrame(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QObject* a0;

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

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

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

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

    return NULL;
}


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

    if (targetType == sipType_KParts_BrowserHostExtension)
        return ptr;

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

    return NULL;
}


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KParts_BrowserHostExtension(sipSimpleWrapper *);}
static void dealloc_KParts_BrowserHostExtension(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKParts_BrowserHostExtension *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KParts_BrowserHostExtension(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

    {
        KParts::ReadOnlyPart* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KParts_BrowserHostExtension[] = {
    {SIP_MLNAME_CAST(sipName_childObject), meth_KParts_BrowserHostExtension_childObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findFrameParent), meth_KParts_BrowserHostExtension_findFrameParent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_frameNames), meth_KParts_BrowserHostExtension_frameNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_frames), meth_KParts_BrowserHostExtension_frames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_openUrlInFrame), meth_KParts_BrowserHostExtension_openUrlInFrame, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_BrowserHostExtension = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__BrowserHostExtension,
        {0}
    },
    {
        sipNameNr_BrowserHostExtension,
        {0, 255, 0},
        5, methods_KParts_BrowserHostExtension,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_BrowserHostExtension,
    0,
    init_type_KParts_BrowserHostExtension,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_BrowserHostExtension,
    0,
    0,
    0,
    release_KParts_BrowserHostExtension,
    cast_KParts_BrowserHostExtension,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KParts::BrowserHostExtension::staticMetaObject,
    0,
    0
};

#line 126 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 605 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"

#line 126 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 609 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"


extern "C" {static int slot_KParts_BrowserExtension_PopupFlags___bool__(PyObject *);}
static int slot_KParts_BrowserExtension_PopupFlags___bool__(PyObject *sipSelf)
{
    KParts::BrowserExtension::PopupFlags *sipCpp = reinterpret_cast<KParts::BrowserExtension::PopupFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_BrowserExtension_PopupFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 370 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KParts::BrowserExtension::PopupFlags::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 631 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KParts_BrowserExtension_PopupFlags___ne__(PyObject *,PyObject *);}
static PyObject *slot_KParts_BrowserExtension_PopupFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KParts::BrowserExtension::PopupFlags *sipCpp = reinterpret_cast<KParts::BrowserExtension::PopupFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_BrowserExtension_PopupFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KParts::BrowserExtension::PopupFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KParts_BrowserExtension_PopupFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 361 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KParts::BrowserExtension::PopupFlags::Int() != a0->operator KParts::BrowserExtension::PopupFlags::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 665 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
            sipReleaseType(const_cast<KParts::BrowserExtension::PopupFlags *>(a0),sipType_KParts_BrowserExtension_PopupFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kparts,ne_slot,sipType_KParts_BrowserExtension_PopupFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KParts_BrowserExtension_PopupFlags___eq__(PyObject *,PyObject *);}
static PyObject *slot_KParts_BrowserExtension_PopupFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KParts::BrowserExtension::PopupFlags *sipCpp = reinterpret_cast<KParts::BrowserExtension::PopupFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_BrowserExtension_PopupFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KParts::BrowserExtension::PopupFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KParts_BrowserExtension_PopupFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 352 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KParts::BrowserExtension::PopupFlags::Int() == a0->operator KParts::BrowserExtension::PopupFlags::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 705 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
            sipReleaseType(const_cast<KParts::BrowserExtension::PopupFlags *>(a0),sipType_KParts_BrowserExtension_PopupFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kparts,eq_slot,sipType_KParts_BrowserExtension_PopupFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KParts_BrowserExtension_PopupFlags___invert__(PyObject *);}
static PyObject *slot_KParts_BrowserExtension_PopupFlags___invert__(PyObject *sipSelf)
{
    KParts::BrowserExtension::PopupFlags *sipCpp = reinterpret_cast<KParts::BrowserExtension::PopupFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_BrowserExtension_PopupFlags));

    if (!sipCpp)
        return 0;


    {
        {
            KParts::BrowserExtension::PopupFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KParts::BrowserExtension::PopupFlags(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


extern "C" {static PyObject *slot_KParts_BrowserExtension_PopupFlags___and__(PyObject *,PyObject *);}
static PyObject *slot_KParts_BrowserExtension_PopupFlags___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KParts::BrowserExtension::PopupFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KParts_BrowserExtension_PopupFlags, &a0, &a0State, &a1))
        {
            KParts::BrowserExtension::PopupFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KParts::BrowserExtension::PopupFlags((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KParts_BrowserExtension_PopupFlags,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kparts,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KParts_BrowserExtension_PopupFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_KParts_BrowserExtension_PopupFlags___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KParts::BrowserExtension::PopupFlags* a0;
        int a0State = 0;
        KParts::BrowserExtension::PopupFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KParts_BrowserExtension_PopupFlags, &a0, &a0State, sipType_KParts_BrowserExtension_PopupFlags, &a1, &a1State))
        {
            KParts::BrowserExtension::PopupFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KParts::BrowserExtension::PopupFlags((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KParts_BrowserExtension_PopupFlags,a0State);
            sipReleaseType(a1,sipType_KParts_BrowserExtension_PopupFlags,a1State);

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

    {
        KParts::BrowserExtension::PopupFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KParts_BrowserExtension_PopupFlags, &a0, &a0State, &a1))
        {
            KParts::BrowserExtension::PopupFlags*sipRes = 0;

#line 346 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new KParts::BrowserExtension::PopupFlags(*a0 ^ a1);
#line 814 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
            sipReleaseType(a0,sipType_KParts_BrowserExtension_PopupFlags,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kparts,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KParts_BrowserExtension_PopupFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_KParts_BrowserExtension_PopupFlags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KParts::BrowserExtension::PopupFlags* a0;
        int a0State = 0;
        KParts::BrowserExtension::PopupFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KParts_BrowserExtension_PopupFlags, &a0, &a0State, sipType_KParts_BrowserExtension_PopupFlags, &a1, &a1State))
        {
            KParts::BrowserExtension::PopupFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KParts::BrowserExtension::PopupFlags((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KParts_BrowserExtension_PopupFlags,a0State);
            sipReleaseType(a1,sipType_KParts_BrowserExtension_PopupFlags,a1State);

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

    {
        KParts::BrowserExtension::PopupFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KParts_BrowserExtension_PopupFlags, &a0, &a0State, &a1))
        {
            KParts::BrowserExtension::PopupFlags*sipRes = 0;

#line 341 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new KParts::BrowserExtension::PopupFlags(*a0 | a1);
#line 866 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
            sipReleaseType(a0,sipType_KParts_BrowserExtension_PopupFlags,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kparts,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KParts_BrowserExtension_PopupFlags___int__(PyObject *);}
static PyObject *slot_KParts_BrowserExtension_PopupFlags___int__(PyObject *sipSelf)
{
    KParts::BrowserExtension::PopupFlags *sipCpp = reinterpret_cast<KParts::BrowserExtension::PopupFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_BrowserExtension_PopupFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KParts_BrowserExtension_PopupFlags___ixor__(PyObject *,PyObject *);}
static PyObject *slot_KParts_BrowserExtension_PopupFlags___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KParts_BrowserExtension_PopupFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KParts::BrowserExtension::PopupFlags *sipCpp = reinterpret_cast<KParts::BrowserExtension::PopupFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_BrowserExtension_PopupFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KParts::BrowserExtension::PopupFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KParts_BrowserExtension_PopupFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KParts::BrowserExtension::PopupFlags::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KParts_BrowserExtension_PopupFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KParts_BrowserExtension_PopupFlags___ior__(PyObject *,PyObject *);}
static PyObject *slot_KParts_BrowserExtension_PopupFlags___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KParts_BrowserExtension_PopupFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KParts::BrowserExtension::PopupFlags *sipCpp = reinterpret_cast<KParts::BrowserExtension::PopupFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_BrowserExtension_PopupFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KParts::BrowserExtension::PopupFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KParts_BrowserExtension_PopupFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KParts::BrowserExtension::PopupFlags::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KParts_BrowserExtension_PopupFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KParts_BrowserExtension_PopupFlags___iand__(PyObject *,PyObject *);}
static PyObject *slot_KParts_BrowserExtension_PopupFlags___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KParts_BrowserExtension_PopupFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KParts::BrowserExtension::PopupFlags *sipCpp = reinterpret_cast<KParts::BrowserExtension::PopupFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_BrowserExtension_PopupFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KParts::BrowserExtension::PopupFlags::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KParts::BrowserExtension::PopupFlags *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_KParts_BrowserExtension_PopupFlags(SIP_SSIZE_T);}
static void *array_KParts_BrowserExtension_PopupFlags(SIP_SSIZE_T sipNrElem)
{
    return new KParts::BrowserExtension::PopupFlags[sipNrElem];
}


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


extern "C" {static void dealloc_KParts_BrowserExtension_PopupFlags(sipSimpleWrapper *);}
static void dealloc_KParts_BrowserExtension_PopupFlags(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KParts_BrowserExtension_PopupFlags(sipGetAddress(sipSelf),0);
    }
}


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

    {
        const KParts::BrowserExtension::PopupFlags* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_KParts_BrowserExtension_PopupFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KParts::BrowserExtension::PopupFlags(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KParts::BrowserExtension::PopupFlags *>(a0),sipType_KParts_BrowserExtension_PopupFlags,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KParts::BrowserExtension::PopupFlags(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_KParts_BrowserExtension_PopupFlags(PyObject *, void **, int *, PyObject *);}
static int convertTo_KParts_BrowserExtension_PopupFlags(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    KParts::BrowserExtension::PopupFlags **sipCppPtr = reinterpret_cast<KParts::BrowserExtension::PopupFlags **>(sipCppPtrV);

#line 379 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a KParts::BrowserExtension::PopupFlags is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KParts_BrowserExtension_PopupFlag)) ||
            sipCanConvertToType(sipPy, sipType_KParts_BrowserExtension_PopupFlags, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KParts_BrowserExtension_PopupFlag)))
{
    *sipCppPtr = new KParts::BrowserExtension::PopupFlags(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KParts::BrowserExtension::PopupFlags *>(sipConvertToType(sipPy, sipType_KParts_BrowserExtension_PopupFlags, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 1161 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KParts_BrowserExtension_PopupFlags[] = {
    {(void *)slot_KParts_BrowserExtension_PopupFlags___bool__, bool_slot},
    {(void *)slot_KParts_BrowserExtension_PopupFlags___ne__, ne_slot},
    {(void *)slot_KParts_BrowserExtension_PopupFlags___eq__, eq_slot},
    {(void *)slot_KParts_BrowserExtension_PopupFlags___invert__, invert_slot},
    {(void *)slot_KParts_BrowserExtension_PopupFlags___and__, and_slot},
    {(void *)slot_KParts_BrowserExtension_PopupFlags___xor__, xor_slot},
    {(void *)slot_KParts_BrowserExtension_PopupFlags___or__, or_slot},
    {(void *)slot_KParts_BrowserExtension_PopupFlags___int__, int_slot},
    {(void *)slot_KParts_BrowserExtension_PopupFlags___ixor__, ixor_slot},
    {(void *)slot_KParts_BrowserExtension_PopupFlags___ior__, ior_slot},
    {(void *)slot_KParts_BrowserExtension_PopupFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_BrowserExtension_PopupFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KParts__BrowserExtension__PopupFlags,
        {0}
    },
    {
        sipNameNr_PopupFlags,
        {2, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KParts_BrowserExtension_PopupFlags,
    init_type_KParts_BrowserExtension_PopupFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_BrowserExtension_PopupFlags,
    assign_KParts_BrowserExtension_PopupFlags,
    array_KParts_BrowserExtension_PopupFlags,
    copy_KParts_BrowserExtension_PopupFlags,
    release_KParts_BrowserExtension_PopupFlags,
    cast_KParts_BrowserExtension_PopupFlags,
    convertTo_KParts_BrowserExtension_PopupFlags,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 126 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 1237 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"

#line 142 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 1241 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 134 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kio/kfileitem.sip"
#include <kfileitem.h>
#line 1244 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 1247 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1250 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kio/kfileitem.sip"
#include <kfileitem.h>
#line 1253 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 1256 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 113 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 1259 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 47 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 1262 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 68 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 1265 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 1268 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 1271 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1274 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kparts/browserinterface.sip"
#include <kparts/browserinterface.h>
#line 1277 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 1280 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1283 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1286 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1289 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1292 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1295 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1298 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1301 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 1304 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1307 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1310 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"


class sipKParts_BrowserExtension : public KParts::BrowserExtension
{
public:
    sipKParts_BrowserExtension(KParts::ReadOnlyPart*);
    virtual ~sipKParts_BrowserExtension();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    void restoreState(QDataStream&);
    void saveState(QDataStream&);
    int yOffset();
    int xOffset();
    void setBrowserArguments(const KParts::BrowserArguments&);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[12];
};

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

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

const QMetaObject *sipKParts_BrowserExtension::metaObject() const
{
    return sip_kparts_qt_metaobject(sipPySelf,sipType_KParts_BrowserExtension);
}

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

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

    return _id;
}

void *sipKParts_BrowserExtension::qt_metacast(const char *_clname)
{
    return (sip_kparts_qt_metacast(sipPySelf, sipType_KParts_BrowserExtension, _clname)) ? this : KParts::BrowserExtension::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

void sipKParts_BrowserExtension::restoreState(QDataStream& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KParts::BrowserExtension::restoreState(a0);
        return;
    }

    typedef void (*sipVH_QtGui_40)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDataStream&);

    ((sipVH_QtGui_40)(sipModuleAPI_kparts_QtGui->em_virthandlers[40]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKParts_BrowserExtension::saveState(QDataStream& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KParts::BrowserExtension::saveState(a0);
        return;
    }

    typedef void (*sipVH_QtGui_40)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDataStream&);

    ((sipVH_QtGui_40)(sipModuleAPI_kparts_QtGui->em_virthandlers[40]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKParts_BrowserExtension::yOffset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::BrowserExtension::yOffset();

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

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

int sipKParts_BrowserExtension::xOffset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::BrowserExtension::xOffset();

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

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

void sipKParts_BrowserExtension::setBrowserArguments(const KParts::BrowserArguments& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KParts::BrowserExtension::setBrowserArguments(a0);
        return;
    }

    extern void sipVH_kparts_39(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KParts::BrowserArguments&);

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


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

    {
        const KParts::BrowserArguments* a0;
        KParts::BrowserExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KParts_BrowserExtension, &sipCpp, sipType_KParts_BrowserArguments, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KParts::BrowserExtension::setBrowserArguments(*a0) : sipCpp->setBrowserArguments(*a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KParts::BrowserExtension *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KParts::BrowserArguments(sipCpp->browserArguments());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KParts::BrowserExtension *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::BrowserExtension::xOffset() : sipCpp->xOffset());
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KParts::BrowserExtension *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::BrowserExtension::yOffset() : sipCpp->yOffset());
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QDataStream* a0;
        KParts::BrowserExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KParts_BrowserExtension, &sipCpp, sipType_QDataStream, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KParts::BrowserExtension::saveState(*a0) : sipCpp->saveState(*a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QDataStream* a0;
        KParts::BrowserExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KParts_BrowserExtension, &sipCpp, sipType_QDataStream, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KParts::BrowserExtension::restoreState(*a0) : sipCpp->restoreState(*a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KParts::BrowserExtension *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isURLDropHandlingEnabled();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::BrowserExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KParts_BrowserExtension, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setURLDropHandlingEnabled(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::BrowserInterface* a0;
        KParts::BrowserExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_BrowserExtension, &sipCpp, sipType_KParts_BrowserInterface, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setBrowserInterface(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KParts::BrowserExtension *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->browserInterface();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const char* a0;
        PyObject *a0Keep;
        const KParts::BrowserExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAA", &sipSelf, sipType_KParts_BrowserExtension, &sipCpp, &a0Keep, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isActionEnabled(a0);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const char* a0;
        PyObject *a0Keep;
        const KParts::BrowserExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAA", &sipSelf, sipType_KParts_BrowserExtension, &sipCpp, &a0Keep, &a0))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->actionText(a0));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

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

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            KParts::BrowserExtension::ActionSlotMap*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KParts::BrowserExtension::ActionSlotMap(KParts::BrowserExtension::actionSlotMap());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            KParts::BrowserExtension::ActionSlotMap*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KParts::BrowserExtension::actionSlotMapPtr();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        QObject* a0;

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

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

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

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

    return NULL;
}


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

    {
        KParts::BrowserExtension *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const char* a0;
        PyObject *a0Keep;
        bool a1;
        KParts::BrowserExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAb", &sipSelf, sipType_KParts_BrowserExtension, &sipCpp, &a0Keep, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->enableAction(a0,a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const char* a0;
        PyObject *a0Keep;
        const QString* a1;
        int a1State = 0;
        KParts::BrowserExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ1", &sipSelf, sipType_KParts_BrowserExtension, &sipCpp, &a0Keep, &a0, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setActionText(a0,*a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KUrl* a0;
        const KParts::OpenUrlArguments& a1def = KParts::OpenUrlArguments();
        const KParts::OpenUrlArguments* a1 = &a1def;
        const KParts::BrowserArguments& a2def = KParts::BrowserArguments();
        const KParts::BrowserArguments* a2 = &a2def;
        KParts::BrowserExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|J9J9", &sipSelf, sipType_KParts_BrowserExtension, &sipCpp, sipType_KUrl, &a0, sipType_KParts_OpenUrlArguments, &a1, sipType_KParts_BrowserArguments, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->openUrlRequest(*a0,*a1,*a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KUrl* a0;
        const KParts::OpenUrlArguments* a1;
        const KParts::BrowserArguments* a2;
        KParts::BrowserExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9", &sipSelf, sipType_KParts_BrowserExtension, &sipCpp, sipType_KUrl, &a0, sipType_KParts_OpenUrlArguments, &a1, sipType_KParts_BrowserArguments, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->openUrlRequestDelayed(*a0,*a1,*a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::BrowserExtension *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KParts_BrowserExtension, &sipCpp, sipType_KUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIconUrl(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KUrl* a0;
        const KParts::OpenUrlArguments& a1def = KParts::OpenUrlArguments();
        const KParts::OpenUrlArguments* a1 = &a1def;
        const KParts::BrowserArguments& a2def = KParts::BrowserArguments();
        const KParts::BrowserArguments* a2 = &a2def;
        const KParts::WindowArgs& a3def = KParts::WindowArgs();
        const KParts::WindowArgs* a3 = &a3def;
        KParts::ReadOnlyPart* a4;
        KParts::BrowserExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|J9J9J9", &sipSelf, sipType_KParts_BrowserExtension, &sipCpp, sipType_KUrl, &a0, sipType_KParts_OpenUrlArguments, &a1, sipType_KParts_BrowserArguments, &a2, sipType_KParts_WindowArgs, &a3))
        {
#line 179 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kparts/browserextension.sip"
Py_BEGIN_ALLOW_THREADS
    sipCpp->KParts::BrowserExtension::createNewWindow (*a0, *a1, *a2, *a3, &a4);
    Py_END_ALLOW_THREADS
#line 2250 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"

            return sipConvertFromType(a4,sipType_KParts_ReadOnlyPart,NULL);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KParts::BrowserExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KParts_BrowserExtension, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->loadingProgress(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KParts::BrowserExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KParts_BrowserExtension, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->speedProgress(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KFileItemList* a0;
        KParts::BrowserExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KParts_BrowserExtension, &sipCpp, sipType_KFileItemList, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->selectionInfo(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const KUrl::List* a0;
        KParts::BrowserExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KParts_BrowserExtension, &sipCpp, sipType_KUrl_List, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->selectionInfo(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KFileItem* a0;
        KParts::BrowserExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KParts_BrowserExtension, &sipCpp, sipType_KFileItem, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->mouseOverInfo(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KUrl* a0;
        const QString* a1;
        int a1State = 0;
        KParts::BrowserExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1", &sipSelf, sipType_KParts_BrowserExtension, &sipCpp, sipType_KUrl, &a0, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addWebSideBar(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        int a1;
        KParts::BrowserExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_KParts_BrowserExtension, &sipCpp, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->moveTopLevelWidget(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        int a1;
        KParts::BrowserExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_KParts_BrowserExtension, &sipCpp, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->resizeTopLevelWidget(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_BrowserExtension, &sipCpp, sipType_KParts_ReadOnlyPart, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->requestFocus(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KParts::BrowserExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KParts_BrowserExtension, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPageSecurity(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KFileItemList* a0;
        KParts::BrowserExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KParts_BrowserExtension, &sipCpp, sipType_KFileItemList, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->itemsRemoved(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_BrowserExtension)
        return ptr;

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

    return NULL;
}


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KParts_BrowserExtension(sipSimpleWrapper *);}
static void dealloc_KParts_BrowserExtension(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKParts_BrowserExtension *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KParts_BrowserExtension(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

    {
        KParts::ReadOnlyPart* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KParts_BrowserExtension[] = {
    {SIP_MLNAME_CAST(sipName_actionSlotMap), meth_KParts_BrowserExtension_actionSlotMap, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_actionSlotMapPtr), meth_KParts_BrowserExtension_actionSlotMapPtr, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_actionText), meth_KParts_BrowserExtension_actionText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addWebSideBar), meth_KParts_BrowserExtension_addWebSideBar, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_browserArguments), meth_KParts_BrowserExtension_browserArguments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_browserInterface), meth_KParts_BrowserExtension_browserInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childObject), meth_KParts_BrowserExtension_childObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createNewWindow), meth_KParts_BrowserExtension_createNewWindow, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enableAction), meth_KParts_BrowserExtension_enableAction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_infoMessage), meth_KParts_BrowserExtension_infoMessage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isActionEnabled), meth_KParts_BrowserExtension_isActionEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isURLDropHandlingEnabled), meth_KParts_BrowserExtension_isURLDropHandlingEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_itemsRemoved), meth_KParts_BrowserExtension_itemsRemoved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_loadingProgress), meth_KParts_BrowserExtension_loadingProgress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseOverInfo), meth_KParts_BrowserExtension_mouseOverInfo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_moveTopLevelWidget), meth_KParts_BrowserExtension_moveTopLevelWidget, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_openUrlNotify), meth_KParts_BrowserExtension_openUrlNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_openUrlRequest), meth_KParts_BrowserExtension_openUrlRequest, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_openUrlRequestDelayed), meth_KParts_BrowserExtension_openUrlRequestDelayed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pasteRequest), meth_KParts_BrowserExtension_pasteRequest, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_requestFocus), meth_KParts_BrowserExtension_requestFocus, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resizeTopLevelWidget), meth_KParts_BrowserExtension_resizeTopLevelWidget, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_restoreState), meth_KParts_BrowserExtension_restoreState, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_saveState), meth_KParts_BrowserExtension_saveState, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectionInfo), meth_KParts_BrowserExtension_selectionInfo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setActionText), meth_KParts_BrowserExtension_setActionText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setBrowserArguments), meth_KParts_BrowserExtension_setBrowserArguments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setBrowserInterface), meth_KParts_BrowserExtension_setBrowserInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIconUrl), meth_KParts_BrowserExtension_setIconUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocationBarUrl), meth_KParts_BrowserExtension_setLocationBarUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPageSecurity), meth_KParts_BrowserExtension_setPageSecurity, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setURLDropHandlingEnabled), meth_KParts_BrowserExtension_setURLDropHandlingEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_speedProgress), meth_KParts_BrowserExtension_speedProgress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_xOffset), meth_KParts_BrowserExtension_xOffset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_yOffset), meth_KParts_BrowserExtension_yOffset, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KParts_BrowserExtension[] = {
    {sipName_DefaultPopupItems, static_cast<int>(KParts::BrowserExtension::DefaultPopupItems), 3},
    {sipName_IsLink, static_cast<int>(KParts::BrowserExtension::IsLink), 3},
    {sipName_NoDeletion, static_cast<int>(KParts::BrowserExtension::NoDeletion), 3},
    {sipName_ShowBookmark, static_cast<int>(KParts::BrowserExtension::ShowBookmark), 3},
    {sipName_ShowCreateDirectory, static_cast<int>(KParts::BrowserExtension::ShowCreateDirectory), 3},
    {sipName_ShowNavigationItems, static_cast<int>(KParts::BrowserExtension::ShowNavigationItems), 3},
    {sipName_ShowProperties, static_cast<int>(KParts::BrowserExtension::ShowProperties), 3},
    {sipName_ShowReload, static_cast<int>(KParts::BrowserExtension::ShowReload), 3},
    {sipName_ShowTextSelectionItems, static_cast<int>(KParts::BrowserExtension::ShowTextSelectionItems), 3},
    {sipName_ShowUp, static_cast<int>(KParts::BrowserExtension::ShowUp), 3},
    {sipName_ShowUrlOperations, static_cast<int>(KParts::BrowserExtension::ShowUrlOperations), 3},
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_BrowserExtension = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__BrowserExtension,
        {0}
    },
    {
        sipNameNr_BrowserExtension,
        {0, 255, 0},
        35, methods_KParts_BrowserExtension,
        11, enummembers_KParts_BrowserExtension,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_BrowserExtension,
    0,
    init_type_KParts_BrowserExtension,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_BrowserExtension,
    0,
    0,
    0,
    release_KParts_BrowserExtension,
    cast_KParts_BrowserExtension,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KParts::BrowserExtension::staticMetaObject,
    0,
    0
};

#line 107 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 2781 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"

#line 142 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 2785 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 2788 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 113 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 2791 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 47 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 2794 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2797 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"


class sipKParts_OpenUrlEvent : public KParts::OpenUrlEvent
{
public:
    sipKParts_OpenUrlEvent(KParts::ReadOnlyPart*,const KUrl&,const KParts::OpenUrlArguments&,const KParts::BrowserArguments&);
    virtual ~sipKParts_OpenUrlEvent();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    const char* eventName() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[1];
};

sipKParts_OpenUrlEvent::sipKParts_OpenUrlEvent(KParts::ReadOnlyPart*a0,const KUrl& a1,const KParts::OpenUrlArguments& a2,const KParts::BrowserArguments& a3): KParts::OpenUrlEvent(a0,a1,a2,a3), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const char* sipKParts_OpenUrlEvent::eventName() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::OpenUrlEvent::eventName();

    extern const char* sipVH_kparts_31(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return sipVH_kparts_31(sipGILState, 0, sipPySelf, sipMeth, -5);
}


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

    {
        const KParts::OpenUrlEvent *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->part();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KParts::OpenUrlEvent *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KParts::OpenUrlEvent *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KParts::OpenUrlEvent *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KParts::BrowserArguments(sipCpp->browserArguments());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QEvent* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_QEvent, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KParts::OpenUrlEvent::test(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_OpenUrlEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KParts_Event)->ctd_cast((KParts::Event *)(KParts::OpenUrlEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KParts_OpenUrlEvent(sipSimpleWrapper *);}
static void dealloc_KParts_OpenUrlEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKParts_OpenUrlEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KParts_OpenUrlEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

    {
        KParts::ReadOnlyPart* a0;
        const KUrl* a1;
        const KParts::OpenUrlArguments& a2def = KParts::OpenUrlArguments();
        const KParts::OpenUrlArguments* a2 = &a2def;
        const KParts::BrowserArguments& a3def = KParts::BrowserArguments();
        const KParts::BrowserArguments* a3 = &a3def;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8J9|J9J9", sipType_KParts_ReadOnlyPart, &a0, sipType_KUrl, &a1, sipType_KParts_OpenUrlArguments, &a2, sipType_KParts_BrowserArguments, &a3))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKParts_OpenUrlEvent(a0,*a1,*a2,*a3);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KParts_OpenUrlEvent[] = {
    {SIP_MLNAME_CAST(sipName_arguments), meth_KParts_OpenUrlEvent_arguments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_browserArguments), meth_KParts_OpenUrlEvent_browserArguments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_part), meth_KParts_OpenUrlEvent_part, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_test), meth_KParts_OpenUrlEvent_test, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_url), meth_KParts_OpenUrlEvent_url, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_OpenUrlEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__OpenUrlEvent,
        {0}
    },
    {
        sipNameNr_OpenUrlEvent,
        {0, 255, 0},
        5, methods_KParts_OpenUrlEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_OpenUrlEvent,
    0,
    init_type_KParts_OpenUrlEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_OpenUrlEvent,
    0,
    0,
    0,
    release_KParts_OpenUrlEvent,
    cast_KParts_OpenUrlEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 36 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kparts/event.sip"
#include <kparts/event.h>
#line 3125 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3129 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"


class sipKParts_Event : public KParts::Event
{
public:
    sipKParts_Event(const char*);
    virtual ~sipKParts_Event();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    const char* eventName() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[1];
};

sipKParts_Event::sipKParts_Event(const char*a0): KParts::Event(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const char* sipKParts_Event::eventName() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::Event::eventName();

    extern const char* sipVH_kparts_31(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return sipVH_kparts_31(sipGILState, 0, sipPySelf, sipMeth, -6);
}


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

    {
        const KParts::Event *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_Event, &sipCpp))
        {
            const char*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::Event::eventName() : sipCpp->eventName());
            Py_END_ALLOW_THREADS

            if (sipRes == NULL)
            {
                Py_INCREF(Py_None);
                return Py_None;
            }

            return PyUnicode_DecodeASCII(sipRes, strlen(sipRes), NULL);
        }
    }

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

    return NULL;
}


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

    {
        const QEvent* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_QEvent, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KParts::Event::test(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J8AA", sipType_QEvent, &a0, &a1Keep, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KParts::Event::test(a0,a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a1Keep);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_Event)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QEvent)->ctd_cast((QEvent *)(KParts::Event *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KParts_Event(sipSimpleWrapper *);}
static void dealloc_KParts_Event(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKParts_Event *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KParts_Event(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

    {
        const char* a0;
        PyObject *a0Keep;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "AA", &a0Keep, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKParts_Event(a0);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KParts_Event[] = {
    {SIP_MLNAME_CAST(sipName_eventName), meth_KParts_Event_eventName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_test), meth_KParts_Event_test, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_Event = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__Event,
        {0}
    },
    {
        sipNameNr_Event,
        {0, 255, 0},
        2, methods_KParts_Event,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_Event,
    0,
    init_type_KParts_Event,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_Event,
    0,
    0,
    0,
    release_KParts_Event,
    cast_KParts_Event,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 68 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 3395 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"

#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 3399 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/kparts/sipkpartspart6.cpp"


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

    {
        int a0;
        KParts::WindowArgs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KParts_WindowArgs, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setX(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KParts::WindowArgs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->x();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KParts::WindowArgs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KParts_WindowArgs, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setY(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KParts::WindowArgs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->y();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KParts::WindowArgs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KParts_WindowArgs, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setWidth(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KParts::WindowArgs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->width();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KParts::WindowArgs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KParts_WindowArgs, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setHeight(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KParts::WindowArgs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->height();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::WindowArgs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KParts_WindowArgs, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFullScreen(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KParts::WindowArgs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isFullScreen();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::WindowArgs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KParts_WindowArgs, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMenuBarVisible(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KParts::WindowArgs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isMenuBarVisible();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::WindowArgs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KParts_WindowArgs, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setToolBarsVisible(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KParts::WindowArgs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toolBarsVisible();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::WindowArgs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KParts_WindowArgs, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setStatusBarVisible(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KParts::WindowArgs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isStatusBarVisible();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::WindowArgs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KParts_WindowArgs, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setResizable(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KParts::WindowArgs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isResizable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::WindowArgs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KParts_WindowArgs, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLowerWindow(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KParts::WindowArgs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->lowerWindow();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::WindowArgs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KParts_WindowArgs, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setScrollBarsVisible(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KParts::WindowArgs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->scrollBarsVisible();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


extern "C" {static void dealloc_KParts_WindowArgs(sipSimpleWrapper *);}
static void dealloc_KParts_WindowArgs(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KParts_WindowArgs(sipGetAddress(sipSelf),0);
    }
}


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

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

            return sipCpp;
        }
    }

    {
        const KParts::WindowArgs* a0;

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

            return sipCpp;
        }
    }

    {
        const QRect* a0;
        bool a1;
        bool a2;
        bool a3;
        bool a4;
        bool a5;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9bbbbb", sipType_QRect, &a0, &a1, &a2, &a3, &a4, &a5))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KParts::WindowArgs(*a0,a1,a2,a3,a4,a5);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        bool a4;
        bool a5;
        bool a6;
        bool a7;
        bool a8;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "iiiibbbbb", &a0, &a1, &a2, &a3, &a4, &a5, &a6, &a7, &a8))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KParts::WindowArgs(a0,a1,a2,a3,a4,a5,a6,a7,a8);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KParts_WindowArgs[] = {
    {SIP_MLNAME_CAST(sipName_height), meth_KParts_WindowArgs_height, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isFullScreen), meth_KParts_WindowArgs_isFullScreen, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isMenuBarVisible), meth_KParts_WindowArgs_isMenuBarVisible, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isResizable), meth_KParts_WindowArgs_isResizable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isStatusBarVisible), meth_KParts_WindowArgs_isStatusBarVisible, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lowerWindow), meth_KParts_WindowArgs_lowerWindow, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_scrollBarsVisible), meth_KParts_WindowArgs_scrollBarsVisible, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFullScreen), meth_KParts_WindowArgs_setFullScreen, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setHeight), meth_KParts_WindowArgs_setHeight, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLowerWindow), meth_KParts_WindowArgs_setLowerWindow, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMenuBarVisible), meth_KParts_WindowArgs_setMenuBarVisible, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setResizable), meth_KParts_WindowArgs_setResizable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setScrollBarsVisible), meth_KParts_WindowArgs_setScrollBarsVisible, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setStatusBarVisible), meth_KParts_WindowArgs_setStatusBarVisible, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setToolBarsVisible), meth_KParts_WindowArgs_setToolBarsVisible, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setWidth), meth_KParts_WindowArgs_setWidth, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setX), meth_KParts_WindowArgs_setX, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setY), meth_KParts_WindowArgs_setY, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toolBarsVisible), meth_KParts_WindowArgs_toolBarsVisible, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_width), meth_KParts_WindowArgs_width, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_x), meth_KParts_WindowArgs_x, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_y), meth_KParts_WindowArgs_y, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_WindowArgs = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KParts__WindowArgs,
        {0}
    },
    {
        sipNameNr_WindowArgs,
        {0, 255, 0},
        22, methods_KParts_WindowArgs,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KParts_WindowArgs,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_WindowArgs,
    assign_KParts_WindowArgs,
    array_KParts_WindowArgs,
    copy_KParts_WindowArgs,
    release_KParts_WindowArgs,
    cast_KParts_WindowArgs,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};
