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

#include "sipAPIsolid.h"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/dvbinterface.sip"
#include <dvbinterface.h>
#line 12 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 16 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 19 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 22 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 31 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 37 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 40 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 46 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Solid::DeviceInterface::Type sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Solid::DvbInterface::deviceInterfaceType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Solid_DeviceInterface_Type);
        }
    }

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

    return NULL;
}


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

    {
        Solid::DvbInterface *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Solid::DvbInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Solid_DvbInterface, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->deviceAdapter();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Solid::DvbInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Solid_DvbInterface, &sipCpp))
        {
            Solid::DvbInterface::DeviceType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->deviceType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Solid_DvbInterface_DeviceType);
        }
    }

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

    return NULL;
}


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

    {
        Solid::DvbInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Solid_DvbInterface, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->deviceIndex();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Solid_DvbInterface)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Solid_DeviceInterface)->ctd_cast((Solid::DeviceInterface *)(Solid::DvbInterface *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    delete reinterpret_cast<Solid::DvbInterface *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Solid_DvbInterface(sipSimpleWrapper *);}
static void dealloc_Solid_DvbInterface(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Solid_DvbInterface(sipGetAddress(sipSelf),0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Solid_DvbInterface[] = {{18, 255, 1}};


static PyMethodDef methods_Solid_DvbInterface[] = {
    {SIP_MLNAME_CAST(sipName_device), meth_Solid_DvbInterface_device, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deviceAdapter), meth_Solid_DvbInterface_deviceAdapter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deviceIndex), meth_Solid_DvbInterface_deviceIndex, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deviceInterfaceType), meth_Solid_DvbInterface_deviceInterfaceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deviceType), meth_Solid_DvbInterface_deviceType, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Solid_DvbInterface[] = {
    {sipName_DvbAudio, Solid::DvbInterface::DvbAudio, 22},
    {sipName_DvbCa, Solid::DvbInterface::DvbCa, 22},
    {sipName_DvbDemux, Solid::DvbInterface::DvbDemux, 22},
    {sipName_DvbDvr, Solid::DvbInterface::DvbDvr, 22},
    {sipName_DvbFrontend, Solid::DvbInterface::DvbFrontend, 22},
    {sipName_DvbNet, Solid::DvbInterface::DvbNet, 22},
    {sipName_DvbOsd, Solid::DvbInterface::DvbOsd, 22},
    {sipName_DvbSec, Solid::DvbInterface::DvbSec, 22},
    {sipName_DvbUnknown, Solid::DvbInterface::DvbUnknown, 22},
    {sipName_DvbVideo, Solid::DvbInterface::DvbVideo, 22},
};


pyqt4ClassTypeDef sipTypeDef_solid_Solid_DvbInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Solid__DvbInterface,
        {0}
    },
    {
        sipNameNr_DvbInterface,
        {3, 255, 0},
        5, methods_Solid_DvbInterface,
        10, enummembers_Solid_DvbInterface,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Solid_DvbInterface,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_DvbInterface,
    0,
    0,
    0,
    release_Solid_DvbInterface,
    cast_Solid_DvbInterface,
    0,
    0,
    0
},
    &Solid::DvbInterface::staticMetaObject,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/devicenotifier.sip"
#include <devicenotifier.h>
#line 307 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 311 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 314 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 317 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 320 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 323 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 326 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 329 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 332 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 335 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 338 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 341 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 344 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 347 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"


class sipSolid_DeviceNotifier : public Solid::DeviceNotifier
{
public:
    sipSolid_DeviceNotifier();
    virtual ~sipSolid_DeviceNotifier();

    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:
    sipSolid_DeviceNotifier(const sipSolid_DeviceNotifier &);
    sipSolid_DeviceNotifier &operator = (const sipSolid_DeviceNotifier &);

    char sipPyMethods[7];
};

sipSolid_DeviceNotifier::sipSolid_DeviceNotifier(): Solid::DeviceNotifier(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipSolid_DeviceNotifier::metaObject() const
{
    return sip_solid_qt_metaobject(sipPySelf,sipType_Solid_DeviceNotifier);
}

int sipSolid_DeviceNotifier::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Solid::DeviceNotifier::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_solid_qt_metacall(sipPySelf,sipType_Solid_DeviceNotifier,_c,_id,_a);

    return _id;
}

