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

#include "sipAPIkparts.h"

#line 265 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 12 "sipkpartspart5.cpp"

#line 130 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 16 "sipkpartspart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 19 "sipkpartspart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 22 "sipkpartspart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 25 "sipkpartspart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 28 "sipkpartspart5.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 31 "sipkpartspart5.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 34 "sipkpartspart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 37 "sipkpartspart5.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 68 "sipkpartspart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 71 "sipkpartspart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 74 "sipkpartspart5.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 77 "sipkpartspart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 80 "sipkpartspart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 83 "sipkpartspart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 86 "sipkpartspart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 89 "sipkpartspart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 92 "sipkpartspart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 95 "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.
     */
    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)
{
    extern bool sipVH_kparts_17(sip_gilstate_t,PyObject *,const unsigned long,const QString&,KParts::LiveConnectExtension::Type&,unsigned long&,QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_kparts_17(sipGILState,meth,a0,a1,a2,a3,a4);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_kparts_16(sipGILState,meth,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)
{
    extern bool sipVH_kparts_15(sip_gilstate_t,PyObject *,const unsigned long,const QString&,const QStringList&,KParts::LiveConnectExtension::Type&,unsigned long&,QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_kparts_15(sipGILState,meth,a0,a1,a2,a3,a4,a5);
}

void sipKParts_LiveConnectExtension::unregister(const unsigned long a0)
{
    extern void sipVH_kparts_14(sip_gilstate_t,PyObject *,const unsigned long);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    sipVH_kparts_14(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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_receivers(PyObject *, PyObject *);}
static PyObject *meth_KParts_LiveConnectExtension_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipKParts_LiveConnectExtension *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKParts_LiveConnectExtension *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&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(sipArgsParsed,sipName_LiveConnectExtension,sipName_timerEvent);

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKParts_LiveConnectExtension *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&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(sipArgsParsed,sipName_LiveConnectExtension,sipName_childEvent);

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_LiveConnectExtension *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&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(sipArgsParsed,sipName_LiveConnectExtension,sipName_customEvent);

    return NULL;
}


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

    {
        char * a0;
        sipKParts_LiveConnectExtension *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&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(sipArgsParsed,sipName_LiveConnectExtension,sipName_connectNotify);

    return NULL;
}


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

    {
        char * a0;
        sipKParts_LiveConnectExtension *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&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(sipArgsParsed,sipName_LiveConnectExtension,sipName_disconnectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_LiveConnectExtension_get(PyObject *, PyObject *);}
static PyObject *meth_KParts_LiveConnectExtension_get(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    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(&sipArgsParsed,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(sipArgsParsed,sipName_LiveConnectExtension,sipName_get);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_LiveConnectExtension_put(PyObject *, PyObject *);}
static PyObject *meth_KParts_LiveConnectExtension_put(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    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(&sipArgsParsed,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(sipArgsParsed,sipName_LiveConnectExtension,sipName_put);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_LiveConnectExtension_call(PyObject *, PyObject *);}
static PyObject *meth_KParts_LiveConnectExtension_call(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    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(&sipArgsParsed,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(sipArgsParsed,sipName_LiveConnectExtension,sipName_call);

    return NULL;
}


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

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

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

    return NULL;
}


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

    {
        QObject * a0;

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

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

    if (state & 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 *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

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


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

    if (!sipCpp)
    {
        KParts::ReadOnlyPart * a0;

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_KParts_LiveConnectExtension[] = {{111, 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_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, 16},
    {sipName_TypeFunction, KParts::LiveConnectExtension::TypeFunction, 16},
    {sipName_TypeNumber, KParts::LiveConnectExtension::TypeNumber, 16},
    {sipName_TypeObject, KParts::LiveConnectExtension::TypeObject, 16},
    {sipName_TypeString, KParts::LiveConnectExtension::TypeString, 16},
    {sipName_TypeVoid, KParts::LiveConnectExtension::TypeVoid, 16},
};


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

#line 248 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 881 "sipkpartspart5.cpp"

#line 130 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 885 "sipkpartspart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 888 "sipkpartspart5.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 891 "sipkpartspart5.cpp"
#line 103 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 894 "sipkpartspart5.cpp"
#line 42 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 897 "sipkpartspart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 900 "sipkpartspart5.cpp"
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 909 "sipkpartspart5.cpp"
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 912 "sipkpartspart5.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/plugin.sip"
#include <kparts/plugin.h>
#line 915 "sipkpartspart5.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/plugin.sip"
#include <kparts/plugin.h>
#line 918 "sipkpartspart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 921 "sipkpartspart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 924 "sipkpartspart5.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 927 "sipkpartspart5.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 930 "sipkpartspart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 933 "sipkpartspart5.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 964 "sipkpartspart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 967 "sipkpartspart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 970 "sipkpartspart5.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 973 "sipkpartspart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 976 "sipkpartspart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 979 "sipkpartspart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 982 "sipkpartspart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 985 "sipkpartspart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 988 "sipkpartspart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 991 "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.
     */
    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
{
    typedef QStringList (*sipVH_QtCore_23)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtCore_23)(sipModuleAPI_kparts_QtCore->em_virthandlers[23]))(sipGILState,meth);
}

const QList<KParts::ReadOnlyPart *> sipKParts_BrowserHostExtension::frames() const
{
    extern const QList<KParts::ReadOnlyPart *> sipVH_kparts_20(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_kparts_20(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_kparts_18(sipGILState,meth,a0,a1,a2);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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_receivers(PyObject *, PyObject *);}
static PyObject *meth_KParts_BrowserHostExtension_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipKParts_BrowserHostExtension *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKParts_BrowserHostExtension *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&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(sipArgsParsed,sipName_BrowserHostExtension,sipName_timerEvent);

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKParts_BrowserHostExtension *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&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(sipArgsParsed,sipName_BrowserHostExtension,sipName_childEvent);

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_BrowserHostExtension *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&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(sipArgsParsed,sipName_BrowserHostExtension,sipName_customEvent);

    return NULL;
}


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

    {
        char * a0;
        sipKParts_BrowserHostExtension *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&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(sipArgsParsed,sipName_BrowserHostExtension,sipName_connectNotify);

    return NULL;
}


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

    {
        char * a0;
        sipKParts_BrowserHostExtension *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&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(sipArgsParsed,sipName_BrowserHostExtension,sipName_disconnectNotify);

    return NULL;
}


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

    {
        KParts::BrowserHostExtension *sipCpp;

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

    return NULL;
}


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

    {
        KParts::BrowserHostExtension *sipCpp;

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

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

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

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

    return NULL;
}


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

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

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

    return NULL;
}


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

    {
        QObject * a0;

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

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

    if (state & 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 *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

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


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

    if (!sipCpp)
    {
        KParts::ReadOnlyPart * a0;

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_KParts_BrowserHostExtension[] = {{111, 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_timerEvent), meth_KParts_BrowserHostExtension_timerEvent, METH_VARARGS, NULL}
};


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

#line 126 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 1745 "sipkpartspart5.cpp"

#line 126 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 1749 "sipkpartspart5.cpp"


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

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

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

            return sipRes;
        }
    }
}


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

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

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

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

#line 266 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 1795 "sipkpartspart5.cpp"

            sipReleaseType(const_cast<KParts::BrowserExtension::PopupFlags *>(a0),sipType_KParts_BrowserExtension_PopupFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


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

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

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

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

#line 261 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 1827 "sipkpartspart5.cpp"

            sipReleaseType(const_cast<KParts::BrowserExtension::PopupFlags *>(a0),sipType_KParts_BrowserExtension_PopupFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


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

    if (!sipCpp)
        return 0;


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

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

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


extern "C" {static PyObject *slot_KParts_BrowserExtension_PopupFlags___and__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KParts_BrowserExtension_PopupFlags___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

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

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

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

            sipReleaseType(a0,sipType_KParts_BrowserExtension_PopupFlags,a0State);

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

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


extern "C" {static PyObject *slot_KParts_BrowserExtension_PopupFlags___xor__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KParts_BrowserExtension_PopupFlags___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KParts::BrowserExtension::PopupFlags((*a0 ^ *a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KParts_BrowserExtension_PopupFlags,a0State);
            sipReleaseType(a1,sipType_KParts_BrowserExtension_PopupFlags,a1State);

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

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


extern "C" {static PyObject *slot_KParts_BrowserExtension_PopupFlags___or__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KParts_BrowserExtension_PopupFlags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KParts::BrowserExtension::PopupFlags((*a0 | *a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KParts_BrowserExtension_PopupFlags,a0State);
            sipReleaseType(a1,sipType_KParts_BrowserExtension_PopupFlags,a1State);

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

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


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

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }
}


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

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

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

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

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

            sipReleaseType(a0,sipType_KParts_BrowserExtension_PopupFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

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

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

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

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

            sipReleaseType(a0,sipType_KParts_BrowserExtension_PopupFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

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

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


extern "C" {static void *init_KParts_BrowserExtension_PopupFlags(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KParts_BrowserExtension_PopupFlags(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KParts::BrowserExtension::PopupFlags *sipCpp = 0;

    if (!sipCpp)
    {
        const KParts::BrowserExtension::PopupFlags * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_KParts_BrowserExtension_PopupFlags,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KParts::BrowserExtension::PopupFlags(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<KParts::BrowserExtension::PopupFlags *>(a0),sipType_KParts_BrowserExtension_PopupFlags,a0State);
        }
    }

    if (!sipCpp)
    {
        int a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KParts::BrowserExtension::PopupFlags(a0);
            Py_END_ALLOW_THREADS
        }
    }

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

    return sipCpp;
}


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

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

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

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

    return sipGetState(sipTransferObj);
}

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

return 0;
#line 2198 "sipkpartspart5.cpp"
}


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


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

#line 126 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 2266 "sipkpartspart5.cpp"

#line 130 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 2270 "sipkpartspart5.cpp"
#line 127 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kio/kfileitem.sip"
#include <kfileitem.h>
#line 2273 "sipkpartspart5.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 2276 "sipkpartspart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2279 "sipkpartspart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kio/kfileitem.sip"
#include <kfileitem.h>
#line 2282 "sipkpartspart5.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 2285 "sipkpartspart5.cpp"
#line 103 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 2288 "sipkpartspart5.cpp"
#line 42 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 2291 "sipkpartspart5.cpp"
#line 72 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 2294 "sipkpartspart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 2297 "sipkpartspart5.cpp"
#line 43 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 2300 "sipkpartspart5.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2303 "sipkpartspart5.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/browserinterface.sip"
#include <kparts/browserinterface.h>
#line 2306 "sipkpartspart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 2309 "sipkpartspart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2312 "sipkpartspart5.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2315 "sipkpartspart5.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2318 "sipkpartspart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2321 "sipkpartspart5.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 2352 "sipkpartspart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 2355 "sipkpartspart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 2358 "sipkpartspart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 2361 "sipkpartspart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 2364 "sipkpartspart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2367 "sipkpartspart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 2370 "sipkpartspart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2373 "sipkpartspart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2376 "sipkpartspart5.cpp"


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

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

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void setBrowserArguments(const KParts::BrowserArguments&);
    int xOffset();
    int yOffset();
    void saveState(QDataStream&);
    void restoreState(QDataStream&);
    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_BrowserExtension(const sipKParts_BrowserExtension &);
    sipKParts_BrowserExtension &operator = (const sipKParts_BrowserExtension &);

    char sipPyMethods[12];
};

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

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

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

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

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

    return _id;
}

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

void sipKParts_BrowserExtension::setBrowserArguments(const KParts::BrowserArguments& a0)
{
    extern void sipVH_kparts_21(sip_gilstate_t,PyObject *,const KParts::BrowserArguments&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    sipVH_kparts_21(sipGILState,meth,a0);
}

int sipKParts_BrowserExtension::xOffset()
{
    typedef int (*sipVH_QtCore_8)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtCore_8)(sipModuleAPI_kparts_QtCore->em_virthandlers[8]))(sipGILState,meth);
}

int sipKParts_BrowserExtension::yOffset()
{
    typedef int (*sipVH_QtCore_8)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtCore_8)(sipModuleAPI_kparts_QtCore->em_virthandlers[8]))(sipGILState,meth);
}

void sipKParts_BrowserExtension::saveState(QDataStream& a0)
{
    typedef void (*sipVH_QtGui_39)(sip_gilstate_t,PyObject *,QDataStream&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtGui_39)(sipModuleAPI_kparts_QtGui->em_virthandlers[39]))(sipGILState,meth,a0);
}

void sipKParts_BrowserExtension::restoreState(QDataStream& a0)
{
    typedef void (*sipVH_QtGui_39)(sip_gilstate_t,PyObject *,QDataStream&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtGui_39)(sipModuleAPI_kparts_QtGui->em_virthandlers[39]))(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

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

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

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

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

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


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

    {
        char * a0;
        sipKParts_BrowserExtension *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKParts_BrowserExtension *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKParts_BrowserExtension *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_BrowserExtension *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_BrowserExtension *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_BrowserExtension *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::BrowserExtension *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KParts::BrowserExtension *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KParts::BrowserExtension *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::BrowserExtension *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isURLDropHandlingEnabled();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::BrowserExtension *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::BrowserExtension *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->browserInterface();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

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

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

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

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

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QMap_0200QByteArray_0200QByteArray,NULL);

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        QObject * a0;

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

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

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

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

    return NULL;
}


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

    {
        KParts::BrowserExtension *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::BrowserExtension *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KParts_BrowserExtension,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLocationBarUrl(*a0);
            Py_END_ALLOW_THREADS

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9|J9J9J9J8",&sipSelf,sipType_KParts_BrowserExtension,&sipCpp,sipType_KUrl,&a0,sipType_KParts_OpenUrlArguments,&a1,sipType_KParts_BrowserArguments,&a2,sipType_KParts_WindowArgs,&a3,sipType_KParts_ReadOnlyPart,&a4))
        {
#line 179 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/browserextension.sip"
Py_BEGIN_ALLOW_THREADS
    sipCpp->KParts::BrowserExtension::createNewWindow (*a0, *a1, *a2, *a3, &a4);
    Py_END_ALLOW_THREADS
#line 3542 "sipkpartspart5.cpp"

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KParts::BrowserExtension *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KParts::BrowserExtension *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KParts_BrowserExtension,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->infoMessage(*a0);
            Py_END_ALLOW_THREADS

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KParts_BrowserExtension,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->selectionInfo(*a0);
            Py_END_ALLOW_THREADS

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KParts::BrowserExtension *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_BrowserExtension)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    if (!sipCpp)
    {
        KParts::ReadOnlyPart * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J8",sipType_KParts_ReadOnlyPart,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKParts_BrowserExtension(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


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

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


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