/*
 * Module code.
 *
 * Generated by SIP 4.18.1
 */

#include "sipAPIsolid.h"

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/serialinterface.sip"
#include <solid/serialinterface.h>
#line 12 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 16 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 19 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 58 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 22 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 31 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 34 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 37 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 40 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 43 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 46 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 49 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 55 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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));

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

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

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


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

    Py_BEGIN_ALLOW_THREADS

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

    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, static_cast<int>(Solid::SerialInterface::Platform), 53},
    {sipName_Unknown, static_cast<int>(Solid::SerialInterface::Unknown), 53},
    {sipName_Usb, static_cast<int>(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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Solid::SerialInterface::staticMetaObject,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/processor.sip"
#include <processor.h>
#line 267 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/processor.sip"
#include <processor.h>
#line 271 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 389 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Solid::Processor::InstructionSets::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 293 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 380 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Solid::Processor::InstructionSets::Int() != a0->operator Solid::Processor::InstructionSets::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 327 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 371 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Solid::Processor::InstructionSets::Int() == a0->operator Solid::Processor::InstructionSets::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 367 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 365 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new Solid::Processor::InstructionSets(*a0 ^ a1);
#line 476 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 360 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new Solid::Processor::InstructionSets(*a0 | a1);
#line 528 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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;
}


/* 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_type_Solid_Processor_InstructionSets(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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 398 "/usr/share/python3-sip/PyQt4/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(int(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 812 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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_type_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,
    0,
    convertTo_Solid_Processor_InstructionSets,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/processor.sip"
#include <processor.h>
#line 888 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 892 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/processor.sip"
#include <processor.h>
#line 895 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 58 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 898 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 901 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 904 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 907 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 910 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 913 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 916 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 919 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 922 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 925 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 928 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 931 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 934 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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;

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

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

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

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


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

    Py_BEGIN_ALLOW_THREADS

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

    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, static_cast<int>(Solid::Processor::AltiVec), 50},
    {sipName_Amd3DNow, static_cast<int>(Solid::Processor::Amd3DNow), 50},
    {sipName_IntelMmx, static_cast<int>(Solid::Processor::IntelMmx), 50},
    {sipName_IntelSse, static_cast<int>(Solid::Processor::IntelSse), 50},
    {sipName_IntelSse2, static_cast<int>(Solid::Processor::IntelSse2), 50},
    {sipName_IntelSse3, static_cast<int>(Solid::Processor::IntelSse3), 50},
    {sipName_IntelSse4, static_cast<int>(Solid::Processor::IntelSse4), 50},
    {sipName_NoExtensions, static_cast<int>(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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Solid::Processor::staticMetaObject,
    0,
    0
};

#line 94 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/predicate.sip"
#include <qset.h>
#include <powermanagement.h>
#line 1177 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"

#line 58 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 1181 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.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 1252 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.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 1293 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/predicate.sip"
#include <predicate.h>
#line 1324 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1328 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1331 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 58 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 1334 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 94 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/predicate.sip"
#include <qset.h>
#include <powermanagement.h>
#line 1338 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart1.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/device.sip"
#include <device.h>
#line 1341 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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;

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

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

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

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

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

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

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

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

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

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


/* 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_type_Solid_Predicate(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/predicate.sip"
Py_BEGIN_ALLOW_THREADS
    sipCpp = new Solid::Predicate (a0);
    Py_END_ALLOW_THREADS
#line 1918 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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, static_cast<int>(Solid::Predicate::Conjunction), 48},
    {sipName_Disjunction, static_cast<int>(Solid::Predicate::Disjunction), 48},
    {sipName_Equals, static_cast<int>(Solid::Predicate::Equals), 47},
    {sipName_InterfaceCheck, static_cast<int>(Solid::Predicate::InterfaceCheck), 48},
    {sipName_Mask, static_cast<int>(Solid::Predicate::Mask), 47},
    {sipName_PropertyCheck, static_cast<int>(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_type_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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};
