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

#include "sipAPIkparts.h"

#line 126 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 12 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"

#line 126 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 16 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"


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

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"

            return sipRes;
        }
    }

    return 0;
}


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

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

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 64 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
            sipReleaseType(const_cast<KParts::BrowserExtension::PopupFlags *>(a0),sipType_KParts_BrowserExtension_PopupFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

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

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 100 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
            sipReleaseType(const_cast<KParts::BrowserExtension::PopupFlags *>(a0),sipType_KParts_BrowserExtension_PopupFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;


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

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

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

    return 0;
}


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

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

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

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

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

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

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

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

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

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

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

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KParts::BrowserExtension::PopupFlags(*a0 ^ a1);
#line 209 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
            sipReleaseType(a0,sipType_KParts_BrowserExtension_PopupFlags,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

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

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

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

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

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

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

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KParts::BrowserExtension::PopupFlags(*a0 | a1);
#line 261 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
            sipReleaseType(a0,sipType_KParts_BrowserExtension_PopupFlags,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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

#line 336 "/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 556 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
}


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


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

#line 126 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 629 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"

#line 142 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 633 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 133 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/kfileitem.sip"
#include <kfileitem.h>
#line 636 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 639 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 642 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/kfileitem.sip"
#include <kfileitem.h>
#line 645 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 648 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 113 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 651 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 47 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 654 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 68 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 657 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 660 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 663 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 666 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/browserinterface.sip"
#include <kparts/browserinterface.h>
#line 669 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 672 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 675 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 678 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 681 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 684 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 687 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 690 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 693 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 696 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 699 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 702 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"


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

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

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    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)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern void sipVH_kparts_37(sip_gilstate_t,PyObject *,const KParts::BrowserArguments&);

    sipVH_kparts_37(sipGILState,sipMeth,a0);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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_sender(PyObject *, PyObject *);}
static PyObject *meth_KParts_BrowserExtension_sender(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipKParts_BrowserExtension *sipCpp;

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

#line 632 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 1051 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_BrowserExtension *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKParts_BrowserExtension *sipCpp;

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKParts_BrowserExtension *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_BrowserExtension *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_BrowserExtension *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_BrowserExtension *sipCpp;

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::BrowserExtension *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KParts::BrowserExtension *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KParts::BrowserExtension *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::BrowserExtension *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isURLDropHandlingEnabled();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::BrowserExtension *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::BrowserExtension *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->browserInterface();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

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

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

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

    return NULL;
}


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

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

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

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

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

    return NULL;
}


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

    {
        QObject * a0;

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

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

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

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

    return NULL;
}


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

    {
        KParts::BrowserExtension *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::BrowserExtension *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

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

    return NULL;
}


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

    {
        int a0;
        KParts::BrowserExtension *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KParts::BrowserExtension *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KParts::BrowserExtension *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_BrowserExtension)
        return ptr;

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

    return NULL;
}


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

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

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


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

    {
        KParts::ReadOnlyPart * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KParts_BrowserExtension[] = {{134, 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_sender), meth_KParts_BrowserExtension_sender, 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 sipTypeDef_kparts_KParts_BrowserExtension = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__BrowserExtension,
        {0}
    },
    {
        sipNameNr_BrowserExtension,
        {0, 255, 0},
        42, methods_KParts_BrowserExtension,
        11, enummembers_KParts_BrowserExtension,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_BrowserExtension,
    0,
    init_KParts_BrowserExtension,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_BrowserExtension,
    0,
    0,
    0,
    release_KParts_BrowserExtension,
    cast_KParts_BrowserExtension,
    0,
    0,
    0
},
    &KParts::BrowserExtension::staticMetaObject,
    0,
    0
};

#line 107 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 2443 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"

#line 142 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 2447 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 2450 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 113 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 2453 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 47 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 2456 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2459 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"


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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[1];
};

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

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

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

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

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

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

    return sipVH_kparts_29(sipGILState,sipMeth,-5,sipPySelf);
}


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

    {
        KParts::OpenUrlEvent *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->part();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KParts::OpenUrlEvent *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KParts::OpenUrlEvent *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KParts::OpenUrlEvent *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QEvent * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_OpenUrlEvent)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


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


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

#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/event.sip"
#include <kparts/event.h>
#line 2784 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"