void *sipSolid_DeviceNotifier::qt_metacast(const char *_clname)
{
    return (sip_solid_qt_metacast && sip_solid_qt_metacast(sipPySelf,sipType_Solid_DeviceNotifier,_clname)) ? this : Solid::DeviceNotifier::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        sipSolid_DeviceNotifier *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipSolid_DeviceNotifier *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSolid_DeviceNotifier *sipCpp;

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSolid_DeviceNotifier *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipSolid_DeviceNotifier *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipSolid_DeviceNotifier *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipSolid_DeviceNotifier *sipCpp;

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Solid::DeviceNotifier *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Solid::DeviceNotifier::instance();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_Solid_DeviceNotifier)
        return ptr;

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSolid_DeviceNotifier *>(sipCppV);
    else
        delete reinterpret_cast<Solid::DeviceNotifier *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSolid_DeviceNotifier();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Solid_DeviceNotifier[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Solid_DeviceNotifier_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Solid_DeviceNotifier_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Solid_DeviceNotifier_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Solid_DeviceNotifier_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_instance), meth_Solid_DeviceNotifier_instance, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Solid_DeviceNotifier_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Solid_DeviceNotifier_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Solid_DeviceNotifier_timerEvent, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Solid_DeviceNotifier[] = {
    {"deviceRemoved(QString)", 0, 0},
    {"deviceAdded(QString)", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_solid_Solid_DeviceNotifier = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Solid__DeviceNotifier,
        {0}
    },
    {
        sipNameNr_DeviceNotifier,
        {3, 255, 0},
        8, methods_Solid_DeviceNotifier,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Solid_DeviceNotifier,
    0,
    init_Solid_DeviceNotifier,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_DeviceNotifier,
    0,
    0,
    0,
    release_Solid_DeviceNotifier,
    cast_Solid_DeviceNotifier,
    0,
    0,
    0
},
    &Solid::DeviceNotifier::staticMetaObject,
    0,
    pyqt4_signals_Solid_DeviceNotifier
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/device.sip"
#include <device.h>
#line 969 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 973 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 976 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 979 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 982 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/predicate.sip"
#include <predicate.h>
#line 985 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<Solid::Device> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Solid::Device>(Solid::Device::allDevices());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Solid::DeviceInterface::Type a0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E|J1", sipType_Solid_DeviceInterface_Type, &a0, sipType_QString,&a1, &a1State))
        {
            QList<Solid::Device> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Solid::Device>(Solid::Device::listFromType(a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


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

    {
        const Solid::Predicate * a0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9|J1", sipType_Solid_Predicate, &a0, sipType_QString,&a1, &a1State))
        {
            QList<Solid::Device> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Solid::Device>(Solid::Device::listFromQuery(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1|J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            QList<Solid::Device> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Solid::Device>(Solid::Device::listFromQuery(*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_0100Solid_Device,NULL);
        }
    }

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

    return NULL;
}


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

    {
        Solid::Device *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Solid::Device *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Solid::Device *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Solid::Device *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Solid_Device, &sipCpp))
        {
            Solid::Device *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Solid::Device(sipCpp->parent());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Solid::Device *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Solid::Device *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Solid::Device *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Solid::DeviceInterface::Type a0;
        Solid::Device *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Solid_Device, &sipCpp, sipType_Solid_DeviceInterface_Type, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Solid::DeviceInterface::Type a0;
        Solid::Device *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Solid_Device, &sipCpp, sipType_Solid_DeviceInterface_Type, &a0))
        {
            Solid::DeviceInterface *sipRes;

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

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

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

    return NULL;
}


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

    {
        Solid::Device *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->emblems());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Solid::Device *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Solid_Device, &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_Device, sipName_description, NULL);

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<Solid::Device *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Solid_Device(void *, SIP_SSIZE_T, const void *);}
static void assign_Solid_Device(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Solid::Device *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Solid::Device *>(sipSrc);
}


extern "C" {static void *array_Solid_Device(SIP_SSIZE_T);}
static void *array_Solid_Device(SIP_SSIZE_T sipNrElem)
{
    return new Solid::Device[sipNrElem];
}


extern "C" {static void *copy_Solid_Device(const void *, SIP_SSIZE_T);}
static void *copy_Solid_Device(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Solid::Device(reinterpret_cast<const Solid::Device *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_Solid_Device(sipSimpleWrapper *);}
static void dealloc_Solid_Device(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Solid_Device(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_Solid_Device(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Solid_Device(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Solid::Device *sipCpp = 0;

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Solid::Device(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipCpp;
        }
    }

    {
        const Solid::Device * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Solid_Device, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Solid::Device(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_Solid_Device[] = {
    {SIP_MLNAME_CAST(sipName_allDevices), meth_Solid_Device_allDevices, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_asDeviceInterface), meth_Solid_Device_asDeviceInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_description), meth_Solid_Device_description, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emblems), meth_Solid_Device_emblems, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_icon), meth_Solid_Device_icon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDeviceInterface), meth_Solid_Device_isDeviceInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Solid_Device_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listFromQuery), meth_Solid_Device_listFromQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listFromType), meth_Solid_Device_listFromType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parent), meth_Solid_Device_parent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentUdi), meth_Solid_Device_parentUdi, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_product), meth_Solid_Device_product, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_udi), meth_Solid_Device_udi, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_vendor), meth_Solid_Device_vendor, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_solid_Solid_Device = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Solid__Device,
        {0}
    },
    {
        sipNameNr_Device,
        {3, 255, 0},
        14, methods_Solid_Device,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_Solid_Device,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_Device,
    assign_Solid_Device,
    array_Solid_Device,
    copy_Solid_Device,
    release_Solid_Device,
    cast_Solid_Device,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/camera.sip"
#include <camera.h>
#line 1557 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1561 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1564 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1567 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1570 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 1573 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1576 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1579 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1582 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1585 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1588 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1591 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1594 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1597 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1600 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1603 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Solid::DeviceInterface::Type sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Solid::Camera::deviceInterfaceType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Solid_DeviceInterface_Type);
        }
    }

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

    return NULL;
}


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

    {
        Solid::Camera *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->supportedProtocols());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        QString a0def = QString();
        QString * a0 = &a0def;
        int a0State = 0;
        Solid::Camera *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J1", &sipSelf, sipType_Solid_Camera, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->supportedDrivers(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Solid::Camera *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Solid_Camera, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QVariant *sipRes;

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

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

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

    return NULL;
}


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

    if (targetType == sipType_Solid_Camera)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Solid_DeviceInterface)->ctd_cast((Solid::DeviceInterface *)(Solid::Camera *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    delete reinterpret_cast<Solid::Camera *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Solid_Camera(sipSimpleWrapper *);}
static void dealloc_Solid_Camera(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Solid_Camera(sipGetAddress(sipSelf),0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Solid_Camera[] = {{18, 255, 1}};


static PyMethodDef methods_Solid_Camera[] = {
    {SIP_MLNAME_CAST(sipName_deviceInterfaceType), meth_Solid_Camera_deviceInterfaceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_driverHandle), meth_Solid_Camera_driverHandle, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedDrivers), meth_Solid_Camera_supportedDrivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedProtocols), meth_Solid_Camera_supportedProtocols, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_solid_Solid_Camera = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Solid__Camera,
        {0}
    },
    {
        sipNameNr_Camera,
        {3, 255, 0},
        4, methods_Solid_Camera,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Solid_Camera,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_Camera,
    0,
    0,
    0,
    release_Solid_Camera,
    cast_Solid_Camera,
    0,
    0,
    0
},
    &Solid::Camera::staticMetaObject,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/button.sip"
#include <button.h>
#line 1821 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1825 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1828 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 1831 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1834 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1837 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1840 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1843 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1846 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1849 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1852 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1855 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1858 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1861 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1864 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart5.cpp"


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Solid::DeviceInterface::Type sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Solid::Button::deviceInterfaceType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Solid_DeviceInterface_Type);
        }
    }

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

    return NULL;
}


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

    {
        Solid::Button *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Solid_Button, &sipCpp))
        {
            Solid::Button::ButtonType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->type();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Solid_Button_ButtonType);
        }
    }

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

    return NULL;
}


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

    {
        Solid::Button *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasState();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Solid::Button *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->stateValue();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Solid_Button)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Solid_DeviceInterface)->ctd_cast((Solid::DeviceInterface *)(Solid::Button *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    delete reinterpret_cast<Solid::Button *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Solid_Button(sipSimpleWrapper *);}
static void dealloc_Solid_Button(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Solid_Button(sipGetAddress(sipSelf),0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Solid_Button[] = {{18, 255, 1}};


static PyMethodDef methods_Solid_Button[] = {
    {SIP_MLNAME_CAST(sipName_deviceInterfaceType), meth_Solid_Button_deviceInterfaceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasState), meth_Solid_Button_hasState, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stateValue), meth_Solid_Button_stateValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Solid_Button_type, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Solid_Button[] = {
    {sipName_LidButton, Solid::Button::LidButton, 15},
    {sipName_PowerButton, Solid::Button::PowerButton, 15},
    {sipName_SleepButton, Solid::Button::SleepButton, 15},
    {sipName_TabletButton, Solid::Button::TabletButton, 15},
    {sipName_UnknownButtonType, Solid::Button::UnknownButtonType, 15},
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Solid_Button[] = {
    {"pressed(Solid::Button::ButtonType,QString)", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_solid_Solid_Button = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Solid__Button,
        {0}
    },
    {
        sipNameNr_Button,
        {3, 255, 0},
        4, methods_Solid_Button,
        5, enummembers_Solid_Button,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Solid_Button,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_Button,
    0,
    0,
    0,
    release_Solid_Button,
    cast_Solid_Button,
    0,
    0,
    0
},
    &Solid::Button::staticMetaObject,
    0,
    pyqt4_signals_Solid_Button
};
