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

#include "sipAPIsolid.h"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/serialinterface.sip"
#include <solid/serialinterface.h>
#line 12 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.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/sipsolidpart1.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 19 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.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/sipsolidpart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"
#line 31 "/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/sipsolidpart1.cpp"
#line 310 "/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/sipsolidpart1.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.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/sipsolidpart1.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/sipsolidpart1.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/sipsolidpart1.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/sipsolidpart1.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/sipsolidpart1.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/sipsolidpart1.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/sipsolidpart1.cpp"


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = Solid::SerialInterface::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_SerialInterface, sipName_deviceInterfaceType, NULL);

    return NULL;
}


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

    {
        Solid::SerialInterface *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant((sipSelfWasArg ? sipCpp->Solid::SerialInterface::driverHandle() : sipCpp->driverHandle()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Solid::SerialInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Solid_SerialInterface, &sipCpp))
        {
            Solid::SerialInterface::SerialType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Solid::SerialInterface::serialType() : sipCpp->serialType());
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Solid_SerialInterface_SerialType);
        }
    }

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

    return NULL;
}


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

    {
        Solid::SerialInterface *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Solid::SerialInterface::port() : sipCpp->port());
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Solid_SerialInterface)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_Solid_SerialInterface[] = {
    {SIP_MLNAME_CAST(sipName_deviceInterfaceType), meth_Solid_SerialInterface_deviceInterfaceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_driverHandle), meth_Solid_SerialInterface_driverHandle, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_port), meth_Solid_SerialInterface_port, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serialType), meth_Solid_SerialInterface_serialType, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Solid_SerialInterface[] = {
    {sipName_Platform, Solid::SerialInterface::Platform, 53},
    {sipName_Unknown, Solid::SerialInterface::Unknown, 53},
    {sipName_Usb, Solid::SerialInterface::Usb, 53},
};


pyqt4ClassTypeDef sipTypeDef_solid_Solid_SerialInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Solid__SerialInterface,
        {0}
    },
    {
        sipNameNr_SerialInterface,
        {3, 255, 0},
        4, methods_Solid_SerialInterface,
        3, enummembers_Solid_SerialInterface,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Solid_SerialInterface,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_SerialInterface,
    0,
    0,
    0,
    release_Solid_SerialInterface,
    cast_Solid_SerialInterface,
    0,
    0,
    0
},
    &Solid::SerialInterface::staticMetaObject,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/processor.sip"
#include <processor.h>
#line 275 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/processor.sip"
#include <processor.h>
#line 279 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"


extern "C" {static int slot_Solid_Processor_InstructionSets___bool__(PyObject *);}
static int slot_Solid_Processor_InstructionSets___bool__(PyObject *sipSelf)
{
    Solid::Processor::InstructionSets *sipCpp = reinterpret_cast<Solid::Processor::InstructionSets *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_Processor_InstructionSets));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 297 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_Solid_Processor_InstructionSets___ne__(PyObject *,PyObject *);}
static PyObject *slot_Solid_Processor_InstructionSets___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Solid::Processor::InstructionSets *sipCpp = reinterpret_cast<Solid::Processor::InstructionSets *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_Processor_InstructionSets));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Solid::Processor::InstructionSets * a0;
        int a0State = 0;

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

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 327 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"
            sipReleaseType(const_cast<Solid::Processor::InstructionSets *>(a0),sipType_Solid_Processor_InstructionSets,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_solid,ne_slot,sipType_Solid_Processor_InstructionSets,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Solid_Processor_InstructionSets___eq__(PyObject *,PyObject *);}
static PyObject *slot_Solid_Processor_InstructionSets___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Solid::Processor::InstructionSets *sipCpp = reinterpret_cast<Solid::Processor::InstructionSets *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_Processor_InstructionSets));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Solid::Processor::InstructionSets * a0;
        int a0State = 0;

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

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 363 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"
            sipReleaseType(const_cast<Solid::Processor::InstructionSets *>(a0),sipType_Solid_Processor_InstructionSets,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_solid,eq_slot,sipType_Solid_Processor_InstructionSets,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Solid_Processor_InstructionSets___invert__(PyObject *);}