#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2788 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"


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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[1];
};

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

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

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

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

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

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

    return sipVH_kparts_29(sipGILState,sipMeth,-6,sipPySelf);
}


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

    {
        KParts::Event *sipCpp;

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

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

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

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

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

    return NULL;
}


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

    {
        const QEvent * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_Event)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        const char * a0;
        PyObject *a0Keep;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


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


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

#line 68 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 3051 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"

#line 35 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 3055 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"


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

    {
        int a0;
        KParts::WindowArgs *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::WindowArgs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->x();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KParts::WindowArgs *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::WindowArgs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->y();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KParts::WindowArgs *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::WindowArgs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->width();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KParts::WindowArgs *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::WindowArgs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->height();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::WindowArgs *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::WindowArgs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isFullScreen();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::WindowArgs *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::WindowArgs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isMenuBarVisible();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::WindowArgs *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::WindowArgs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toolBarsVisible();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::WindowArgs *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::WindowArgs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isStatusBarVisible();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::WindowArgs *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::WindowArgs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isResizable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::WindowArgs *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::WindowArgs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->lowerWindow();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::WindowArgs *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::WindowArgs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->scrollBarsVisible();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const KParts::WindowArgs * a0;

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

            return sipCpp;
        }
    }

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

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

            return sipCpp;
        }
    }

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

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

            return sipCpp;
        }
    }

    return NULL;
}


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


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

#line 47 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 3856 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 3860 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3863 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3866 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart6.cpp"


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

    return NULL;
}


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


    Py_END_ALLOW_THREADS
}


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

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

            return sipCpp;
        }
    }

    {
        const KParts::BrowserArguments * a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static PyObject *varget_KParts_BrowserArguments_docState(void *, PyObject *);}
static PyObject *varget_KParts_BrowserArguments_docState(void *sipSelf, PyObject *)
{
    QStringList *sipVal;
    KParts::BrowserArguments *sipCpp = reinterpret_cast<KParts::BrowserArguments *>(sipSelf);

    sipVal = &sipCpp->docState;

    return sipConvertFromType(sipVal,sipType_QStringList, NULL);
}


