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

#include "sipAPIkparts.h"

#line 93 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/event.sip"
#include <kparts/event.h>
#line 12 "sipkpartspart4.cpp"

#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 16 "sipkpartspart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 19 "sipkpartspart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 22 "sipkpartspart4.cpp"


class sipKParts_PartActivateEvent : public KParts::PartActivateEvent
{
public:
    sipKParts_PartActivateEvent(bool,KParts::Part *,QWidget *);
    virtual ~sipKParts_PartActivateEvent();

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[1];
};

sipKParts_PartActivateEvent::sipKParts_PartActivateEvent(bool a0,KParts::Part *a1,QWidget *a2): KParts::PartActivateEvent(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const char * sipKParts_PartActivateEvent::eventName() const
{
    extern const char * sipVH_kparts_13(sip_gilstate_t,PyObject *,int,sipSimpleWrapper *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_kparts_13(sipGILState,meth,2,sipPySelf);
}


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

    {
        KParts::PartActivateEvent *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KParts_PartActivateEvent,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->activated();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KParts::PartActivateEvent *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->part();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KParts::PartActivateEvent *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->widget();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QEvent * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_PartActivateEvent)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    if (!sipCpp)
    {
        bool a0;
        KParts::Part * a1;
        QWidget * a2;

        if (sipParseArgs(sipArgsParsed,sipArgs,"bJ8J8",&a0,sipType_KParts_Part,&a1,sipType_QWidget,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKParts_PartActivateEvent(a0,a1,a2);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_KParts_PartActivateEvent[] = {
    {SIP_MLNAME_CAST(sipName_activated), meth_KParts_PartActivateEvent_activated, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_part), meth_KParts_PartActivateEvent_part, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_test), meth_KParts_PartActivateEvent_test, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_widget), meth_KParts_PartActivateEvent_widget, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kparts_KParts_PartActivateEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__PartActivateEvent,
        {0}
    },
    sipNameNr_PartActivateEvent,
    -1,
    -1,
    {0, 255, 0},
    supers_KParts_PartActivateEvent,
    0,
    4, methods_KParts_PartActivateEvent,
    0, 0,
    0, 0,
    init_KParts_PartActivateEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_PartActivateEvent,
    release_KParts_PartActivateEvent,
    cast_KParts_PartActivateEvent,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 76 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/event.sip"
#include <kparts/event.h>
#line 311 "sipkpartspart4.cpp"

#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 315 "sipkpartspart4.cpp"


class sipKParts_GUIActivateEvent : public KParts::GUIActivateEvent
{
public:
    sipKParts_GUIActivateEvent(bool);
    virtual ~sipKParts_GUIActivateEvent();

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[1];
};

sipKParts_GUIActivateEvent::sipKParts_GUIActivateEvent(bool a0): KParts::GUIActivateEvent(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const char * sipKParts_GUIActivateEvent::eventName() const
{
    extern const char * sipVH_kparts_13(sip_gilstate_t,PyObject *,int,sipSimpleWrapper *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_kparts_13(sipGILState,meth,3,sipPySelf);
}


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

    {
        KParts::GUIActivateEvent *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KParts_GUIActivateEvent,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->activated();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QEvent * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_GUIActivateEvent)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    if (!sipCpp)
    {
        bool a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"b",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKParts_GUIActivateEvent(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_KParts_GUIActivateEvent[] = {
    {SIP_MLNAME_CAST(sipName_activated), meth_KParts_GUIActivateEvent_activated, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_test), meth_KParts_GUIActivateEvent_test, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kparts_KParts_GUIActivateEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__GUIActivateEvent,
        {0}
    },
    sipNameNr_GUIActivateEvent,
    -1,
    -1,
    {0, 255, 0},
    supers_KParts_GUIActivateEvent,
    0,
    2, methods_KParts_GUIActivateEvent,
    0, 0,
    0, 0,
    init_KParts_GUIActivateEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_GUIActivateEvent,
    release_KParts_GUIActivateEvent,
    cast_KParts_GUIActivateEvent,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/browserrun.sip"
#include <kparts/browserrun.h>
#line 546 "sipkpartspart4.cpp"

#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 550 "sipkpartspart4.cpp"
#line 103 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 553 "sipkpartspart4.cpp"
#line 42 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 556 "sipkpartspart4.cpp"
#line 130 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 559 "sipkpartspart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 562 "sipkpartspart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 565 "sipkpartspart4.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 568 "sipkpartspart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 571 "sipkpartspart4.cpp"
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 586 "sipkpartspart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 589 "sipkpartspart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 592 "sipkpartspart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 595 "sipkpartspart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 598 "sipkpartspart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 601 "sipkpartspart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 604 "sipkpartspart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 607 "sipkpartspart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qtimer.sip"
#include <qtimer.h>
#line 610 "sipkpartspart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 613 "sipkpartspart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 616 "sipkpartspart4.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 619 "sipkpartspart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 622 "sipkpartspart4.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 625 "sipkpartspart4.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 628 "sipkpartspart4.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 631 "sipkpartspart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 634 "sipkpartspart4.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 665 "sipkpartspart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 668 "sipkpartspart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 671 "sipkpartspart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 674 "sipkpartspart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 677 "sipkpartspart4.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 680 "sipkpartspart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 683 "sipkpartspart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 686 "sipkpartspart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 689 "sipkpartspart4.cpp"


class sipKParts_BrowserRun : public KParts::BrowserRun
{
public:
    sipKParts_BrowserRun(const KUrl&,const KParts::OpenUrlArguments&,const KParts::BrowserArguments&,KParts::ReadOnlyPart *,QWidget *,bool,bool,bool);
    virtual ~sipKParts_BrowserRun();

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

    /* Expose this protected enum. */
    enum sipNonEmbeddableResult {
        Handled = KParts::BrowserRun::Handled,
        NotHandled = KParts::BrowserRun::NotHandled,
        Delayed = KParts::BrowserRun::Delayed
    };

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    void sipProtect_slotTimeout();
    void sipProtect_slotScanFinished(KJob *);
    void sipProtect_slotScanMimeType(KIO::Job *,const QString&);
    void sipProtect_mimeTypeDetermined(const QString&);
    void sipProtectVirt_foundMimeType(bool,const QString&);
    void sipProtectVirt_killJob(bool);
    void sipProtect_setUrl(const KUrl&);
    void sipProtect_setError(bool);
    void sipProtect_setProgressInfo(bool);
    bool sipProtect_progressInfo() const;
    void sipProtect_setFinished(bool);
    void sipProtect_setJob(KIO::Job *);
    KIO::Job * sipProtect_job();
    QTimer& sipProtect_timer();
    void sipProtect_setDoScanFile(bool);
    bool sipProtect_doScanFile() const;
    void sipProtect_setIsDirecory(bool);
    bool sipProtect_isDirectory() const;
    void sipProtect_setInitializeNextAction(bool);
    bool sipProtect_initializeNextAction() const;
    void sipProtect_setIsLocalFile(bool);
    bool sipProtect_isLocalFile() const;
    void sipProtect_setMode(mode_t);
    mode_t sipProtect_mode() const;
    void sipProtectVirt_scanFile(bool);
    void sipProtectVirt_init(bool);
    void sipProtectVirt_handleError(bool,KJob *);
    void sipProtect_slotBrowserScanFinished(KJob *);
    void sipProtect_slotBrowserMimetype(KIO::Job *,const QString&);
    void sipProtect_slotCopyToTempFileResult(KJob *);
    void sipProtectVirt_slotStatResult(bool,KJob *);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void save(const KUrl&,const QString&);
    void scanFile();
    void init();
    void handleError(KJob *);
    void slotStatResult(KJob *);
    void foundMimeType(const QString&);
    void killJob();
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[14];
};

sipKParts_BrowserRun::sipKParts_BrowserRun(const KUrl& a0,const KParts::OpenUrlArguments& a1,const KParts::BrowserArguments& a2,KParts::ReadOnlyPart *a3,QWidget *a4,bool a5,bool a6,bool a7): KParts::BrowserRun(a0,a1,a2,a3,a4,a5,a6,a7), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKParts_BrowserRun::metaObject() const
{
    return sip_kparts_qt_metaobject(sipPySelf,sipType_KParts_BrowserRun);
}

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

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

    return _id;
}

void *sipKParts_BrowserRun::qt_metacast(const char *_clname)
{
    return (sip_kparts_qt_metacast && sip_kparts_qt_metacast(sipPySelf,sipType_KParts_BrowserRun,_clname)) ? this : KParts::BrowserRun::qt_metacast(_clname);
}

void sipKParts_BrowserRun::save(const KUrl& a0,const QString& a1)
{
    typedef void (*sipVH_kio_4)(sip_gilstate_t,PyObject *,const KUrl&,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::BrowserRun::save(a0,a1);
        return;
    }

    ((sipVH_kio_4)(sipModuleAPI_kparts_kio->em_virthandlers[4]))(sipGILState,meth,a0,a1);
}

void sipKParts_BrowserRun::scanFile()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::BrowserRun::scanFile();
        return;
    }

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

void sipKParts_BrowserRun::init()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::BrowserRun::init();
        return;
    }

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

void sipKParts_BrowserRun::handleError(KJob *a0)
{
    typedef void (*sipVH_kdecore_18)(sip_gilstate_t,PyObject *,KJob *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::BrowserRun::handleError(a0);
        return;
    }

    ((sipVH_kdecore_18)(sipModuleAPI_kparts_kdecore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipKParts_BrowserRun::slotStatResult(KJob *a0)
{
    typedef void (*sipVH_kdecore_18)(sip_gilstate_t,PyObject *,KJob *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KParts::BrowserRun::slotStatResult(a0);
        return;
    }

    ((sipVH_kdecore_18)(sipModuleAPI_kparts_kdecore->em_virthandlers[18]))(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KRun::foundMimeType(a0);
        return;
    }

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

void sipKParts_BrowserRun::killJob()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KRun::killJob();
        return;
    }

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

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

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

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

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

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

void sipKParts_BrowserRun::sipProtect_slotTimeout()
{
    KRun::slotTimeout();
}

void sipKParts_BrowserRun::sipProtect_slotScanFinished(KJob *a0)
{
    KRun::slotScanFinished(a0);
}

void sipKParts_BrowserRun::sipProtect_slotScanMimeType(KIO::Job *a0,const QString& a1)
{
    KRun::slotScanMimeType(a0,a1);
}

void sipKParts_BrowserRun::sipProtect_mimeTypeDetermined(const QString& a0)
{
    KRun::mimeTypeDetermined(a0);
}

void sipKParts_BrowserRun::sipProtectVirt_foundMimeType(bool sipSelfWasArg,const QString& a0)
{
    (sipSelfWasArg ? KRun::foundMimeType(a0) : foundMimeType(a0));
}

void sipKParts_BrowserRun::sipProtectVirt_killJob(bool sipSelfWasArg)
{
    (sipSelfWasArg ? KRun::killJob() : killJob());
}

void sipKParts_BrowserRun::sipProtect_setUrl(const KUrl& a0)
{
    KRun::setUrl(a0);
}

void sipKParts_BrowserRun::sipProtect_setError(bool a0)
{
    KRun::setError(a0);
}

void sipKParts_BrowserRun::sipProtect_setProgressInfo(bool a0)
{
    KRun::setProgressInfo(a0);
}

bool sipKParts_BrowserRun::sipProtect_progressInfo() const
{
    return KRun::progressInfo();
}

void sipKParts_BrowserRun::sipProtect_setFinished(bool a0)
{
    KRun::setFinished(a0);
}

void sipKParts_BrowserRun::sipProtect_setJob(KIO::Job *a0)
{
    KRun::setJob(a0);
}

KIO::Job * sipKParts_BrowserRun::sipProtect_job()
{
    return KRun::job();
}

QTimer& sipKParts_BrowserRun::sipProtect_timer()
{
    return KRun::timer();
}

void sipKParts_BrowserRun::sipProtect_setDoScanFile(bool a0)
{
    KRun::setDoScanFile(a0);
}

bool sipKParts_BrowserRun::sipProtect_doScanFile() const
{
    return KRun::doScanFile();
}

void sipKParts_BrowserRun::sipProtect_setIsDirecory(bool a0)
{
    KRun::setIsDirecory(a0);
}

bool sipKParts_BrowserRun::sipProtect_isDirectory() const
{
    return KRun::isDirectory();
}

void sipKParts_BrowserRun::sipProtect_setInitializeNextAction(bool a0)
{
    KRun::setInitializeNextAction(a0);
}

bool sipKParts_BrowserRun::sipProtect_initializeNextAction() const
{
    return KRun::initializeNextAction();
}

void sipKParts_BrowserRun::sipProtect_setIsLocalFile(bool a0)
{
    KRun::setIsLocalFile(a0);
}

bool sipKParts_BrowserRun::sipProtect_isLocalFile() const
{
    return KRun::isLocalFile();
}

void sipKParts_BrowserRun::sipProtect_setMode(mode_t a0)
{
    KRun::setMode(a0);
}

mode_t sipKParts_BrowserRun::sipProtect_mode() const
{
    return KRun::mode();
}

void sipKParts_BrowserRun::sipProtectVirt_scanFile(bool sipSelfWasArg)
{
    (sipSelfWasArg ? KParts::BrowserRun::scanFile() : scanFile());
}

void sipKParts_BrowserRun::sipProtectVirt_init(bool sipSelfWasArg)
{
    (sipSelfWasArg ? KParts::BrowserRun::init() : init());
}

void sipKParts_BrowserRun::sipProtectVirt_handleError(bool sipSelfWasArg,KJob *a0)
{
    (sipSelfWasArg ? KParts::BrowserRun::handleError(a0) : handleError(a0));
}

void sipKParts_BrowserRun::sipProtect_slotBrowserScanFinished(KJob *a0)
{
    KParts::BrowserRun::slotBrowserScanFinished(a0);
}

void sipKParts_BrowserRun::sipProtect_slotBrowserMimetype(KIO::Job *a0,const QString& a1)
{
    KParts::BrowserRun::slotBrowserMimetype(a0,a1);
}

void sipKParts_BrowserRun::sipProtect_slotCopyToTempFileResult(KJob *a0)
{
    KParts::BrowserRun::slotCopyToTempFileResult(a0);
}

void sipKParts_BrowserRun::sipProtectVirt_slotStatResult(bool sipSelfWasArg,KJob *a0)
{
    (sipSelfWasArg ? KParts::BrowserRun::slotStatResult(a0) : slotStatResult(a0));
}


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

    {
        char * a0;
        sipKParts_BrowserRun *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKParts_BrowserRun *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKParts_BrowserRun *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_BrowserRun *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_BrowserRun *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_BrowserRun *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_BrowserRun *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KJob * a0;
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_BrowserRun,&sipCpp,sipType_KJob,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_slotScanFinished(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KIO::Job * a0;
        const QString * a1;
        int a1State = 0;
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8J1",&sipSelf,sipType_KParts_BrowserRun,&sipCpp,sipType_KIO_Job,&a0,sipType_QString,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_slotScanMimeType(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(sipArgsParsed,sipName_BrowserRun,sipName_slotScanMimeType);

    return NULL;
}


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

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KParts_BrowserRun,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_killJob(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KUrl * a0;
        sipKParts_BrowserRun *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        sipKParts_BrowserRun *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        sipKParts_BrowserRun *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_BrowserRun *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_progressInfo();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        sipKParts_BrowserRun *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KIO::Job * a0;
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_BrowserRun,&sipCpp,sipType_KIO_Job,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setJob(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KParts_BrowserRun,&sipCpp))
        {
            KIO::Job *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_job();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        sipKParts_BrowserRun *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        bool a0;
        sipKParts_BrowserRun *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_BrowserRun *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_doScanFile();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        sipKParts_BrowserRun *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_BrowserRun *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_isDirectory();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        sipKParts_BrowserRun *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_BrowserRun *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_initializeNextAction();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        sipKParts_BrowserRun *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_BrowserRun *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_isLocalFile();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        mode_t a0;
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pu",&sipSelf,sipType_KParts_BrowserRun,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setMode(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KParts_BrowserRun,&sipCpp))
        {
            mode_t sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_mode();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KParts::BrowserRun *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KParts::BrowserRun *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KParts::BrowserRun *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KParts_BrowserRun,&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(sipArgsParsed,sipName_BrowserRun,sipName_part);

    return NULL;
}


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

    {
        KParts::BrowserRun *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KParts_BrowserRun,&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(sipArgsParsed,sipName_BrowserRun,sipName_url);

    return NULL;
}


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

    {
        KParts::BrowserRun *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KParts_BrowserRun,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hideErrorDialog();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KParts::BrowserRun *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KParts::BrowserRun *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KParts_BrowserRun,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->serverSuggestsSave();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KUrl * a0;
        KService::Ptr * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        const QString& a3def = QString();
        const QString * a3 = &a3def;
        int a3State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9J1J1|J1",sipType_KUrl,&a0,sipType_KSharedPtr_0200KService,&a1,&a1State,sipType_QString,&a2,&a2State,sipType_QString,&a3,&a3State))
        {
            KParts::BrowserRun::AskSaveResult sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KParts::BrowserRun::askSave(*a0,*a1,*a2,*a3);
            Py_END_ALLOW_THREADS

            sipReleaseType(a1,sipType_KSharedPtr_0200KService,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

            return sipConvertFromEnum(sipRes,sipType_KParts_BrowserRun_AskSaveResult);
        }
    }

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

    return NULL;
}


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

    {
        const KUrl * a0;
        const QString * a1;
        int a1State = 0;
        const QString& a2def = QString();
        const QString * a2 = &a2def;
        int a2State = 0;
        int a3 = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9J1|J1i",sipType_KUrl,&a0,sipType_QString,&a1,&a1State,sipType_QString,&a2,&a2State,&a3))
        {
            KParts::BrowserRun::AskSaveResult sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KParts::BrowserRun::askEmbedOrSave(*a0,*a1,*a2,a3);
            Py_END_ALLOW_THREADS

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

            return sipConvertFromEnum(sipRes,sipType_KParts_BrowserRun_AskSaveResult);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J1",&sipSelf,sipType_KParts_BrowserRun,&sipCpp,sipType_KUrl,&a0,sipType_QString,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KParts::BrowserRun::save(*a0,*a1) : sipCpp->save(*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(sipArgsParsed,sipName_BrowserRun,sipName_save);

    return NULL;
}


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

    {
        const KUrl * a0;
        const QString * a1;
        int a1State = 0;
        QWidget * a2 = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9J1|J8",sipType_KUrl,&a0,sipType_QString,&a1,&a1State,sipType_QWidget,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            KParts::BrowserRun::simpleSave(*a0,*a1,a2);
            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(sipArgsParsed,sipName_BrowserRun,sipName_simpleSave);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const KUrl * a1;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J9",sipType_QString,&a0,&a0State,sipType_KUrl,&a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KParts::BrowserRun::allowExecution(*a0,*a1);
            Py_END_ALLOW_THREADS

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KParts::BrowserRun::isTextExecutable(*a0);
            Py_END_ALLOW_THREADS

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KParts_BrowserRun,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_scanFile(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KParts_BrowserRun,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_init(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KJob * a0;
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_BrowserRun,&sipCpp,sipType_KJob,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_handleError(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KJob * a0;
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_BrowserRun,&sipCpp,sipType_KJob,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_slotBrowserScanFinished(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KIO::Job * a0;
        const QString * a1;
        int a1State = 0;
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8J1",&sipSelf,sipType_KParts_BrowserRun,&sipCpp,sipType_KIO_Job,&a0,sipType_QString,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_slotBrowserMimetype(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(sipArgsParsed,sipName_BrowserRun,sipName_slotBrowserMimetype);

    return NULL;
}


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

    {
        KJob * a0;
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_BrowserRun,&sipCpp,sipType_KJob,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_slotCopyToTempFileResult(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KJob * a0;
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_BrowserRun,&sipCpp,sipType_KJob,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_slotStatResult(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_BrowserRun)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KRun)->ctd_cast((KRun *)(KParts::BrowserRun *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    if (!sipCpp)
    {
        const KUrl * a0;
        const KParts::OpenUrlArguments * a1;
        const KParts::BrowserArguments * a2;
        KParts::ReadOnlyPart * a3;
        QWidget * a4;
        bool a5;
        bool a6;
        bool a7 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9J9J9J8J8bb|b",sipType_KUrl,&a0,sipType_KParts_OpenUrlArguments,&a1,sipType_KParts_BrowserArguments,&a2,sipType_KParts_ReadOnlyPart,&a3,sipType_QWidget,&a4,&a5,&a6,&a7))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKParts_BrowserRun(*a0,*a1,*a2,a3,a4,a5,a6,a7);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_KParts_BrowserRun[] = {{195, 8, 1}};


static PyMethodDef methods_KParts_BrowserRun[] = {
    {SIP_MLNAME_CAST(sipName_allowExecution), meth_KParts_BrowserRun_allowExecution, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_arguments), meth_KParts_BrowserRun_arguments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_askEmbedOrSave), meth_KParts_BrowserRun_askEmbedOrSave, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_askSave), meth_KParts_BrowserRun_askSave, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_browserArguments), meth_KParts_BrowserRun_browserArguments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KParts_BrowserRun_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KParts_BrowserRun_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_contentDisposition), meth_KParts_BrowserRun_contentDisposition, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KParts_BrowserRun_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KParts_BrowserRun_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doScanFile), meth_KParts_BrowserRun_doScanFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_foundMimeType), meth_KParts_BrowserRun_foundMimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_handleError), meth_KParts_BrowserRun_handleError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hideErrorDialog), meth_KParts_BrowserRun_hideErrorDialog, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_init), meth_KParts_BrowserRun_init, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_initializeNextAction), meth_KParts_BrowserRun_initializeNextAction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDirectory), meth_KParts_BrowserRun_isDirectory, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isLocalFile), meth_KParts_BrowserRun_isLocalFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isTextExecutable), meth_KParts_BrowserRun_isTextExecutable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_job), meth_KParts_BrowserRun_job, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_killJob), meth_KParts_BrowserRun_killJob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeTypeDetermined), meth_KParts_BrowserRun_mimeTypeDetermined, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mode), meth_KParts_BrowserRun_mode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_part), meth_KParts_BrowserRun_part, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_progressInfo), meth_KParts_BrowserRun_progressInfo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KParts_BrowserRun_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_save), meth_KParts_BrowserRun_save, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_scanFile), meth_KParts_BrowserRun_scanFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serverSuggestsSave), meth_KParts_BrowserRun_serverSuggestsSave, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDoScanFile), meth_KParts_BrowserRun_setDoScanFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_KParts_BrowserRun_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFinished), meth_KParts_BrowserRun_setFinished, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setInitializeNextAction), meth_KParts_BrowserRun_setInitializeNextAction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIsDirecory), meth_KParts_BrowserRun_setIsDirecory, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIsLocalFile), meth_KParts_BrowserRun_setIsLocalFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setJob), meth_KParts_BrowserRun_setJob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMode), meth_KParts_BrowserRun_setMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProgressInfo), meth_KParts_BrowserRun_setProgressInfo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setUrl), meth_KParts_BrowserRun_setUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_simpleSave), meth_KParts_BrowserRun_simpleSave, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotBrowserMimetype), meth_KParts_BrowserRun_slotBrowserMimetype, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotBrowserScanFinished), meth_KParts_BrowserRun_slotBrowserScanFinished, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotCopyToTempFileResult), meth_KParts_BrowserRun_slotCopyToTempFileResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotScanFinished), meth_KParts_BrowserRun_slotScanFinished, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotScanMimeType), meth_KParts_BrowserRun_slotScanMimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotStatResult), meth_KParts_BrowserRun_slotStatResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotTimeout), meth_KParts_BrowserRun_slotTimeout, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timer), meth_KParts_BrowserRun_timer, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KParts_BrowserRun_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_url), meth_KParts_BrowserRun_url, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KParts_BrowserRun[] = {
    {sipName_AttachmentDisposition, KParts::BrowserRun::AttachmentDisposition, 8},
    {sipName_Cancel, KParts::BrowserRun::Cancel, 9},
    {sipName_Delayed, sipKParts_BrowserRun::Delayed, 10},
    {sipName_Handled, sipKParts_BrowserRun::Handled, 10},
    {sipName_InlineDisposition, KParts::BrowserRun::InlineDisposition, 8},
    {sipName_NotHandled, sipKParts_BrowserRun::NotHandled, 10},
    {sipName_Open, KParts::BrowserRun::Open, 9},
    {sipName_Save, KParts::BrowserRun::Save, 9},
};


