/*
 * Module code.
 *
 * Generated by SIP 4.16.4 on Thu Nov 20 23:32:55 2014
 */

#include "sipAPIplasma.h"

#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/plasma/accessappletjob.sip"
#include <plasma/accessappletjob.h>
#line 12 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"

#line 33 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 16 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 19 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 55 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/plasma/applet.sip"
#include <plasma/applet.h>
#line 22 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 28 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 589 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 31 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 77 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 34 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 37 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 40 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 43 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 355 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 46 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 338 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 49 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 55 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 58 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 61 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 64 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 67 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 70 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 73 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"


class sipPlasma_AccessAppletJob : public Plasma::AccessAppletJob
{
public:
    sipPlasma_AccessAppletJob(const KUrl&,QObject*);
    virtual ~sipPlasma_AccessAppletJob();

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[12];
};

sipPlasma_AccessAppletJob::sipPlasma_AccessAppletJob(const KUrl& a0,QObject*a1): Plasma::AccessAppletJob(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipPlasma_AccessAppletJob::metaObject() const
{
    return sip_plasma_qt_metaobject(sipPySelf,sipType_Plasma_AccessAppletJob);
}

int sipPlasma_AccessAppletJob::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Plasma::AccessAppletJob::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_plasma_qt_metacall(sipPySelf,sipType_Plasma_AccessAppletJob,_c,_id,_a);

    return _id;
}