static PyObject *slot_Solid_Processor_InstructionSets___invert__(PyObject *sipSelf)
{
    Solid::Processor::InstructionSets *sipCpp = reinterpret_cast<Solid::Processor::InstructionSets *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_Processor_InstructionSets));

    if (!sipCpp)
        return 0;


    {
        {
            Solid::Processor::InstructionSets *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Solid::Processor::InstructionSets(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        Solid::Processor::InstructionSets * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Solid_Processor_InstructionSets, &a0, &a0State, &a1))
        {
            Solid::Processor::InstructionSets *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Solid::Processor::InstructionSets((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Solid_Processor_InstructionSets,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        Solid::Processor::InstructionSets * a0;
        int a0State = 0;
        Solid::Processor::InstructionSets * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Solid_Processor_InstructionSets, &a0, &a0State, sipType_Solid_Processor_InstructionSets, &a1, &a1State))
        {
            Solid::Processor::InstructionSets *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Solid::Processor::InstructionSets((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Solid_Processor_InstructionSets,a0State);
            sipReleaseType(a1,sipType_Solid_Processor_InstructionSets,a1State);

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

    {
        Solid::Processor::InstructionSets * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Solid_Processor_InstructionSets, &a0, &a0State, &a1))
        {
            Solid::Processor::InstructionSets *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Solid::Processor::InstructionSets(*a0 ^ a1);
#line 472 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"
            sipReleaseType(a0,sipType_Solid_Processor_InstructionSets,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_solid,xor_slot,NULL,sipArg0,sipArg1);
}


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

    {
        Solid::Processor::InstructionSets * a0;
        int a0State = 0;
        Solid::Processor::InstructionSets * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Solid_Processor_InstructionSets, &a0, &a0State, sipType_Solid_Processor_InstructionSets, &a1, &a1State))
        {
            Solid::Processor::InstructionSets *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Solid::Processor::InstructionSets((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Solid_Processor_InstructionSets,a0State);
            sipReleaseType(a1,sipType_Solid_Processor_InstructionSets,a1State);

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

    {
        Solid::Processor::InstructionSets * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Solid_Processor_InstructionSets, &a0, &a0State, &a1))
        {
            Solid::Processor::InstructionSets *sipRes = 0;

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Solid::Processor::InstructionSets(*a0 | a1);
#line 524 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"
            sipReleaseType(a0,sipType_Solid_Processor_InstructionSets,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_solid,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_Solid_Processor_InstructionSets___int__(PyObject *);}
static PyObject *slot_Solid_Processor_InstructionSets___int__(PyObject *sipSelf)
{
    Solid::Processor::InstructionSets *sipCpp = reinterpret_cast<Solid::Processor::InstructionSets *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_Processor_InstructionSets));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_Solid_Processor_InstructionSets___ixor__(PyObject *,PyObject *);}
static PyObject *slot_Solid_Processor_InstructionSets___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Solid_Processor_InstructionSets)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Solid::Processor::InstructionSets *sipCpp = reinterpret_cast<Solid::Processor::InstructionSets *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_Processor_InstructionSets));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Solid::Processor::InstructionSets * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Solid_Processor_InstructionSets, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Solid::Processor::InstructionSets::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Solid_Processor_InstructionSets,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_Solid_Processor_InstructionSets___ior__(PyObject *,PyObject *);}
static PyObject *slot_Solid_Processor_InstructionSets___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Solid_Processor_InstructionSets)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Solid::Processor::InstructionSets *sipCpp = reinterpret_cast<Solid::Processor::InstructionSets *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_Processor_InstructionSets));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Solid::Processor::InstructionSets * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Solid_Processor_InstructionSets, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Solid::Processor::InstructionSets::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Solid_Processor_InstructionSets,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_Solid_Processor_InstructionSets___iand__(PyObject *,PyObject *);}
static PyObject *slot_Solid_Processor_InstructionSets___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Solid_Processor_InstructionSets)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Solid::Processor::InstructionSets *sipCpp = reinterpret_cast<Solid::Processor::InstructionSets *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_Processor_InstructionSets));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Solid::Processor::InstructionSets::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_Solid_Processor_InstructionSets(void *, const sipTypeDef *);}
static void *cast_Solid_Processor_InstructionSets(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_Solid_Processor_InstructionSets)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<Solid::Processor::InstructionSets *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Solid_Processor_InstructionSets(SIP_SSIZE_T);}
static void *array_Solid_Processor_InstructionSets(SIP_SSIZE_T sipNrElem)
{
    return new Solid::Processor::InstructionSets[sipNrElem];
}


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


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


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

    {
        const Solid::Processor::InstructionSets * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Solid::Processor::InstructionSets(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Solid::Processor::InstructionSets();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_Solid_Processor_InstructionSets(PyObject *, void **, int *, PyObject *);}
static int convertTo_Solid_Processor_InstructionSets(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    Solid::Processor::InstructionSets **sipCppPtr = reinterpret_cast<Solid::Processor::InstructionSets **>(sipCppPtrV);

#line 336 "/usr/local/share/py-sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a Solid::Processor::InstructionSets is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Solid_Processor_InstructionSet)) ||
            sipCanConvertToType(sipPy, sipType_Solid_Processor_InstructionSets, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Solid_Processor_InstructionSet)))
{
    *sipCppPtr = new Solid::Processor::InstructionSets(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<Solid::Processor::InstructionSets *>(sipConvertToType(sipPy, sipType_Solid_Processor_InstructionSets, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 819 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Solid_Processor_InstructionSets[] = {
    {(void *)slot_Solid_Processor_InstructionSets___bool__, bool_slot},
    {(void *)slot_Solid_Processor_InstructionSets___ne__, ne_slot},
    {(void *)slot_Solid_Processor_InstructionSets___eq__, eq_slot},
    {(void *)slot_Solid_Processor_InstructionSets___invert__, invert_slot},
    {(void *)slot_Solid_Processor_InstructionSets___and__, and_slot},
    {(void *)slot_Solid_Processor_InstructionSets___xor__, xor_slot},
    {(void *)slot_Solid_Processor_InstructionSets___or__, or_slot},
    {(void *)slot_Solid_Processor_InstructionSets___int__, int_slot},
    {(void *)slot_Solid_Processor_InstructionSets___ixor__, ixor_slot},
    {(void *)slot_Solid_Processor_InstructionSets___ior__, ior_slot},
    {(void *)slot_Solid_Processor_InstructionSets___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_solid_Solid_Processor_InstructionSets = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Solid__Processor__InstructionSets,
        {0}
    },
    {
        sipNameNr_InstructionSets,
        {49, 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_Solid_Processor_InstructionSets,
    init_Solid_Processor_InstructionSets,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_Processor_InstructionSets,
    assign_Solid_Processor_InstructionSets,
    array_Solid_Processor_InstructionSets,
    copy_Solid_Processor_InstructionSets,
    release_Solid_Processor_InstructionSets,
    cast_Solid_Processor_InstructionSets,
    convertTo_Solid_Processor_InstructionSets,
    0,
    0
},
    0,
    1,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/processor.sip"
#include <processor.h>
#line 892 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 896 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/processor.sip"
#include <processor.h>
#line 899 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"
#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 902 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 905 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 908 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 911 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 914 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 917 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 920 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 923 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 926 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 929 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 932 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 935 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 938 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = Solid::Processor::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_Processor, sipName_deviceInterfaceType, NULL);

    return NULL;
}


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

    {
        Solid::Processor *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->number();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Solid::Processor *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->maxSpeed();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Solid::Processor *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->canChangeFrequency();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Solid::Processor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Solid_Processor, &sipCpp))
        {
            Solid::Processor::InstructionSets *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Solid::Processor::InstructionSets(sipCpp->instructionSets());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_Solid_Processor)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_Solid_Processor[] = {
    {SIP_MLNAME_CAST(sipName_canChangeFrequency), meth_Solid_Processor_canChangeFrequency, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deviceInterfaceType), meth_Solid_Processor_deviceInterfaceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_instructionSets), meth_Solid_Processor_instructionSets, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_maxSpeed), meth_Solid_Processor_maxSpeed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_number), meth_Solid_Processor_number, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Solid_Processor[] = {
    {sipName_AltiVec, Solid::Processor::AltiVec, 50},
    {sipName_Amd3DNow, Solid::Processor::Amd3DNow, 50},
    {sipName_IntelMmx, Solid::Processor::IntelMmx, 50},
    {sipName_IntelSse, Solid::Processor::IntelSse, 50},
    {sipName_IntelSse2, Solid::Processor::IntelSse2, 50},
    {sipName_IntelSse3, Solid::Processor::IntelSse3, 50},
    {sipName_IntelSse4, Solid::Processor::IntelSse4, 50},
    {sipName_NoExtensions, Solid::Processor::NoExtensions, 50},
};


pyqt4ClassTypeDef sipTypeDef_solid_Solid_Processor = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Solid__Processor,
        {0}
    },
    {
        sipNameNr_Processor,
        {3, 255, 0},
        5, methods_Solid_Processor,
        8, enummembers_Solid_Processor,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Solid_Processor,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_Processor,
    0,
    0,
    0,
    release_Solid_Processor,
    cast_Solid_Processor,
    0,
    0,
    0
},
    &Solid::Processor::staticMetaObject,
    0,
    0
};

