/*
 * Module code.
 *
 * Generated by SIP 4.11.2 on Mon Feb 14 20:09:54 2011
 */

#include "sipAPIkparts.h"

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

#line 66 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 16 "sipkpartspart4.cpp"
#line 40 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 19 "sipkpartspart4.cpp"
#line 36 "/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
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

    return sipVH_kparts_22(sipGILState,meth,-3,sipPySelf);
}


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

    {
        KParts::PartActivateEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_PartActivateEvent, sipName_activated, NULL);

    return NULL;
}


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

    {
        KParts::PartActivateEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_PartActivateEvent, sipName_part, NULL);

    return NULL;
}


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

    {
        KParts::PartActivateEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_PartActivateEvent, sipName_widget, NULL);

    return NULL;
}


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

    {
        const QEvent * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    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 sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & 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 *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

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


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

    {
        bool a0;
        KParts::Part * a1;
        QWidget * a2;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "bJ8J8", &a0, sipType_KParts_Part, &a1, sipType_QWidget, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKParts_PartActivateEvent(a0,a1,a2);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KParts_PartActivateEvent[] = {{15, 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 sipTypeDef_kparts_KParts_PartActivateEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__PartActivateEvent,
        {0}
    },
    {
        sipNameNr_PartActivateEvent,
        {0, 255, 0},
        4, methods_KParts_PartActivateEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_PartActivateEvent,
    0,
    init_KParts_PartActivateEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_PartActivateEvent,
    0,
    0,
    0,
    release_KParts_PartActivateEvent,
    cast_KParts_PartActivateEvent,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kparts/event.sip"
#include <kparts/event.h>
#line 316 "sipkpartspart4.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 320 "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
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

    return sipVH_kparts_22(sipGILState,meth,-4,sipPySelf);
}


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

    {
        KParts::GUIActivateEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_GUIActivateEvent, sipName_activated, NULL);

    return NULL;
}


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

    {
        const QEvent * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    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 sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & 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 *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

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


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

    {
        bool a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KParts_GUIActivateEvent[] = {{15, 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 sipTypeDef_kparts_KParts_GUIActivateEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__GUIActivateEvent,
        {0}
    },
    {
        sipNameNr_GUIActivateEvent,
        {0, 255, 0},
        2, methods_KParts_GUIActivateEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_GUIActivateEvent,
    0,
    init_KParts_GUIActivateEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_GUIActivateEvent,
    0,
    0,
    0,
    release_KParts_GUIActivateEvent,
    cast_KParts_GUIActivateEvent,
    0,
    0,
    0
},
    0,
    0,
    0
};

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

#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 560 "sipkpartspart4.cpp"
#line 113 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 563 "sipkpartspart4.cpp"
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 566 "sipkpartspart4.cpp"
#line 142 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 569 "sipkpartspart4.cpp"
#line 40 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 572 "sipkpartspart4.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 575 "sipkpartspart4.cpp"
#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 578 "sipkpartspart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 581 "sipkpartspart4.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 584 "sipkpartspart4.cpp"
#line 82 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 587 "sipkpartspart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 590 "sipkpartspart4.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 593 "sipkpartspart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qtimer.sip"
#include <qtimer.h>
#line 596 "sipkpartspart4.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 599 "sipkpartspart4.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 602 "sipkpartspart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 605 "sipkpartspart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 608 "sipkpartspart4.cpp"
#line 315 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 611 "sipkpartspart4.cpp"
#line 303 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 614 "sipkpartspart4.cpp"
#line 39 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 617 "sipkpartspart4.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 620 "sipkpartspart4.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 623 "sipkpartspart4.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 626 "sipkpartspart4.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 629 "sipkpartspart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 632 "sipkpartspart4.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 635 "sipkpartspart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 638 "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.
     */
    QObject * sipProtect_sender() const;
    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 *);
    int sipProtect_handleNonEmbeddable(const QString&,KService::Ptr *);

    /*
     * 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)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    typedef void (*sipVH_kio_4)(sip_gilstate_t,PyObject *,const KUrl&,const QString&);

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

void sipKParts_BrowserRun::scanFile()
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kparts_QtCore->em_virthandlers[11]))(sipGILState,meth);
}

void sipKParts_BrowserRun::init()
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kparts_QtCore->em_virthandlers[11]))(sipGILState,meth);
}

void sipKParts_BrowserRun::handleError(KJob *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    typedef void (*sipVH_kdecore_27)(sip_gilstate_t,PyObject *,KJob *);

    ((sipVH_kdecore_27)(sipModuleAPI_kparts_kdecore->em_virthandlers[27]))(sipGILState,meth,a0);
}

void sipKParts_BrowserRun::slotStatResult(KJob *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    typedef void (*sipVH_kdecore_27)(sip_gilstate_t,PyObject *,KJob *);

    ((sipVH_kdecore_27)(sipModuleAPI_kparts_kdecore->em_virthandlers[27]))(sipGILState,meth,a0);
}

void sipKParts_BrowserRun::foundMimeType(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    typedef void (*sipVH_QtCore_33)(sip_gilstate_t,PyObject *,const QString&);

    ((sipVH_QtCore_33)(sipModuleAPI_kparts_QtCore->em_virthandlers[33]))(sipGILState,meth,a0);
}

void sipKParts_BrowserRun::killJob()
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kparts_QtCore->em_virthandlers[11]))(sipGILState,meth);
}

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

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

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

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

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

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

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

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

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

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

void sipKParts_BrowserRun::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

    ((sipVH_QtCore_9)(sipModuleAPI_kparts_QtCore->em_virthandlers[9]))(sipGILState,meth,a0);
}

void sipKParts_BrowserRun::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

    ((sipVH_QtCore_25)(sipModuleAPI_kparts_QtCore->em_virthandlers[25]))(sipGILState,meth,a0);
}

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

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

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

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

    ((sipVH_QtCore_17)(sipModuleAPI_kparts_QtCore->em_virthandlers[17]))(sipGILState,meth,a0);
}

void sipKParts_BrowserRun::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

    ((sipVH_QtCore_24)(sipModuleAPI_kparts_QtCore->em_virthandlers[24]))(sipGILState,meth,a0);
}

void sipKParts_BrowserRun::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

    ((sipVH_QtCore_24)(sipModuleAPI_kparts_QtCore->em_virthandlers[24]))(sipGILState,meth,a0);
}

QObject * sipKParts_BrowserRun::sipProtect_sender() const
{
    return QObject::sender();
}

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));
}

int sipKParts_BrowserRun::sipProtect_handleNonEmbeddable(const QString& a0,KService::Ptr *a1)
{
    return (int)KParts::BrowserRun::handleNonEmbeddable(a0,a1);
}


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

    {
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_BrowserRun, &sipCpp))
        {
            QObject *sipRes = 0;

#line 529 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 1230 "sipkpartspart4.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_BrowserRun *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKParts_BrowserRun *sipCpp;

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKParts_BrowserRun *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_BrowserRun *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_BrowserRun *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_BrowserRun *sipCpp;

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

    return NULL;
}


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

    {
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &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(sipParseErr, sipName_BrowserRun, sipName_slotTimeout, NULL);

    return NULL;
}


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

    {
        KJob * a0;
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &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(sipParseErr, sipName_BrowserRun, sipName_slotScanFinished, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1", &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(sipParseErr, sipName_BrowserRun, sipName_slotScanMimeType, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &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(sipParseErr, sipName_BrowserRun, sipName_mimeTypeDetermined, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &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(sipParseErr, sipName_BrowserRun, sipName_foundMimeType, NULL);

    return NULL;
}


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

    {
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &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(sipParseErr, sipName_BrowserRun, sipName_killJob, NULL);

    return NULL;
}


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

    {
        const KUrl * a0;
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &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(sipParseErr, sipName_BrowserRun, sipName_setUrl, NULL);

    return NULL;
}


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

    {
        bool a0;
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &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(sipParseErr, sipName_BrowserRun, sipName_setError, NULL);

    return NULL;
}


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

    {
        bool a0;
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &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(sipParseErr, sipName_BrowserRun, sipName_setProgressInfo, NULL);

    return NULL;
}


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

    {
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &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(sipParseErr, sipName_BrowserRun, sipName_progressInfo, NULL);

    return NULL;
}


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

    {
        bool a0;
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &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(sipParseErr, sipName_BrowserRun, sipName_setFinished, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &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(sipParseErr, sipName_BrowserRun, sipName_setJob, NULL);

    return NULL;
}


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

    {
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &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(sipParseErr, sipName_BrowserRun, sipName_job, NULL);

    return NULL;
}


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

    {
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &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(sipParseErr, sipName_BrowserRun, sipName_timer, NULL);

    return NULL;
}


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

    {
        bool a0;
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &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(sipParseErr, sipName_BrowserRun, sipName_setDoScanFile, NULL);

    return NULL;
}


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

    {
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &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(sipParseErr, sipName_BrowserRun, sipName_doScanFile, NULL);

    return NULL;
}


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

    {
        bool a0;
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &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(sipParseErr, sipName_BrowserRun, sipName_setIsDirecory, NULL);

    return NULL;
}


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

    {
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &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(sipParseErr, sipName_BrowserRun, sipName_isDirectory, NULL);

    return NULL;
}


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

    {
        bool a0;
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &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(sipParseErr, sipName_BrowserRun, sipName_setInitializeNextAction, NULL);

    return NULL;
}


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

    {
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &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(sipParseErr, sipName_BrowserRun, sipName_initializeNextAction, NULL);

    return NULL;
}


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

    {
        bool a0;
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &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(sipParseErr, sipName_BrowserRun, sipName_setIsLocalFile, NULL);

    return NULL;
}


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

    {
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &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(sipParseErr, sipName_BrowserRun, sipName_isLocalFile, NULL);

    return NULL;
}


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

    {
        mode_t a0;
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bu", &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(sipParseErr, sipName_BrowserRun, sipName_setMode, NULL);

    return NULL;
}


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

    {
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &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(sipParseErr, sipName_BrowserRun, sipName_mode, NULL);

    return NULL;
}


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

    {
        KParts::BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_BrowserRun, sipName_arguments, NULL);

    return NULL;
}


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

    {
        KParts::BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_BrowserRun, sipName_browserArguments, NULL);

    return NULL;
}


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

    {
        KParts::BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_BrowserRun, sipName_part, NULL);

    return NULL;
}


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

    {
        KParts::BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_BrowserRun, sipName_url, NULL);

    return NULL;
}


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

    {
        KParts::BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_BrowserRun, sipName_hideErrorDialog, NULL);

    return NULL;
}


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

    {
        KParts::BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_BrowserRun, sipName_contentDisposition, NULL);

    return NULL;
}


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

    {
        KParts::BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_BrowserRun, sipName_serverSuggestsSave, NULL);

    return NULL;
}


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

    {
        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(&sipParseErr, sipArgs, "J9J1J1|J1", sipType_KUrl, &a0, sipType_KSharedPtr_0100KService,&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_0100KService,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(sipParseErr, sipName_BrowserRun, sipName_askSave, NULL);

    return NULL;
}


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

    {
        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(&sipParseErr, 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(sipParseErr, sipName_BrowserRun, sipName_askEmbedOrSave, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_BrowserRun, sipName_save, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_BrowserRun, sipName_simpleSave, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_BrowserRun, sipName_allowExecution, NULL);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_BrowserRun, sipName_isTextExecutable, NULL);

    return NULL;
}


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

    {
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &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(sipParseErr, sipName_BrowserRun, sipName_scanFile, NULL);

    return NULL;
}


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

    {
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &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(sipParseErr, sipName_BrowserRun, sipName_init, NULL);

    return NULL;
}


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

    {
        KJob * a0;
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &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(sipParseErr, sipName_BrowserRun, sipName_handleError, NULL);

    return NULL;
}


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

    {
        KJob * a0;
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &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(sipParseErr, sipName_BrowserRun, sipName_slotBrowserScanFinished, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1", &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(sipParseErr, sipName_BrowserRun, sipName_slotBrowserMimetype, NULL);

    return NULL;
}


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

    {
        KJob * a0;
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &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(sipParseErr, sipName_BrowserRun, sipName_slotCopyToTempFileResult, NULL);

    return NULL;
}


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

    {
        KJob * a0;
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &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(sipParseErr, sipName_BrowserRun, sipName_slotStatResult, NULL);

    return NULL;
}


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

    {
        const KUrl * a0;
        const QString * a1;
        int a1State = 0;
        QWidget * a2;
        const KParts::OpenUrlArguments * a3;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J1J8J9", sipType_KUrl, &a0, sipType_QString,&a1, &a1State, sipType_QWidget, &a2, sipType_KParts_OpenUrlArguments, &a3))
        {
            Py_BEGIN_ALLOW_THREADS
            KParts::BrowserRun::saveUrl(*a0,*a1,a2,*a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KUrl * a0;
        const KUrl * a1;
        QWidget * a2;
        const QMap<QString,QString> * a3;
        int a3State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9J8J1", sipType_KUrl, &a0, sipType_KUrl, &a1, sipType_QWidget, &a2, sipType_QMap_0100QString_0100QString,&a3, &a3State))
        {
            Py_BEGIN_ALLOW_THREADS
            KParts::BrowserRun::saveUrlUsingKIO(*a0,*a1,a2,*a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QMap<QString,QString> *>(a3),sipType_QMap_0100QString_0100QString,a3State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        KService::Ptr * a1;
        int a1State = 0;
        sipKParts_BrowserRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J0", &sipSelf, sipType_KParts_BrowserRun, &sipCpp, sipType_QString,&a0, &a0State, sipType_KSharedPtr_0100KService,&a1, &a1State))
        {
            int sipRes;

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

            return sipConvertFromEnum(sipRes,sipType_KParts_BrowserRun_NonEmbeddableResult);
        }
    }

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

    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 sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & 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 *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

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


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

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KParts_BrowserRun[] = {{205, 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_handleNonEmbeddable), meth_KParts_BrowserRun_handleNonEmbeddable, 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_saveUrl), meth_KParts_BrowserRun_saveUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_saveUrlUsingKIO), meth_KParts_BrowserRun_saveUrlUsingKIO, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_scanFile), meth_KParts_BrowserRun_scanFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KParts_BrowserRun_sender, 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, 12},
    {sipName_Cancel, KParts::BrowserRun::Cancel, 13},
    {sipName_Delayed, sipKParts_BrowserRun::Delayed, 14},
    {sipName_Handled, sipKParts_BrowserRun::Handled, 14},
    {sipName_InlineDisposition, KParts::BrowserRun::InlineDisposition, 12},
    {sipName_NotHandled, sipKParts_BrowserRun::NotHandled, 14},
    {sipName_Open, KParts::BrowserRun::Open, 13},
    {sipName_Save, KParts::BrowserRun::Save, 13},
};


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

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kparts/browseropenorsavequestion.sip"
#include <kparts/browseropenorsavequestion.h>
#line 2950 "sipkpartspart4.cpp"

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kparts/browseropenorsavequestion.sip"
#include <kparts/browseropenorsavequestion.h>
#line 2954 "sipkpartspart4.cpp"


extern "C" {static int slot_KParts_BrowserOpenOrSaveQuestion_Features___bool__(PyObject *);}
static int slot_KParts_BrowserOpenOrSaveQuestion_Features___bool__(PyObject *sipSelf)
{
    KParts::BrowserOpenOrSaveQuestion::Features *sipCpp = reinterpret_cast<KParts::BrowserOpenOrSaveQuestion::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_BrowserOpenOrSaveQuestion_Features));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 336 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 2972 "sipkpartspart4.cpp"

            return sipRes;
        }
    }
}


extern "C" {static PyObject *slot_KParts_BrowserOpenOrSaveQuestion_Features___ne__(PyObject *,PyObject *);}
static PyObject *slot_KParts_BrowserOpenOrSaveQuestion_Features___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KParts::BrowserOpenOrSaveQuestion::Features *sipCpp = reinterpret_cast<KParts::BrowserOpenOrSaveQuestion::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_BrowserOpenOrSaveQuestion_Features));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KParts::BrowserOpenOrSaveQuestion::Features * a0;
        int a0State = 0;

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

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 3000 "sipkpartspart4.cpp"
            sipReleaseType(const_cast<KParts::BrowserOpenOrSaveQuestion::Features *>(a0),sipType_KParts_BrowserOpenOrSaveQuestion_Features,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KParts_BrowserOpenOrSaveQuestion_Features___eq__(PyObject *,PyObject *);}
static PyObject *slot_KParts_BrowserOpenOrSaveQuestion_Features___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KParts::BrowserOpenOrSaveQuestion::Features *sipCpp = reinterpret_cast<KParts::BrowserOpenOrSaveQuestion::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_BrowserOpenOrSaveQuestion_Features));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KParts::BrowserOpenOrSaveQuestion::Features * a0;
        int a0State = 0;

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

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 3036 "sipkpartspart4.cpp"
            sipReleaseType(const_cast<KParts::BrowserOpenOrSaveQuestion::Features *>(a0),sipType_KParts_BrowserOpenOrSaveQuestion_Features,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KParts_BrowserOpenOrSaveQuestion_Features___invert__(PyObject *);}
static PyObject *slot_KParts_BrowserOpenOrSaveQuestion_Features___invert__(PyObject *sipSelf)
{
    KParts::BrowserOpenOrSaveQuestion::Features *sipCpp = reinterpret_cast<KParts::BrowserOpenOrSaveQuestion::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_BrowserOpenOrSaveQuestion_Features));

    if (!sipCpp)
        return 0;


    {
        {
            KParts::BrowserOpenOrSaveQuestion::Features *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KParts::BrowserOpenOrSaveQuestion::Features(~(*sipCpp));
            Py_END_ALLOW_THREADS

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


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

    {
        KParts::BrowserOpenOrSaveQuestion::Features * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KParts_BrowserOpenOrSaveQuestion_Features, &a0, &a0State, &a1))
        {
            KParts::BrowserOpenOrSaveQuestion::Features *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KParts::BrowserOpenOrSaveQuestion::Features((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KParts_BrowserOpenOrSaveQuestion_Features,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KParts::BrowserOpenOrSaveQuestion::Features * a0;
        int a0State = 0;
        KParts::BrowserOpenOrSaveQuestion::Features * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KParts_BrowserOpenOrSaveQuestion_Features, &a0, &a0State, sipType_KParts_BrowserOpenOrSaveQuestion_Features, &a1, &a1State))
        {
            KParts::BrowserOpenOrSaveQuestion::Features *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KParts::BrowserOpenOrSaveQuestion::Features((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KParts_BrowserOpenOrSaveQuestion_Features,a0State);
            sipReleaseType(a1,sipType_KParts_BrowserOpenOrSaveQuestion_Features,a1State);

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

    {
        KParts::BrowserOpenOrSaveQuestion::Features * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KParts_BrowserOpenOrSaveQuestion_Features, &a0, &a0State, &a1))
        {
            KParts::BrowserOpenOrSaveQuestion::Features *sipRes = 0;

#line 320 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KParts::BrowserOpenOrSaveQuestion::Features(*a0 ^ a1);
#line 3143 "sipkpartspart4.cpp"
            sipReleaseType(a0,sipType_KParts_BrowserOpenOrSaveQuestion_Features,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KParts::BrowserOpenOrSaveQuestion::Features * a0;
        int a0State = 0;
        KParts::BrowserOpenOrSaveQuestion::Features * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KParts_BrowserOpenOrSaveQuestion_Features, &a0, &a0State, sipType_KParts_BrowserOpenOrSaveQuestion_Features, &a1, &a1State))
        {
            KParts::BrowserOpenOrSaveQuestion::Features *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KParts::BrowserOpenOrSaveQuestion::Features((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KParts_BrowserOpenOrSaveQuestion_Features,a0State);
            sipReleaseType(a1,sipType_KParts_BrowserOpenOrSaveQuestion_Features,a1State);

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

    {
        KParts::BrowserOpenOrSaveQuestion::Features * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KParts_BrowserOpenOrSaveQuestion_Features, &a0, &a0State, &a1))
        {
            KParts::BrowserOpenOrSaveQuestion::Features *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KParts::BrowserOpenOrSaveQuestion::Features(*a0 | a1);
#line 3195 "sipkpartspart4.cpp"
            sipReleaseType(a0,sipType_KParts_BrowserOpenOrSaveQuestion_Features,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KParts_BrowserOpenOrSaveQuestion_Features___int__(PyObject *);}
static PyObject *slot_KParts_BrowserOpenOrSaveQuestion_Features___int__(PyObject *sipSelf)
{
    KParts::BrowserOpenOrSaveQuestion::Features *sipCpp = reinterpret_cast<KParts::BrowserOpenOrSaveQuestion::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_BrowserOpenOrSaveQuestion_Features));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }
}


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

    KParts::BrowserOpenOrSaveQuestion::Features *sipCpp = reinterpret_cast<KParts::BrowserOpenOrSaveQuestion::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_BrowserOpenOrSaveQuestion_Features));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KParts::BrowserOpenOrSaveQuestion::Features * a0;
        int a0State = 0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    KParts::BrowserOpenOrSaveQuestion::Features *sipCpp = reinterpret_cast<KParts::BrowserOpenOrSaveQuestion::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_BrowserOpenOrSaveQuestion_Features));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KParts::BrowserOpenOrSaveQuestion::Features * a0;
        int a0State = 0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    KParts::BrowserOpenOrSaveQuestion::Features *sipCpp = reinterpret_cast<KParts::BrowserOpenOrSaveQuestion::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_BrowserOpenOrSaveQuestion_Features));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KParts::BrowserOpenOrSaveQuestion::Features *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_KParts_BrowserOpenOrSaveQuestion_Features(SIP_SSIZE_T);}
static void *array_KParts_BrowserOpenOrSaveQuestion_Features(SIP_SSIZE_T sipNrElem)
{
    return new KParts::BrowserOpenOrSaveQuestion::Features[sipNrElem];
}


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


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


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

    {
        const KParts::BrowserOpenOrSaveQuestion::Features * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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

#line 341 "/usr/local/share/py-sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a KParts::BrowserOpenOrSaveQuestion::Features is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KParts_BrowserOpenOrSaveQuestion_Feature)) ||
            sipCanConvertToType(sipPy, sipType_KParts_BrowserOpenOrSaveQuestion_Features, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KParts_BrowserOpenOrSaveQuestion_Feature)))
{
    *sipCppPtr = new KParts::BrowserOpenOrSaveQuestion::Features(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KParts::BrowserOpenOrSaveQuestion::Features *>(sipConvertToType(sipPy, sipType_KParts_BrowserOpenOrSaveQuestion_Features, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 3488 "sipkpartspart4.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KParts_BrowserOpenOrSaveQuestion_Features[] = {
    {(void *)slot_KParts_BrowserOpenOrSaveQuestion_Features___bool__, bool_slot},
    {(void *)slot_KParts_BrowserOpenOrSaveQuestion_Features___ne__, ne_slot},
    {(void *)slot_KParts_BrowserOpenOrSaveQuestion_Features___eq__, eq_slot},
    {(void *)slot_KParts_BrowserOpenOrSaveQuestion_Features___invert__, invert_slot},
    {(void *)slot_KParts_BrowserOpenOrSaveQuestion_Features___and__, and_slot},
    {(void *)slot_KParts_BrowserOpenOrSaveQuestion_Features___xor__, xor_slot},
    {(void *)slot_KParts_BrowserOpenOrSaveQuestion_Features___or__, or_slot},
    {(void *)slot_KParts_BrowserOpenOrSaveQuestion_Features___int__, int_slot},
    {(void *)slot_KParts_BrowserOpenOrSaveQuestion_Features___ixor__, ixor_slot},
    {(void *)slot_KParts_BrowserOpenOrSaveQuestion_Features___ior__, ior_slot},
    {(void *)slot_KParts_BrowserOpenOrSaveQuestion_Features___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_BrowserOpenOrSaveQuestion_Features = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KParts__BrowserOpenOrSaveQuestion__Features,
        {0}
    },
    {
        sipNameNr_Features,
        {7, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KParts_BrowserOpenOrSaveQuestion_Features,
    init_KParts_BrowserOpenOrSaveQuestion_Features,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_BrowserOpenOrSaveQuestion_Features,
    assign_KParts_BrowserOpenOrSaveQuestion_Features,
    array_KParts_BrowserOpenOrSaveQuestion_Features,
    copy_KParts_BrowserOpenOrSaveQuestion_Features,
    release_KParts_BrowserOpenOrSaveQuestion_Features,
    cast_KParts_BrowserOpenOrSaveQuestion_Features,
    convertTo_KParts_BrowserOpenOrSaveQuestion_Features,
    0,
    0
},
    0,
    1,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kparts/browseropenorsavequestion.sip"
#include <kparts/browseropenorsavequestion.h>
#line 3561 "sipkpartspart4.cpp"

#line 40 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 3565 "sipkpartspart4.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 3568 "sipkpartspart4.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3571 "sipkpartspart4.cpp"
#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 3574 "sipkpartspart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 3577 "sipkpartspart4.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kparts/browseropenorsavequestion.sip"
#include <kparts/browseropenorsavequestion.h>
#line 3580 "sipkpartspart4.cpp"


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::BrowserOpenOrSaveQuestion::Features * a0;
        int a0State = 0;
        KParts::BrowserOpenOrSaveQuestion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KParts_BrowserOpenOrSaveQuestion, &sipCpp, sipType_KParts_BrowserOpenOrSaveQuestion_Features, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFeatures(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KParts_BrowserOpenOrSaveQuestion_Features,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::BrowserOpenOrSaveQuestion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_BrowserOpenOrSaveQuestion, &sipCpp))
        {
            KParts::BrowserOpenOrSaveQuestion::Result sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->askOpenOrSave();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KParts_BrowserOpenOrSaveQuestion_Result);
        }
    }

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

    return NULL;
}


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

    {
        int a0 = 0;
        KParts::BrowserOpenOrSaveQuestion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|i", &sipSelf, sipType_KParts_BrowserOpenOrSaveQuestion, &sipCpp, &a0))
        {
            KParts::BrowserOpenOrSaveQuestion::Result sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->askEmbedOrSave(a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KParts_BrowserOpenOrSaveQuestion_Result);
        }
    }

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

    return NULL;
}


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

    {
        KParts::BrowserOpenOrSaveQuestion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_BrowserOpenOrSaveQuestion, &sipCpp))
        {
            KService::Ptr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KService::Ptr(sipCpp->selectedService());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "JHJ9J1", sipType_QWidget, &a0, sipOwner, sipType_KUrl, &a1, sipType_QString,&a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KParts::BrowserOpenOrSaveQuestion(a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return sipCpp;
        }
    }

    {
        const KParts::BrowserOpenOrSaveQuestion * a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KParts_BrowserOpenOrSaveQuestion[] = {
    {SIP_MLNAME_CAST(sipName_askEmbedOrSave), meth_KParts_BrowserOpenOrSaveQuestion_askEmbedOrSave, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_askOpenOrSave), meth_KParts_BrowserOpenOrSaveQuestion_askOpenOrSave, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedService), meth_KParts_BrowserOpenOrSaveQuestion_selectedService, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFeatures), meth_KParts_BrowserOpenOrSaveQuestion_setFeatures, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSuggestedFileName), meth_KParts_BrowserOpenOrSaveQuestion_setSuggestedFileName, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KParts_BrowserOpenOrSaveQuestion[] = {
    {sipName_BasicFeatures, KParts::BrowserOpenOrSaveQuestion::BasicFeatures, 8},
    {sipName_Cancel, KParts::BrowserOpenOrSaveQuestion::Cancel, 10},
    {sipName_Embed, KParts::BrowserOpenOrSaveQuestion::Embed, 10},
    {sipName_Open, KParts::BrowserOpenOrSaveQuestion::Open, 10},
    {sipName_Save, KParts::BrowserOpenOrSaveQuestion::Save, 10},
    {sipName_ServiceSelection, KParts::BrowserOpenOrSaveQuestion::ServiceSelection, 8},
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_BrowserOpenOrSaveQuestion = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KParts__BrowserOpenOrSaveQuestion,
        {0}
    },
    {
        sipNameNr_BrowserOpenOrSaveQuestion,
        {0, 255, 0},
        5, methods_KParts_BrowserOpenOrSaveQuestion,
        6, enummembers_KParts_BrowserOpenOrSaveQuestion,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_KParts_BrowserOpenOrSaveQuestion,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_BrowserOpenOrSaveQuestion,
    0,
    0,
    0,
    release_KParts_BrowserOpenOrSaveQuestion,
    cast_KParts_BrowserOpenOrSaveQuestion,
    0,
    0,
    0
},
    0,
    0,
    0
};
