/*
 * Module code.
 *
 * Generated by SIP 4.11.2 on Mon Feb 14 20:11:56 2011
 */

#include "sipAPIplasma.h"

#line 105 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/plasma/abstractrunner.sip"
#include <plasma/abstractrunner.h>
#line 12 "sipplasmapart7.cpp"

#line 39 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 16 "sipplasmapart7.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 19 "sipplasmapart7.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 22 "sipplasmapart7.cpp"
#line 130 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 25 "sipplasmapart7.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 28 "sipplasmapart7.cpp"
#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 31 "sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 34 "sipplasmapart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 37 "sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/plasma/querymatch.sip"
#include <plasma/querymatch.h>
#line 40 "sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/plasma/dataengine.sip"
#include <plasma/dataengine.h>
#line 43 "sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/plasma/runnersyntax.sip"
#include <plasma/runnersyntax.h>
#line 46 "sipplasmapart7.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 49 "sipplasmapart7.cpp"
#line 486 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kdecore/typedefs.sip"
#include <qhash.h>
#line 52 "sipplasmapart7.cpp"
#line 82 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 55 "sipplasmapart7.cpp"
#line 36 "/usr/local/share/py-sip/QtGui/qaction.sip"
#include <qaction.h>
#line 58 "sipplasmapart7.cpp"
#line 40 "/usr/local/share/py-sip/QtGui/qicon.sip"
#include <qicon.h>
#line 61 "sipplasmapart7.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 64 "sipplasmapart7.cpp"
#line 112 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 67 "sipplasmapart7.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 70 "sipplasmapart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qmutex.sip"
#include <qmutex.h>
#line 73 "sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/plasma/package.sip"
#include <plasma/package.h>
#line 76 "sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/plasma/runnercontext.sip"
#include <plasma/runnercontext.h>
#line 79 "sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/plasma/runnercontext.sip"
#include <plasma/runnercontext.h>
#line 82 "sipplasmapart7.cpp"
#line 40 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 85 "sipplasmapart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 88 "sipplasmapart7.cpp"
#line 315 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 91 "sipplasmapart7.cpp"
#line 303 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 94 "sipplasmapart7.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 97 "sipplasmapart7.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 100 "sipplasmapart7.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 103 "sipplasmapart7.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 106 "sipplasmapart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 109 "sipplasmapart7.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 112 "sipplasmapart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 115 "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 *);

    /*
     * 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 *meth;

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

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

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

    sipVH_plasma_5(sipGILState,meth,a0);
}

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

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

    if (!meth)
    {
        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,meth,a0);
}

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

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

    if (!meth)
    {
        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,meth,a0,a1);
}

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

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

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

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

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

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

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

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

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

    return sipVH_plasma_30(sipGILState,meth,a0);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    ((sipVH_QtCore_24)(sipModuleAPI_plasma_QtCore->em_virthandlers[24]))(sipGILState,meth,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);
}


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 529 "/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 587 "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 546 "/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 629 "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;
}


/* 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[] = {{133, 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_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_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[] = {
    {"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},
        42, 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/kdebindings-4.5.5/python/pykde4/sip/plasma/abstractdialogmanager.sip"
#include <plasma/abstractdialogmanager.h>
#line 2002 "sipplasmapart7.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/plasma/corona.sip"
#include <plasma/corona.h>
#line 2006 "sipplasmapart7.cpp"
#line 40 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 2009 "sipplasmapart7.cpp"
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/plasma/applet.sip"
#include <plasma/applet.h>
#line 2012 "sipplasmapart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2015 "sipplasmapart7.cpp"
#line 315 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2018 "sipplasmapart7.cpp"
#line 303 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2021 "sipplasmapart7.cpp"
#line 39 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 2024 "sipplasmapart7.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2027 "sipplasmapart7.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2030 "sipplasmapart7.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2033 "sipplasmapart7.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2036 "sipplasmapart7.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2039 "sipplasmapart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 2042 "sipplasmapart7.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2045 "sipplasmapart7.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2048 "sipplasmapart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2051 "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 *meth;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    ((sipVH_QtCore_24)(sipModuleAPI_plasma_QtCore->em_virthandlers[24]))(sipGILState,meth,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 529 "/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 2311 "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 546 "/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 2353 "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[] = {{133, 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 336 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 2686 "sipplasmapart7.cpp"

            return sipRes;
        }
    }
}


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 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 2714 "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 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 2750 "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);
        }
    }
}


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 320 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Plasma::MessageButtons(*a0 ^ a1);
#line 2857 "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 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Plasma::MessageButtons(*a0 | a1);
#line 2909 "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);
        }
    }
}


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 341 "/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 3202 "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 336 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 3291 "sipplasmapart7.cpp"

            return sipRes;
        }
    }
}


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 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 3319 "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 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 3355 "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);
        }
    }
}


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 320 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Plasma::ComponentTypes(*a0 ^ a1);
#line 3462 "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 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Plasma::ComponentTypes(*a0 | a1);
#line 3514 "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);
        }
    }
}


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 341 "/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 3807 "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 336 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 3896 "sipplasmapart7.cpp"

            return sipRes;
        }
    }
}


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 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 3924 "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 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 3960 "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);
        }
    }
}


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 320 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Plasma::Flip(*a0 ^ a1);
#line 4067 "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 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Plasma::Flip(*a0 | a1);
#line 4119 "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);
        }
    }
}


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 341 "/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 4412 "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 336 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 4501 "sipplasmapart7.cpp"

            return sipRes;
        }
    }
}


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 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 4529 "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 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 4565 "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);
        }
    }
}


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 320 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Plasma::Constraints(*a0 ^ a1);
#line 4672 "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 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Plasma::Constraints(*a0 | a1);
#line 4724 "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);
        }
    }
}


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 341 "/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 5017 "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 40 "/usr/local/share/py-sip/QtGui/qimage.sip"
#include <qimage.h>
#line 5091 "sipplasmapart7.cpp"
#line 40 "/usr/local/share/py-sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 5094 "sipplasmapart7.cpp"
#line 40 "/usr/local/share/py-sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 55 "/usr/local/share/py-sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 5099 "sipplasmapart7.cpp"
#line 158 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 5102 "sipplasmapart7.cpp"
#line 40 "/usr/local/share/py-sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 5105 "sipplasmapart7.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5108 "sipplasmapart7.cpp"
#line 40 "/usr/local/share/py-sip/QtGui/qfont.sip"
#include <qfont.h>
#line 5111 "sipplasmapart7.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 5114 "sipplasmapart7.cpp"
#line 40 "/usr/local/share/py-sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 611 "/usr/local/share/py-sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 5119 "sipplasmapart7.cpp"


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_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},
        6, 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 44 "/usr/local/share/py-sip/QtGui/qgraphicsview.sip"
#include <qgraphicsview.h>
#line 5391 "sipplasmapart7.cpp"
#line 44 "/usr/local/share/py-sip/QtGui/qgraphicsitem.sip"
#include <qgraphicsitem.h>
#line 5394 "sipplasmapart7.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5397 "sipplasmapart7.cpp"
#line 36 "/usr/local/share/py-sip/QtGui/qaction.sip"
#include <qaction.h>
#line 5400 "sipplasmapart7.cpp"
#line 36 "/usr/local/share/py-sip/QtGui/qmenu.sip"
#include <qmenu.h>
#line 5403 "sipplasmapart7.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5406 "sipplasmapart7.cpp"
#line 39 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 5409 "sipplasmapart7.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 5412 "sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/plasma/appletscript.sip"
#include <plasma/scripting/appletscript.h>
#line 5415 "sipplasmapart7.cpp"
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/plasma/applet.sip"
#include <plasma/applet.h>
#line 5418 "sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/plasma/dataenginescript.sip"
#include <plasma/scripting/dataenginescript.h>
#line 5421 "sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/plasma/dataengine.sip"
#include <plasma/dataengine.h>
#line 5424 "sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/plasma/runnerscript.sip"
#include <plasma/scripting/runnerscript.h>
#line 5427 "sipplasmapart7.cpp"
#line 105 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/plasma/abstractrunner.sip"
#include <plasma/abstractrunner.h>
#line 5430 "sipplasmapart7.cpp"
#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 5433 "sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/plasma/packagestructure.sip"
#include <plasma/packagestructure.h>
#line 5436 "sipplasmapart7.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/plasma/wallpaperscript.sip"
#include <plasma/scripting/wallpaperscript.h>
#line 5439 "sipplasmapart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/plasma/wallpaper.sip"
#include <plasma/wallpaper.h>
#line 5442 "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, 82},
    {sipName_ActiveStatus, Plasma::ActiveStatus, 82},
    {sipName_AlignToHour, Plasma::AlignToHour, 80},
    {sipName_AlignToMinute, Plasma::AlignToMinute, 80},
    {sipName_AllConstraints, Plasma::AllConstraints, 41},
    {sipName_AnimatorComponent, Plasma::AnimatorComponent, 38},
    {sipName_AppletComponent, Plasma::AppletComponent, 38},
    {sipName_AppletType, Plasma::AppletType, 83},
    {sipName_BottomEdge, Plasma::BottomEdge, 86},
    {sipName_BottomMargin, Plasma::BottomMargin, 87},
    {sipName_BottomPosedLeftAlignedPopup, Plasma::BottomPosedLeftAlignedPopup, 98},
    {sipName_BottomPosedRightAlignedPopup, Plasma::BottomPosedRightAlignedPopup, 98},
    {sipName_BottomPositioned, Plasma::BottomPositioned, 99},
    {sipName_ButtonCancel, Plasma::ButtonCancel, 88},
    {sipName_ButtonNo, Plasma::ButtonNo, 88},
    {sipName_ButtonNone, Plasma::ButtonNone, 88},
    {sipName_ButtonOk, Plasma::ButtonOk, 88},
    {sipName_ButtonYes, Plasma::ButtonYes, 88},
    {sipName_CenterPositioned, Plasma::CenterPositioned, 99},
    {sipName_ConstrainedSquare, Plasma::ConstrainedSquare, 26},
    {sipName_ContainmentComponent, Plasma::ContainmentComponent, 38},
    {sipName_ContextConstraint, Plasma::ContextConstraint, 41},
    {sipName_DataEngineComponent, Plasma::DataEngineComponent, 38},
    {sipName_Desktop, Plasma::Desktop, 86},
    {sipName_DesktopZoom, Plasma::DesktopZoom, 146},
    {sipName_Down, Plasma::Down, 62},
    {sipName_FixedSize, Plasma::FixedSize, 26},
    {sipName_Floating, Plasma::Floating, 86},
    {sipName_FloatingPopup, Plasma::FloatingPopup, 98},
    {sipName_FormFactorConstraint, Plasma::FormFactorConstraint, 41},
    {sipName_FullScreen, Plasma::FullScreen, 86},
    {sipName_GroupZoom, Plasma::GroupZoom, 146},
    {sipName_Horizontal, Plasma::Horizontal, 70},
    {sipName_HorizontalFlip, Plasma::HorizontalFlip, 69},
    {sipName_IgnoreAspectRatio, Plasma::IgnoreAspectRatio, 26},
    {sipName_ImmutableConstraint, Plasma::ImmutableConstraint, 41},
    {sipName_InvalidAspectRatioMode, Plasma::InvalidAspectRatioMode, 26},
    {sipName_InvalidCredentials, Plasma::InvalidCredentials, 134},
    {sipName_KeepAspectRatio, Plasma::KeepAspectRatio, 26},
    {sipName_Left, Plasma::Left, 62},
    {sipName_LeftEdge, Plasma::LeftEdge, 86},
    {sipName_LeftMargin, Plasma::LeftMargin, 87},
    {sipName_LeftPosedBottomAlignedPopup, Plasma::LeftPosedBottomAlignedPopup, 98},
    {sipName_LeftPosedTopAlignedPopup, Plasma::LeftPosedTopAlignedPopup, 98},
    {sipName_LeftPositioned, Plasma::LeftPositioned, 99},
    {sipName_LineEditType, Plasma::LineEditType, 83},
    {sipName_LocationConstraint, Plasma::LocationConstraint, 41},
    {sipName_MediaCenter, Plasma::MediaCenter, 70},
    {sipName_Mutable, Plasma::Mutable, 79},
    {sipName_NeedsAttentionStatus, Plasma::NeedsAttentionStatus, 82},
    {sipName_NoAlignment, Plasma::NoAlignment, 80},
    {sipName_NoAnnouncement, Plasma::NoAnnouncement, 20},
    {sipName_NoConstraint, Plasma::NoConstraint, 41},
    {sipName_NoFlip, Plasma::NoFlip, 69},
    {sipName_OverviewZoom, Plasma::OverviewZoom, 146},
    {sipName_PassiveStatus, Plasma::PassiveStatus, 82},
    {sipName_Planar, Plasma::Planar, 70},
    {sipName_PopupConstraint, Plasma::PopupConstraint, 41},
    {sipName_Right, Plasma::Right, 62},
    {sipName_RightEdge, Plasma::RightEdge, 86},
    {sipName_RightMargin, Plasma::RightMargin, 87},
    {sipName_RightPosedBottomAlignedPopup, Plasma::RightPosedBottomAlignedPopup, 98},
    {sipName_RightPosedTopAlignedPopup, Plasma::RightPosedTopAlignedPopup, 98},
    {sipName_RightPositioned, Plasma::RightPositioned, 99},
    {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, 79},
    {sipName_TopEdge, Plasma::TopEdge, 86},
    {sipName_TopMargin, Plasma::TopMargin, 87},
    {sipName_TopPosedLeftAlignedPopup, Plasma::TopPosedLeftAlignedPopup, 98},
    {sipName_TopPosedRightAlignedPopup, Plasma::TopPosedRightAlignedPopup, 98},
    {sipName_TopPositioned, Plasma::TopPositioned, 99},
    {sipName_TrustedCredentials, Plasma::TrustedCredentials, 134},
    {sipName_UltimateCredentials, Plasma::UltimateCredentials, 134},
    {sipName_UnknownCredentials, Plasma::UnknownCredentials, 134},
    {sipName_UnknownStatus, Plasma::UnknownStatus, 82},
    {sipName_Up, Plasma::Up, 62},
    {sipName_UserImmutable, Plasma::UserImmutable, 79},
    {sipName_ValidCredentials, Plasma::ValidCredentials, 134},
    {sipName_Vertical, Plasma::Vertical, 70},
    {sipName_VerticalFlip, Plasma::VerticalFlip, 69},
    {sipName_WallpaperComponent, Plasma::WallpaperComponent, 38},
    {sipName_ZeroconfAnnouncement, Plasma::ZeroconfAnnouncement, 20},
    {sipName_ZoomIn, Plasma::ZoomIn, 145},
    {sipName_ZoomOut, Plasma::ZoomOut, 145},
};


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