/*
 * Module code.
 *
 * Generated by SIP 4.12.4 on Fri Dec 30 00:38:33 2011
 */

#include "sipAPIkparts.h"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/browserrun.sip"
#include <kparts/browserrun.h>
#line 12 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"

#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 16 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 113 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 19 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 47 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 22 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 142 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 31 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 37 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 40 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 46 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qtimer.sip"
#include <qtimer.h>
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 64 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 67 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 70 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 73 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 76 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 79 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 82 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 85 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 88 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 91 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 94 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.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 *sipMeth;

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

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

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

    ((sipVH_kio_5)(sipModuleAPI_kparts_kio->em_virthandlers[5]))(sipGILState,sipMeth,a0,a1);
}

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
    {
        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,sipMeth,a0);
}

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

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

    if (!sipMeth)
    {
        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,sipMeth,a0);
}

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

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

    if (!sipMeth)
    {
        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,sipMeth,a0);
}

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

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

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

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

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

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

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

    if (!sipMeth)
        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,sipMeth,a0);
}

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

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

    if (!sipMeth)
        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,sipMeth,a0,a1);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
    {
        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,sipMeth,a0);
}

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

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

    if (!sipMeth)
    {
        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,sipMeth,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 632 "/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 686 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.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 649 "/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 728 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.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;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "iJ1J1", &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State))
        {
            KUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(KParts::BrowserRun::makeErrorUrl(a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_BrowserRun, sipName_makeErrorUrl, 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[] = {{210, 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_makeErrorUrl), meth_KParts_BrowserRun_makeErrorUrl, 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},
        55, 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/pykde4-4.7.3/sip/kparts/browseropenorsavequestion.sip"
#include <kparts/browseropenorsavequestion.h>
#line 2440 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/browseropenorsavequestion.sip"
#include <kparts/browseropenorsavequestion.h>
#line 2444 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.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 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 2462 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"

            return sipRes;
        }
    }

    return 0;
}


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 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 2492 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.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 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 2528 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.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);
        }
    }

    return 0;
}


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 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KParts::BrowserOpenOrSaveQuestion::Features(*a0 ^ a1);
#line 2637 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.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 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KParts::BrowserOpenOrSaveQuestion::Features(*a0 | a1);
#line 2689 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.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);
        }
    }

    return 0;
}


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 336 "/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 2984 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.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/pykde4-4.7.3/sip/kparts/browseropenorsavequestion.sip"
#include <kparts/browseropenorsavequestion.h>
#line 3057 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"

#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 3061 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 3064 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3067 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 3070 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 3073 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/browseropenorsavequestion.sip"
#include <kparts/browseropenorsavequestion.h>
#line 3076 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.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
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/browserinterface.sip"
#include <kparts/browserinterface.h>
#line 3361 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 3365 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3368 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3371 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3374 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3377 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3380 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3383 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3386 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3389 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 3392 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3395 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 3398 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 3401 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"


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

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

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    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 *);

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[7];
};

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

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

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

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

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

    return _id;
}

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

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

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

    if (!sipMeth)
        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,sipMeth,a0);
}

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

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

    if (!sipMeth)
        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,sipMeth,a0,a1);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
    {
        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,sipMeth,a0);
}

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

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

    if (!sipMeth)
    {
        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,sipMeth,a0);
}

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

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

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

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

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

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

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


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

    {
        sipKParts_BrowserInterface *sipCpp;

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

#line 632 "/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 3661 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_BrowserInterface *sipCpp;

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

#line 649 "/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 3703 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKParts_BrowserInterface *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKParts_BrowserInterface *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_BrowserInterface *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_BrowserInterface *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_BrowserInterface *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_BrowserInterface)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QObject * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


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


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

#line 276 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 4024 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"

#line 142 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 4028 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 4031 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4034 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 4037 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4040 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4043 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4046 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4049 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4052 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4055 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4058 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4061 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 4064 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 4067 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4070 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"


class sipKParts_LiveConnectExtension : public KParts::LiveConnectExtension
{
public:
    sipKParts_LiveConnectExtension(KParts::ReadOnlyPart *);
    virtual ~sipKParts_LiveConnectExtension();

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

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    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 *);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool get(const unsigned long,const QString&,KParts::LiveConnectExtension::Type&,unsigned long&,QString&);
    bool put(const unsigned long,const QString&,const QString&);
    bool call(const unsigned long,const QString&,const QStringList&,KParts::LiveConnectExtension::Type&,unsigned long&,QString&);
    void unregister(const unsigned long);
    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_LiveConnectExtension(const sipKParts_LiveConnectExtension &);
    sipKParts_LiveConnectExtension &operator = (const sipKParts_LiveConnectExtension &);

    char sipPyMethods[11];
};

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

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