#line 94 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/predicate.sip"
#include <qset.h>
#include <powermanagement.h>
#line 1189 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"

#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 1193 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"


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


extern "C" {static void *array_QSet_0100Solid_DeviceInterface_Type(SIP_SSIZE_T);}
static void *array_QSet_0100Solid_DeviceInterface_Type(SIP_SSIZE_T sipNrElem)
{
    return new QSet<Solid::DeviceInterface::Type>[sipNrElem];
}


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


/* Call the mapped type's destructor. */
extern "C" {static void release_QSet_0100Solid_DeviceInterface_Type(void *, int);}
static void release_QSet_0100Solid_DeviceInterface_Type(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QSet<Solid::DeviceInterface::Type> *>(ptr);
    Py_END_ALLOW_THREADS
}



extern "C" {static int convertTo_QSet_0100Solid_DeviceInterface_Type(PyObject *, void **, int *, PyObject *);}
static int convertTo_QSet_0100Solid_DeviceInterface_Type(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QSet<Solid::DeviceInterface::Type> **sipCppPtr = reinterpret_cast<QSet<Solid::DeviceInterface::Type> **>(sipCppPtrV);

#line 133 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/predicate.sip"
    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PyList_Check(sipPy))
            return 0;
    }

    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PyList_Check(sipPy))
            return 0;
    }

    QSet<Solid::DeviceInterface::Type> *qs = new QSet<Solid::DeviceInterface::Type>;
 
    for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
    {
#if PY_MAJOR_VERSION >= 3
        Solid::DeviceInterface::Type t = (Solid::DeviceInterface::Type)PyLong_AsLong (PyList_GET_ITEM (sipPy, i));
#else
        Solid::DeviceInterface::Type t = (Solid::DeviceInterface::Type)PyInt_AS_LONG (PyList_GET_ITEM (sipPy, i));
#endif
*qs << t;

    }
 
    *sipCppPtr = qs;
 
    return sipGetState(sipTransferObj);
