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

#include "sipAPIplasma.h"

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/accessappletjob.sip"
#include <plasma/accessappletjob.h>
#line 12 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"

#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 16 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 19 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/applet.sip"
#include <plasma/applet.h>
#line 22 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 589 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 31 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 37 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 40 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 46 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 64 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 67 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 70 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 73 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 public method for every protected method visible from
     * this class.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    bool sipProtectVirt_doKill(bool);
    bool sipProtectVirt_doSuspend(bool);
    bool sipProtectVirt_doResume(bool);
    void sipProtect_setCapabilities(KJob::Capabilities);
    void sipProtect_setError(int);
    void sipProtect_setErrorText(const QString&);
    void sipProtect_setProcessedAmount(KJob::Unit,qulonglong);
    void sipProtect_setTotalAmount(KJob::Unit,qulonglong);
    void sipProtect_setPercent(unsigned long);
    void sipProtect_emitResult();
    void sipProtect_emitPercent(qulonglong,qulonglong);
    void sipProtect_emitSpeed(unsigned long);
    void sipProtectVirt_start(bool);

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

public:
    sipSimpleWrapper *sipPySelf;

private:
    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 && sip_plasma_qt_metacast(sipPySelf,sipType_Plasma_AccessAppletJob,_clname)) ? this : Plasma::AccessAppletJob::qt_metacast(_clname);
}

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

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

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

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

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

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

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

    if (!sipMeth)
        return KJob::doKill();

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

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

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

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

    if (!sipMeth)
        return KJob::doSuspend();

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

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

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

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

    if (!sipMeth)
        return KJob::doResume();

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

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

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

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

    if (!sipMeth)
        return KJob::errorString();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

bool sipPlasma_AccessAppletJob::sipProtectVirt_doKill(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KJob::doKill() : doKill());
}

bool sipPlasma_AccessAppletJob::sipProtectVirt_doSuspend(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KJob::doSuspend() : doSuspend());
}

bool sipPlasma_AccessAppletJob::sipProtectVirt_doResume(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KJob::doResume() : doResume());
}

void sipPlasma_AccessAppletJob::sipProtect_setCapabilities(KJob::Capabilities a0)
{
    KJob::setCapabilities(a0);
}

void sipPlasma_AccessAppletJob::sipProtect_setError(int a0)
{
    KJob::setError(a0);
}

void sipPlasma_AccessAppletJob::sipProtect_setErrorText(const QString& a0)
{
    KJob::setErrorText(a0);
}

void sipPlasma_AccessAppletJob::sipProtect_setProcessedAmount(KJob::Unit a0,qulonglong a1)
{
    KJob::setProcessedAmount(a0,a1);
}

void sipPlasma_AccessAppletJob::sipProtect_setTotalAmount(KJob::Unit a0,qulonglong a1)
{
    KJob::setTotalAmount(a0,a1);
}

void sipPlasma_AccessAppletJob::sipProtect_setPercent(unsigned long a0)
{
    KJob::setPercent(a0);
}

void sipPlasma_AccessAppletJob::sipProtect_emitResult()
{
    KJob::emitResult();
}

void sipPlasma_AccessAppletJob::sipProtect_emitPercent(qulonglong a0,qulonglong a1)
{
    KJob::emitPercent(a0,a1);
}

void sipPlasma_AccessAppletJob::sipProtect_emitSpeed(unsigned long a0)
{
    KJob::emitSpeed(a0);
}

void sipPlasma_AccessAppletJob::sipProtectVirt_start(bool sipSelfWasArg)
{
    (sipSelfWasArg ? Plasma::AccessAppletJob::start() : start());
}


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

    {
        sipPlasma_AccessAppletJob *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipPlasma_AccessAppletJob *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipPlasma_AccessAppletJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AccessAppletJob, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipPlasma_AccessAppletJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AccessAppletJob, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipPlasma_AccessAppletJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AccessAppletJob, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipPlasma_AccessAppletJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Plasma_AccessAppletJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipPlasma_AccessAppletJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Plasma_AccessAppletJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipPlasma_AccessAppletJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doKill(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipPlasma_AccessAppletJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doSuspend(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipPlasma_AccessAppletJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doResume(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KJob::Capabilities * a0;
        int a0State = 0;
        sipPlasma_AccessAppletJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Plasma_AccessAppletJob, &sipCpp, sipType_KJob_Capabilities, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setCapabilities(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KJob_Capabilities,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        sipPlasma_AccessAppletJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Plasma_AccessAppletJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(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_AccessAppletJob, sipName_setError, NULL);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        sipPlasma_AccessAppletJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Plasma_AccessAppletJob, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setErrorText(*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_AccessAppletJob, sipName_setErrorText, NULL);

    return NULL;
}


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

    {
        KJob::Unit a0;
        qulonglong a1;
        sipPlasma_AccessAppletJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEo", &sipSelf, sipType_Plasma_AccessAppletJob, &sipCpp, sipType_KJob_Unit, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setProcessedAmount(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_AccessAppletJob, sipName_setProcessedAmount, NULL);

    return NULL;
}


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

    {
        KJob::Unit a0;
        qulonglong a1;
        sipPlasma_AccessAppletJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEo", &sipSelf, sipType_Plasma_AccessAppletJob, &sipCpp, sipType_KJob_Unit, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setTotalAmount(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_AccessAppletJob, sipName_setTotalAmount, NULL);

    return NULL;
}


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

    {
        unsigned long a0;
        sipPlasma_AccessAppletJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_Plasma_AccessAppletJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPercent(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_AccessAppletJob, sipName_setPercent, NULL);

    return NULL;
}


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

    {
        sipPlasma_AccessAppletJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Plasma_AccessAppletJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_emitResult();
            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_emitResult, NULL);

    return NULL;
}


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

    {
        qulonglong a0;
        qulonglong a1;
        sipPlasma_AccessAppletJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Boo", &sipSelf, sipType_Plasma_AccessAppletJob, &sipCpp, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_emitPercent(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_AccessAppletJob, sipName_emitPercent, NULL);

    return NULL;
}


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

    {
        unsigned long a0;
        sipPlasma_AccessAppletJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_Plasma_AccessAppletJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_emitSpeed(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_AccessAppletJob, sipName_emitSpeed, NULL);

    return NULL;
}


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

    {
        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));

    {
        sipPlasma_AccessAppletJob *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_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 sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipPlasma_AccessAppletJob *>(sipCppV);
    else
        delete reinterpret_cast<Plasma::AccessAppletJob *>(sipCppV);

    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_Plasma_AccessAppletJob(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_childEvent), meth_Plasma_AccessAppletJob_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Plasma_AccessAppletJob_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Plasma_AccessAppletJob_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Plasma_AccessAppletJob_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doKill), meth_Plasma_AccessAppletJob_doKill, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doResume), meth_Plasma_AccessAppletJob_doResume, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doSuspend), meth_Plasma_AccessAppletJob_doSuspend, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitPercent), meth_Plasma_AccessAppletJob_emitPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitResult), meth_Plasma_AccessAppletJob_emitResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitSpeed), meth_Plasma_AccessAppletJob_emitSpeed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Plasma_AccessAppletJob_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Plasma_AccessAppletJob_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCapabilities), meth_Plasma_AccessAppletJob_setCapabilities, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Plasma_AccessAppletJob_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorText), meth_Plasma_AccessAppletJob_setErrorText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPercent), meth_Plasma_AccessAppletJob_setPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProcessedAmount), meth_Plasma_AccessAppletJob_setProcessedAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTotalAmount), meth_Plasma_AccessAppletJob_setTotalAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_start), meth_Plasma_AccessAppletJob_start, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Plasma_AccessAppletJob_timerEvent, 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},
        21, 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_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
},
    &Plasma::AccessAppletJob::staticMetaObject,
    0,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/abstracttoolbox.sip"