const QMetaObject *sipKParts_LiveConnectExtension::metaObject() const
{
    return sip_kparts_qt_metaobject(sipPySelf,sipType_KParts_LiveConnectExtension);
}

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

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

    return _id;
}

void *sipKParts_LiveConnectExtension::qt_metacast(const char *_clname)
{
    return (sip_kparts_qt_metacast && sip_kparts_qt_metacast(sipPySelf,sipType_KParts_LiveConnectExtension,_clname)) ? this : KParts::LiveConnectExtension::qt_metacast(_clname);
}

bool sipKParts_LiveConnectExtension::get(const unsigned long a0,const QString& a1,KParts::LiveConnectExtension::Type& a2,unsigned long& a3,QString& a4)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::LiveConnectExtension::get(a0,a1,a2,a3,a4);

    extern bool sipVH_kparts_33(sip_gilstate_t,PyObject *,const unsigned long,const QString&,KParts::LiveConnectExtension::Type&,unsigned long&,QString&);

    return sipVH_kparts_33(sipGILState,sipMeth,a0,a1,a2,a3,a4);
}

bool sipKParts_LiveConnectExtension::put(const unsigned long a0,const QString& a1,const QString& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::LiveConnectExtension::put(a0,a1,a2);

    extern bool sipVH_kparts_32(sip_gilstate_t,PyObject *,const unsigned long,const QString&,const QString&);

    return sipVH_kparts_32(sipGILState,sipMeth,a0,a1,a2);
}

bool sipKParts_LiveConnectExtension::call(const unsigned long a0,const QString& a1,const QStringList& a2,KParts::LiveConnectExtension::Type& a3,unsigned long& a4,QString& a5)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::LiveConnectExtension::call(a0,a1,a2,a3,a4,a5);

    extern bool sipVH_kparts_31(sip_gilstate_t,PyObject *,const unsigned long,const QString&,const QStringList&,KParts::LiveConnectExtension::Type&,unsigned long&,QString&);

    return sipVH_kparts_31(sipGILState,sipMeth,a0,a1,a2,a3,a4,a5);
}