#line 1264 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"
}


extern "C" {static PyObject *convertFrom_QSet_0100Solid_DeviceInterface_Type(void *, PyObject *);}
static PyObject *convertFrom_QSet_0100Solid_DeviceInterface_Type(void *sipCppV,PyObject *)
{
   QSet<Solid::DeviceInterface::Type> *sipCpp = reinterpret_cast<QSet<Solid::DeviceInterface::Type> *>(sipCppV);

#line 99 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/predicate.sip"
    // Create the list.
    PyObject *l;

    if ((l = PyList_New(sipCpp->size())) == NULL)
        return NULL;

    // Set the list elements.
    QSet<Solid::DeviceInterface::Type> set = *sipCpp;
    int i = 0;
    foreach (Solid::DeviceInterface::Type value, set)
    {
#if PY_MAJOR_VERSION >= 3
        PyObject *obj = PyLong_FromLong ((long) value);
#else
        PyObject *obj = PyInt_FromLong ((long) value);
#endif
        if (obj == NULL || PyList_SET_ITEM (l, i, obj) < 0)
        {
            Py_DECREF(l);

            if (obj)
                Py_DECREF(obj);

            return NULL;
        }

        Py_DECREF(obj);
        i++;
    }
   
    return l;
#line 1305 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"
}