#include <plasma/abstracttoolbox.h>
#line 1226 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/containment.sip"
#include <plasma/containment.h>
#line 1230 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1233 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1236 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1239 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1242 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 1245 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1248 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kplugininfo.sip"
#include <kplugininfo.h>
#line 1251 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1254 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qaction.sip"
#include <qaction.h>
#line 1257 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1260 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 140 "/usr/local/share/py-sip/QtGui/qgraphicssceneevent.sip"
#include <qgraphicssceneevent.h>
#line 1263 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 448 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1266 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 223 "/usr/local/share/py-sip/QtGui/qgraphicssceneevent.sip"
#include <qgraphicssceneevent.h>
#line 1269 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 244 "/usr/local/share/py-sip/QtGui/qgraphicssceneevent.sip"
#include <qgraphicssceneevent.h>
#line 1272 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 459 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1275 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 367 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1278 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 426 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1281 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1284 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 97 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 1287 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 39 "/usr/local/share/py-sip/QtGui/qgraphicsitem.sip"
#include <qgraphicsitem.h>
#line 1290 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 103 "/usr/local/share/py-sip/QtCore/qsize.sip"
#include <qsize.h>
#line 1293 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qstyleoption.sip"
#include <qstyleoption.h>
#line 1296 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 1299 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 164 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 1302 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 1305 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 1755 "/usr/local/share/py-sip/QtGui/qstyleoption.sip"
#include <qstyleoption.h>
#line 1308 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 1311 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1314 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 1317 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 187 "/usr/local/share/py-sip/QtGui/qgraphicswidget.sip"
#include <qgraphicswidget.h>
#line 1320 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1323 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qpalette.sip"
#include <qpalette.h>
#line 1326 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qfont.sip"
#include <qfont.h>
#line 1329 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qstyle.sip"
#include <qstyle.h>
#line 1332 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 33 "/usr/local/share/py-sip/QtGui/qgraphicslayout.sip"
#include <qgraphicslayout.h>
#line 1335 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1338 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1341 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1344 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1347 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1350 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1353 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1356 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1359 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1362 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1365 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1368 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 33 "/usr/local/share/py-sip/QtGui/qgraphicstransform.sip"
#include <qgraphicstransform.h>
#line 1371 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 39 "/usr/local/share/py-sip/QtGui/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 1374 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 1030 "/usr/local/share/py-sip/QtGui/qgraphicsitem.sip"
#include <qgraphicsitem.h>
#line 1377 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 39 "/usr/local/share/py-sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 1380 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qregion.sip"
#include <qregion.h>
#line 1383 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qsize.sip"
#include <qsize.h>
#line 1386 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1389 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 83 "/usr/local/share/py-sip/QtGui/qgraphicssceneevent.sip"
#include <qgraphicssceneevent.h>
#line 1392 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 53 "/usr/local/share/py-sip/QtGui/qgraphicssceneevent.sip"
#include <qgraphicssceneevent.h>
#line 1395 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 339 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1398 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 499 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1401 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 193 "/usr/local/share/py-sip/QtGui/qgraphicssceneevent.sip"
#include <qgraphicssceneevent.h>
#line 1404 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 110 "/usr/local/share/py-sip/QtGui/qgraphicssceneevent.sip"
#include <qgraphicssceneevent.h>
#line 1407 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 343 "/usr/local/share/py-sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 1410 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qmatrix.sip"
#include <qmatrix.h>
#line 1413 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1416 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 1419 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 39 "/usr/local/share/py-sip/QtGui/qgraphicsitem.sip"
#include <qgraphicsitem.h>
#line 1422 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 995 "/usr/local/share/py-sip/QtGui/qgraphicsitem.sip"
#include <qgraphicsitem.h>
#line 1425 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 39 "/usr/local/share/py-sip/QtGui/qgraphicsscene.sip"
#include <qgraphicsscene.h>
#line 1428 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 33 "/usr/local/share/py-sip/QtGui/qgraphicslayoutitem.sip"
#include <qgraphicslayoutitem.h>
#line 1431 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 1434 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 public method for every protected method visible from
     * this class.
     */
    void sipProtect_setGraphicsItem(QGraphicsItem *);
    void sipProtect_setOwnedByLayout(bool);
    void sipProtectVirt_contextMenuEvent(bool,QGraphicsSceneContextMenuEvent *);
    void sipProtectVirt_dragEnterEvent(bool,QGraphicsSceneDragDropEvent *);
    void sipProtectVirt_dragLeaveEvent(bool,QGraphicsSceneDragDropEvent *);
    void sipProtectVirt_dragMoveEvent(bool,QGraphicsSceneDragDropEvent *);
    void sipProtectVirt_dropEvent(bool,QGraphicsSceneDragDropEvent *);
    void sipProtectVirt_hoverEnterEvent(bool,QGraphicsSceneHoverEvent *);
    void sipProtectVirt_inputMethodEvent(bool,QInputMethodEvent *);
    QVariant sipProtectVirt_inputMethodQuery(bool,Qt::InputMethodQuery) const;
    void sipProtectVirt_keyPressEvent(bool,QKeyEvent *);
    void sipProtectVirt_keyReleaseEvent(bool,QKeyEvent *);
    void sipProtectVirt_mouseDoubleClickEvent(bool,QGraphicsSceneMouseEvent *);
    void sipProtectVirt_mouseMoveEvent(bool,QGraphicsSceneMouseEvent *);
    void sipProtectVirt_mousePressEvent(bool,QGraphicsSceneMouseEvent *);
    void sipProtectVirt_mouseReleaseEvent(bool,QGraphicsSceneMouseEvent *);
    void sipProtect_prepareGeometryChange();
    bool sipProtectVirt_sceneEventFilter(bool,QGraphicsItem *,QEvent *);
    void sipProtectVirt_wheelEvent(bool,QGraphicsSceneWheelEvent *);
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    void sipProtect_updateMicroFocus();
    void sipProtectVirt_initStyleOption(bool,QStyleOption *) const;
    QSizeF sipProtectVirt_sizeHint(bool,Qt::SizeHint,const QSizeF&) const;
    void sipProtectVirt_updateGeometry(bool);
    QVariant sipProtectVirt_itemChange(bool,QGraphicsItem::GraphicsItemChange,const QVariant&);
    bool sipProtectVirt_sceneEvent(bool,QEvent *);
    bool sipProtectVirt_windowFrameEvent(bool,QEvent *);
    Qt::WindowFrameSection sipProtectVirt_windowFrameSectionAt(bool,const QPointF&) const;
    bool sipProtectVirt_event(bool,QEvent *);
    void sipProtectVirt_changeEvent(bool,QEvent *);
    void sipProtectVirt_closeEvent(bool,QCloseEvent *);
    void sipProtectVirt_focusInEvent(bool,QFocusEvent *);
    bool sipProtectVirt_focusNextPrevChild(bool,bool);
    void sipProtectVirt_focusOutEvent(bool,QFocusEvent *);
    void sipProtectVirt_hideEvent(bool,QHideEvent *);
    void sipProtectVirt_moveEvent(bool,QGraphicsSceneMoveEvent *);
    void sipProtectVirt_polishEvent(bool);
    void sipProtectVirt_resizeEvent(bool,QGraphicsSceneResizeEvent *);
    void sipProtectVirt_showEvent(bool,QShowEvent *);
    void sipProtectVirt_hoverMoveEvent(bool,QGraphicsSceneHoverEvent *);
    void sipProtectVirt_hoverLeaveEvent(bool,QGraphicsSceneHoverEvent *);
    void sipProtectVirt_grabMouseEvent(bool,QEvent *);
    void sipProtectVirt_ungrabMouseEvent(bool,QEvent *);
    void sipProtectVirt_grabKeyboardEvent(bool,QEvent *);
    void sipProtectVirt_ungrabKeyboardEvent(bool,QEvent *);
    Plasma::Containment * sipProtect_containment() const;

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

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 && sip_plasma_qt_metacast(sipPySelf,sipType_Plasma_AbstractToolBox,_clname)) ? this : Plasma::AbstractToolBox::qt_metacast(_clname);
}

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

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

    if (!sipMeth)
        return;

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

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

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

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

    if (!sipMeth)
        return;

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

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

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

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

    if (!sipMeth)
        return 0;

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

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

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

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

    if (!sipMeth)
        return;

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

    sipVH_plasma_35(sipGILState,sipMeth,a0);
}

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

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

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

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

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

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[5]),sipPySelf,NULL,sipName_getContentsMargins);

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

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

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

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

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

    if (!sipMeth)
        return QGraphicsWidget::type();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return QGraphicsWidget::boundingRect();

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

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

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

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

    if (!sipMeth)
        return QGraphicsWidget::shape();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
    {
        QGraphicsWidget::updateGeometry();
        return;
    }

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return QGraphicsWidget::sceneEvent(a0);

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

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

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

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

    if (!sipMeth)
        return QGraphicsWidget::windowFrameEvent(a0);

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

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

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

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

    if (!sipMeth)
        return QGraphicsWidget::windowFrameSectionAt(a0);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return QGraphicsWidget::focusNextPrevChild(a0);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
    {
        QGraphicsWidget::polishEvent();
        return;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    ((sipVH_QtGui_187)(sipModuleAPI_plasma_QtGui->em_virthandlers[187]))(sipGILState,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)
    {
        QGraphicsWidget::grabMouseEvent(a0);
        return;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return QGraphicsItem::contains(a0);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return QGraphicsItem::isObscuredBy(a0);

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

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

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

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

    if (!sipMeth)
        return QGraphicsItem::opaqueArea();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return QGraphicsItem::inputMethodQuery(a0);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

void sipPlasma_AbstractToolBox::sipProtect_setGraphicsItem(QGraphicsItem *a0)
{
    QGraphicsLayoutItem::setGraphicsItem(a0);
}

void sipPlasma_AbstractToolBox::sipProtect_setOwnedByLayout(bool a0)
{
    QGraphicsLayoutItem::setOwnedByLayout(a0);
}

void sipPlasma_AbstractToolBox::sipProtectVirt_contextMenuEvent(bool sipSelfWasArg,QGraphicsSceneContextMenuEvent *a0)
{
    (sipSelfWasArg ? QGraphicsItem::contextMenuEvent(a0) : contextMenuEvent(a0));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_dragEnterEvent(bool sipSelfWasArg,QGraphicsSceneDragDropEvent *a0)
{
    (sipSelfWasArg ? QGraphicsItem::dragEnterEvent(a0) : dragEnterEvent(a0));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_dragLeaveEvent(bool sipSelfWasArg,QGraphicsSceneDragDropEvent *a0)
{
    (sipSelfWasArg ? QGraphicsItem::dragLeaveEvent(a0) : dragLeaveEvent(a0));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_dragMoveEvent(bool sipSelfWasArg,QGraphicsSceneDragDropEvent *a0)
{
    (sipSelfWasArg ? QGraphicsItem::dragMoveEvent(a0) : dragMoveEvent(a0));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_dropEvent(bool sipSelfWasArg,QGraphicsSceneDragDropEvent *a0)
{
    (sipSelfWasArg ? QGraphicsItem::dropEvent(a0) : dropEvent(a0));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_hoverEnterEvent(bool sipSelfWasArg,QGraphicsSceneHoverEvent *a0)
{
    (sipSelfWasArg ? QGraphicsItem::hoverEnterEvent(a0) : hoverEnterEvent(a0));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_inputMethodEvent(bool sipSelfWasArg,QInputMethodEvent *a0)
{
    (sipSelfWasArg ? QGraphicsItem::inputMethodEvent(a0) : inputMethodEvent(a0));
}

QVariant sipPlasma_AbstractToolBox::sipProtectVirt_inputMethodQuery(bool sipSelfWasArg,Qt::InputMethodQuery a0) const
{
    return (sipSelfWasArg ? QGraphicsItem::inputMethodQuery(a0) : inputMethodQuery(a0));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_keyPressEvent(bool sipSelfWasArg,QKeyEvent *a0)
{
    (sipSelfWasArg ? QGraphicsItem::keyPressEvent(a0) : keyPressEvent(a0));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_keyReleaseEvent(bool sipSelfWasArg,QKeyEvent *a0)
{
    (sipSelfWasArg ? QGraphicsItem::keyReleaseEvent(a0) : keyReleaseEvent(a0));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_mouseDoubleClickEvent(bool sipSelfWasArg,QGraphicsSceneMouseEvent *a0)
{
    (sipSelfWasArg ? QGraphicsItem::mouseDoubleClickEvent(a0) : mouseDoubleClickEvent(a0));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_mouseMoveEvent(bool sipSelfWasArg,QGraphicsSceneMouseEvent *a0)
{
    (sipSelfWasArg ? QGraphicsItem::mouseMoveEvent(a0) : mouseMoveEvent(a0));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_mousePressEvent(bool sipSelfWasArg,QGraphicsSceneMouseEvent *a0)
{
    (sipSelfWasArg ? QGraphicsItem::mousePressEvent(a0) : mousePressEvent(a0));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_mouseReleaseEvent(bool sipSelfWasArg,QGraphicsSceneMouseEvent *a0)
{
    (sipSelfWasArg ? QGraphicsItem::mouseReleaseEvent(a0) : mouseReleaseEvent(a0));
}

void sipPlasma_AbstractToolBox::sipProtect_prepareGeometryChange()
{
    QGraphicsItem::prepareGeometryChange();
}

bool sipPlasma_AbstractToolBox::sipProtectVirt_sceneEventFilter(bool sipSelfWasArg,QGraphicsItem *a0,QEvent *a1)
{
    return (sipSelfWasArg ? QGraphicsItem::sceneEventFilter(a0,a1) : sceneEventFilter(a0,a1));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_wheelEvent(bool sipSelfWasArg,QGraphicsSceneWheelEvent *a0)
{
    (sipSelfWasArg ? QGraphicsItem::wheelEvent(a0) : wheelEvent(a0));
}

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

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

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

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

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

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

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

void sipPlasma_AbstractToolBox::sipProtect_updateMicroFocus()
{
    QGraphicsObject::updateMicroFocus();
}

void sipPlasma_AbstractToolBox::sipProtectVirt_initStyleOption(bool sipSelfWasArg,QStyleOption *a0) const
{
    (sipSelfWasArg ? QGraphicsWidget::initStyleOption(a0) : initStyleOption(a0));
}

QSizeF sipPlasma_AbstractToolBox::sipProtectVirt_sizeHint(bool sipSelfWasArg,Qt::SizeHint a0,const QSizeF& a1) const
{
    return (sipSelfWasArg ? QGraphicsWidget::sizeHint(a0,a1) : sizeHint(a0,a1));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_updateGeometry(bool sipSelfWasArg)
{
    (sipSelfWasArg ? QGraphicsWidget::updateGeometry() : updateGeometry());
}

QVariant sipPlasma_AbstractToolBox::sipProtectVirt_itemChange(bool sipSelfWasArg,QGraphicsItem::GraphicsItemChange a0,const QVariant& a1)
{
    return (sipSelfWasArg ? QGraphicsWidget::itemChange(a0,a1) : itemChange(a0,a1));
}

bool sipPlasma_AbstractToolBox::sipProtectVirt_sceneEvent(bool sipSelfWasArg,QEvent *a0)
{
    return (sipSelfWasArg ? QGraphicsWidget::sceneEvent(a0) : sceneEvent(a0));
}

bool sipPlasma_AbstractToolBox::sipProtectVirt_windowFrameEvent(bool sipSelfWasArg,QEvent *a0)
{
    return (sipSelfWasArg ? QGraphicsWidget::windowFrameEvent(a0) : windowFrameEvent(a0));
}

Qt::WindowFrameSection sipPlasma_AbstractToolBox::sipProtectVirt_windowFrameSectionAt(bool sipSelfWasArg,const QPointF& a0) const
{
    return (sipSelfWasArg ? QGraphicsWidget::windowFrameSectionAt(a0) : windowFrameSectionAt(a0));
}

bool sipPlasma_AbstractToolBox::sipProtectVirt_event(bool sipSelfWasArg,QEvent *a0)
{
    return (sipSelfWasArg ? QGraphicsWidget::event(a0) : event(a0));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_changeEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QGraphicsWidget::changeEvent(a0) : changeEvent(a0));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_closeEvent(bool sipSelfWasArg,QCloseEvent *a0)
{
    (sipSelfWasArg ? QGraphicsWidget::closeEvent(a0) : closeEvent(a0));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_focusInEvent(bool sipSelfWasArg,QFocusEvent *a0)
{
    (sipSelfWasArg ? QGraphicsWidget::focusInEvent(a0) : focusInEvent(a0));
}

bool sipPlasma_AbstractToolBox::sipProtectVirt_focusNextPrevChild(bool sipSelfWasArg,bool a0)
{
    return (sipSelfWasArg ? QGraphicsWidget::focusNextPrevChild(a0) : focusNextPrevChild(a0));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_focusOutEvent(bool sipSelfWasArg,QFocusEvent *a0)
{
    (sipSelfWasArg ? QGraphicsWidget::focusOutEvent(a0) : focusOutEvent(a0));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_hideEvent(bool sipSelfWasArg,QHideEvent *a0)
{
    (sipSelfWasArg ? QGraphicsWidget::hideEvent(a0) : hideEvent(a0));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_moveEvent(bool sipSelfWasArg,QGraphicsSceneMoveEvent *a0)
{
    (sipSelfWasArg ? QGraphicsWidget::moveEvent(a0) : moveEvent(a0));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_polishEvent(bool sipSelfWasArg)
{
    (sipSelfWasArg ? QGraphicsWidget::polishEvent() : polishEvent());
}

void sipPlasma_AbstractToolBox::sipProtectVirt_resizeEvent(bool sipSelfWasArg,QGraphicsSceneResizeEvent *a0)
{
    (sipSelfWasArg ? QGraphicsWidget::resizeEvent(a0) : resizeEvent(a0));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_showEvent(bool sipSelfWasArg,QShowEvent *a0)
{
    (sipSelfWasArg ? QGraphicsWidget::showEvent(a0) : showEvent(a0));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_hoverMoveEvent(bool sipSelfWasArg,QGraphicsSceneHoverEvent *a0)
{
    (sipSelfWasArg ? QGraphicsWidget::hoverMoveEvent(a0) : hoverMoveEvent(a0));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_hoverLeaveEvent(bool sipSelfWasArg,QGraphicsSceneHoverEvent *a0)
{
    (sipSelfWasArg ? QGraphicsWidget::hoverLeaveEvent(a0) : hoverLeaveEvent(a0));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_grabMouseEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QGraphicsWidget::grabMouseEvent(a0) : grabMouseEvent(a0));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_ungrabMouseEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QGraphicsWidget::ungrabMouseEvent(a0) : ungrabMouseEvent(a0));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_grabKeyboardEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QGraphicsWidget::grabKeyboardEvent(a0) : grabKeyboardEvent(a0));
}

void sipPlasma_AbstractToolBox::sipProtectVirt_ungrabKeyboardEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QGraphicsWidget::ungrabKeyboardEvent(a0) : ungrabKeyboardEvent(a0));
}

Plasma::Containment * sipPlasma_AbstractToolBox::sipProtect_containment() const
{
    return Plasma::AbstractToolBox::containment();
}


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

    {
        QGraphicsItem * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QGraphicsItem, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setGraphicsItem(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_setGraphicsItem, NULL);

    return NULL;
}


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

    {
        bool a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setOwnedByLayout(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_setOwnedByLayout, NULL);

    return NULL;
}


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

    {
        QGraphicsSceneContextMenuEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QGraphicsSceneContextMenuEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_contextMenuEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QGraphicsSceneDragDropEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QGraphicsSceneDragDropEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_dragEnterEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QGraphicsSceneDragDropEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QGraphicsSceneDragDropEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_dragLeaveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QGraphicsSceneDragDropEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QGraphicsSceneDragDropEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_dragMoveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QGraphicsSceneDragDropEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QGraphicsSceneDragDropEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_dropEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QGraphicsSceneHoverEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QGraphicsSceneHoverEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_hoverEnterEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QInputMethodEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QInputMethodEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_inputMethodEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Qt::InputMethodQuery a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_Qt_InputMethodQuery, &a0))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->sipProtectVirt_inputMethodQuery(sipSelfWasArg,a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        QKeyEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QKeyEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_keyPressEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QKeyEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QKeyEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_keyReleaseEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QGraphicsSceneMouseEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QGraphicsSceneMouseEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_mouseDoubleClickEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QGraphicsSceneMouseEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QGraphicsSceneMouseEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_mouseMoveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QGraphicsSceneMouseEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QGraphicsSceneMouseEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_mousePressEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QGraphicsSceneMouseEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QGraphicsSceneMouseEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_mouseReleaseEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_prepareGeometryChange();
            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_prepareGeometryChange, NULL);

    return NULL;
}


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

    {
        QGraphicsItem * a0;
        QEvent * a1;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QGraphicsItem, &a0, sipType_QEvent, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_sceneEventFilter(sipSelfWasArg,a0,a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QGraphicsSceneWheelEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QGraphicsSceneWheelEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_wheelEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipPlasma_AbstractToolBox *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipPlasma_AbstractToolBox *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_updateMicroFocus();
            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_updateMicroFocus, NULL);

    return NULL;
}


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

    {
        QStyleOption * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QStyleOption, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_initStyleOption(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Qt::SizeHint a0;
        const QSizeF& a1def = QSizeF();
        const QSizeF * a1 = &a1def;
        sipPlasma_AbstractToolBox *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_constraint,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BE|J9", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_Qt_SizeHint, &a0, sipType_QSizeF, &a1))
        {
            QSizeF *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSizeF(sipCpp->sipProtectVirt_sizeHint(sipSelfWasArg,a0,*a1));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        sipPlasma_AbstractToolBox *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QGraphicsItem::GraphicsItemChange a0;
        const QVariant * a1;
        int a1State = 0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ1", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QGraphicsItem_GraphicsItemChange, &a0, sipType_QVariant,&a1, &a1State))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->sipProtectVirt_itemChange(sipSelfWasArg,a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);

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

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_sceneEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_windowFrameEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QPointF * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QPointF, &a0))
        {
            Qt::WindowFrameSection sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_windowFrameSectionAt(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Qt_WindowFrameSection);
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_event(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_changeEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QCloseEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QCloseEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_closeEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QFocusEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QFocusEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_focusInEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        sipPlasma_AbstractToolBox *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_focusNextPrevChild(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QFocusEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QFocusEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_focusOutEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QHideEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QHideEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_hideEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QGraphicsSceneMoveEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QGraphicsSceneMoveEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_moveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipPlasma_AbstractToolBox *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QGraphicsSceneResizeEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QGraphicsSceneResizeEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_resizeEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QShowEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QShowEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_showEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QGraphicsSceneHoverEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QGraphicsSceneHoverEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_hoverMoveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QGraphicsSceneHoverEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QGraphicsSceneHoverEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_hoverLeaveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_grabMouseEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_ungrabMouseEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_grabKeyboardEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipPlasma_AbstractToolBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractToolBox, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_ungrabKeyboardEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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;

    {
        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;

    {
        sipPlasma_AbstractToolBox *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_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 sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipPlasma_AbstractToolBox *>(sipCppV);
    else
        delete reinterpret_cast<Plasma::AbstractToolBox *>(sipCppV);

    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_Plasma_AbstractToolBox(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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[] = {{216, 2, 1}};


static PyMethodDef methods_Plasma_AbstractToolBox[] = {
    {SIP_MLNAME_CAST(sipName_addTool), meth_Plasma_AbstractToolBox_addTool, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changeEvent), meth_Plasma_AbstractToolBox_changeEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Plasma_AbstractToolBox_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_closeEvent), meth_Plasma_AbstractToolBox_closeEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Plasma_AbstractToolBox_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containment), meth_Plasma_AbstractToolBox_containment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_contextMenuEvent), meth_Plasma_AbstractToolBox_contextMenuEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Plasma_AbstractToolBox_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Plasma_AbstractToolBox_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragEnterEvent), meth_Plasma_AbstractToolBox_dragEnterEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragLeaveEvent), meth_Plasma_AbstractToolBox_dragLeaveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragMoveEvent), meth_Plasma_AbstractToolBox_dragMoveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dropEvent), meth_Plasma_AbstractToolBox_dropEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_event), meth_Plasma_AbstractToolBox_event, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusInEvent), meth_Plasma_AbstractToolBox_focusInEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextPrevChild), meth_Plasma_AbstractToolBox_focusNextPrevChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusOutEvent), meth_Plasma_AbstractToolBox_focusOutEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_grabKeyboardEvent), meth_Plasma_AbstractToolBox_grabKeyboardEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_grabMouseEvent), meth_Plasma_AbstractToolBox_grabMouseEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hideEvent), meth_Plasma_AbstractToolBox_hideEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hoverEnterEvent), meth_Plasma_AbstractToolBox_hoverEnterEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hoverLeaveEvent), meth_Plasma_AbstractToolBox_hoverLeaveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hoverMoveEvent), meth_Plasma_AbstractToolBox_hoverMoveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_initStyleOption), meth_Plasma_AbstractToolBox_initStyleOption, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_inputMethodEvent), meth_Plasma_AbstractToolBox_inputMethodEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_inputMethodQuery), meth_Plasma_AbstractToolBox_inputMethodQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isShowing), meth_Plasma_AbstractToolBox_isShowing, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_itemChange), meth_Plasma_AbstractToolBox_itemChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keyPressEvent), meth_Plasma_AbstractToolBox_keyPressEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keyReleaseEvent), meth_Plasma_AbstractToolBox_keyReleaseEvent, 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_mouseDoubleClickEvent), meth_Plasma_AbstractToolBox_mouseDoubleClickEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseMoveEvent), meth_Plasma_AbstractToolBox_mouseMoveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mousePressEvent), meth_Plasma_AbstractToolBox_mousePressEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseReleaseEvent), meth_Plasma_AbstractToolBox_mouseReleaseEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_moveEvent), meth_Plasma_AbstractToolBox_moveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_polishEvent), meth_Plasma_AbstractToolBox_polishEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_prepareGeometryChange), meth_Plasma_AbstractToolBox_prepareGeometryChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Plasma_AbstractToolBox_receivers, 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_resizeEvent), meth_Plasma_AbstractToolBox_resizeEvent, 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_sceneEvent), meth_Plasma_AbstractToolBox_sceneEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sceneEventFilter), meth_Plasma_AbstractToolBox_sceneEventFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Plasma_AbstractToolBox_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setGraphicsItem), meth_Plasma_AbstractToolBox_setGraphicsItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOwnedByLayout), meth_Plasma_AbstractToolBox_setOwnedByLayout, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setShowing), meth_Plasma_AbstractToolBox_setShowing, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showEvent), meth_Plasma_AbstractToolBox_showEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sizeHint), (PyCFunction)meth_Plasma_AbstractToolBox_sizeHint, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Plasma_AbstractToolBox_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ungrabKeyboardEvent), meth_Plasma_AbstractToolBox_ungrabKeyboardEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ungrabMouseEvent), meth_Plasma_AbstractToolBox_ungrabMouseEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_updateGeometry), meth_Plasma_AbstractToolBox_updateGeometry, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_updateMicroFocus), meth_Plasma_AbstractToolBox_updateMicroFocus, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_wheelEvent), meth_Plasma_AbstractToolBox_wheelEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_windowFrameEvent), meth_Plasma_AbstractToolBox_windowFrameEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_windowFrameSectionAt), meth_Plasma_AbstractToolBox_windowFrameSectionAt, METH_VARARGS, NULL}
};

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


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Plasma_AbstractToolBox[] = {
    {"visibilityChanged(bool)", 0, 0},
    {"toggled()", 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},
        61, 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_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
},
    &Plasma::AbstractToolBox::staticMetaObject,
    0,
    pyqt4_signals_Plasma_AbstractToolBox
};