void sipKParts_LiveConnectExtension::unregister(const unsigned long a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KParts::LiveConnectExtension::unregister(a0);
        return;
    }

    extern void sipVH_kparts_30(sip_gilstate_t,PyObject *,const unsigned long);

    sipVH_kparts_30(sipGILState,sipMeth,a0);
}

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

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

    if (!sipMeth)
        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,sipMeth,a0);
}

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

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

    if (!sipMeth)
        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,sipMeth,a0,a1);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
    {
        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,sipMeth,a0);
}

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

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

    if (!sipMeth)
    {
        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,sipMeth,a0);
}

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

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

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

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

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

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

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


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

    {
        sipKParts_LiveConnectExtension *sipCpp;

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

#line 632 "/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 4397 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_LiveConnectExtension *sipCpp;

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

#line 649 "/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 4439 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKParts_LiveConnectExtension *sipCpp;

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKParts_LiveConnectExtension *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_LiveConnectExtension *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_LiveConnectExtension *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_LiveConnectExtension *sipCpp;

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

    return NULL;
}


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

    {
        unsigned long a0;
        const QString * a1;
        int a1State = 0;
        KParts::LiveConnectExtension::Type a2;
        unsigned long a3;
        QString * a4;
        int a4State = 0;
        KParts::LiveConnectExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BmJ1EJ1", &sipSelf, sipType_KParts_LiveConnectExtension, &sipCpp, &a0, sipType_QString,&a1, &a1State, sipType_KParts_LiveConnectExtension_Type, &a2, sipType_QString,&a4, &a4State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::LiveConnectExtension::get(a0,*a1,a2,a3,*a4) : sipCpp->get(a0,*a1,a2,a3,*a4));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(a4,sipType_QString,a4State);

            return sipBuildResult(0,"(bm)",sipRes,a3);
        }
    }

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

    return NULL;
}


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

    {
        unsigned long a0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        KParts::LiveConnectExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BmJ1J1", &sipSelf, sipType_KParts_LiveConnectExtension, &sipCpp, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        unsigned long a0;
        const QString * a1;
        int a1State = 0;
        const QStringList * a2;
        int a2State = 0;
        KParts::LiveConnectExtension::Type a3;
        unsigned long a4;
        QString * a5;
        int a5State = 0;
        KParts::LiveConnectExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BmJ1J1EJ1", &sipSelf, sipType_KParts_LiveConnectExtension, &sipCpp, &a0, sipType_QString,&a1, &a1State, sipType_QStringList,&a2, &a2State, sipType_KParts_LiveConnectExtension_Type, &a3, sipType_QString,&a5, &a5State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::LiveConnectExtension::call(a0,*a1,*a2,a3,a4,*a5) : sipCpp->call(a0,*a1,*a2,a3,a4,*a5));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QStringList *>(a2),sipType_QStringList,a2State);
            sipReleaseType(a5,sipType_QString,a5State);

            return sipBuildResult(0,"(bm)",sipRes,a4);
        }
    }

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

    return NULL;
}


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

    {
        unsigned long a0;
        KParts::LiveConnectExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_KParts_LiveConnectExtension, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KParts::LiveConnectExtension::unregister(a0) : sipCpp->unregister(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_LiveConnectExtension, sipName_unregister, NULL);

    return NULL;
}


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

    {
        QObject * a0;

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

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

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

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

    return NULL;
}


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

    if (targetType == sipType_KParts_LiveConnectExtension)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        KParts::ReadOnlyPart * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KParts_LiveConnectExtension[] = {
    {SIP_MLNAME_CAST(sipName_call), meth_KParts_LiveConnectExtension_call, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KParts_LiveConnectExtension_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childObject), meth_KParts_LiveConnectExtension_childObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KParts_LiveConnectExtension_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KParts_LiveConnectExtension_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KParts_LiveConnectExtension_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_get), meth_KParts_LiveConnectExtension_get, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_put), meth_KParts_LiveConnectExtension_put, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KParts_LiveConnectExtension_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KParts_LiveConnectExtension_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KParts_LiveConnectExtension_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_unregister), meth_KParts_LiveConnectExtension_unregister, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KParts_LiveConnectExtension[] = {
    {sipName_TypeBool, KParts::LiveConnectExtension::TypeBool, 24},
    {sipName_TypeFunction, KParts::LiveConnectExtension::TypeFunction, 24},
    {sipName_TypeNumber, KParts::LiveConnectExtension::TypeNumber, 24},
    {sipName_TypeObject, KParts::LiveConnectExtension::TypeObject, 24},
    {sipName_TypeString, KParts::LiveConnectExtension::TypeString, 24},
    {sipName_TypeVoid, KParts::LiveConnectExtension::TypeVoid, 24},
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_LiveConnectExtension = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__LiveConnectExtension,
        {0}
    },
    {
        sipNameNr_LiveConnectExtension,
        {0, 255, 0},
        12, methods_KParts_LiveConnectExtension,
        6, enummembers_KParts_LiveConnectExtension,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_LiveConnectExtension,
    0,
    init_KParts_LiveConnectExtension,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_LiveConnectExtension,
    0,
    0,
    0,
    release_KParts_LiveConnectExtension,
    cast_KParts_LiveConnectExtension,
    0,
    0,
    0
},
    &KParts::LiveConnectExtension::staticMetaObject,
    0,
    0
};