sipMappedTypeDef sipTypeDef_solid_QSet_0100Solid_DeviceInterface_Type = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_500,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QSet_0100Solid_DeviceInterface_Type,
    array_QSet_0100Solid_DeviceInterface_Type,
    copy_QSet_0100Solid_DeviceInterface_Type,
    release_QSet_0100Solid_DeviceInterface_Type,
    convertTo_QSet_0100Solid_DeviceInterface_Type,
    convertFrom_QSet_0100Solid_DeviceInterface_Type
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/predicate.sip"
#include <predicate.h>
#line 1336 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1343 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"
#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 1346 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"
#line 94 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/predicate.sip"
#include <qset.h>
#include <powermanagement.h>
#line 1350 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/device.sip"
#include <device.h>
#line 1353 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"


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

    {
        Solid::Predicate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Solid_Predicate, &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_Predicate, sipName_isValid, NULL);

    return NULL;
}


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

    {
        const Solid::Device * a0;
        Solid::Predicate *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->matches(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Solid::Predicate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Solid_Predicate, &sipCpp))
        {
            QSet<Solid::DeviceInterface::Type> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSet<Solid::DeviceInterface::Type>(sipCpp->usedTypes());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Solid::Predicate *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Solid::Predicate(Solid::Predicate::fromString(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        Solid::Predicate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Solid_Predicate, &sipCpp))
        {
            Solid::Predicate::Type sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->type();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Solid_Predicate_Type);
        }
    }

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

    return NULL;
}


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

    {
        Solid::Predicate *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->interfaceType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Solid_DeviceInterface_Type);
        }
    }

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

    return NULL;
}


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

    {
        Solid::Predicate *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Solid::Predicate *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->matchingValue());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Solid::Predicate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Solid_Predicate, &sipCpp))
        {
            Solid::Predicate::ComparisonOperator sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->comparisonOperator();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Solid_Predicate_ComparisonOperator);
        }
    }

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

    return NULL;
}


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

    {
        Solid::Predicate *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Solid::Predicate(sipCpp->firstOperand());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Solid::Predicate *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Solid::Predicate(sipCpp->secondOperand());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *slot_Solid_Predicate___ior__(PyObject *,PyObject *);}