#line 106 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/abstractrunner.sip"
#include <plasma/abstractrunner.h>
#line 4945 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 4949 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4952 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4955 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4958 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4961 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 4964 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 4967 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 4970 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/querymatch.sip"
#include <plasma/querymatch.h>
#line 4973 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/dataengine.sip"
#include <plasma/dataengine.h>
#line 4976 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/runnersyntax.sip"
#include <plasma/runnersyntax.h>
#line 4979 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4982 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 486 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <qhash.h>
#line 4985 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4988 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qaction.sip"
#include <qaction.h>
#line 4991 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qicon.sip"
#include <qicon.h>
#line 4994 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4997 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 113 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 5000 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 5003 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qmutex.sip"
#include <qmutex.h>
#line 5006 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/package.sip"
#include <plasma/package.h>
#line 5009 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/runnercontext.sip"
#include <plasma/runnercontext.h>
#line 5012 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/runnercontext.sip"
#include <plasma/runnercontext.h>
#line 5015 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 5018 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5021 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5024 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5027 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5030 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5033 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5036 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5039 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 5042 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5045 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 5048 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 public method for every protected method visible from
     * this class.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    KConfigGroup sipProtect_config() const;
    void sipProtect_setHasRunOptions(bool);
    void sipProtect_setSpeed(Plasma::AbstractRunner::Speed);
    void sipProtect_setPriority(Plasma::AbstractRunner::Priority);
    KService::List sipProtect_serviceQuery(const QString&,const QString&) const;
    QList<QAction *> sipProtectVirt_actionsForMatch(bool,const Plasma::QueryMatch&);
    QAction * sipProtect_addAction(const QString&,const QIcon&,const QString&);
    void sipProtect_addAction(const QString&,QAction *);
    void sipProtect_removeAction(const QString&);
    QAction * sipProtect_action(const QString&) const;
    QHash<QString,QAction *> sipProtect_actions() const;
    void sipProtect_clearActions();
    void sipProtect_addSyntax(const Plasma::RunnerSyntax&);
    void sipProtect_init();
    void sipProtect_setSyntaxes(const QList<Plasma::RunnerSyntax>&);
    void sipProtect_setDefaultSyntax(const Plasma::RunnerSyntax&);
    Plasma::DataEngine * sipProtect_dataEngine(const QString&) const;
    QMimeData * sipProtect_mimeDataForMatch(const Plasma::QueryMatch *);
    void sipProtect_suspendMatching(bool);

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