#line 257 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 4908 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"

#line 142 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 4912 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 4915 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 4918 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 113 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 4921 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 47 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 4924 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4927 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4930 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 4933 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4936 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4939 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4942 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4945 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4948 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4951 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4954 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4957 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 4960 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 4963 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4966 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"


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

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

    /*
     * There is a 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 *);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    QStringList frameNames() const;
    const QList<KParts::ReadOnlyPart *> frames() const;
    KParts::BrowserHostExtension * findFrameParent(KParts::ReadOnlyPart *,const QString&);
    bool openUrlInFrame(const KUrl&,const KParts::OpenUrlArguments&,const KParts::BrowserArguments&);
    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_BrowserHostExtension(const sipKParts_BrowserHostExtension &);
    sipKParts_BrowserHostExtension &operator = (const sipKParts_BrowserHostExtension &);

    char sipPyMethods[11];
};

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

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

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

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

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

    return _id;
}

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

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

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

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

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

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

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

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

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

    extern const QList<KParts::ReadOnlyPart *> sipVH_kparts_36(sip_gilstate_t,PyObject *);

    return sipVH_kparts_36(sipGILState,sipMeth);
}

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

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

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

    extern KParts::BrowserHostExtension * sipVH_kparts_35(sip_gilstate_t,PyObject *,KParts::ReadOnlyPart *,const QString&);

    return sipVH_kparts_35(sipGILState,sipMeth,a0,a1);
}

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

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

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

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

    return sipVH_kparts_34(sipGILState,sipMeth,a0,a1,a2);
}

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

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

    if (!sipMeth)
        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,sipMeth,a0);
}

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

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

    if (!sipMeth)
        return 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,sipMeth,a0,a1);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
    {
        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,sipMeth,a0);
}

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

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

    if (!sipMeth)
    {
        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,sipMeth,a0);
}

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

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

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

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

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

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

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


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

    {
        sipKParts_BrowserHostExtension *sipCpp;

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

#line 632 "/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 5290 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_BrowserHostExtension *sipCpp;

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

#line 649 "/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 5332 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart5.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKParts_BrowserHostExtension *sipCpp;

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKParts_BrowserHostExtension *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_BrowserHostExtension *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_BrowserHostExtension *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_BrowserHostExtension *sipCpp;

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

    return NULL;
}


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

    {
        KParts::BrowserHostExtension *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KParts::BrowserHostExtension *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QObject * a0;

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

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

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

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

    return NULL;
}


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

    if (targetType == sipType_KParts_BrowserHostExtension)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        KParts::ReadOnlyPart * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KParts_BrowserHostExtension[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KParts_BrowserHostExtension_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childObject), meth_KParts_BrowserHostExtension_childObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KParts_BrowserHostExtension_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KParts_BrowserHostExtension_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KParts_BrowserHostExtension_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findFrameParent), meth_KParts_BrowserHostExtension_findFrameParent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_frameNames), meth_KParts_BrowserHostExtension_frameNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_frames), meth_KParts_BrowserHostExtension_frames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_openUrlInFrame), meth_KParts_BrowserHostExtension_openUrlInFrame, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KParts_BrowserHostExtension_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KParts_BrowserHostExtension_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KParts_BrowserHostExtension_timerEvent, METH_VARARGS, NULL}
};


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