pyqt4ClassTypeDef pyqt4Type_kparts_KParts_BrowserRun = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__BrowserRun,
        {0}
    },
    sipNameNr_BrowserRun,
    -1,
    -1,
    {0, 255, 0},
    supers_KParts_BrowserRun,
    0,
    50, methods_KParts_BrowserRun,
    8, enummembers_KParts_BrowserRun,
    0, 0,
    init_KParts_BrowserRun,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_BrowserRun,
    release_KParts_BrowserRun,
    cast_KParts_BrowserRun,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &KParts::BrowserRun::staticMetaObject,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/browserinterface.sip"
#include <kparts/browserinterface.h>
#line 2852 "sipkpartspart4.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 2856 "sipkpartspart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2859 "sipkpartspart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2862 "sipkpartspart4.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2865 "sipkpartspart4.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2868 "sipkpartspart4.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 2899 "sipkpartspart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 2902 "sipkpartspart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 2905 "sipkpartspart4.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2908 "sipkpartspart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 2911 "sipkpartspart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2914 "sipkpartspart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 2917 "sipkpartspart4.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2920 "sipkpartspart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 2923 "sipkpartspart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2926 "sipkpartspart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2929 "sipkpartspart4.cpp"


class sipKParts_BrowserInterface : public KParts::BrowserInterface
{
public:
    sipKParts_BrowserInterface(QObject *);
    virtual ~sipKParts_BrowserInterface();

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

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[7];
};

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

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