void *sipPlasma_AccessAppletJob::qt_metacast(const char *_clname)
{
    return (sip_plasma_qt_metacast(sipPySelf, sipType_Plasma_AccessAppletJob, _clname)) ? this : Plasma::AccessAppletJob::qt_metacast(_clname);
}

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

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

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

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

    ((sipVH_QtCore_24)(sipModuleAPI_plasma_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

    ((sipVH_QtCore_24)(sipModuleAPI_plasma_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

    ((sipVH_QtCore_17)(sipModuleAPI_plasma_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

    ((sipVH_QtCore_25)(sipModuleAPI_plasma_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

    ((sipVH_QtCore_9)(sipModuleAPI_plasma_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

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

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

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

    if (!sipMeth)
        return Plasma::AccessAppletJob::event(a0);

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

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

QString sipPlasma_AccessAppletJob::errorString() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Plasma::AccessAppletJob::errorString();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_plasma_QtCore->em_virthandlers[62]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipPlasma_AccessAppletJob::doResume()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Plasma::AccessAppletJob::doResume();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_plasma_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipPlasma_AccessAppletJob::doSuspend()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Plasma::AccessAppletJob::doSuspend();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_plasma_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipPlasma_AccessAppletJob::doKill()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Plasma::AccessAppletJob::doKill();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_plasma_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipPlasma_AccessAppletJob::start()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Plasma::AccessAppletJob::start();
        return;
    }

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

    ((sipVH_QtCore_11)(sipModuleAPI_plasma_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}


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

    {
        const Plasma::AccessAppletJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Plasma_AccessAppletJob, &sipCpp))
        {
            Plasma::Applet*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->applet();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Plasma::AccessAppletJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Plasma_AccessAppletJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Plasma::AccessAppletJob::start() : sipCpp->start());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Plasma_AccessAppletJob)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KJob)->ctd_cast((KJob *)(Plasma::AccessAppletJob *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Plasma_AccessAppletJob(void *, int);}
static void release_Plasma_AccessAppletJob(void *sipCppV,int)
{
    Plasma::AccessAppletJob *sipCpp = reinterpret_cast<Plasma::AccessAppletJob *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        const KUrl* a0;
        QObject* a1 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Plasma_AccessAppletJob[] = {
    {SIP_MLNAME_CAST(sipName_applet), meth_Plasma_AccessAppletJob_applet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_start), meth_Plasma_AccessAppletJob_start, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_plasma_Plasma_AccessAppletJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Plasma__AccessAppletJob,
        {0}
    },
    {
        sipNameNr_AccessAppletJob,
        {1, 255, 0},
        2, methods_Plasma_AccessAppletJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Plasma_AccessAppletJob,
    0,
    init_type_Plasma_AccessAppletJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Plasma_AccessAppletJob,
    0,
    0,
    0,
    release_Plasma_AccessAppletJob,
    cast_Plasma_AccessAppletJob,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Plasma::AccessAppletJob::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/plasma/abstracttoolbox.sip"
#include <plasma/abstracttoolbox.h>
#line 533 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/plasma/containment.sip"
#include <plasma/containment.h>
#line 537 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 540 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 543 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 546 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 549 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 32 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 552 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 555 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kplugininfo.sip"
#include <kplugininfo.h>
#line 558 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 561 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 564 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 567 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 140 "/usr/share/python-sip/PyQt4/QtGui/qgraphicssceneevent.sip"
#include <qgraphicssceneevent.h>
#line 570 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 605 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 573 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 223 "/usr/share/python-sip/PyQt4/QtGui/qgraphicssceneevent.sip"
#include <qgraphicssceneevent.h>
#line 576 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 244 "/usr/share/python-sip/PyQt4/QtGui/qgraphicssceneevent.sip"
#include <qgraphicssceneevent.h>
#line 579 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 616 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 582 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 514 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 585 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 583 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 588 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 591 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 119 "/usr/share/python-sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 594 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 39 "/usr/share/python-sip/PyQt4/QtGui/qgraphicsitem.sip"
#include <qgraphicsitem.h>
#line 597 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 112 "/usr/share/python-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 600 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qstyleoption.sip"
#include <qstyleoption.h>
#line 603 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 606 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 168 "/usr/share/python-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 609 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qpainter.sip"
#include <qpainter.h>
#line 612 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 1975 "/usr/share/python-sip/PyQt4/QtGui/qstyleoption.sip"
#include <qstyleoption.h>
#line 615 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 618 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 621 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 624 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 187 "/usr/share/python-sip/PyQt4/QtGui/qgraphicswidget.sip"
#include <qgraphicswidget.h>
#line 627 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 630 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qpalette.sip"
#include <qpalette.h>
#line 633 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qfont.sip"
#include <qfont.h>
#line 636 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qstyle.sip"
#include <qstyle.h>
#line 639 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtGui/qgraphicslayout.sip"
#include <qgraphicslayout.h>
#line 642 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 645 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 355 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 648 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 338 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 651 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 654 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 657 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 660 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 663 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 666 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 669 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 672 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 675 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtGui/qgraphicstransform.sip"
#include <qgraphicstransform.h>
#line 678 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 39 "/usr/share/python-sip/PyQt4/QtGui/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 681 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 1149 "/usr/share/python-sip/PyQt4/QtGui/qgraphicsitem.sip"
#include <qgraphicsitem.h>
#line 684 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 39 "/usr/share/python-sip/PyQt4/QtGui/qtransform.sip"
#include <qtransform.h>
#line 687 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qregion.sip"
#include <qregion.h>
#line 690 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 693 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 696 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 83 "/usr/share/python-sip/PyQt4/QtGui/qgraphicssceneevent.sip"
#include <qgraphicssceneevent.h>
#line 699 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 53 "/usr/share/python-sip/PyQt4/QtGui/qgraphicssceneevent.sip"
#include <qgraphicssceneevent.h>
#line 702 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 483 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 705 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 656 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 708 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 193 "/usr/share/python-sip/PyQt4/QtGui/qgraphicssceneevent.sip"
#include <qgraphicssceneevent.h>
#line 711 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 110 "/usr/share/python-sip/PyQt4/QtGui/qgraphicssceneevent.sip"
#include <qgraphicssceneevent.h>
#line 714 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 355 "/usr/share/python-sip/PyQt4/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 717 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qmatrix.sip"
#include <qmatrix.h>
#line 720 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 723 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qcursor.sip"
#include <qcursor.h>
#line 726 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 39 "/usr/share/python-sip/PyQt4/QtGui/qgraphicsitem.sip"
#include <qgraphicsitem.h>
#line 729 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 1109 "/usr/share/python-sip/PyQt4/QtGui/qgraphicsitem.sip"
#include <qgraphicsitem.h>
#line 732 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 39 "/usr/share/python-sip/PyQt4/QtGui/qgraphicsscene.sip"
#include <qgraphicsscene.h>
#line 735 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtGui/qgraphicslayoutitem.sip"
#include <qgraphicslayoutitem.h>
#line 738 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 741 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"


class sipPlasma_AbstractToolBox : public Plasma::AbstractToolBox
{
public:
    sipPlasma_AbstractToolBox(Plasma::Containment*);
    sipPlasma_AbstractToolBox(QObject*,const QVariantList&);
    virtual ~sipPlasma_AbstractToolBox();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void wheelEvent(QGraphicsSceneWheelEvent*);
    bool sceneEventFilter(QGraphicsItem*,QEvent*);
    void mouseReleaseEvent(QGraphicsSceneMouseEvent*);
    void mousePressEvent(QGraphicsSceneMouseEvent*);
    void mouseMoveEvent(QGraphicsSceneMouseEvent*);
    void mouseDoubleClickEvent(QGraphicsSceneMouseEvent*);
    void keyReleaseEvent(QKeyEvent*);
    void keyPressEvent(QKeyEvent*);
    QVariant inputMethodQuery(Qt::InputMethodQuery) const;
    void inputMethodEvent(QInputMethodEvent*);
    void hoverEnterEvent(QGraphicsSceneHoverEvent*);
    void dropEvent(QGraphicsSceneDragDropEvent*);
    void dragMoveEvent(QGraphicsSceneDragDropEvent*);
    void dragLeaveEvent(QGraphicsSceneDragDropEvent*);
    void dragEnterEvent(QGraphicsSceneDragDropEvent*);
    void contextMenuEvent(QGraphicsSceneContextMenuEvent*);
    QPainterPath opaqueArea() const;
    bool isObscuredBy(const QGraphicsItem*) const;
    bool collidesWithPath(const QPainterPath&,Qt::ItemSelectionMode) const;
    bool collidesWithItem(const QGraphicsItem*,Qt::ItemSelectionMode) const;
    bool contains(const QPointF&) const;
    void advance(int);
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    void ungrabKeyboardEvent(QEvent*);
    void grabKeyboardEvent(QEvent*);
    void ungrabMouseEvent(QEvent*);
    void grabMouseEvent(QEvent*);
    void hoverLeaveEvent(QGraphicsSceneHoverEvent*);
    void hoverMoveEvent(QGraphicsSceneHoverEvent*);
    void showEvent(QShowEvent*);
    void resizeEvent(QGraphicsSceneResizeEvent*);
    void polishEvent();
    void moveEvent(QGraphicsSceneMoveEvent*);
    void hideEvent(QHideEvent*);
    void focusOutEvent(QFocusEvent*);
    bool focusNextPrevChild(bool);
    void focusInEvent(QFocusEvent*);
    void closeEvent(QCloseEvent*);
    void changeEvent(QEvent*);
    bool event(QEvent*);
    Qt::WindowFrameSection windowFrameSectionAt(const QPointF&) const;
    bool windowFrameEvent(QEvent*);
    bool sceneEvent(QEvent*);
    QVariant itemChange(QGraphicsItem::GraphicsItemChange,const QVariant&);
    void updateGeometry();
    QSizeF sizeHint(Qt::SizeHint,const QSizeF&) const;
    void initStyleOption(QStyleOption*) const;
    QPainterPath shape() const;
    QRectF boundingRect() const;
    void paintWindowFrame(QPainter*,const QStyleOptionGraphicsItem*,QWidget*);
    void paint(QPainter*,const QStyleOptionGraphicsItem*,QWidget*);
    int type() const;
    void getContentsMargins(qreal*,qreal*,qreal*,qreal*) const;
    void setGeometry(const QRectF&);
    void setShowing(const bool);
    bool isShowing() const;
    void removeTool(QAction*);
    void addTool(QAction*);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[63];
};

sipPlasma_AbstractToolBox::sipPlasma_AbstractToolBox(Plasma::Containment*a0): Plasma::AbstractToolBox(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipPlasma_AbstractToolBox::sipPlasma_AbstractToolBox(QObject*a0,const QVariantList& a1): Plasma::AbstractToolBox(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipPlasma_AbstractToolBox::metaObject() const
{
    return sip_plasma_qt_metaobject(sipPySelf,sipType_Plasma_AbstractToolBox);
}

int sipPlasma_AbstractToolBox::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Plasma::AbstractToolBox::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_plasma_qt_metacall(sipPySelf,sipType_Plasma_AbstractToolBox,_c,_id,_a);

    return _id;
}

void *sipPlasma_AbstractToolBox::qt_metacast(const char *_clname)
{
    return (sip_plasma_qt_metacast(sipPySelf, sipType_Plasma_AbstractToolBox, _clname)) ? this : Plasma::AbstractToolBox::qt_metacast(_clname);
}

void sipPlasma_AbstractToolBox::wheelEvent(QGraphicsSceneWheelEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::wheelEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_199)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QGraphicsSceneWheelEvent*);

    ((sipVH_QtGui_199)(sipModuleAPI_plasma_QtGui->em_virthandlers[199]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipPlasma_AbstractToolBox::sceneEventFilter(QGraphicsItem*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Plasma::AbstractToolBox::sceneEventFilter(a0,a1);

    typedef bool (*sipVH_QtGui_208)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QGraphicsItem*,QEvent*);

    return ((sipVH_QtGui_208)(sipModuleAPI_plasma_QtGui->em_virthandlers[208]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipPlasma_AbstractToolBox::mouseReleaseEvent(QGraphicsSceneMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::mouseReleaseEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_200)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QGraphicsSceneMouseEvent*);

    ((sipVH_QtGui_200)(sipModuleAPI_plasma_QtGui->em_virthandlers[200]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::mousePressEvent(QGraphicsSceneMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::mousePressEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_200)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QGraphicsSceneMouseEvent*);

    ((sipVH_QtGui_200)(sipModuleAPI_plasma_QtGui->em_virthandlers[200]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::mouseMoveEvent(QGraphicsSceneMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::mouseMoveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_200)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QGraphicsSceneMouseEvent*);

    ((sipVH_QtGui_200)(sipModuleAPI_plasma_QtGui->em_virthandlers[200]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::mouseDoubleClickEvent(QGraphicsSceneMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::mouseDoubleClickEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_200)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QGraphicsSceneMouseEvent*);

    ((sipVH_QtGui_200)(sipModuleAPI_plasma_QtGui->em_virthandlers[200]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::keyReleaseEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::keyReleaseEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

    ((sipVH_QtGui_25)(sipModuleAPI_plasma_QtGui->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::keyPressEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::keyPressEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

    ((sipVH_QtGui_25)(sipModuleAPI_plasma_QtGui->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QVariant sipPlasma_AbstractToolBox::inputMethodQuery(Qt::InputMethodQuery a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Plasma::AbstractToolBox::inputMethodQuery(a0);

    typedef QVariant (*sipVH_QtGui_12)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, Qt::InputMethodQuery);

    return ((sipVH_QtGui_12)(sipModuleAPI_plasma_QtGui->em_virthandlers[12]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::inputMethodEvent(QInputMethodEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::inputMethodEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_13)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QInputMethodEvent*);

    ((sipVH_QtGui_13)(sipModuleAPI_plasma_QtGui->em_virthandlers[13]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::hoverEnterEvent(QGraphicsSceneHoverEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::hoverEnterEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_187)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QGraphicsSceneHoverEvent*);

    ((sipVH_QtGui_187)(sipModuleAPI_plasma_QtGui->em_virthandlers[187]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::dropEvent(QGraphicsSceneDragDropEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::dropEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_202)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QGraphicsSceneDragDropEvent*);

    ((sipVH_QtGui_202)(sipModuleAPI_plasma_QtGui->em_virthandlers[202]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::dragMoveEvent(QGraphicsSceneDragDropEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::dragMoveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_202)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QGraphicsSceneDragDropEvent*);

    ((sipVH_QtGui_202)(sipModuleAPI_plasma_QtGui->em_virthandlers[202]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::dragLeaveEvent(QGraphicsSceneDragDropEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::dragLeaveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_202)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QGraphicsSceneDragDropEvent*);

    ((sipVH_QtGui_202)(sipModuleAPI_plasma_QtGui->em_virthandlers[202]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::dragEnterEvent(QGraphicsSceneDragDropEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_dragEnterEvent);

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::dragEnterEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_202)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QGraphicsSceneDragDropEvent*);

    ((sipVH_QtGui_202)(sipModuleAPI_plasma_QtGui->em_virthandlers[202]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::contextMenuEvent(QGraphicsSceneContextMenuEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_contextMenuEvent);

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::contextMenuEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_203)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QGraphicsSceneContextMenuEvent*);

    ((sipVH_QtGui_203)(sipModuleAPI_plasma_QtGui->em_virthandlers[203]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QPainterPath sipPlasma_AbstractToolBox::opaqueArea() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Plasma::AbstractToolBox::opaqueArea();

    typedef QPainterPath (*sipVH_QtGui_194)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_194)(sipModuleAPI_plasma_QtGui->em_virthandlers[194]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipPlasma_AbstractToolBox::isObscuredBy(const QGraphicsItem*a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Plasma::AbstractToolBox::isObscuredBy(a0);

    typedef bool (*sipVH_QtGui_206)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QGraphicsItem*);

    return ((sipVH_QtGui_206)(sipModuleAPI_plasma_QtGui->em_virthandlers[206]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipPlasma_AbstractToolBox::collidesWithPath(const QPainterPath& a0,Qt::ItemSelectionMode a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Plasma::AbstractToolBox::collidesWithPath(a0,a1);

    typedef bool (*sipVH_QtGui_209)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QPainterPath&,Qt::ItemSelectionMode);

    return ((sipVH_QtGui_209)(sipModuleAPI_plasma_QtGui->em_virthandlers[209]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipPlasma_AbstractToolBox::collidesWithItem(const QGraphicsItem*a0,Qt::ItemSelectionMode a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Plasma::AbstractToolBox::collidesWithItem(a0,a1);

    typedef bool (*sipVH_QtGui_210)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QGraphicsItem*,Qt::ItemSelectionMode);

    return ((sipVH_QtGui_210)(sipModuleAPI_plasma_QtGui->em_virthandlers[210]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipPlasma_AbstractToolBox::contains(const QPointF& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Plasma::AbstractToolBox::contains(a0);

    typedef bool (*sipVH_QtGui_207)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QPointF&);

    return ((sipVH_QtGui_207)(sipModuleAPI_plasma_QtGui->em_virthandlers[207]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::advance(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_advance);

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::advance(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    ((sipVH_QtCore_4)(sipModuleAPI_plasma_QtCore->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

    ((sipVH_QtCore_24)(sipModuleAPI_plasma_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

    ((sipVH_QtCore_24)(sipModuleAPI_plasma_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

    ((sipVH_QtCore_17)(sipModuleAPI_plasma_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

    ((sipVH_QtCore_25)(sipModuleAPI_plasma_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

    ((sipVH_QtCore_9)(sipModuleAPI_plasma_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

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

void sipPlasma_AbstractToolBox::ungrabKeyboardEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_ungrabKeyboardEvent);

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::ungrabKeyboardEvent(a0);
        return;
    }

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

    ((sipVH_QtCore_17)(sipModuleAPI_plasma_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::grabKeyboardEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_grabKeyboardEvent);

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::grabKeyboardEvent(a0);
        return;
    }

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

    ((sipVH_QtCore_17)(sipModuleAPI_plasma_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::ungrabMouseEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,NULL,sipName_ungrabMouseEvent);

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::ungrabMouseEvent(a0);
        return;
    }

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

    ((sipVH_QtCore_17)(sipModuleAPI_plasma_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::grabMouseEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,NULL,sipName_grabMouseEvent);

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::grabMouseEvent(a0);
        return;
    }

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

    ((sipVH_QtCore_17)(sipModuleAPI_plasma_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::hoverLeaveEvent(QGraphicsSceneHoverEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,NULL,sipName_hoverLeaveEvent);

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::hoverLeaveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_187)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QGraphicsSceneHoverEvent*);

    ((sipVH_QtGui_187)(sipModuleAPI_plasma_QtGui->em_virthandlers[187]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::hoverMoveEvent(QGraphicsSceneHoverEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[33],sipPySelf,NULL,sipName_hoverMoveEvent);

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::hoverMoveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_187)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QGraphicsSceneHoverEvent*);

    ((sipVH_QtGui_187)(sipModuleAPI_plasma_QtGui->em_virthandlers[187]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::showEvent(QShowEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],sipPySelf,NULL,sipName_showEvent);

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::showEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_1)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QShowEvent*);

    ((sipVH_QtGui_1)(sipModuleAPI_plasma_QtGui->em_virthandlers[1]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::resizeEvent(QGraphicsSceneResizeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],sipPySelf,NULL,sipName_resizeEvent);

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::resizeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_188)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QGraphicsSceneResizeEvent*);

    ((sipVH_QtGui_188)(sipModuleAPI_plasma_QtGui->em_virthandlers[188]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::polishEvent()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[36],sipPySelf,NULL,sipName_polishEvent);

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::polishEvent();
        return;
    }

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

    ((sipVH_QtCore_11)(sipModuleAPI_plasma_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipPlasma_AbstractToolBox::moveEvent(QGraphicsSceneMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],sipPySelf,NULL,sipName_moveEvent);

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::moveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_189)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QGraphicsSceneMoveEvent*);

    ((sipVH_QtGui_189)(sipModuleAPI_plasma_QtGui->em_virthandlers[189]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::hideEvent(QHideEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[38],sipPySelf,NULL,sipName_hideEvent);

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::hideEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_0)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QHideEvent*);

    ((sipVH_QtGui_0)(sipModuleAPI_plasma_QtGui->em_virthandlers[0]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::focusOutEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[39],sipPySelf,NULL,sipName_focusOutEvent);

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::focusOutEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

    ((sipVH_QtGui_24)(sipModuleAPI_plasma_QtGui->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipPlasma_AbstractToolBox::focusNextPrevChild(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[40],sipPySelf,NULL,sipName_focusNextPrevChild);

    if (!sipMeth)
        return Plasma::AbstractToolBox::focusNextPrevChild(a0);

    typedef bool (*sipVH_QtGui_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    return ((sipVH_QtGui_11)(sipModuleAPI_plasma_QtGui->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::focusInEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[41],sipPySelf,NULL,sipName_focusInEvent);

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::focusInEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

    ((sipVH_QtGui_24)(sipModuleAPI_plasma_QtGui->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::closeEvent(QCloseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[42],sipPySelf,NULL,sipName_closeEvent);

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::closeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QCloseEvent*);

    ((sipVH_QtGui_22)(sipModuleAPI_plasma_QtGui->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::changeEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[43],sipPySelf,NULL,sipName_changeEvent);

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::changeEvent(a0);
        return;
    }

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

    ((sipVH_QtCore_17)(sipModuleAPI_plasma_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

    if (!sipMeth)
        return Plasma::AbstractToolBox::event(a0);

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

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

Qt::WindowFrameSection sipPlasma_AbstractToolBox::windowFrameSectionAt(const QPointF& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Plasma::AbstractToolBox::windowFrameSectionAt(a0);

    typedef Qt::WindowFrameSection (*sipVH_QtGui_190)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QPointF&);

    return ((sipVH_QtGui_190)(sipModuleAPI_plasma_QtGui->em_virthandlers[190]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipPlasma_AbstractToolBox::windowFrameEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[46],sipPySelf,NULL,sipName_windowFrameEvent);

    if (!sipMeth)
        return Plasma::AbstractToolBox::windowFrameEvent(a0);

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

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

bool sipPlasma_AbstractToolBox::sceneEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[47],sipPySelf,NULL,sipName_sceneEvent);

    if (!sipMeth)
        return Plasma::AbstractToolBox::sceneEvent(a0);

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

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

QVariant sipPlasma_AbstractToolBox::itemChange(QGraphicsItem::GraphicsItemChange a0,const QVariant& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[48],sipPySelf,NULL,sipName_itemChange);

    if (!sipMeth)
        return Plasma::AbstractToolBox::itemChange(a0,a1);

    typedef QVariant (*sipVH_QtGui_191)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QGraphicsItem::GraphicsItemChange,const QVariant&);

    return ((sipVH_QtGui_191)(sipModuleAPI_plasma_QtGui->em_virthandlers[191]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipPlasma_AbstractToolBox::updateGeometry()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[49],sipPySelf,NULL,sipName_updateGeometry);

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::updateGeometry();
        return;
    }

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

    ((sipVH_QtCore_11)(sipModuleAPI_plasma_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

QSizeF sipPlasma_AbstractToolBox::sizeHint(Qt::SizeHint a0,const QSizeF& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Plasma::AbstractToolBox::sizeHint(a0,a1);

    typedef QSizeF (*sipVH_QtGui_192)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, Qt::SizeHint,const QSizeF&);

    return ((sipVH_QtGui_192)(sipModuleAPI_plasma_QtGui->em_virthandlers[192]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipPlasma_AbstractToolBox::initStyleOption(QStyleOption*a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::initStyleOption(a0);
        return;
    }

    typedef void (*sipVH_QtGui_193)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QStyleOption*);

    ((sipVH_QtGui_193)(sipModuleAPI_plasma_QtGui->em_virthandlers[193]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QPainterPath sipPlasma_AbstractToolBox::shape() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Plasma::AbstractToolBox::shape();

    typedef QPainterPath (*sipVH_QtGui_194)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_194)(sipModuleAPI_plasma_QtGui->em_virthandlers[194]))(sipGILState, 0, sipPySelf, sipMeth);
}

QRectF sipPlasma_AbstractToolBox::boundingRect() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Plasma::AbstractToolBox::boundingRect();

    typedef QRectF (*sipVH_QtGui_195)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_195)(sipModuleAPI_plasma_QtGui->em_virthandlers[195]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipPlasma_AbstractToolBox::paintWindowFrame(QPainter*a0,const QStyleOptionGraphicsItem*a1,QWidget*a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[54],sipPySelf,NULL,sipName_paintWindowFrame);

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::paintWindowFrame(a0,a1,a2);
        return;
    }

    typedef void (*sipVH_QtGui_196)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPainter*,const QStyleOptionGraphicsItem*,QWidget*);

    ((sipVH_QtGui_196)(sipModuleAPI_plasma_QtGui->em_virthandlers[196]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipPlasma_AbstractToolBox::paint(QPainter*a0,const QStyleOptionGraphicsItem*a1,QWidget*a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[55],sipPySelf,NULL,sipName_paint);

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::paint(a0,a1,a2);
        return;
    }

    typedef void (*sipVH_QtGui_196)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPainter*,const QStyleOptionGraphicsItem*,QWidget*);

    ((sipVH_QtGui_196)(sipModuleAPI_plasma_QtGui->em_virthandlers[196]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

int sipPlasma_AbstractToolBox::type() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Plasma::AbstractToolBox::type();

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

    return ((sipVH_QtCore_6)(sipModuleAPI_plasma_QtCore->em_virthandlers[6]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipPlasma_AbstractToolBox::getContentsMargins(qreal*a0,qreal*a1,qreal*a2,qreal*a3) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::getContentsMargins(a0,a1,a2,a3);
        return;
    }

    typedef void (*sipVH_QtGui_197)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, double*,double*,double*,double*);

    ((sipVH_QtGui_197)(sipModuleAPI_plasma_QtGui->em_virthandlers[197]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3);
}

void sipPlasma_AbstractToolBox::setGeometry(const QRectF& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[58],sipPySelf,NULL,sipName_setGeometry);

    if (!sipMeth)
    {
        Plasma::AbstractToolBox::setGeometry(a0);
        return;
    }

    typedef void (*sipVH_QtGui_137)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QRectF&);

    ((sipVH_QtGui_137)(sipModuleAPI_plasma_QtGui->em_virthandlers[137]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::setShowing(const bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[59],sipPySelf,sipName_AbstractToolBox,sipName_setShowing);

    if (!sipMeth)
        return;

    extern void sipVH_plasma_35(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const bool);

    sipVH_plasma_35(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipPlasma_AbstractToolBox::isShowing() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[60]),sipPySelf,sipName_AbstractToolBox,sipName_isShowing);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_plasma_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipPlasma_AbstractToolBox::removeTool(QAction*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[61],sipPySelf,sipName_AbstractToolBox,sipName_removeTool);

    if (!sipMeth)
        return;

    typedef void (*sipVH_kdeui_48)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QAction*);

    ((sipVH_kdeui_48)(sipModuleAPI_plasma_kdeui->em_virthandlers[48]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractToolBox::addTool(QAction*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[62],sipPySelf,sipName_AbstractToolBox,sipName_addTool);

    if (!sipMeth)
        return;

    typedef void (*sipVH_kdeui_48)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QAction*);

    ((sipVH_kdeui_48)(sipModuleAPI_plasma_kdeui->em_virthandlers[48]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}


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

    {
        QAction* a0;
        Plasma::AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QAction, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_AbstractToolBox, sipName_addTool);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->addTool(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_AbstractToolBox, sipName_addTool, NULL);

    return NULL;
}


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

    {
        QAction* a0;
        Plasma::AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QAction, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_AbstractToolBox, sipName_removeTool);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeTool(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_AbstractToolBox, sipName_removeTool, NULL);

    return NULL;
}


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

    {
        const Plasma::AbstractToolBox *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_AbstractToolBox, sipName_isShowing);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isShowing();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        Plasma::AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_AbstractToolBox, sipName_setShowing);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setShowing(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_AbstractToolBox, sipName_setShowing, NULL);

    return NULL;
}


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

    {
        const Plasma::AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp))
        {
            Plasma::Containment*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->containment();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const QVariantList& a1def = QVariantList();
        const QVariantList* a1 = &a1def;
        int a1State = 0;
        Plasma::Containment* a2 = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1|J1J8", sipType_QString,&a0, &a0State, sipType_QList_0100QVariant,&a1, &a1State, sipType_Plasma_Containment, &a2))
        {
            Plasma::AbstractToolBox*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Plasma::AbstractToolBox::load(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QVariantList *>(a1),sipType_QList_0100QVariant,a1State);

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

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

    return NULL;
}


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

    {
        const QString& a0def = QString();
        const QString* a0 = &a0def;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "|J1", sipType_QString,&a0, &a0State))
        {
            KPluginInfo::List*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KPluginInfo::List(Plasma::AbstractToolBox::listToolBoxInfo(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const KConfigGroup* a0;
        Plasma::AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_KConfigGroup, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->restore(*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_AbstractToolBox, sipName_restore, NULL);

    return NULL;
}


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

    {
        const KConfigGroup* a0;
        Plasma::AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_KConfigGroup, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->save(*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_AbstractToolBox, sipName_save, NULL);

    return NULL;
}


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

    {
        Plasma::AbstractToolBox *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Plasma_AbstractToolBox)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QGraphicsWidget)->ctd_cast((QGraphicsWidget *)(Plasma::AbstractToolBox *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Plasma_AbstractToolBox(void *, int);}
static void release_Plasma_AbstractToolBox(void *sipCppV,int)
{
    Plasma::AbstractToolBox *sipCpp = reinterpret_cast<Plasma::AbstractToolBox *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        Plasma::Containment* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QObject* a0 = 0;
        const QVariantList& a1def = QVariantList();
        const QVariantList* a1 = &a1def;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JHJ1", sipType_QObject, &a0, sipOwner, sipType_QList_0100QVariant,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipPlasma_AbstractToolBox(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariantList *>(a1),sipType_QList_0100QVariant,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Plasma_AbstractToolBox[] = {{218, 2, 1}};


static PyMethodDef methods_Plasma_AbstractToolBox[] = {
    {SIP_MLNAME_CAST(sipName_addTool), meth_Plasma_AbstractToolBox_addTool, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containment), meth_Plasma_AbstractToolBox_containment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isShowing), meth_Plasma_AbstractToolBox_isShowing, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listToolBoxInfo), meth_Plasma_AbstractToolBox_listToolBoxInfo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_load), meth_Plasma_AbstractToolBox_load, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeTool), meth_Plasma_AbstractToolBox_removeTool, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_reposition), meth_Plasma_AbstractToolBox_reposition, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_restore), meth_Plasma_AbstractToolBox_restore, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_save), meth_Plasma_AbstractToolBox_save, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setShowing), meth_Plasma_AbstractToolBox_setShowing, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Plasma_AbstractToolBox[] = {
    {sipName_AddTool, static_cast<int>(Plasma::AbstractToolBox::AddTool), 7},
    {sipName_ConfigureTool, static_cast<int>(Plasma::AbstractToolBox::ConfigureTool), 7},
    {sipName_ControlTool, static_cast<int>(Plasma::AbstractToolBox::ControlTool), 7},
    {sipName_DestructiveTool, static_cast<int>(Plasma::AbstractToolBox::DestructiveTool), 7},
    {sipName_MiscTool, static_cast<int>(Plasma::AbstractToolBox::MiscTool), 7},
    {sipName_UserToolType, static_cast<int>(Plasma::AbstractToolBox::UserToolType), 7},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_Plasma_AbstractToolBox[] = {
    {"visibilityChanged(bool)", 0, 0, 0},
    {"toggled()", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_plasma_Plasma_AbstractToolBox = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Plasma__AbstractToolBox,
        {0}
    },
    {
        sipNameNr_AbstractToolBox,
        {1, 255, 0},
        10, methods_Plasma_AbstractToolBox,
        6, enummembers_Plasma_AbstractToolBox,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Plasma_AbstractToolBox,
    0,
    init_type_Plasma_AbstractToolBox,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Plasma_AbstractToolBox,
    0,
    0,
    0,
    release_Plasma_AbstractToolBox,
    cast_Plasma_AbstractToolBox,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Plasma::AbstractToolBox::staticMetaObject,
    0,
    signals_Plasma_AbstractToolBox,
};

#line 106 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/plasma/abstractrunner.sip"
#include <plasma/abstractrunner.h>
#line 2424 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"

#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 2428 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2431 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2434 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2437 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2440 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 340 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 2443 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 2446 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 2449 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/plasma/querymatch.sip"
#include <plasma/querymatch.h>
#line 2452 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/plasma/dataengine.sip"
#include <plasma/dataengine.h>
#line 2455 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/plasma/runnersyntax.sip"
#include <plasma/runnersyntax.h>
#line 2458 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2461 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 486 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qhash.h>
#line 2464 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 77 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2467 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 2470 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qicon.sip"
#include <qicon.h>
#line 2473 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2476 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 114 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 2479 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 32 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 2482 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qmutex.sip"
#include <qmutex.h>
#line 2485 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/plasma/package.sip"
#include <plasma/package.h>
#line 2488 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/plasma/runnercontext.sip"
#include <plasma/runnercontext.h>
#line 2491 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/plasma/runnercontext.sip"
#include <plasma/runnercontext.h>
#line 2494 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 2497 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2500 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 355 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2503 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 338 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2506 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2509 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2512 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2515 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2518 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 2521 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2524 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2527 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"


class sipPlasma_AbstractRunner : public Plasma::AbstractRunner
{
public:
    sipPlasma_AbstractRunner(QObject*,const QString&);
    sipPlasma_AbstractRunner(QObject*,const QVariantList&);
    sipPlasma_AbstractRunner(const KService::Ptr,QObject*);
    virtual ~sipPlasma_AbstractRunner();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    QList<QAction*> actionsForMatch(const Plasma::QueryMatch&);
    void reloadConfiguration();
    void run(const Plasma::RunnerContext&,const Plasma::QueryMatch&);
    void createRunOptions(QWidget*);
    void match(Plasma::RunnerContext&);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[12];
};

sipPlasma_AbstractRunner::sipPlasma_AbstractRunner(QObject*a0,const QString& a1): Plasma::AbstractRunner(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipPlasma_AbstractRunner::sipPlasma_AbstractRunner(QObject*a0,const QVariantList& a1): Plasma::AbstractRunner(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipPlasma_AbstractRunner::sipPlasma_AbstractRunner(const KService::Ptr a0,QObject*a1): Plasma::AbstractRunner(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipPlasma_AbstractRunner::metaObject() const
{
    return sip_plasma_qt_metaobject(sipPySelf,sipType_Plasma_AbstractRunner);
}

int sipPlasma_AbstractRunner::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Plasma::AbstractRunner::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_plasma_qt_metacall(sipPySelf,sipType_Plasma_AbstractRunner,_c,_id,_a);

    return _id;
}

void *sipPlasma_AbstractRunner::qt_metacast(const char *_clname)
{
    return (sip_plasma_qt_metacast(sipPySelf, sipType_Plasma_AbstractRunner, _clname)) ? this : Plasma::AbstractRunner::qt_metacast(_clname);
}

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

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

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

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

    ((sipVH_QtCore_24)(sipModuleAPI_plasma_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

    ((sipVH_QtCore_24)(sipModuleAPI_plasma_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

    ((sipVH_QtCore_17)(sipModuleAPI_plasma_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

    ((sipVH_QtCore_25)(sipModuleAPI_plasma_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

    ((sipVH_QtCore_9)(sipModuleAPI_plasma_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

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

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

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

    if (!sipMeth)
        return Plasma::AbstractRunner::event(a0);

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

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

QList<QAction*> sipPlasma_AbstractRunner::actionsForMatch(const Plasma::QueryMatch& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Plasma::AbstractRunner::actionsForMatch(a0);

    extern QList<QAction*> sipVH_plasma_36(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const Plasma::QueryMatch&);

    return sipVH_plasma_36(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractRunner::reloadConfiguration()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Plasma::AbstractRunner::reloadConfiguration();
        return;
    }

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

    ((sipVH_QtCore_11)(sipModuleAPI_plasma_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipPlasma_AbstractRunner::run(const Plasma::RunnerContext& a0,const Plasma::QueryMatch& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Plasma::AbstractRunner::run(a0,a1);
        return;
    }

    extern void sipVH_plasma_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const Plasma::RunnerContext&,const Plasma::QueryMatch&);

    sipVH_plasma_4(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipPlasma_AbstractRunner::createRunOptions(QWidget*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Plasma::AbstractRunner::createRunOptions(a0);
        return;
    }

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWidget*);

    ((sipVH_QtGui_7)(sipModuleAPI_plasma_QtGui->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPlasma_AbstractRunner::match(Plasma::RunnerContext& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Plasma::AbstractRunner::match(a0);
        return;
    }

    extern void sipVH_plasma_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, Plasma::RunnerContext&);

    sipVH_plasma_5(sipGILState, 0, sipPySelf, sipMeth, a0);
}


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

    {
        Plasma::RunnerContext* a0;
        Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_Plasma_RunnerContext, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Plasma::AbstractRunner::match(*a0) : sipCpp->match(*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_AbstractRunner, sipName_match, NULL);

    return NULL;
}


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

    {
        Plasma::RunnerContext* a0;
        Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_Plasma_RunnerContext, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->performMatch(*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_AbstractRunner, sipName_performMatch, NULL);

    return NULL;
}


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

    {
        Plasma::AbstractRunner *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasRunOptions();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QWidget* a0;
        Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_QWidget, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Plasma::AbstractRunner::createRunOptions(a0) : sipCpp->createRunOptions(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_AbstractRunner, sipName_createRunOptions, NULL);

    return NULL;
}


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

    {
        const Plasma::RunnerContext* a0;
        const Plasma::QueryMatch* a1;
        Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_Plasma_RunnerContext, &a0, sipType_Plasma_QueryMatch, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Plasma::AbstractRunner::run(*a0,*a1) : sipCpp->run(*a0,*a1));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp))
        {
            Plasma::AbstractRunner::Speed sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->speed();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Plasma_AbstractRunner_Speed);
        }
    }

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

    return NULL;
}


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

    {
        const Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp))
        {
            Plasma::AbstractRunner::Priority sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->priority();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Plasma_AbstractRunner_Priority);
        }
    }

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

    return NULL;
}


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

    {
        const Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp))
        {
            Plasma::RunnerContext::Types*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Plasma::RunnerContext::Types(sipCpp->ignoredTypes());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Plasma::RunnerContext::Types* a0;
        int a0State = 0;
        Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_Plasma_RunnerContext_Types, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIgnoredTypes(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Plasma_RunnerContext_Types,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Plasma::AbstractRunner *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const Plasma::AbstractRunner *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const Plasma::AbstractRunner *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const Plasma::AbstractRunner *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QIcon(sipCpp->icon());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp))
        {
            const Plasma::Package*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->package();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(const_cast<Plasma::Package *>(sipRes),sipType_Plasma_Package,NULL);
        }
    }

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

    return NULL;
}


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

    {
        Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Plasma::AbstractRunner::reloadConfiguration() : sipCpp->reloadConfiguration());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp))
        {
            QList<Plasma::RunnerSyntax>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Plasma::RunnerSyntax>(sipCpp->syntaxes());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QMutex*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Plasma::AbstractRunner::bigLock();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp))
        {
            KConfigGroup*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KConfigGroup(sipCpp->config());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        bool a0;
        Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pb", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setHasRunOptions(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_AbstractRunner, sipName_setHasRunOptions, NULL);

    return NULL;
}


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

    {
        Plasma::AbstractRunner::Speed a0;
        Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pE", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_Plasma_AbstractRunner_Speed, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSpeed(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_AbstractRunner, sipName_setSpeed, NULL);

    return NULL;
}


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

    {
        Plasma::AbstractRunner::Priority a0;
        Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pE", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_Plasma_AbstractRunner_Priority, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPriority(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_AbstractRunner, sipName_setPriority, NULL);

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString* a1 = &a1def;
        int a1State = 0;
        const Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1|J1", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            KService::List*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KService::List(sipCpp->serviceQuery(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


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

    {
        const Plasma::QueryMatch* a0;
        Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_Plasma_QueryMatch, &a0))
        {
            QList<QAction*>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QAction*>((sipSelfWasArg ? sipCpp->Plasma::AbstractRunner::actionsForMatch(*a0) : sipCpp->actionsForMatch(*a0)));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const QIcon* a1;
        const QString* a2;
        int a2State = 0;
        Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1J9J1", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_QString,&a0, &a0State, sipType_QIcon, &a1, sipType_QString,&a2, &a2State))
        {
            QAction*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->addAction(*a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

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

    {
        const QString* a0;
        int a0State = 0;
        QAction* a1;
        Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1J8", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_QString,&a0, &a0State, sipType_QAction, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addAction(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        Plasma::AbstractRunner *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QAction*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->action(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp))
        {
            QHash<QString,QAction*>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QHash<QString,QAction*>(sipCpp->actions());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->clearActions();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Plasma::RunnerSyntax* a0;
        Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_Plasma_RunnerSyntax, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addSyntax(*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_AbstractRunner, sipName_addSyntax, NULL);

    return NULL;
}


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

    {
        Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->init();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QList<Plasma::RunnerSyntax>* a0;
        int a0State = 0;
        Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_QList_0100Plasma_RunnerSyntax,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSyntaxes(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Plasma::RunnerSyntax> *>(a0),sipType_QList_0100Plasma_RunnerSyntax,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp))
        {
            Plasma::RunnerSyntax*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->defaultSyntax();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Plasma::RunnerSyntax* a0;
        Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_Plasma_RunnerSyntax, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDefaultSyntax(*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_AbstractRunner, sipName_setDefaultSyntax, NULL);

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Plasma::DataEngine*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->dataEngine(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const Plasma::QueryMatch* a0;
        Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_Plasma_QueryMatch, &a0))
        {
            QMimeData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->mimeDataForMatch(a0);
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Plasma::AbstractRunner *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isMatchingSuspended();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        Plasma::AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pb", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->suspendMatching(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_AbstractRunner, sipName_suspendMatching, NULL);

    return NULL;
}


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

    if (targetType == sipType_Plasma_AbstractRunner)
        return ptr;

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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Plasma_AbstractRunner(void *, int);}
static void release_Plasma_AbstractRunner(void *sipCppV,int)
{
    Plasma::AbstractRunner *sipCpp = reinterpret_cast<Plasma::AbstractRunner *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QObject* a0 = 0;
        const QString& a1def = QString();
        const QString* a1 = &a1def;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JHJ1", sipType_QObject, &a0, sipOwner, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipPlasma_AbstractRunner(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QObject* a0;
        const QVariantList* a1;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "JHJ1", sipType_QObject, &a0, sipOwner, sipType_QList_0100QVariant,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipPlasma_AbstractRunner(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariantList *>(a1),sipType_QList_0100QVariant,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KService::Ptr* a0;
        int a0State = 0;
        QObject* a1 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1|JH", sipType_KSharedPtr_0100KService,&a0, &a0State, sipType_QObject, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipPlasma_AbstractRunner(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KService::Ptr *>(a0),sipType_KSharedPtr_0100KService,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Plasma_AbstractRunner[] = {
    {SIP_MLNAME_CAST(sipName_action), meth_Plasma_AbstractRunner_action, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_actions), meth_Plasma_AbstractRunner_actions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_actionsForMatch), meth_Plasma_AbstractRunner_actionsForMatch, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addAction), meth_Plasma_AbstractRunner_addAction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addSyntax), meth_Plasma_AbstractRunner_addSyntax, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_bigLock), meth_Plasma_AbstractRunner_bigLock, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearActions), meth_Plasma_AbstractRunner_clearActions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_config), meth_Plasma_AbstractRunner_config, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createRunOptions), meth_Plasma_AbstractRunner_createRunOptions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dataEngine), meth_Plasma_AbstractRunner_dataEngine, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultSyntax), meth_Plasma_AbstractRunner_defaultSyntax, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_description), meth_Plasma_AbstractRunner_description, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasRunOptions), meth_Plasma_AbstractRunner_hasRunOptions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_icon), meth_Plasma_AbstractRunner_icon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_id), meth_Plasma_AbstractRunner_id, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ignoredTypes), meth_Plasma_AbstractRunner_ignoredTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_init), meth_Plasma_AbstractRunner_init, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isMatchingSuspended), meth_Plasma_AbstractRunner_isMatchingSuspended, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_match), meth_Plasma_AbstractRunner_match, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeDataForMatch), meth_Plasma_AbstractRunner_mimeDataForMatch, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_Plasma_AbstractRunner_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_package), meth_Plasma_AbstractRunner_package, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_performMatch), meth_Plasma_AbstractRunner_performMatch, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_priority), meth_Plasma_AbstractRunner_priority, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_reloadConfiguration), meth_Plasma_AbstractRunner_reloadConfiguration, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeAction), meth_Plasma_AbstractRunner_removeAction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_run), meth_Plasma_AbstractRunner_run, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serviceQuery), meth_Plasma_AbstractRunner_serviceQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDefaultSyntax), meth_Plasma_AbstractRunner_setDefaultSyntax, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setHasRunOptions), meth_Plasma_AbstractRunner_setHasRunOptions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIgnoredTypes), meth_Plasma_AbstractRunner_setIgnoredTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPriority), meth_Plasma_AbstractRunner_setPriority, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSpeed), meth_Plasma_AbstractRunner_setSpeed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSyntaxes), meth_Plasma_AbstractRunner_setSyntaxes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_speed), meth_Plasma_AbstractRunner_speed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_suspendMatching), meth_Plasma_AbstractRunner_suspendMatching, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_syntaxes), meth_Plasma_AbstractRunner_syntaxes, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Plasma_AbstractRunner[] = {
    {sipName_HighPriority, static_cast<int>(Plasma::AbstractRunner::HighPriority), 4},
    {sipName_HighestPriority, static_cast<int>(Plasma::AbstractRunner::HighestPriority), 4},
    {sipName_LowPriority, static_cast<int>(Plasma::AbstractRunner::LowPriority), 4},
    {sipName_LowestPriority, static_cast<int>(Plasma::AbstractRunner::LowestPriority), 4},
    {sipName_NormalPriority, static_cast<int>(Plasma::AbstractRunner::NormalPriority), 4},
    {sipName_NormalSpeed, static_cast<int>(Plasma::AbstractRunner::NormalSpeed), 5},
    {sipName_SlowSpeed, static_cast<int>(Plasma::AbstractRunner::SlowSpeed), 5},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_Plasma_AbstractRunner[] = {
    {"matchingSuspended(bool)", 0, 0, 0},
    {"teardown()", 0, 0, 0},
    {"prepare()", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_plasma_Plasma_AbstractRunner = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Plasma__AbstractRunner,
        {0}
    },
    {
        sipNameNr_AbstractRunner,
        {1, 255, 0},
        37, methods_Plasma_AbstractRunner,
        7, enummembers_Plasma_AbstractRunner,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Plasma_AbstractRunner,
    0,
    init_type_Plasma_AbstractRunner,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Plasma_AbstractRunner,
    0,
    0,
    0,
    release_Plasma_AbstractRunner,
    cast_Plasma_AbstractRunner,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Plasma::AbstractRunner::staticMetaObject,
    0,
    signals_Plasma_AbstractRunner,
};

#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/plasma/abstractdialogmanager.sip"
#include <plasma/abstractdialogmanager.h>
#line 4093 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/plasma/corona.sip"
#include <plasma/corona.h>
#line 4097 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 4100 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 55 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/plasma/applet.sip"
#include <plasma/applet.h>
#line 4103 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4106 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 355 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4109 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 338 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4112 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 4115 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4118 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4121 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4124 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4127 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4130 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 4133 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 4136 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 4139 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4142 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"


class sipPlasma_AbstractDialogManager : public Plasma::AbstractDialogManager
{
public:
    sipPlasma_AbstractDialogManager(Plasma::Corona*);
    virtual ~sipPlasma_AbstractDialogManager();

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[7];
};

sipPlasma_AbstractDialogManager::sipPlasma_AbstractDialogManager(Plasma::Corona*a0): Plasma::AbstractDialogManager(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipPlasma_AbstractDialogManager::metaObject() const
{
    return sip_plasma_qt_metaobject(sipPySelf,sipType_Plasma_AbstractDialogManager);
}

int sipPlasma_AbstractDialogManager::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Plasma::AbstractDialogManager::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_plasma_qt_metacall(sipPySelf,sipType_Plasma_AbstractDialogManager,_c,_id,_a);

    return _id;
}

void *sipPlasma_AbstractDialogManager::qt_metacast(const char *_clname)
{
    return (sip_plasma_qt_metacast(sipPySelf, sipType_Plasma_AbstractDialogManager, _clname)) ? this : Plasma::AbstractDialogManager::qt_metacast(_clname);
}

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

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

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

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

    ((sipVH_QtCore_24)(sipModuleAPI_plasma_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

    ((sipVH_QtCore_24)(sipModuleAPI_plasma_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

    ((sipVH_QtCore_17)(sipModuleAPI_plasma_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

    ((sipVH_QtCore_25)(sipModuleAPI_plasma_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

    ((sipVH_QtCore_9)(sipModuleAPI_plasma_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

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

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

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

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

    if (!sipMeth)
        return Plasma::AbstractDialogManager::event(a0);

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

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


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

    {
        QWidget* a0;
        Plasma::Applet* a1;
        Plasma::AbstractDialogManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J8", &sipSelf, sipType_Plasma_AbstractDialogManager, &sipCpp, sipType_QWidget, &a0, sipType_Plasma_Applet, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->showDialog(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Plasma_AbstractDialogManager)
        return ptr;

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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Plasma_AbstractDialogManager(void *, int);}
static void release_Plasma_AbstractDialogManager(void *sipCppV,int)
{
    Plasma::AbstractDialogManager *sipCpp = reinterpret_cast<Plasma::AbstractDialogManager *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        Plasma::Corona* a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Plasma_AbstractDialogManager[] = {
    {SIP_MLNAME_CAST(sipName_showDialog), meth_Plasma_AbstractDialogManager_showDialog, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_plasma_Plasma_AbstractDialogManager = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Plasma__AbstractDialogManager,
        {0}
    },
    {
        sipNameNr_AbstractDialogManager,
        {1, 255, 0},
        1, methods_Plasma_AbstractDialogManager,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Plasma_AbstractDialogManager,
    0,
    init_type_Plasma_AbstractDialogManager,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Plasma_AbstractDialogManager,
    0,
    0,
    0,
    release_Plasma_AbstractDialogManager,
    cast_Plasma_AbstractDialogManager,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Plasma::AbstractDialogManager::staticMetaObject,
    0,
    0
};




extern "C" {static int slot_Plasma_MessageButtons___bool__(PyObject *);}
static int slot_Plasma_MessageButtons___bool__(PyObject *sipSelf)
{
    Plasma::MessageButtons *sipCpp = reinterpret_cast<Plasma::MessageButtons *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_MessageButtons));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 370 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Plasma::MessageButtons::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 4511 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_Plasma_MessageButtons___ne__(PyObject *,PyObject *);}
static PyObject *slot_Plasma_MessageButtons___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Plasma::MessageButtons *sipCpp = reinterpret_cast<Plasma::MessageButtons *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_MessageButtons));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Plasma::MessageButtons* a0;
        int a0State = 0;

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

#line 361 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Plasma::MessageButtons::Int() != a0->operator Plasma::MessageButtons::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 4545 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
            sipReleaseType(const_cast<Plasma::MessageButtons *>(a0),sipType_Plasma_MessageButtons,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_plasma,ne_slot,sipType_Plasma_MessageButtons,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Plasma_MessageButtons___eq__(PyObject *,PyObject *);}
static PyObject *slot_Plasma_MessageButtons___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Plasma::MessageButtons *sipCpp = reinterpret_cast<Plasma::MessageButtons *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_MessageButtons));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Plasma::MessageButtons* a0;
        int a0State = 0;

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

#line 352 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Plasma::MessageButtons::Int() == a0->operator Plasma::MessageButtons::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 4585 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
            sipReleaseType(const_cast<Plasma::MessageButtons *>(a0),sipType_Plasma_MessageButtons,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_plasma,eq_slot,sipType_Plasma_MessageButtons,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Plasma_MessageButtons___invert__(PyObject *);}
static PyObject *slot_Plasma_MessageButtons___invert__(PyObject *sipSelf)
{
    Plasma::MessageButtons *sipCpp = reinterpret_cast<Plasma::MessageButtons *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_MessageButtons));

    if (!sipCpp)
        return 0;


    {
        {
            Plasma::MessageButtons*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Plasma::MessageButtons(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        Plasma::MessageButtons* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Plasma_MessageButtons, &a0, &a0State, &a1))
        {
            Plasma::MessageButtons*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Plasma::MessageButtons((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Plasma_MessageButtons,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        Plasma::MessageButtons* a0;
        int a0State = 0;
        Plasma::MessageButtons* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Plasma_MessageButtons, &a0, &a0State, sipType_Plasma_MessageButtons, &a1, &a1State))
        {
            Plasma::MessageButtons*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Plasma::MessageButtons((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Plasma_MessageButtons,a0State);
            sipReleaseType(a1,sipType_Plasma_MessageButtons,a1State);

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

    {
        Plasma::MessageButtons* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Plasma_MessageButtons, &a0, &a0State, &a1))
        {
            Plasma::MessageButtons*sipRes = 0;

#line 346 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new Plasma::MessageButtons(*a0 ^ a1);
#line 4694 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
            sipReleaseType(a0,sipType_Plasma_MessageButtons,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        Plasma::MessageButtons* a0;
        int a0State = 0;
        Plasma::MessageButtons* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Plasma_MessageButtons, &a0, &a0State, sipType_Plasma_MessageButtons, &a1, &a1State))
        {
            Plasma::MessageButtons*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Plasma::MessageButtons((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Plasma_MessageButtons,a0State);
            sipReleaseType(a1,sipType_Plasma_MessageButtons,a1State);

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

    {
        Plasma::MessageButtons* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Plasma_MessageButtons, &a0, &a0State, &a1))
        {
            Plasma::MessageButtons*sipRes = 0;

#line 341 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new Plasma::MessageButtons(*a0 | a1);
#line 4746 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
            sipReleaseType(a0,sipType_Plasma_MessageButtons,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Plasma_MessageButtons___int__(PyObject *);}
static PyObject *slot_Plasma_MessageButtons___int__(PyObject *sipSelf)
{
    Plasma::MessageButtons *sipCpp = reinterpret_cast<Plasma::MessageButtons *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_MessageButtons));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

    Plasma::MessageButtons *sipCpp = reinterpret_cast<Plasma::MessageButtons *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_MessageButtons));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Plasma::MessageButtons* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Plasma_MessageButtons, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Plasma::MessageButtons::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Plasma_MessageButtons,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    Plasma::MessageButtons *sipCpp = reinterpret_cast<Plasma::MessageButtons *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_MessageButtons));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Plasma::MessageButtons* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Plasma_MessageButtons, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Plasma::MessageButtons::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Plasma_MessageButtons,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    Plasma::MessageButtons *sipCpp = reinterpret_cast<Plasma::MessageButtons *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_MessageButtons));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

    delete reinterpret_cast<Plasma::MessageButtons *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Plasma_MessageButtons(SIP_SSIZE_T);}
static void *array_Plasma_MessageButtons(SIP_SSIZE_T sipNrElem)
{
    return new Plasma::MessageButtons[sipNrElem];
}


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


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


extern "C" {static void *init_type_Plasma_MessageButtons(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Plasma_MessageButtons(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Plasma::MessageButtons *sipCpp = 0;

    {
        const Plasma::MessageButtons* a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_Plasma_MessageButtons(PyObject *, void **, int *, PyObject *);}
static int convertTo_Plasma_MessageButtons(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    Plasma::MessageButtons **sipCppPtr = reinterpret_cast<Plasma::MessageButtons **>(sipCppPtrV);

#line 379 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a Plasma::MessageButtons is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Plasma_MessageButton)) ||
            sipCanConvertToType(sipPy, sipType_Plasma_MessageButtons, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Plasma_MessageButton)))
{
    *sipCppPtr = new Plasma::MessageButtons(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<Plasma::MessageButtons *>(sipConvertToType(sipPy, sipType_Plasma_MessageButtons, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 5041 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Plasma_MessageButtons[] = {
    {(void *)slot_Plasma_MessageButtons___bool__, bool_slot},
    {(void *)slot_Plasma_MessageButtons___ne__, ne_slot},
    {(void *)slot_Plasma_MessageButtons___eq__, eq_slot},
    {(void *)slot_Plasma_MessageButtons___invert__, invert_slot},
    {(void *)slot_Plasma_MessageButtons___and__, and_slot},
    {(void *)slot_Plasma_MessageButtons___xor__, xor_slot},
    {(void *)slot_Plasma_MessageButtons___or__, or_slot},
    {(void *)slot_Plasma_MessageButtons___int__, int_slot},
    {(void *)slot_Plasma_MessageButtons___ixor__, ixor_slot},
    {(void *)slot_Plasma_MessageButtons___ior__, ior_slot},
    {(void *)slot_Plasma_MessageButtons___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_plasma_Plasma_MessageButtons = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Plasma__MessageButtons,
        {0}
    },
    {
        sipNameNr_MessageButtons,
        {1, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Plasma_MessageButtons,
    init_type_Plasma_MessageButtons,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Plasma_MessageButtons,
    assign_Plasma_MessageButtons,
    array_Plasma_MessageButtons,
    copy_Plasma_MessageButtons,
    release_Plasma_MessageButtons,
    cast_Plasma_MessageButtons,
    convertTo_Plasma_MessageButtons,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};




extern "C" {static int slot_Plasma_ComponentTypes___bool__(PyObject *);}
static int slot_Plasma_ComponentTypes___bool__(PyObject *sipSelf)
{
    Plasma::ComponentTypes *sipCpp = reinterpret_cast<Plasma::ComponentTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_ComponentTypes));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 370 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Plasma::ComponentTypes::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 5137 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_Plasma_ComponentTypes___ne__(PyObject *,PyObject *);}
static PyObject *slot_Plasma_ComponentTypes___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Plasma::ComponentTypes *sipCpp = reinterpret_cast<Plasma::ComponentTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_ComponentTypes));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Plasma::ComponentTypes* a0;
        int a0State = 0;

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

#line 361 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Plasma::ComponentTypes::Int() != a0->operator Plasma::ComponentTypes::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 5171 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
            sipReleaseType(const_cast<Plasma::ComponentTypes *>(a0),sipType_Plasma_ComponentTypes,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_plasma,ne_slot,sipType_Plasma_ComponentTypes,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Plasma_ComponentTypes___eq__(PyObject *,PyObject *);}
static PyObject *slot_Plasma_ComponentTypes___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Plasma::ComponentTypes *sipCpp = reinterpret_cast<Plasma::ComponentTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_ComponentTypes));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Plasma::ComponentTypes* a0;
        int a0State = 0;

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

#line 352 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Plasma::ComponentTypes::Int() == a0->operator Plasma::ComponentTypes::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 5211 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
            sipReleaseType(const_cast<Plasma::ComponentTypes *>(a0),sipType_Plasma_ComponentTypes,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_plasma,eq_slot,sipType_Plasma_ComponentTypes,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Plasma_ComponentTypes___invert__(PyObject *);}
static PyObject *slot_Plasma_ComponentTypes___invert__(PyObject *sipSelf)
{
    Plasma::ComponentTypes *sipCpp = reinterpret_cast<Plasma::ComponentTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_ComponentTypes));

    if (!sipCpp)
        return 0;


    {
        {
            Plasma::ComponentTypes*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Plasma::ComponentTypes(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        Plasma::ComponentTypes* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Plasma_ComponentTypes, &a0, &a0State, &a1))
        {
            Plasma::ComponentTypes*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Plasma::ComponentTypes((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Plasma_ComponentTypes,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        Plasma::ComponentTypes* a0;
        int a0State = 0;
        Plasma::ComponentTypes* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Plasma_ComponentTypes, &a0, &a0State, sipType_Plasma_ComponentTypes, &a1, &a1State))
        {
            Plasma::ComponentTypes*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Plasma::ComponentTypes((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Plasma_ComponentTypes,a0State);
            sipReleaseType(a1,sipType_Plasma_ComponentTypes,a1State);

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

    {
        Plasma::ComponentTypes* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Plasma_ComponentTypes, &a0, &a0State, &a1))
        {
            Plasma::ComponentTypes*sipRes = 0;

#line 346 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new Plasma::ComponentTypes(*a0 ^ a1);
#line 5320 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
            sipReleaseType(a0,sipType_Plasma_ComponentTypes,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        Plasma::ComponentTypes* a0;
        int a0State = 0;
        Plasma::ComponentTypes* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Plasma_ComponentTypes, &a0, &a0State, sipType_Plasma_ComponentTypes, &a1, &a1State))
        {
            Plasma::ComponentTypes*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Plasma::ComponentTypes((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Plasma_ComponentTypes,a0State);
            sipReleaseType(a1,sipType_Plasma_ComponentTypes,a1State);

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

    {
        Plasma::ComponentTypes* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Plasma_ComponentTypes, &a0, &a0State, &a1))
        {
            Plasma::ComponentTypes*sipRes = 0;

#line 341 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new Plasma::ComponentTypes(*a0 | a1);
#line 5372 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
            sipReleaseType(a0,sipType_Plasma_ComponentTypes,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Plasma_ComponentTypes___int__(PyObject *);}
static PyObject *slot_Plasma_ComponentTypes___int__(PyObject *sipSelf)
{
    Plasma::ComponentTypes *sipCpp = reinterpret_cast<Plasma::ComponentTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_ComponentTypes));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

    Plasma::ComponentTypes *sipCpp = reinterpret_cast<Plasma::ComponentTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_ComponentTypes));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Plasma::ComponentTypes* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Plasma_ComponentTypes, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Plasma::ComponentTypes::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Plasma_ComponentTypes,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    Plasma::ComponentTypes *sipCpp = reinterpret_cast<Plasma::ComponentTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_ComponentTypes));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Plasma::ComponentTypes* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Plasma_ComponentTypes, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Plasma::ComponentTypes::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Plasma_ComponentTypes,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    Plasma::ComponentTypes *sipCpp = reinterpret_cast<Plasma::ComponentTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_ComponentTypes));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

    delete reinterpret_cast<Plasma::ComponentTypes *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Plasma_ComponentTypes(SIP_SSIZE_T);}
static void *array_Plasma_ComponentTypes(SIP_SSIZE_T sipNrElem)
{
    return new Plasma::ComponentTypes[sipNrElem];
}


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


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


extern "C" {static void *init_type_Plasma_ComponentTypes(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Plasma_ComponentTypes(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Plasma::ComponentTypes *sipCpp = 0;

    {
        const Plasma::ComponentTypes* a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_Plasma_ComponentTypes(PyObject *, void **, int *, PyObject *);}
static int convertTo_Plasma_ComponentTypes(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    Plasma::ComponentTypes **sipCppPtr = reinterpret_cast<Plasma::ComponentTypes **>(sipCppPtrV);

#line 379 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a Plasma::ComponentTypes is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Plasma_ComponentType)) ||
            sipCanConvertToType(sipPy, sipType_Plasma_ComponentTypes, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Plasma_ComponentType)))
{
    *sipCppPtr = new Plasma::ComponentTypes(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<Plasma::ComponentTypes *>(sipConvertToType(sipPy, sipType_Plasma_ComponentTypes, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 5667 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Plasma_ComponentTypes[] = {
    {(void *)slot_Plasma_ComponentTypes___bool__, bool_slot},
    {(void *)slot_Plasma_ComponentTypes___ne__, ne_slot},
    {(void *)slot_Plasma_ComponentTypes___eq__, eq_slot},
    {(void *)slot_Plasma_ComponentTypes___invert__, invert_slot},
    {(void *)slot_Plasma_ComponentTypes___and__, and_slot},
    {(void *)slot_Plasma_ComponentTypes___xor__, xor_slot},
    {(void *)slot_Plasma_ComponentTypes___or__, or_slot},
    {(void *)slot_Plasma_ComponentTypes___int__, int_slot},
    {(void *)slot_Plasma_ComponentTypes___ixor__, ixor_slot},
    {(void *)slot_Plasma_ComponentTypes___ior__, ior_slot},
    {(void *)slot_Plasma_ComponentTypes___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_plasma_Plasma_ComponentTypes = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Plasma__ComponentTypes,
        {0}
    },
    {
        sipNameNr_ComponentTypes,
        {1, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Plasma_ComponentTypes,
    init_type_Plasma_ComponentTypes,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Plasma_ComponentTypes,
    assign_Plasma_ComponentTypes,
    array_Plasma_ComponentTypes,
    copy_Plasma_ComponentTypes,
    release_Plasma_ComponentTypes,
    cast_Plasma_ComponentTypes,
    convertTo_Plasma_ComponentTypes,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};




extern "C" {static int slot_Plasma_Flip___bool__(PyObject *);}
static int slot_Plasma_Flip___bool__(PyObject *sipSelf)
{
    Plasma::Flip *sipCpp = reinterpret_cast<Plasma::Flip *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_Flip));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 370 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Plasma::Flip::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 5763 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_Plasma_Flip___ne__(PyObject *,PyObject *);}
static PyObject *slot_Plasma_Flip___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Plasma::Flip *sipCpp = reinterpret_cast<Plasma::Flip *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_Flip));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Plasma::Flip* a0;
        int a0State = 0;

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

#line 361 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Plasma::Flip::Int() != a0->operator Plasma::Flip::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 5797 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
            sipReleaseType(const_cast<Plasma::Flip *>(a0),sipType_Plasma_Flip,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_plasma,ne_slot,sipType_Plasma_Flip,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Plasma_Flip___eq__(PyObject *,PyObject *);}
static PyObject *slot_Plasma_Flip___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Plasma::Flip *sipCpp = reinterpret_cast<Plasma::Flip *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_Flip));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Plasma::Flip* a0;
        int a0State = 0;

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

#line 352 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Plasma::Flip::Int() == a0->operator Plasma::Flip::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 5837 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
            sipReleaseType(const_cast<Plasma::Flip *>(a0),sipType_Plasma_Flip,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_plasma,eq_slot,sipType_Plasma_Flip,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Plasma_Flip___invert__(PyObject *);}
static PyObject *slot_Plasma_Flip___invert__(PyObject *sipSelf)
{
    Plasma::Flip *sipCpp = reinterpret_cast<Plasma::Flip *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_Flip));

    if (!sipCpp)
        return 0;


    {
        {
            Plasma::Flip*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Plasma::Flip(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        Plasma::Flip* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Plasma_Flip, &a0, &a0State, &a1))
        {
            Plasma::Flip*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Plasma::Flip((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Plasma_Flip,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        Plasma::Flip* a0;
        int a0State = 0;
        Plasma::Flip* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Plasma_Flip, &a0, &a0State, sipType_Plasma_Flip, &a1, &a1State))
        {
            Plasma::Flip*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Plasma::Flip((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Plasma_Flip,a0State);
            sipReleaseType(a1,sipType_Plasma_Flip,a1State);

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

    {
        Plasma::Flip* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Plasma_Flip, &a0, &a0State, &a1))
        {
            Plasma::Flip*sipRes = 0;

#line 346 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new Plasma::Flip(*a0 ^ a1);
#line 5946 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
            sipReleaseType(a0,sipType_Plasma_Flip,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        Plasma::Flip* a0;
        int a0State = 0;
        Plasma::Flip* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Plasma_Flip, &a0, &a0State, sipType_Plasma_Flip, &a1, &a1State))
        {
            Plasma::Flip*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Plasma::Flip((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Plasma_Flip,a0State);
            sipReleaseType(a1,sipType_Plasma_Flip,a1State);

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

    {
        Plasma::Flip* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Plasma_Flip, &a0, &a0State, &a1))
        {
            Plasma::Flip*sipRes = 0;

#line 341 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new Plasma::Flip(*a0 | a1);
#line 5998 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
            sipReleaseType(a0,sipType_Plasma_Flip,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Plasma_Flip___int__(PyObject *);}
static PyObject *slot_Plasma_Flip___int__(PyObject *sipSelf)
{
    Plasma::Flip *sipCpp = reinterpret_cast<Plasma::Flip *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_Flip));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

    Plasma::Flip *sipCpp = reinterpret_cast<Plasma::Flip *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_Flip));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Plasma::Flip* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Plasma_Flip, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Plasma::Flip::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Plasma_Flip,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    Plasma::Flip *sipCpp = reinterpret_cast<Plasma::Flip *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_Flip));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Plasma::Flip* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Plasma_Flip, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Plasma::Flip::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Plasma_Flip,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    Plasma::Flip *sipCpp = reinterpret_cast<Plasma::Flip *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_Flip));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

    delete reinterpret_cast<Plasma::Flip *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Plasma_Flip(SIP_SSIZE_T);}
static void *array_Plasma_Flip(SIP_SSIZE_T sipNrElem)
{
    return new Plasma::Flip[sipNrElem];
}


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


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


extern "C" {static void *init_type_Plasma_Flip(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Plasma_Flip(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Plasma::Flip *sipCpp = 0;

    {
        const Plasma::Flip* a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_Plasma_Flip(PyObject *, void **, int *, PyObject *);}
static int convertTo_Plasma_Flip(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    Plasma::Flip **sipCppPtr = reinterpret_cast<Plasma::Flip **>(sipCppPtrV);

#line 379 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a Plasma::Flip is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Plasma_FlipDirection)) ||
            sipCanConvertToType(sipPy, sipType_Plasma_Flip, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Plasma_FlipDirection)))
{
    *sipCppPtr = new Plasma::Flip(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<Plasma::Flip *>(sipConvertToType(sipPy, sipType_Plasma_Flip, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 6293 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Plasma_Flip[] = {
    {(void *)slot_Plasma_Flip___bool__, bool_slot},
    {(void *)slot_Plasma_Flip___ne__, ne_slot},
    {(void *)slot_Plasma_Flip___eq__, eq_slot},
    {(void *)slot_Plasma_Flip___invert__, invert_slot},
    {(void *)slot_Plasma_Flip___and__, and_slot},
    {(void *)slot_Plasma_Flip___xor__, xor_slot},
    {(void *)slot_Plasma_Flip___or__, or_slot},
    {(void *)slot_Plasma_Flip___int__, int_slot},
    {(void *)slot_Plasma_Flip___ixor__, ixor_slot},
    {(void *)slot_Plasma_Flip___ior__, ior_slot},
    {(void *)slot_Plasma_Flip___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_plasma_Plasma_Flip = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Plasma__Flip,
        {0}
    },
    {
        sipNameNr_Flip,
        {1, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Plasma_Flip,
    init_type_Plasma_Flip,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Plasma_Flip,
    assign_Plasma_Flip,
    array_Plasma_Flip,
    copy_Plasma_Flip,
    release_Plasma_Flip,
    cast_Plasma_Flip,
    convertTo_Plasma_Flip,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};




extern "C" {static int slot_Plasma_Constraints___bool__(PyObject *);}
static int slot_Plasma_Constraints___bool__(PyObject *sipSelf)
{
    Plasma::Constraints *sipCpp = reinterpret_cast<Plasma::Constraints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_Constraints));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 370 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Plasma::Constraints::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 6389 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_Plasma_Constraints___ne__(PyObject *,PyObject *);}
static PyObject *slot_Plasma_Constraints___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Plasma::Constraints *sipCpp = reinterpret_cast<Plasma::Constraints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_Constraints));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Plasma::Constraints* a0;
        int a0State = 0;

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

#line 361 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Plasma::Constraints::Int() != a0->operator Plasma::Constraints::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 6423 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
            sipReleaseType(const_cast<Plasma::Constraints *>(a0),sipType_Plasma_Constraints,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_plasma,ne_slot,sipType_Plasma_Constraints,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Plasma_Constraints___eq__(PyObject *,PyObject *);}
static PyObject *slot_Plasma_Constraints___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Plasma::Constraints *sipCpp = reinterpret_cast<Plasma::Constraints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_Constraints));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Plasma::Constraints* a0;
        int a0State = 0;

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

#line 352 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Plasma::Constraints::Int() == a0->operator Plasma::Constraints::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 6463 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
            sipReleaseType(const_cast<Plasma::Constraints *>(a0),sipType_Plasma_Constraints,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_plasma,eq_slot,sipType_Plasma_Constraints,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Plasma_Constraints___invert__(PyObject *);}
static PyObject *slot_Plasma_Constraints___invert__(PyObject *sipSelf)
{
    Plasma::Constraints *sipCpp = reinterpret_cast<Plasma::Constraints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_Constraints));

    if (!sipCpp)
        return 0;


    {
        {
            Plasma::Constraints*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Plasma::Constraints(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        Plasma::Constraints* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Plasma_Constraints, &a0, &a0State, &a1))
        {
            Plasma::Constraints*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Plasma::Constraints((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Plasma_Constraints,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        Plasma::Constraints* a0;
        int a0State = 0;
        Plasma::Constraints* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Plasma_Constraints, &a0, &a0State, sipType_Plasma_Constraints, &a1, &a1State))
        {
            Plasma::Constraints*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Plasma::Constraints((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Plasma_Constraints,a0State);
            sipReleaseType(a1,sipType_Plasma_Constraints,a1State);

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

    {
        Plasma::Constraints* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Plasma_Constraints, &a0, &a0State, &a1))
        {
            Plasma::Constraints*sipRes = 0;

#line 346 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new Plasma::Constraints(*a0 ^ a1);
#line 6572 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
            sipReleaseType(a0,sipType_Plasma_Constraints,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        Plasma::Constraints* a0;
        int a0State = 0;
        Plasma::Constraints* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Plasma_Constraints, &a0, &a0State, sipType_Plasma_Constraints, &a1, &a1State))
        {
            Plasma::Constraints*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Plasma::Constraints((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Plasma_Constraints,a0State);
            sipReleaseType(a1,sipType_Plasma_Constraints,a1State);

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

    {
        Plasma::Constraints* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Plasma_Constraints, &a0, &a0State, &a1))
        {
            Plasma::Constraints*sipRes = 0;

#line 341 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new Plasma::Constraints(*a0 | a1);
#line 6624 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
            sipReleaseType(a0,sipType_Plasma_Constraints,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Plasma_Constraints___int__(PyObject *);}
static PyObject *slot_Plasma_Constraints___int__(PyObject *sipSelf)
{
    Plasma::Constraints *sipCpp = reinterpret_cast<Plasma::Constraints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_Constraints));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

    Plasma::Constraints *sipCpp = reinterpret_cast<Plasma::Constraints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_Constraints));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Plasma::Constraints* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Plasma_Constraints, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Plasma::Constraints::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Plasma_Constraints,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    Plasma::Constraints *sipCpp = reinterpret_cast<Plasma::Constraints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_Constraints));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Plasma::Constraints* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Plasma_Constraints, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Plasma::Constraints::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Plasma_Constraints,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    Plasma::Constraints *sipCpp = reinterpret_cast<Plasma::Constraints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Plasma_Constraints));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

    delete reinterpret_cast<Plasma::Constraints *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Plasma_Constraints(SIP_SSIZE_T);}
static void *array_Plasma_Constraints(SIP_SSIZE_T sipNrElem)
{
    return new Plasma::Constraints[sipNrElem];
}


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


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


extern "C" {static void *init_type_Plasma_Constraints(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Plasma_Constraints(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Plasma::Constraints *sipCpp = 0;

    {
        const Plasma::Constraints* a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_Plasma_Constraints(PyObject *, void **, int *, PyObject *);}
static int convertTo_Plasma_Constraints(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    Plasma::Constraints **sipCppPtr = reinterpret_cast<Plasma::Constraints **>(sipCppPtrV);

#line 379 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a Plasma::Constraints is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Plasma_Constraint)) ||
            sipCanConvertToType(sipPy, sipType_Plasma_Constraints, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Plasma_Constraint)))
{
    *sipCppPtr = new Plasma::Constraints(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<Plasma::Constraints *>(sipConvertToType(sipPy, sipType_Plasma_Constraints, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 6919 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Plasma_Constraints[] = {
    {(void *)slot_Plasma_Constraints___bool__, bool_slot},
    {(void *)slot_Plasma_Constraints___ne__, ne_slot},
    {(void *)slot_Plasma_Constraints___eq__, eq_slot},
    {(void *)slot_Plasma_Constraints___invert__, invert_slot},
    {(void *)slot_Plasma_Constraints___and__, and_slot},
    {(void *)slot_Plasma_Constraints___xor__, xor_slot},
    {(void *)slot_Plasma_Constraints___or__, or_slot},
    {(void *)slot_Plasma_Constraints___int__, int_slot},
    {(void *)slot_Plasma_Constraints___ixor__, ixor_slot},
    {(void *)slot_Plasma_Constraints___ior__, ior_slot},
    {(void *)slot_Plasma_Constraints___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_plasma_Plasma_Constraints = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Plasma__Constraints,
        {0}
    },
    {
        sipNameNr_Constraints,
        {1, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Plasma_Constraints,
    init_type_Plasma_Constraints,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Plasma_Constraints,
    assign_Plasma_Constraints,
    array_Plasma_Constraints,
    copy_Plasma_Constraints,
    release_Plasma_Constraints,
    cast_Plasma_Constraints,
    convertTo_Plasma_Constraints,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};


#line 35 "/usr/share/python-sip/PyQt4/QtGui/qimage.sip"
#include <qimage.h>
#line 6996 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qcolor.sip"
#include <qcolor.h>
#line 6999 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 7002 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 168 "/usr/share/python-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 7005 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 7008 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 7011 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qfont.sip"
#include <qfont.h>
#line 7014 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 7017 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qpainter.sip"
#include <qpainter.h>
#line 7020 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/plasma/svg.sip"
#include <plasma/svg.h>
#line 7023 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"


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

    {
        const QString* a0;
        int a0State = 0;
        const QFont* a1;
        Plasma::Svg* a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J9J8", sipType_QString,&a0, &a0State, sipType_QFont, &a1, sipType_Plasma_Svg, &a2))
        {
            QPixmap*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QPixmap(Plasma::PaintUtils::texturedText(*a0,*a1,a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        QPixmap* a0;
        QPixmap* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9", sipType_QPixmap, &a0, sipType_QPixmap, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            Plasma::PaintUtils::centerPixmaps(*a0,*a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QPainter* a0;
        const QRectF* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8J9", sipType_QPainter, &a0, sipType_QRectF, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            Plasma::PaintUtils::drawHalo(a0,*a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QString* a0;
        int a0State = 0;
        const QFont* a1;
        QColor* a2;
        int a2State = 0;
        QColor* a3;
        int a3State = 0;
        QPoint a4def = QPoint(1,1);
        QPoint* a4 = &a4def;
        int a5 = 2;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J9J1J1|J9i", sipType_QString,&a0, &a0State, sipType_QFont, &a1, sipType_QColor, &a2, &a2State, sipType_QColor, &a3, &a3State, sipType_QPoint, &a4, &a5))
        {
            QPixmap*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QPixmap(Plasma::PaintUtils::shadowText(*a0,*a1,*a2,*a3,*a4,a5));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QString,a0State);
            sipReleaseType(a2,sipType_QColor,a2State);
            sipReleaseType(a3,sipType_QColor,a3State);

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

    {
        QString* a0;
        int a0State = 0;
        QColor* a1;
        int a1State = 0;
        QColor* a2;
        int a2State = 0;
        QPoint a3def = QPoint(1,1);
        QPoint* a3 = &a3def;
        int a4 = 2;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1J1|J9i", sipType_QString,&a0, &a0State, sipType_QColor, &a1, &a1State, sipType_QColor, &a2, &a2State, sipType_QPoint, &a3, &a4))
        {
            QPixmap*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QPixmap(Plasma::PaintUtils::shadowText(*a0,*a1,*a2,*a3,a4));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QString,a0State);
            sipReleaseType(a1,sipType_QColor,a1State);
            sipReleaseType(a2,sipType_QColor,a2State);

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

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

    return NULL;
}


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

    {
        const QPixmap* a0;
        const QPixmap* a1;
        qreal a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9d", sipType_QPixmap, &a0, sipType_QPixmap, &a1, &a2))
        {
            QPixmap*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QPixmap(Plasma::PaintUtils::transition(*a0,*a1,a2));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QRectF* a0;
        qreal a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9d", sipType_QRectF, &a0, &a1))
        {
            QPainterPath*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QPainterPath(Plasma::PaintUtils::roundedRectangle(*a0,a1));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        QImage* a0;
        int a1;
        const QColor* a2;
        int a2State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9iJ1", sipType_QImage, &a0, &a1, sipType_QColor, &a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            Plasma::PaintUtils::shadowBlur(*a0,a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QColor *>(a2),sipType_QColor,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


static PyMethodDef methods_Plasma_PaintUtils[] = {
    {SIP_MLNAME_CAST(sipName_centerPixmaps), meth_Plasma_PaintUtils_centerPixmaps, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_drawHalo), meth_Plasma_PaintUtils_drawHalo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_roundedRectangle), meth_Plasma_PaintUtils_roundedRectangle, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_shadowBlur), meth_Plasma_PaintUtils_shadowBlur, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_shadowText), meth_Plasma_PaintUtils_shadowText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_texturedText), meth_Plasma_PaintUtils_texturedText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_transition), meth_Plasma_PaintUtils_transition, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_plasma_Plasma_PaintUtils = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Plasma__PaintUtils,
        {0}
    },
    {
        sipNameNr_PaintUtils,
        {1, 255, 0},
        7, methods_Plasma_PaintUtils,
        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
},
    0,
    0,
    0
};


#line 39 "/usr/share/python-sip/PyQt4/QtGui/qgraphicsview.sip"
#include <qgraphicsview.h>
#line 7330 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 39 "/usr/share/python-sip/PyQt4/QtGui/qgraphicsitem.sip"
#include <qgraphicsitem.h>
#line 7333 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7336 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 7339 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qmenu.sip"
#include <qmenu.h>
#line 7342 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 7345 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 7348 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 7351 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/plasma/appletscript.sip"
#include <plasma/scripting/appletscript.h>
#line 7354 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 55 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/plasma/applet.sip"
#include <plasma/applet.h>
#line 7357 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/plasma/dataenginescript.sip"
#include <plasma/scripting/dataenginescript.h>
#line 7360 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/plasma/dataengine.sip"
#include <plasma/dataengine.h>
#line 7363 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/plasma/runnerscript.sip"
#include <plasma/scripting/runnerscript.h>
#line 7366 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 106 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/plasma/abstractrunner.sip"
#include <plasma/abstractrunner.h>
#line 7369 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 340 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 7372 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/plasma/packagestructure.sip"
#include <plasma/packagestructure.h>
#line 7375 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/plasma/wallpaperscript.sip"
#include <plasma/scripting/wallpaperscript.h>
#line 7378 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/plasma/wallpaper.sip"
#include <plasma/wallpaper.h>
#line 7381 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/plasma/sipplasmapart7.cpp"


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

    {
        uint a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = Plasma::isPluginVersionCompatible(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            const char*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Plasma::versionString();
            Py_END_ALLOW_THREADS

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

            return SIPBytes_FromString(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            uint sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Plasma::versionRelease();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            uint sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Plasma::versionMinor();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            uint sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Plasma::versionMajor();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            uint sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Plasma::version();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        Plasma::ComponentType a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1E", sipType_QString,&a0, &a0State, sipType_Plasma_ComponentType, &a1))
        {
            Plasma::PackageStructure::Ptr*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Plasma::PackageStructure::Ptr(Plasma::packageStructure(*a0,a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        Plasma::Applet* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J8", sipType_QString,&a0, &a0State, sipType_Plasma_Applet, &a1))
        {
            Plasma::AppletScript*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Plasma::loadScriptEngine(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    {
        const QString* a0;
        int a0State = 0;
        Plasma::DataEngine* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J8", sipType_QString,&a0, &a0State, sipType_Plasma_DataEngine, &a1))
        {
            Plasma::DataEngineScript*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Plasma::loadScriptEngine(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    {
        const QString* a0;
        int a0State = 0;
        Plasma::AbstractRunner* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J8", sipType_QString,&a0, &a0State, sipType_Plasma_AbstractRunner, &a1))
        {
            Plasma::RunnerScript*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Plasma::loadScriptEngine(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    {
        const QString* a0;
        int a0State = 0;
        Plasma::Wallpaper* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J8", sipType_QString,&a0, &a0State, sipType_Plasma_Wallpaper, &a1))
        {
            Plasma::WallpaperScript*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Plasma::loadScriptEngine(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        Plasma::ComponentTypes* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(Plasma::knownLanguages(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Plasma_ComponentTypes,a0State);

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

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

    return NULL;
}


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

    {
        QMenu* a0;
        const QString& a1def = QString();
        const QString* a1 = &a1def;
        int a1State = 0;
        QObject* a2 = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8|J1J:", sipType_QMenu, &a0, sipType_QString,&a1, &a1State, sipType_QObject, &a2))
        {
            QList<QAction*>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QAction*>(Plasma::actionsFromMenu(a0,*a1,a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


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

    {
        const QGraphicsItem* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_QGraphicsItem, &a0))
        {
            QGraphicsView*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Plasma::viewFor(a0);
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Plasma::Location a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_Plasma_Location, &a0))
        {
            Plasma::Direction sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Plasma::locationToInverseDirection(a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Plasma_Direction);
        }
    }

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

    return NULL;
}


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

    {
        Plasma::Location a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_Plasma_Location, &a0))
        {
            Plasma::Direction sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Plasma::locationToDirection(a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Plasma_Direction);
        }
    }

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

    return NULL;
}


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

    {
        Plasma::ZoomLevel a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_Plasma_ZoomLevel, &a0))
        {
            qreal sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Plasma::scalingFactor(a0);
            Py_END_ALLOW_THREADS

            return PyFloat_FromDouble(sipRes);
        }
    }

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

    return NULL;
}


static PyMethodDef methods_Plasma[] = {
    {SIP_MLNAME_CAST(sipName_actionsFromMenu), meth_Plasma_actionsFromMenu, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isPluginVersionCompatible), meth_Plasma_isPluginVersionCompatible, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_knownLanguages), meth_Plasma_knownLanguages, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_loadScriptEngine), meth_Plasma_loadScriptEngine, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_locationToDirection), meth_Plasma_locationToDirection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_locationToInverseDirection), meth_Plasma_locationToInverseDirection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_packageStructure), meth_Plasma_packageStructure, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_scalingFactor), meth_Plasma_scalingFactor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_version), meth_Plasma_version, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_versionMajor), meth_Plasma_versionMajor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_versionMinor), meth_Plasma_versionMinor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_versionRelease), meth_Plasma_versionRelease, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_versionString), meth_Plasma_versionString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_viewFor), meth_Plasma_viewFor, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Plasma[] = {
    {sipName_AcceptingInputStatus, static_cast<int>(Plasma::AcceptingInputStatus), 83},
    {sipName_ActiveStatus, static_cast<int>(Plasma::ActiveStatus), 83},
    {sipName_AlignToHour, static_cast<int>(Plasma::AlignToHour), 81},
    {sipName_AlignToMinute, static_cast<int>(Plasma::AlignToMinute), 81},
    {sipName_AllConstraints, static_cast<int>(Plasma::AllConstraints), 41},
    {sipName_AnimatorComponent, static_cast<int>(Plasma::AnimatorComponent), 38},
    {sipName_AppletComponent, static_cast<int>(Plasma::AppletComponent), 38},
    {sipName_AppletType, static_cast<int>(Plasma::AppletType), 84},
    {sipName_BottomEdge, static_cast<int>(Plasma::BottomEdge), 87},
    {sipName_BottomMargin, static_cast<int>(Plasma::BottomMargin), 88},
    {sipName_BottomPosedLeftAlignedPopup, static_cast<int>(Plasma::BottomPosedLeftAlignedPopup), 100},
    {sipName_BottomPosedRightAlignedPopup, static_cast<int>(Plasma::BottomPosedRightAlignedPopup), 100},
    {sipName_BottomPositioned, static_cast<int>(Plasma::BottomPositioned), 101},
    {sipName_ButtonCancel, static_cast<int>(Plasma::ButtonCancel), 89},
    {sipName_ButtonNo, static_cast<int>(Plasma::ButtonNo), 89},
    {sipName_ButtonNone, static_cast<int>(Plasma::ButtonNone), 89},
    {sipName_ButtonOk, static_cast<int>(Plasma::ButtonOk), 89},
    {sipName_ButtonYes, static_cast<int>(Plasma::ButtonYes), 89},
    {sipName_CenterPositioned, static_cast<int>(Plasma::CenterPositioned), 101},
    {sipName_ConstrainedSquare, static_cast<int>(Plasma::ConstrainedSquare), 26},
    {sipName_ContainmentComponent, static_cast<int>(Plasma::ContainmentComponent), 38},
    {sipName_ContextConstraint, static_cast<int>(Plasma::ContextConstraint), 41},
    {sipName_DataEngineComponent, static_cast<int>(Plasma::DataEngineComponent), 38},
    {sipName_Desktop, static_cast<int>(Plasma::Desktop), 87},
    {sipName_DesktopZoom, static_cast<int>(Plasma::DesktopZoom), 148},
    {sipName_Down, static_cast<int>(Plasma::Down), 63},
    {sipName_FixedSize, static_cast<int>(Plasma::FixedSize), 26},
    {sipName_Floating, static_cast<int>(Plasma::Floating), 87},
    {sipName_FloatingPopup, static_cast<int>(Plasma::FloatingPopup), 100},
    {sipName_FormFactorConstraint, static_cast<int>(Plasma::FormFactorConstraint), 41},
    {sipName_FullScreen, static_cast<int>(Plasma::FullScreen), 87},
    {sipName_GenericComponent, static_cast<int>(Plasma::GenericComponent), 38},
    {sipName_GroupZoom, static_cast<int>(Plasma::GroupZoom), 148},
    {sipName_Horizontal, static_cast<int>(Plasma::Horizontal), 71},
    {sipName_HorizontalFlip, static_cast<int>(Plasma::HorizontalFlip), 70},
    {sipName_IgnoreAspectRatio, static_cast<int>(Plasma::IgnoreAspectRatio), 26},
    {sipName_ImmutableConstraint, static_cast<int>(Plasma::ImmutableConstraint), 41},
    {sipName_InvalidAspectRatioMode, static_cast<int>(Plasma::InvalidAspectRatioMode), 26},
    {sipName_InvalidCredentials, static_cast<int>(Plasma::InvalidCredentials), 136},
    {sipName_KeepAspectRatio, static_cast<int>(Plasma::KeepAspectRatio), 26},
    {sipName_Left, static_cast<int>(Plasma::Left), 63},
    {sipName_LeftEdge, static_cast<int>(Plasma::LeftEdge), 87},
    {sipName_LeftMargin, static_cast<int>(Plasma::LeftMargin), 88},
    {sipName_LeftPosedBottomAlignedPopup, static_cast<int>(Plasma::LeftPosedBottomAlignedPopup), 100},
    {sipName_LeftPosedTopAlignedPopup, static_cast<int>(Plasma::LeftPosedTopAlignedPopup), 100},
    {sipName_LeftPositioned, static_cast<int>(Plasma::LeftPositioned), 101},
    {sipName_LineEditType, static_cast<int>(Plasma::LineEditType), 84},
    {sipName_LocationConstraint, static_cast<int>(Plasma::LocationConstraint), 41},
    {sipName_MediaCenter, static_cast<int>(Plasma::MediaCenter), 71},
    {sipName_Mutable, static_cast<int>(Plasma::Mutable), 80},
    {sipName_NeedsAttentionStatus, static_cast<int>(Plasma::NeedsAttentionStatus), 83},
    {sipName_NoAlignment, static_cast<int>(Plasma::NoAlignment), 81},
    {sipName_NoAnnouncement, static_cast<int>(Plasma::NoAnnouncement), 20},
    {sipName_NoConstraint, static_cast<int>(Plasma::NoConstraint), 41},
    {sipName_NoFlip, static_cast<int>(Plasma::NoFlip), 70},
    {sipName_OverviewZoom, static_cast<int>(Plasma::OverviewZoom), 148},
    {sipName_PassiveStatus, static_cast<int>(Plasma::PassiveStatus), 83},
    {sipName_Planar, static_cast<int>(Plasma::Planar), 71},
    {sipName_PopupConstraint, static_cast<int>(Plasma::PopupConstraint), 41},
    {sipName_Right, static_cast<int>(Plasma::Right), 63},
    {sipName_RightEdge, static_cast<int>(Plasma::RightEdge), 87},
    {sipName_RightMargin, static_cast<int>(Plasma::RightMargin), 88},
    {sipName_RightPosedBottomAlignedPopup, static_cast<int>(Plasma::RightPosedBottomAlignedPopup), 100},
    {sipName_RightPosedTopAlignedPopup, static_cast<int>(Plasma::RightPosedTopAlignedPopup), 100},
    {sipName_RightPositioned, static_cast<int>(Plasma::RightPositioned), 101},
    {sipName_RunnerComponent, static_cast<int>(Plasma::RunnerComponent), 38},
    {sipName_ScreenConstraint, static_cast<int>(Plasma::ScreenConstraint), 41},
    {sipName_SizeConstraint, static_cast<int>(Plasma::SizeConstraint), 41},
    {sipName_Square, static_cast<int>(Plasma::Square), 26},
    {sipName_StartupCompletedConstraint, static_cast<int>(Plasma::StartupCompletedConstraint), 41},
    {sipName_SystemImmutable, static_cast<int>(Plasma::SystemImmutable), 80},
    {sipName_TopEdge, static_cast<int>(Plasma::TopEdge), 87},
    {sipName_TopMargin, static_cast<int>(Plasma::TopMargin), 88},
    {sipName_TopPosedLeftAlignedPopup, static_cast<int>(Plasma::TopPosedLeftAlignedPopup), 100},
    {sipName_TopPosedRightAlignedPopup, static_cast<int>(Plasma::TopPosedRightAlignedPopup), 100},
    {sipName_TopPositioned, static_cast<int>(Plasma::TopPositioned), 101},
    {sipName_TrustedCredentials, static_cast<int>(Plasma::TrustedCredentials), 136},
    {sipName_UltimateCredentials, static_cast<int>(Plasma::UltimateCredentials), 136},
    {sipName_UnknownCredentials, static_cast<int>(Plasma::UnknownCredentials), 136},
    {sipName_UnknownStatus, static_cast<int>(Plasma::UnknownStatus), 83},
    {sipName_Up, static_cast<int>(Plasma::Up), 63},
    {sipName_UserImmutable, static_cast<int>(Plasma::UserImmutable), 80},
    {sipName_ValidCredentials, static_cast<int>(Plasma::ValidCredentials), 136},
    {sipName_Vertical, static_cast<int>(Plasma::Vertical), 71},
    {sipName_VerticalFlip, static_cast<int>(Plasma::VerticalFlip), 70},
    {sipName_WallpaperComponent, static_cast<int>(Plasma::WallpaperComponent), 38},
    {sipName_ZeroconfAnnouncement, static_cast<int>(Plasma::ZeroconfAnnouncement), 20},
    {sipName_ZoomIn, static_cast<int>(Plasma::ZoomIn), 147},
    {sipName_ZoomOut, static_cast<int>(Plasma::ZoomOut), 147},
};


pyqt4ClassTypeDef sipTypeDef_plasma_Plasma = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Plasma,
        {0}
    },
    {
        sipNameNr_Plasma,
        {0, 0, 1},
        14, methods_Plasma,
        89, enummembers_Plasma,
        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
},
    0,
    0,
    0
};