public:
    sipSimpleWrapper *sipPySelf;

private:
    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 && sip_plasma_qt_metacast(sipPySelf,sipType_Plasma_AbstractRunner,_clname)) ? this : Plasma::AbstractRunner::qt_metacast(_clname);
}

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

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

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

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

    sipVH_plasma_5(sipGILState,sipMeth,a0);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    return sipVH_plasma_36(sipGILState,sipMeth,a0);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

KConfigGroup sipPlasma_AbstractRunner::sipProtect_config() const
{
    return Plasma::AbstractRunner::config();
}

void sipPlasma_AbstractRunner::sipProtect_setHasRunOptions(bool a0)
{
    Plasma::AbstractRunner::setHasRunOptions(a0);
}

void sipPlasma_AbstractRunner::sipProtect_setSpeed(Plasma::AbstractRunner::Speed a0)
{
    Plasma::AbstractRunner::setSpeed(a0);
}

void sipPlasma_AbstractRunner::sipProtect_setPriority(Plasma::AbstractRunner::Priority a0)
{
    Plasma::AbstractRunner::setPriority(a0);
}

KService::List sipPlasma_AbstractRunner::sipProtect_serviceQuery(const QString& a0,const QString& a1) const
{
    return Plasma::AbstractRunner::serviceQuery(a0,a1);
}

