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

#include "sipAPIkparts.h"

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

#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 16 "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
{
    extern const char * sipVH_kparts_13(sip_gilstate_t,PyObject *,int,sipSimpleWrapper *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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


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

    {
        KParts::Event *sipCpp;

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

    return NULL;
}


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

    {
        const QEvent * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

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

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

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

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


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

    if (!sipCpp)
    {
        const char * a0;
        PyObject *a0Keep;

        if (sipParseArgs(sipArgsParsed,sipArgs,"AA",&a0Keep,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKParts_Event(a0);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_KParts_Event[] = {{46, 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 pyqt4Type_kparts_KParts_Event = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__Event,
        {0}
    },
    sipNameNr_Event,
    -1,
    -1,
    {0, 255, 0},
    supers_KParts_Event,
    0,
    2, methods_KParts_Event,
    0, 0,
    0, 0,
    init_KParts_Event,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_Event,
    release_KParts_Event,
    cast_KParts_Event,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 109 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 274 "sipkpartspart6.cpp"

#line 130 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 278 "sipkpartspart6.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 281 "sipkpartspart6.cpp"
#line 103 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 284 "sipkpartspart6.cpp"
#line 42 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 287 "sipkpartspart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 290 "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
{
    extern const char * sipVH_kparts_13(sip_gilstate_t,PyObject *,int,sipSimpleWrapper *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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


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

    {
        KParts::OpenUrlEvent *sipCpp;

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

    return NULL;
}


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

    {
        KParts::OpenUrlEvent *sipCpp;

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

    return NULL;
}


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

    {
        KParts::OpenUrlEvent *sipCpp;

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

    return NULL;
}


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

    {
        KParts::OpenUrlEvent *sipCpp;

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

    return NULL;
}


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

    {
        const QEvent * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

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

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

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


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

    if (!sipCpp)
    {
        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 (sipParseArgs(sipArgsParsed,sipArgs,"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
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_KParts_OpenUrlEvent[] = {{11, 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 pyqt4Type_kparts_KParts_OpenUrlEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__OpenUrlEvent,
        {0}
    },
    sipNameNr_OpenUrlEvent,
    -1,
    -1,
    {0, 255, 0},
    supers_KParts_OpenUrlEvent,
    0,
    5, methods_KParts_OpenUrlEvent,
    0, 0,
    0, 0,
    init_KParts_OpenUrlEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_OpenUrlEvent,
    release_KParts_OpenUrlEvent,
    cast_KParts_OpenUrlEvent,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 72 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 610 "sipkpartspart6.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 614 "sipkpartspart6.cpp"


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

    {
        int a0;
        KParts::WindowArgs *sipCpp;

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

    return NULL;
}


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

    {
        KParts::WindowArgs *sipCpp;

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

    return NULL;
}


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

    {
        int a0;
        KParts::WindowArgs *sipCpp;

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

    return NULL;
}


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

    {
        KParts::WindowArgs *sipCpp;

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

    return NULL;
}


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

    {
        int a0;
        KParts::WindowArgs *sipCpp;

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

    return NULL;
}


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

    {
        KParts::WindowArgs *sipCpp;

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

    return NULL;
}


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

    {
        int a0;
        KParts::WindowArgs *sipCpp;

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

    return NULL;
}


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

    {
        KParts::WindowArgs *sipCpp;

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

    return NULL;
}


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

    {
        bool a0;
        KParts::WindowArgs *sipCpp;

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

    return NULL;
}


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

    {
        KParts::WindowArgs *sipCpp;

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

    return NULL;
}


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

    {
        bool a0;
        KParts::WindowArgs *sipCpp;

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

    return NULL;
}


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

    {
        KParts::WindowArgs *sipCpp;

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

    return NULL;
}


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

    {
        bool a0;
        KParts::WindowArgs *sipCpp;

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

    return NULL;
}


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

    {
        KParts::WindowArgs *sipCpp;

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

    return NULL;
}


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

    {
        bool a0;
        KParts::WindowArgs *sipCpp;

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

    return NULL;
}


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

    {
        KParts::WindowArgs *sipCpp;

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

    return NULL;
}


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

    {
        bool a0;
        KParts::WindowArgs *sipCpp;

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

    return NULL;
}


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

    {
        KParts::WindowArgs *sipCpp;

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

    return NULL;
}


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

    {
        bool a0;
        KParts::WindowArgs *sipCpp;

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

    return NULL;
}


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

    {
        KParts::WindowArgs *sipCpp;

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

    return NULL;
}


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

    {
        bool a0;
        KParts::WindowArgs *sipCpp;

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

    return NULL;
}


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

    {
        KParts::WindowArgs *sipCpp;

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

    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 *, const void*);}
static void assign_KParts_WindowArgs(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KParts::WindowArgs *>(sipDst) = *reinterpret_cast<const KParts::WindowArgs *>(sipSrc);
}


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


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

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

    if (!sipCpp)
    {
        const KParts::WindowArgs * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KParts_WindowArgs,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KParts::WindowArgs(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const QRect * a0;
        bool a1;
        bool a2;
        bool a3;
        bool a4;
        bool a5;

        if (sipParseArgs(sipArgsParsed,sipArgs,"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
        }
    }

    if (!sipCpp)
    {
        int a0;
        int a1;
        int a2;
        int a3;
        bool a4;
        bool a5;
        bool a6;
        bool a7;
        bool a8;

        if (sipParseArgs(sipArgsParsed,sipArgs,"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;
}


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 pyqt4Type_kparts_KParts_WindowArgs = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KParts__WindowArgs,
        {0}
    },
    sipNameNr_WindowArgs,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 255, 0},
    0,
    0,
    22, methods_KParts_WindowArgs,
    0, 0,
    0, 0,
    init_KParts_WindowArgs,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_WindowArgs,
    release_KParts_WindowArgs,
    cast_KParts_WindowArgs,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KParts_WindowArgs,
    0,
    0,
    0
};

#line 42 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 1392 "sipkpartspart6.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1396 "sipkpartspart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1399 "sipkpartspart6.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1402 "sipkpartspart6.cpp"


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

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::BrowserArguments *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        bool a0;
        KParts::BrowserArguments *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::BrowserArguments *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->doPost();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::BrowserArguments *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::BrowserArguments *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->lockHistory();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::BrowserArguments *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::BrowserArguments *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->newTab();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KParts::BrowserArguments *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->redirectedRequest();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::BrowserArguments *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KParts::BrowserArguments *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::BrowserArguments *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->forcesNewWindow();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


/* 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 *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


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


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


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

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

    if (!sipCpp)
    {
        const KParts::BrowserArguments * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KParts_BrowserArguments,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KParts::BrowserArguments(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


static PyMethodDef methods_KParts_BrowserArguments[] = {
    {SIP_MLNAME_CAST(sipName_contentType), meth_KParts_BrowserArguments_contentType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doPost), meth_KParts_BrowserArguments_doPost, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_forcesNewWindow), meth_KParts_BrowserArguments_forcesNewWindow, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lockHistory), meth_KParts_BrowserArguments_lockHistory, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_newTab), meth_KParts_BrowserArguments_newTab, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_redirectedRequest), meth_KParts_BrowserArguments_redirectedRequest, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setContentType), meth_KParts_BrowserArguments_setContentType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDoPost), meth_KParts_BrowserArguments_setDoPost, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setForcesNewWindow), meth_KParts_BrowserArguments_setForcesNewWindow, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLockHistory), meth_KParts_BrowserArguments_setLockHistory, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setNewTab), meth_KParts_BrowserArguments_setNewTab, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRedirectedRequest), meth_KParts_BrowserArguments_setRedirectedRequest, METH_VARARGS, 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[] = {
    {sipName_docState, varget_KParts_BrowserArguments_docState, varset_KParts_BrowserArguments_docState, 0},
    {sipName_frameName, varget_KParts_BrowserArguments_frameName, varset_KParts_BrowserArguments_frameName, 0},
    {sipName_postData, varget_KParts_BrowserArguments_postData, varset_KParts_BrowserArguments_postData, 0},
    {sipName_softReload, varget_KParts_BrowserArguments_softReload, varset_KParts_BrowserArguments_softReload, 0},
    {sipName_trustedSource, varget_KParts_BrowserArguments_trustedSource, varset_KParts_BrowserArguments_trustedSource, 0},
};


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