/*
 * Module code.
 *
 * Generated by SIP 4.10.2 on Sun Jul 11 10:06:30 2010
 */

#include "sipAPIkparts.h"

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

#line 37 "/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
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

    return sipVH_kparts_13(sipGILState,meth,5,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 *>(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 *, 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[] = {{56, 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 64 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 279 "sipkpartspart6.cpp"

#line 41 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 283 "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(sipSelf->u.cppPtr,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 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 1084 "sipkpartspart6.cpp"

#line 41 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1088 "sipkpartspart6.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1091 "sipkpartspart6.cpp"
#line 43 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1094 "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[] = {
    {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 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
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/factory.sip"
#include <kparts/factory.h>
#line 1372 "sipkpartspart6.cpp"

#line 40 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1376 "sipkpartspart6.cpp"
#line 66 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 1379 "sipkpartspart6.cpp"
#line 41 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 1382 "sipkpartspart6.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1385 "sipkpartspart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 1388 "sipkpartspart6.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1391 "sipkpartspart6.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1394 "sipkpartspart6.cpp"
#line 131 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1397 "sipkpartspart6.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1400 "sipkpartspart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1403 "sipkpartspart6.cpp"
#line 318 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1406 "sipkpartspart6.cpp"
#line 305 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1409 "sipkpartspart6.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1412 "sipkpartspart6.cpp"
#line 43 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1415 "sipkpartspart6.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1418 "sipkpartspart6.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1421 "sipkpartspart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1424 "sipkpartspart6.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1427 "sipkpartspart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1430 "sipkpartspart6.cpp"


class sipKParts_Factory : public KParts::Factory
{
public:
    sipKParts_Factory(QObject *);
    virtual ~sipKParts_Factory();

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

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    QObject * sipProtectVirt_create(bool,const char *,QWidget *,QObject *,const QVariantList&,const QString&);
    QVariantList sipProtect_stringListToVariantList(const QStringList&);
    QStringList sipProtect_variantListToStringList(const QVariantList&);
    void sipProtectVirt_setupTranslations(bool);
    QObject * sipProtectVirt_createObject(bool,QObject *,const char *,const QStringList&);
    void sipProtect_setComponentData(const KComponentData&);
    KParts::Part * sipProtect_createPartObject(QWidget *,QObject *,const char *,const QStringList&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    KComponentData partComponentData();
    KParts::Part * createPartObject(QWidget *,QObject *,const char *,const QStringList&);
    void setupTranslations();
    QObject * createObject(QObject *,const char *,const QStringList&);
    QObject * create(const char *,QWidget *,QObject *,const QVariantList&,const QString&);
    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_Factory(const sipKParts_Factory &);
    sipKParts_Factory &operator = (const sipKParts_Factory &);

    char sipPyMethods[12];
};

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

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

const QMetaObject *sipKParts_Factory::metaObject() const
{
    return sip_kparts_qt_metaobject(sipPySelf,sipType_KParts_Factory);
}

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

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

    return _id;
}

void *sipKParts_Factory::qt_metacast(const char *_clname)
{
    return (sip_kparts_qt_metacast && sip_kparts_qt_metacast(sipPySelf,sipType_KParts_Factory,_clname)) ? this : KParts::Factory::qt_metacast(_clname);
}

KComponentData sipKParts_Factory::partComponentData()
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KParts::Factory::partComponentData();

    typedef KComponentData (*sipVH_kdeui_18)(sip_gilstate_t,PyObject *);

    return ((sipVH_kdeui_18)(sipModuleAPI_kparts_kdeui->em_virthandlers[18]))(sipGILState,meth);
}

KParts::Part * sipKParts_Factory::createPartObject(QWidget *a0,QObject *a1,const char *a2,const QStringList& a3)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_Factory,sipName_createPartObject);

    if (!meth)
        return 0;

    extern KParts::Part * sipVH_kparts_12(sip_gilstate_t,PyObject *,QWidget *,QObject *,const char *,const QStringList&);

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

void sipKParts_Factory::setupTranslations()
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KPluginFactory::setupTranslations();
        return;
    }

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

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

QObject * sipKParts_Factory::createObject(QObject *a0,const char *a1,const QStringList& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KPluginFactory::createObject(a0,a1,a2);

    typedef QObject * (*sipVH_kdecore_17)(sip_gilstate_t,PyObject *,QObject *,const char *,const QStringList&);

    return ((sipVH_kdecore_17)(sipModuleAPI_kparts_kdecore->em_virthandlers[17]))(sipGILState,meth,a0,a1,a2);
}

QObject * sipKParts_Factory::create(const char *a0,QWidget *a1,QObject *a2,const QVariantList& a3,const QString& a4)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KPluginFactory::create(a0,a1,a2,a3,a4);

    typedef QObject * (*sipVH_kdecore_16)(sip_gilstate_t,PyObject *,const char *,QWidget *,QObject *,const QList<QVariant>&,const QString&);

    return ((sipVH_kdecore_16)(sipModuleAPI_kparts_kdecore->em_virthandlers[16]))(sipGILState,meth,a0,a1,a2,a3,a4);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

QObject * sipKParts_Factory::sipProtectVirt_create(bool sipSelfWasArg,const char *a0,QWidget *a1,QObject *a2,const QVariantList& a3,const QString& a4)
{
    return (sipSelfWasArg ? KPluginFactory::create(a0,a1,a2,a3,a4) : create(a0,a1,a2,a3,a4));
}

QVariantList sipKParts_Factory::sipProtect_stringListToVariantList(const QStringList& a0)
{
    return KPluginFactory::stringListToVariantList(a0);
}

QStringList sipKParts_Factory::sipProtect_variantListToStringList(const QVariantList& a0)
{
    return KPluginFactory::variantListToStringList(a0);
}

void sipKParts_Factory::sipProtectVirt_setupTranslations(bool sipSelfWasArg)
{
    (sipSelfWasArg ? KPluginFactory::setupTranslations() : setupTranslations());
}

QObject * sipKParts_Factory::sipProtectVirt_createObject(bool sipSelfWasArg,QObject *a0,const char *a1,const QStringList& a2)
{
    return (sipSelfWasArg ? KPluginFactory::createObject(a0,a1,a2) : createObject(a0,a1,a2));
}

void sipKParts_Factory::sipProtect_setComponentData(const KComponentData& a0)
{
    KPluginFactory::setComponentData(a0);
}

KParts::Part * sipKParts_Factory::sipProtect_createPartObject(QWidget *a0,QObject *a1,const char *a2,const QStringList& a3)
{
    return createPartObject(a0,a1,a2,a3);
}


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

    {
        char * a0;
        sipKParts_Factory *sipCpp;

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

#line 538 "/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 1812 "sipkpartspart6.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKParts_Factory *sipCpp;

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKParts_Factory *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_Factory *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_Factory *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_Factory *sipCpp;

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

    return NULL;
}


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

    {
        QObject * a0 = 0;
        const char * a1 = "QObject";
        PyObject *a1Keep = 0;
        const QStringList& a2def = QStringList();
        const QStringList * a2 = &a2def;
        int a2State = 0;
        KParts::Factory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J:AAJ1", &sipSelf, sipType_KParts_Factory, &sipCpp, sipType_QObject, &a0, &a1Keep, &a1, sipType_QStringList,&a2, &a2State))
        {
            QObject *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->create(a0,a1,*a2);
            Py_END_ALLOW_THREADS
            Py_XDECREF(a1Keep);
            sipReleaseType(const_cast<QStringList *>(a2),sipType_QStringList,a2State);

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

    {
        const char * a0;
        PyObject *a0Keep;
        QWidget * a1;
        QObject * a2;
        const QVariantList * a3;
        int a3State = 0;
        const QString * a4;
        int a4State = 0;
        sipKParts_Factory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ8J:J1J1", &sipSelf, sipType_KParts_Factory, &sipCpp, &a0Keep, &a0, sipType_QWidget, &a1, sipType_QObject, &a2, sipType_QList_0100QVariant,&a3, &a3State, sipType_QString,&a4, &a4State))
        {
            QObject *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_create(sipSelfWasArg,a0,a1,a2,*a3,*a4);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
            sipReleaseType(const_cast<QVariantList *>(a3),sipType_QList_0100QVariant,a3State);
            sipReleaseType(const_cast<QString *>(a4),sipType_QString,a4State);

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

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

    return NULL;
}


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

    {
        const QStringList * a0;
        int a0State = 0;
        sipKParts_Factory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KParts_Factory, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            QVariantList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariantList(sipCpp->sipProtect_stringListToVariantList(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

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

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

    return NULL;
}


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

    {
        const QVariantList * a0;
        int a0State = 0;
        sipKParts_Factory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KParts_Factory, &sipCpp, sipType_QList_0100QVariant,&a0, &a0State))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->sipProtect_variantListToStringList(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariantList *>(a0),sipType_QList_0100QVariant,a0State);

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

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

    return NULL;
}


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

    {
        sipKParts_Factory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_Factory, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setupTranslations(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QObject * a0;
        const char * a1;
        PyObject *a1Keep;
        const QStringList * a2;
        int a2State = 0;
        sipKParts_Factory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ:AAJ1", &sipSelf, sipType_KParts_Factory, &sipCpp, sipType_QObject, &a0, &a1Keep, &a1, sipType_QStringList,&a2, &a2State))
        {
            QObject *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_createObject(sipSelfWasArg,a0,a1,*a2);
            Py_END_ALLOW_THREADS
            Py_DECREF(a1Keep);
            sipReleaseType(const_cast<QStringList *>(a2),sipType_QStringList,a2State);

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

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

    return NULL;
}


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

    {
        const KComponentData * a0;
        sipKParts_Factory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KParts_Factory, &sipCpp, sipType_KComponentData, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setComponentData(*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_Factory, sipName_setComponentData, NULL);

    return NULL;
}


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

    {
        QWidget * a0 = 0;
        QObject * a1 = 0;
        const char * a2 = "KParts::Part";
        PyObject *a2Keep = 0;
        const QStringList& a3def = QStringList();
        const QStringList * a3 = &a3def;
        int a3State = 0;
        KParts::Factory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J8J:AAJ1", &sipSelf, sipType_KParts_Factory, &sipCpp, sipType_QWidget, &a0, sipType_QObject, &a1, &a2Keep, &a2, sipType_QStringList,&a3, &a3State))
        {
            KParts::Part *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->createPart(a0,a1,a2,*a3);
            Py_END_ALLOW_THREADS
            Py_XDECREF(a2Keep);
            sipReleaseType(const_cast<QStringList *>(a3),sipType_QStringList,a3State);

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

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

    return NULL;
}


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

    {
        KParts::Factory *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KComponentData((sipSelfWasArg ? sipCpp->KParts::Factory::partComponentData() : sipCpp->partComponentData()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            KComponentData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KComponentData(KParts::Factory::partComponentDataFromLibrary(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        QWidget * a0 = 0;
        QObject * a1 = 0;
        const char * a2 = "KParts::Part";
        PyObject *a2Keep = 0;
        const QStringList& a3def = QStringList();
        const QStringList * a3 = &a3def;
        int a3State = 0;
        sipKParts_Factory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J8J:AAJ1", &sipSelf, sipType_KParts_Factory, &sipCpp, sipType_QWidget, &a0, sipType_QObject, &a1, &a2Keep, &a2, sipType_QStringList,&a3, &a3State))
        {
            KParts::Part *sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Factory, sipName_createPartObject);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_createPartObject(a0,a1,a2,*a3);
            Py_END_ALLOW_THREADS
            Py_XDECREF(a2Keep);
            sipReleaseType(const_cast<QStringList *>(a3),sipType_QStringList,a3State);

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

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

    return NULL;
}


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

    if (targetType == sipType_KParts_Factory)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KPluginFactory)->ctd_cast((KPluginFactory *)(KParts::Factory *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QObject * a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KParts_Factory[] = {{130, 3, 1}};


static PyMethodDef methods_KParts_Factory[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KParts_Factory_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KParts_Factory_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_create), meth_KParts_Factory_create, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createObject), meth_KParts_Factory_createObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createPart), meth_KParts_Factory_createPart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createPartObject), meth_KParts_Factory_createPartObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KParts_Factory_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KParts_Factory_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_partComponentData), meth_KParts_Factory_partComponentData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_partComponentDataFromLibrary), meth_KParts_Factory_partComponentDataFromLibrary, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KParts_Factory_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setComponentData), meth_KParts_Factory_setComponentData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setupTranslations), meth_KParts_Factory_setupTranslations, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stringListToVariantList), meth_KParts_Factory_stringListToVariantList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KParts_Factory_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_variantListToStringList), meth_KParts_Factory_variantListToStringList, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_Factory = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__Factory,
        {0}
    },
    {
        sipNameNr_Factory,
        {0, 255, 0},
        16, methods_KParts_Factory,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_Factory,
    0,
    init_KParts_Factory,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_Factory,
    0,
    0,
    0,
    release_KParts_Factory,
    cast_KParts_Factory,
    0,
    0,
    0
},
    &KParts::Factory::staticMetaObject,
    0,
    0
};




pyqt4ClassTypeDef sipTypeDef_kparts_KParts = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_KParts,
        {0}
    },
    {
        sipNameNr_KParts,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};