QList<QAction *> sipPlasma_AbstractRunner::sipProtectVirt_actionsForMatch(bool sipSelfWasArg,const Plasma::QueryMatch& a0)
{
    return (sipSelfWasArg ? Plasma::AbstractRunner::actionsForMatch(a0) : actionsForMatch(a0));
}

QAction * sipPlasma_AbstractRunner::sipProtect_addAction(const QString& a0,const QIcon& a1,const QString& a2)
{
    return Plasma::AbstractRunner::addAction(a0,a1,a2);
}

void sipPlasma_AbstractRunner::sipProtect_addAction(const QString& a0,QAction *a1)
{
    Plasma::AbstractRunner::addAction(a0,a1);
}

void sipPlasma_AbstractRunner::sipProtect_removeAction(const QString& a0)
{
    Plasma::AbstractRunner::removeAction(a0);
}

QAction * sipPlasma_AbstractRunner::sipProtect_action(const QString& a0) const
{
    return Plasma::AbstractRunner::action(a0);
}

QHash<QString,QAction *> sipPlasma_AbstractRunner::sipProtect_actions() const
{
    return Plasma::AbstractRunner::actions();
}

void sipPlasma_AbstractRunner::sipProtect_clearActions()
{
    Plasma::AbstractRunner::clearActions();
}