extern "C" {static int varset_KParts_BrowserArguments_docState(void *, PyObject *, PyObject *);}
static int varset_KParts_BrowserArguments_docState(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QStringList *sipVal;
    KParts::BrowserArguments *sipCpp = reinterpret_cast<KParts::BrowserArguments *>(sipSelf);

    int sipValState;
    int sipIsErr = 0;

    sipVal = reinterpret_cast<QStringList *>(sipForceConvertToType(sipPy,sipType_QStringList,NULL,SIP_NOT_NONE,&sipValState,&sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->docState = *sipVal;

    sipReleaseType(sipVal, sipType_QStringList, sipValState);

    return 0;
}


extern "C" {static PyObject *varget_KParts_BrowserArguments_frameName(void *, PyObject *);}
static PyObject *varget_KParts_BrowserArguments_frameName(void *sipSelf, PyObject *)
{
    QString *sipVal;
    KParts::BrowserArguments *sipCpp = reinterpret_cast<KParts::BrowserArguments *>(sipSelf);

    sipVal = &sipCpp->frameName;

    return sipConvertFromType(sipVal,sipType_QString, NULL);
}


extern "C" {static int varset_KParts_BrowserArguments_frameName(void *, PyObject *, PyObject *);}
static int varset_KParts_BrowserArguments_frameName(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QString *sipVal;
    KParts::BrowserArguments *sipCpp = reinterpret_cast<KParts::BrowserArguments *>(sipSelf);

    int sipValState;
    int sipIsErr = 0;

    sipVal = reinterpret_cast<QString *>(sipForceConvertToType(sipPy,sipType_QString,NULL,SIP_NOT_NONE,&sipValState,&sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->frameName = *sipVal;

    sipReleaseType(sipVal, sipType_QString, sipValState);

    return 0;
}


extern "C" {static PyObject *varget_KParts_BrowserArguments_postData(void *, PyObject *);}
static PyObject *varget_KParts_BrowserArguments_postData(void *sipSelf, PyObject *)
{
    QByteArray *sipVal;
    KParts::BrowserArguments *sipCpp = reinterpret_cast<KParts::BrowserArguments *>(sipSelf);

    sipVal = &sipCpp->postData;

    return sipConvertFromType(sipVal,sipType_QByteArray, NULL);
}


extern "C" {static int varset_KParts_BrowserArguments_postData(void *, PyObject *, PyObject *);}
static int varset_KParts_BrowserArguments_postData(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QByteArray *sipVal;
    KParts::BrowserArguments *sipCpp = reinterpret_cast<KParts::BrowserArguments *>(sipSelf);

    int sipValState;
    int sipIsErr = 0;

    sipVal = reinterpret_cast<QByteArray *>(sipForceConvertToType(sipPy,sipType_QByteArray,NULL,SIP_NOT_NONE,&sipValState,&sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->postData = *sipVal;

    sipReleaseType(sipVal, sipType_QByteArray, sipValState);

    return 0;
}


extern "C" {static PyObject *varget_KParts_BrowserArguments_softReload(void *, PyObject *);}
static PyObject *varget_KParts_BrowserArguments_softReload(void *sipSelf, PyObject *)
{
    bool sipVal;
    KParts::BrowserArguments *sipCpp = reinterpret_cast<KParts::BrowserArguments *>(sipSelf);

    sipVal = sipCpp->softReload;

    return PyBool_FromLong(sipVal);
}


extern "C" {static int varset_KParts_BrowserArguments_softReload(void *, PyObject *, PyObject *);}
static int varset_KParts_BrowserArguments_softReload(void *sipSelf, PyObject *sipPy, PyObject *)
{
    bool sipVal;
    KParts::BrowserArguments *sipCpp = reinterpret_cast<KParts::BrowserArguments *>(sipSelf);

    sipVal = (bool)SIPLong_AsLong(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->softReload = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_KParts_BrowserArguments_trustedSource(void *, PyObject *);}
static PyObject *varget_KParts_BrowserArguments_trustedSource(void *sipSelf, PyObject *)
{
    bool sipVal;
    KParts::BrowserArguments *sipCpp = reinterpret_cast<KParts::BrowserArguments *>(sipSelf);

    sipVal = sipCpp->trustedSource;

    return PyBool_FromLong(sipVal);
}


extern "C" {static int varset_KParts_BrowserArguments_trustedSource(void *, PyObject *, PyObject *);}
static int varset_KParts_BrowserArguments_trustedSource(void *sipSelf, PyObject *sipPy, PyObject *)
{
    bool sipVal;
    KParts::BrowserArguments *sipCpp = reinterpret_cast<KParts::BrowserArguments *>(sipSelf);

    sipVal = (bool)SIPLong_AsLong(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->trustedSource = sipVal;

    return 0;
}

sipVariableDef variables_KParts_BrowserArguments[] = {
    {InstanceVariable, sipName_docState, (PyMethodDef *)varget_KParts_BrowserArguments_docState, (PyMethodDef *)varset_KParts_BrowserArguments_docState, NULL, NULL},
    {InstanceVariable, sipName_frameName, (PyMethodDef *)varget_KParts_BrowserArguments_frameName, (PyMethodDef *)varset_KParts_BrowserArguments_frameName, NULL, NULL},
    {InstanceVariable, sipName_postData, (PyMethodDef *)varget_KParts_BrowserArguments_postData, (PyMethodDef *)varset_KParts_BrowserArguments_postData, NULL, NULL},
    {InstanceVariable, sipName_softReload, (PyMethodDef *)varget_KParts_BrowserArguments_softReload, (PyMethodDef *)varset_KParts_BrowserArguments_softReload, NULL, NULL},
    {InstanceVariable, sipName_trustedSource, (PyMethodDef *)varget_KParts_BrowserArguments_trustedSource, (PyMethodDef *)varset_KParts_BrowserArguments_trustedSource, NULL, NULL},
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_BrowserArguments = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KParts__BrowserArguments,
        {0}
    },
    {
        sipNameNr_BrowserArguments,
        {0, 255, 0},
        0, 0,
        0, 0,
        5, variables_KParts_BrowserArguments,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_KParts_BrowserArguments,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    release_KParts_BrowserArguments,
    cast_KParts_BrowserArguments,
    0,
    0,
    0
},
    0,
    0,
    0
};