static PyObject *slot_Solid_Predicate___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Solid_Predicate)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Solid::Predicate *sipCpp = reinterpret_cast<Solid::Predicate *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_Predicate));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Solid::Predicate * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Solid_Predicate, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Solid::Predicate::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;
}


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

    {
        Solid::Predicate * a0;
        const Solid::Predicate * a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_Solid_Predicate, &a0, sipType_Solid_Predicate, &a1))
        {
            Solid::Predicate *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Solid::Predicate((*a0 | *a1));
            Py_END_ALLOW_THREADS

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_solid,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_Solid_Predicate___iand__(PyObject *,PyObject *);}
static PyObject *slot_Solid_Predicate___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Solid_Predicate)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Solid::Predicate *sipCpp = reinterpret_cast<Solid::Predicate *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_Predicate));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Solid::Predicate * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Solid_Predicate, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Solid::Predicate::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;
}


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

    {
        Solid::Predicate * a0;
        const Solid::Predicate * a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_Solid_Predicate, &a0, sipType_Solid_Predicate, &a1))
        {
            Solid::Predicate *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Solid::Predicate((*a0 & *a1));
            Py_END_ALLOW_THREADS

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const Solid::Predicate * a0;

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

            return sipCpp;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        const QVariant * a2;
        int a2State = 0;
        Solid::Predicate::ComparisonOperator a3 = Solid::Predicate::Equals;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1J1|E", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QVariant,&a2, &a2State, sipType_Solid_Predicate_ComparisonOperator, &a3))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Solid::Predicate(*a0,*a1,*a2,a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QVariant *>(a2),sipType_QVariant,a2State);

            return sipCpp;
        }
    }

    {
        Solid::DeviceInterface::Type a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "E", sipType_Solid_DeviceInterface_Type, &a0))
        {
#line 48 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/predicate.sip"
Py_BEGIN_ALLOW_THREADS
    sipCpp = new Solid::Predicate (a0);
    Py_END_ALLOW_THREADS
#line 1941 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart1.cpp"

            return sipCpp;
        }
    }

    {
        const QString * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Solid_Predicate[] = {
    {(void *)slot_Solid_Predicate___ior__, ior_slot},
    {(void *)slot_Solid_Predicate___or__, or_slot},
    {(void *)slot_Solid_Predicate___iand__, iand_slot},
    {(void *)slot_Solid_Predicate___and__, and_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Solid_Predicate[] = {
    {SIP_MLNAME_CAST(sipName_comparisonOperator), meth_Solid_Predicate_comparisonOperator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_firstOperand), meth_Solid_Predicate_firstOperand, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromString), meth_Solid_Predicate_fromString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_interfaceType), meth_Solid_Predicate_interfaceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Solid_Predicate_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_matches), meth_Solid_Predicate_matches, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_matchingValue), meth_Solid_Predicate_matchingValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_propertyName), meth_Solid_Predicate_propertyName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_secondOperand), meth_Solid_Predicate_secondOperand, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toString), meth_Solid_Predicate_toString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Solid_Predicate_type, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_usedTypes), meth_Solid_Predicate_usedTypes, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Solid_Predicate[] = {
    {sipName_Conjunction, Solid::Predicate::Conjunction, 48},
    {sipName_Disjunction, Solid::Predicate::Disjunction, 48},
    {sipName_Equals, Solid::Predicate::Equals, 47},
    {sipName_InterfaceCheck, Solid::Predicate::InterfaceCheck, 48},
    {sipName_Mask, Solid::Predicate::Mask, 47},
    {sipName_PropertyCheck, Solid::Predicate::PropertyCheck, 48},
};


pyqt4ClassTypeDef sipTypeDef_solid_Solid_Predicate = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Solid__Predicate,
        {0}
    },
    {
        sipNameNr_Predicate,
        {3, 255, 0},
        12, methods_Solid_Predicate,
        6, enummembers_Solid_Predicate,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Solid_Predicate,
    init_Solid_Predicate,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_Predicate,
    assign_Solid_Predicate,
    array_Solid_Predicate,
    copy_Solid_Predicate,
    release_Solid_Predicate,
    cast_Solid_Predicate,
    0,
    0,
    0
},
    0,
    0,
    0
};