void sipPlasma_AbstractRunner::sipProtect_addSyntax(const Plasma::RunnerSyntax& a0)
{
    Plasma::AbstractRunner::addSyntax(a0);
}

void sipPlasma_AbstractRunner::sipProtect_init()
{
    Plasma::AbstractRunner::init();
}

void sipPlasma_AbstractRunner::sipProtect_setSyntaxes(const QList<Plasma::RunnerSyntax>& a0)
{
    Plasma::AbstractRunner::setSyntaxes(a0);
}

void sipPlasma_AbstractRunner::sipProtect_setDefaultSyntax(const Plasma::RunnerSyntax& a0)
{
    Plasma::AbstractRunner::setDefaultSyntax(a0);
}

Plasma::DataEngine * sipPlasma_AbstractRunner::sipProtect_dataEngine(const QString& a0) const
{
    return Plasma::AbstractRunner::dataEngine(a0);
}

QMimeData * sipPlasma_AbstractRunner::sipProtect_mimeDataForMatch(const Plasma::QueryMatch *a0)
{
    return Plasma::AbstractRunner::mimeDataForMatch(a0);
}

void sipPlasma_AbstractRunner::sipProtect_suspendMatching(bool a0)
{
    Plasma::AbstractRunner::suspendMatching(a0);
}


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

    {
        sipPlasma_AbstractRunner *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipPlasma_AbstractRunner *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipPlasma_AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipPlasma_AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipPlasma_AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipPlasma_AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipPlasma_AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        sipPlasma_AbstractRunner *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KConfigGroup(sipCpp->sipProtect_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;
        sipPlasma_AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
        sipPlasma_AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_Plasma_AbstractRunner_Speed, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
        sipPlasma_AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_Plasma_AbstractRunner_Priority, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
        sipPlasma_AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|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->sipProtect_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;
        sipPlasma_AbstractRunner *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QAction *>(sipCpp->sipProtectVirt_actionsForMatch(sipSelfWasArg,*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;
        sipPlasma_AbstractRunner *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_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;
        sipPlasma_AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J8", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_QString,&a0, &a0State, sipType_QAction, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
        sipPlasma_AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
        sipPlasma_AbstractRunner *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_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;

    {
        sipPlasma_AbstractRunner *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QHash<QString,QAction *>(sipCpp->sipProtect_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;

    {
        sipPlasma_AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
        sipPlasma_AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_Plasma_RunnerSyntax, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;

    {
        sipPlasma_AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
        sipPlasma_AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_QList_0100Plasma_RunnerSyntax,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;

    {
        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;
        sipPlasma_AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, sipType_Plasma_RunnerSyntax, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
        sipPlasma_AbstractRunner *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_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;
        sipPlasma_AbstractRunner *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_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;

    {
        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;
        sipPlasma_AbstractRunner *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Plasma_AbstractRunner, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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 sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipPlasma_AbstractRunner *>(sipCppV);
    else
        delete reinterpret_cast<Plasma::AbstractRunner *>(sipCppV);

    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_Plasma_AbstractRunner(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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[] = {{134, 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_childEvent), meth_Plasma_AbstractRunner_childEvent, 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_connectNotify), meth_Plasma_AbstractRunner_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createRunOptions), meth_Plasma_AbstractRunner_createRunOptions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Plasma_AbstractRunner_customEvent, 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_disconnectNotify), meth_Plasma_AbstractRunner_disconnectNotify, 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_receivers), meth_Plasma_AbstractRunner_receivers, 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_sender), meth_Plasma_AbstractRunner_sender, 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},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Plasma_AbstractRunner_timerEvent, METH_VARARGS, NULL}
};

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


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Plasma_AbstractRunner[] = {
    {"matchingSuspended(bool)", 0, 0},
    {"teardown()", 0, 0},
    {"prepare()", 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},
        44, 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_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
},
    &Plasma::AbstractRunner::staticMetaObject,
    0,
    pyqt4_signals_Plasma_AbstractRunner
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/abstractdialogmanager.sip"
#include <plasma/abstractdialogmanager.h>
#line 6998 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/corona.sip"
#include <plasma/corona.h>
#line 7002 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 7005 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/applet.sip"
#include <plasma/applet.h>
#line 7008 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7011 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7014 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7017 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 7020 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 7023 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 7026 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 7029 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 7032 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 7035 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 7038 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7041 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 7044 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 7047 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 public method for every protected method visible from
     * this class.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);

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

public:
    sipSimpleWrapper *sipPySelf;

private:
    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 && sip_plasma_qt_metacast(sipPySelf,sipType_Plasma_AbstractDialogManager,_clname)) ? this : Plasma::AbstractDialogManager::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    ((sipVH_QtCore_9)(sipModuleAPI_plasma_QtCore->em_virthandlers[9]))(sipGILState,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)
    {
        QObject::childEvent(a0);
        return;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        sipPlasma_AbstractDialogManager *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipPlasma_AbstractDialogManager *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipPlasma_AbstractDialogManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractDialogManager, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipPlasma_AbstractDialogManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractDialogManager, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipPlasma_AbstractDialogManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Plasma_AbstractDialogManager, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipPlasma_AbstractDialogManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Plasma_AbstractDialogManager, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipPlasma_AbstractDialogManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Plasma_AbstractDialogManager, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipPlasma_AbstractDialogManager *>(sipCppV);
    else
        delete reinterpret_cast<Plasma::AbstractDialogManager *>(sipCppV);

    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_Plasma_AbstractDialogManager(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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[] = {{134, 0, 1}};


static PyMethodDef methods_Plasma_AbstractDialogManager[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Plasma_AbstractDialogManager_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Plasma_AbstractDialogManager_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Plasma_AbstractDialogManager_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Plasma_AbstractDialogManager_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Plasma_AbstractDialogManager_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Plasma_AbstractDialogManager_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showDialog), meth_Plasma_AbstractDialogManager_showDialog, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Plasma_AbstractDialogManager_timerEvent, 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},
        8, 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_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
},
    &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 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 7682 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 7712 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 7748 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Plasma::MessageButtons(*a0 ^ a1);
#line 7857 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Plasma::MessageButtons(*a0 | a1);
#line 7909 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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_Plasma_MessageButtons(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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 336 "/usr/local/share/py-sip/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(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 8204 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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_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,
    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 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 8293 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 8323 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 8359 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Plasma::ComponentTypes(*a0 ^ a1);
#line 8468 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Plasma::ComponentTypes(*a0 | a1);
#line 8520 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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_Plasma_ComponentTypes(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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 336 "/usr/local/share/py-sip/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(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 8815 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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_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,
    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 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 8904 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 8934 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 8970 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Plasma::Flip(*a0 ^ a1);
#line 9079 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Plasma::Flip(*a0 | a1);
#line 9131 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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_Plasma_Flip(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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 336 "/usr/local/share/py-sip/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(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 9426 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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_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,
    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 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 9515 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 9545 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 9581 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Plasma::Constraints(*a0 ^ a1);
#line 9690 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Plasma::Constraints(*a0 | a1);
#line 9742 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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_Plasma_Constraints(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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 336 "/usr/local/share/py-sip/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(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 10037 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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_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,
    1,
    0
};


#line 35 "/usr/local/share/py-sip/QtGui/qimage.sip"
#include <qimage.h>
#line 10111 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 10114 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 10117 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 164 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 10120 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 10123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 10126 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qfont.sip"
#include <qfont.h>
#line 10129 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 10132 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 10135 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/svg.sip"
#include <plasma/svg.h>
#line 10138 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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
};