const QMetaObject *sipKParts_BrowserInterface::metaObject() const
{
    return sip_kparts_qt_metaobject(sipPySelf,sipType_KParts_BrowserInterface);
}

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

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

    return _id;
}

void *sipKParts_BrowserInterface::qt_metacast(const char *_clname)
{
    return (sip_kparts_qt_metacast && sip_kparts_qt_metacast(sipPySelf,sipType_KParts_BrowserInterface,_clname)) ? this : KParts::BrowserInterface::qt_metacast(_clname);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

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

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

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

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

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


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

    {
        char * a0;
        sipKParts_BrowserInterface *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKParts_BrowserInterface *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKParts_BrowserInterface *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_BrowserInterface *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_BrowserInterface *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_BrowserInterface *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BAAJ1",&sipSelf,sipType_KParts_BrowserInterface,&sipCpp,&a0Keep,&a0,sipType_QVariant,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->callMethod(a0,*a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_BrowserInterface)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    if (!sipCpp)
    {
        QObject * a0;

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_KParts_BrowserInterface[] = {
    {SIP_MLNAME_CAST(sipName_callMethod), meth_KParts_BrowserInterface_callMethod, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KParts_BrowserInterface_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KParts_BrowserInterface_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KParts_BrowserInterface_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KParts_BrowserInterface_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KParts_BrowserInterface_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KParts_BrowserInterface_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kparts_KParts_BrowserInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__BrowserInterface,
        {0}
    },
    sipNameNr_BrowserInterface,
    -1,
    -1,
    {0, 255, 0},
    supers_KParts_BrowserInterface,
    0,
    7, methods_KParts_BrowserInterface,
    0, 0,
    0, 0,
    init_KParts_BrowserInterface,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_BrowserInterface,
    release_KParts_BrowserInterface,
    cast_KParts_BrowserInterface,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &KParts::BrowserInterface::staticMetaObject,
    0,
    0
};