#line 39 "/usr/local/share/py-sip/QtGui/qgraphicsview.sip"
#include <qgraphicsview.h>
#line 10442 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 39 "/usr/local/share/py-sip/QtGui/qgraphicsitem.sip"
#include <qgraphicsitem.h>
#line 10445 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 10448 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qaction.sip"
#include <qaction.h>
#line 10451 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qmenu.sip"
#include <qmenu.h>
#line 10454 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 10457 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 10460 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 10463 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/appletscript.sip"
#include <plasma/scripting/appletscript.h>
#line 10466 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/applet.sip"
#include <plasma/applet.h>
#line 10469 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/dataenginescript.sip"
#include <plasma/scripting/dataenginescript.h>
#line 10472 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/dataengine.sip"
#include <plasma/dataengine.h>
#line 10475 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/runnerscript.sip"
#include <plasma/scripting/runnerscript.h>
#line 10478 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 106 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/abstractrunner.sip"
#include <plasma/abstractrunner.h>
#line 10481 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 10484 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/packagestructure.sip"
#include <plasma/packagestructure.h>
#line 10487 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/wallpaperscript.sip"
#include <plasma/scripting/wallpaperscript.h>
#line 10490 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/plasma/wallpaper.sip"
#include <plasma/wallpaper.h>
#line 10493 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 PyUnicode_DecodeASCII(sipRes, strlen(sipRes), NULL);
        }
    }

    /* 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, Plasma::AcceptingInputStatus, 83},
    {sipName_ActiveStatus, Plasma::ActiveStatus, 83},
    {sipName_AlignToHour, Plasma::AlignToHour, 81},
    {sipName_AlignToMinute, Plasma::AlignToMinute, 81},
    {sipName_AllConstraints, Plasma::AllConstraints, 41},
    {sipName_AnimatorComponent, Plasma::AnimatorComponent, 38},
    {sipName_AppletComponent, Plasma::AppletComponent, 38},
    {sipName_AppletType, Plasma::AppletType, 84},
    {sipName_BottomEdge, Plasma::BottomEdge, 87},
    {sipName_BottomMargin, Plasma::BottomMargin, 88},
    {sipName_BottomPosedLeftAlignedPopup, Plasma::BottomPosedLeftAlignedPopup, 100},
    {sipName_BottomPosedRightAlignedPopup, Plasma::BottomPosedRightAlignedPopup, 100},
    {sipName_BottomPositioned, Plasma::BottomPositioned, 101},
    {sipName_ButtonCancel, Plasma::ButtonCancel, 89},
    {sipName_ButtonNo, Plasma::ButtonNo, 89},
    {sipName_ButtonNone, Plasma::ButtonNone, 89},
    {sipName_ButtonOk, Plasma::ButtonOk, 89},
    {sipName_ButtonYes, Plasma::ButtonYes, 89},
    {sipName_CenterPositioned, Plasma::CenterPositioned, 101},
    {sipName_ConstrainedSquare, Plasma::ConstrainedSquare, 26},
    {sipName_ContainmentComponent, Plasma::ContainmentComponent, 38},
    {sipName_ContextConstraint, Plasma::ContextConstraint, 41},
    {sipName_DataEngineComponent, Plasma::DataEngineComponent, 38},
    {sipName_Desktop, Plasma::Desktop, 87},
    {sipName_DesktopZoom, Plasma::DesktopZoom, 148},
    {sipName_Down, Plasma::Down, 63},
    {sipName_FixedSize, Plasma::FixedSize, 26},
    {sipName_Floating, Plasma::Floating, 87},
    {sipName_FloatingPopup, Plasma::FloatingPopup, 100},
    {sipName_FormFactorConstraint, Plasma::FormFactorConstraint, 41},
    {sipName_FullScreen, Plasma::FullScreen, 87},
    {sipName_GroupZoom, Plasma::GroupZoom, 148},
    {sipName_Horizontal, Plasma::Horizontal, 71},
    {sipName_HorizontalFlip, Plasma::HorizontalFlip, 70},
    {sipName_IgnoreAspectRatio, Plasma::IgnoreAspectRatio, 26},
    {sipName_ImmutableConstraint, Plasma::ImmutableConstraint, 41},
    {sipName_InvalidAspectRatioMode, Plasma::InvalidAspectRatioMode, 26},
    {sipName_InvalidCredentials, Plasma::InvalidCredentials, 136},
    {sipName_KeepAspectRatio, Plasma::KeepAspectRatio, 26},
    {sipName_Left, Plasma::Left, 63},
    {sipName_LeftEdge, Plasma::LeftEdge, 87},
    {sipName_LeftMargin, Plasma::LeftMargin, 88},
    {sipName_LeftPosedBottomAlignedPopup, Plasma::LeftPosedBottomAlignedPopup, 100},
    {sipName_LeftPosedTopAlignedPopup, Plasma::LeftPosedTopAlignedPopup, 100},
    {sipName_LeftPositioned, Plasma::LeftPositioned, 101},
    {sipName_LineEditType, Plasma::LineEditType, 84},
    {sipName_LocationConstraint, Plasma::LocationConstraint, 41},
    {sipName_MediaCenter, Plasma::MediaCenter, 71},
    {sipName_Mutable, Plasma::Mutable, 80},
    {sipName_NeedsAttentionStatus, Plasma::NeedsAttentionStatus, 83},
    {sipName_NoAlignment, Plasma::NoAlignment, 81},
    {sipName_NoAnnouncement, Plasma::NoAnnouncement, 20},
    {sipName_NoConstraint, Plasma::NoConstraint, 41},
    {sipName_NoFlip, Plasma::NoFlip, 70},
    {sipName_OverviewZoom, Plasma::OverviewZoom, 148},
    {sipName_PassiveStatus, Plasma::PassiveStatus, 83},
    {sipName_Planar, Plasma::Planar, 71},
    {sipName_PopupConstraint, Plasma::PopupConstraint, 41},
    {sipName_Right, Plasma::Right, 63},
    {sipName_RightEdge, Plasma::RightEdge, 87},
    {sipName_RightMargin, Plasma::RightMargin, 88},
    {sipName_RightPosedBottomAlignedPopup, Plasma::RightPosedBottomAlignedPopup, 100},
    {sipName_RightPosedTopAlignedPopup, Plasma::RightPosedTopAlignedPopup, 100},
    {sipName_RightPositioned, Plasma::RightPositioned, 101},
    {sipName_RunnerComponent, Plasma::RunnerComponent, 38},
    {sipName_ScreenConstraint, Plasma::ScreenConstraint, 41},
    {sipName_SizeConstraint, Plasma::SizeConstraint, 41},
    {sipName_Square, Plasma::Square, 26},
    {sipName_StartupCompletedConstraint, Plasma::StartupCompletedConstraint, 41},
    {sipName_SystemImmutable, Plasma::SystemImmutable, 80},
    {sipName_TopEdge, Plasma::TopEdge, 87},
    {sipName_TopMargin, Plasma::TopMargin, 88},
    {sipName_TopPosedLeftAlignedPopup, Plasma::TopPosedLeftAlignedPopup, 100},
    {sipName_TopPosedRightAlignedPopup, Plasma::TopPosedRightAlignedPopup, 100},
    {sipName_TopPositioned, Plasma::TopPositioned, 101},
    {sipName_TrustedCredentials, Plasma::TrustedCredentials, 136},
    {sipName_UltimateCredentials, Plasma::UltimateCredentials, 136},
    {sipName_UnknownCredentials, Plasma::UnknownCredentials, 136},
    {sipName_UnknownStatus, Plasma::UnknownStatus, 83},
    {sipName_Up, Plasma::Up, 63},
    {sipName_UserImmutable, Plasma::UserImmutable, 80},
    {sipName_ValidCredentials, Plasma::ValidCredentials, 136},
    {sipName_Vertical, Plasma::Vertical, 71},
    {sipName_VerticalFlip, Plasma::VerticalFlip, 70},
    {sipName_WallpaperComponent, Plasma::WallpaperComponent, 38},
    {sipName_ZeroconfAnnouncement, Plasma::ZeroconfAnnouncement, 20},
    {sipName_ZoomIn, Plasma::ZoomIn, 147},
    {sipName_ZoomOut, Plasma::ZoomOut, 147},
};


pyqt4ClassTypeDef sipTypeDef_plasma_Plasma = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Plasma,
        {0}
    },
    {
        sipNameNr_Plasma,
        {0, 0, 1},
        14, methods_Plasma,
        88, 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
};
