/*
 * Module code.
 *
 * Generated by SIP 4.10.2 on Sun Jul 11 10:12:20 2010
 */

#include "sipAPIsolid.h"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/solid/audiointerface.sip"
#include <audiointerface.h>
#line 12 "sipsolidpart6.cpp"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/solid/audiointerface.sip"
#include <audiointerface.h>
#line 16 "sipsolidpart6.cpp"


extern "C" {static int slot_Solid_AudioInterface_AudioInterfaceTypes___bool__(PyObject *sipSelf);}
static int slot_Solid_AudioInterface_AudioInterfaceTypes___bool__(PyObject *sipSelf)
{
    Solid::AudioInterface::AudioInterfaceTypes *sipCpp = reinterpret_cast<Solid::AudioInterface::AudioInterfaceTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_AudioInterface_AudioInterfaceTypes));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 34 "sipsolidpart6.cpp"

            return sipRes;
        }
    }
}


extern "C" {static PyObject *slot_Solid_AudioInterface_AudioInterfaceTypes___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Solid_AudioInterface_AudioInterfaceTypes___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Solid::AudioInterface::AudioInterfaceTypes *sipCpp = reinterpret_cast<Solid::AudioInterface::AudioInterfaceTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_AudioInterface_AudioInterfaceTypes));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Solid::AudioInterface::AudioInterfaceTypes * a0;
        int a0State = 0;

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

#line 316 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 62 "sipsolidpart6.cpp"
            sipReleaseType(const_cast<Solid::AudioInterface::AudioInterfaceTypes *>(a0),sipType_Solid_AudioInterface_AudioInterfaceTypes,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Solid_AudioInterface_AudioInterfaceTypes___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Solid_AudioInterface_AudioInterfaceTypes___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Solid::AudioInterface::AudioInterfaceTypes *sipCpp = reinterpret_cast<Solid::AudioInterface::AudioInterfaceTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_AudioInterface_AudioInterfaceTypes));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Solid::AudioInterface::AudioInterfaceTypes * a0;
        int a0State = 0;

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

#line 311 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 98 "sipsolidpart6.cpp"
            sipReleaseType(const_cast<Solid::AudioInterface::AudioInterfaceTypes *>(a0),sipType_Solid_AudioInterface_AudioInterfaceTypes,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Solid_AudioInterface_AudioInterfaceTypes___invert__(PyObject *sipSelf);}
static PyObject *slot_Solid_AudioInterface_AudioInterfaceTypes___invert__(PyObject *sipSelf)
{
    Solid::AudioInterface::AudioInterfaceTypes *sipCpp = reinterpret_cast<Solid::AudioInterface::AudioInterfaceTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_AudioInterface_AudioInterfaceTypes));

    if (!sipCpp)
        return 0;


    {
        {
            Solid::AudioInterface::AudioInterfaceTypes *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Solid::AudioInterface::AudioInterfaceTypes(~(*sipCpp));
            Py_END_ALLOW_THREADS

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


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

    {
        Solid::AudioInterface::AudioInterfaceTypes * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Solid_AudioInterface_AudioInterfaceTypes, &a0, &a0State, &a1))
        {
            Solid::AudioInterface::AudioInterfaceTypes *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Solid::AudioInterface::AudioInterfaceTypes((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Solid_AudioInterface_AudioInterfaceTypes,a0State);

            return sipConvertFromNewType(sipRes,sipType_Solid_AudioInterface_AudioInterfaceTypes,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_AudioInterface_AudioInterfaceTypes___xor__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_Solid_AudioInterface_AudioInterfaceTypes___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        Solid::AudioInterface::AudioInterfaceTypes * a0;
        int a0State = 0;
        Solid::AudioInterface::AudioInterfaceTypes * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Solid_AudioInterface_AudioInterfaceTypes, &a0, &a0State, sipType_Solid_AudioInterface_AudioInterfaceTypes, &a1, &a1State))
        {
            Solid::AudioInterface::AudioInterfaceTypes *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Solid::AudioInterface::AudioInterfaceTypes((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Solid_AudioInterface_AudioInterfaceTypes,a0State);
            sipReleaseType(a1,sipType_Solid_AudioInterface_AudioInterfaceTypes,a1State);

            return sipConvertFromNewType(sipRes,sipType_Solid_AudioInterface_AudioInterfaceTypes,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_AudioInterface_AudioInterfaceTypes___or__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_Solid_AudioInterface_AudioInterfaceTypes___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        Solid::AudioInterface::AudioInterfaceTypes * a0;
        int a0State = 0;
        Solid::AudioInterface::AudioInterfaceTypes * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Solid_AudioInterface_AudioInterfaceTypes, &a0, &a0State, sipType_Solid_AudioInterface_AudioInterfaceTypes, &a1, &a1State))
        {
            Solid::AudioInterface::AudioInterfaceTypes *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Solid::AudioInterface::AudioInterfaceTypes((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Solid_AudioInterface_AudioInterfaceTypes,a0State);
            sipReleaseType(a1,sipType_Solid_AudioInterface_AudioInterfaceTypes,a1State);

            return sipConvertFromNewType(sipRes,sipType_Solid_AudioInterface_AudioInterfaceTypes,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_AudioInterface_AudioInterfaceTypes___int__(PyObject *sipSelf);}
static PyObject *slot_Solid_AudioInterface_AudioInterfaceTypes___int__(PyObject *sipSelf)
{
    Solid::AudioInterface::AudioInterfaceTypes *sipCpp = reinterpret_cast<Solid::AudioInterface::AudioInterfaceTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_AudioInterface_AudioInterfaceTypes));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }
}


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

    Solid::AudioInterface::AudioInterfaceTypes *sipCpp = reinterpret_cast<Solid::AudioInterface::AudioInterfaceTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_AudioInterface_AudioInterfaceTypes));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Solid::AudioInterface::AudioInterfaceTypes * a0;
        int a0State = 0;

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

    Solid::AudioInterface::AudioInterfaceTypes *sipCpp = reinterpret_cast<Solid::AudioInterface::AudioInterfaceTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_AudioInterface_AudioInterfaceTypes));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Solid::AudioInterface::AudioInterfaceTypes * a0;
        int a0State = 0;

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

    Solid::AudioInterface::AudioInterfaceTypes *sipCpp = reinterpret_cast<Solid::AudioInterface::AudioInterfaceTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_AudioInterface_AudioInterfaceTypes));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Solid::AudioInterface::AudioInterfaceTypes::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_AudioInterface_AudioInterfaceTypes(void *, const sipTypeDef *);}
static void *cast_Solid_AudioInterface_AudioInterfaceTypes(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_Solid_AudioInterface_AudioInterfaceTypes)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<Solid::AudioInterface::AudioInterfaceTypes *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Solid_AudioInterface_AudioInterfaceTypes(SIP_SSIZE_T);}
static void *array_Solid_AudioInterface_AudioInterfaceTypes(SIP_SSIZE_T sipNrElem)
{
    return new Solid::AudioInterface::AudioInterfaceTypes[sipNrElem];
}


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


extern "C" {static void dealloc_Solid_AudioInterface_AudioInterfaceTypes(sipSimpleWrapper *);}
static void dealloc_Solid_AudioInterface_AudioInterfaceTypes(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Solid_AudioInterface_AudioInterfaceTypes(sipSelf->u.cppPtr,0);
    }
}


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

    {
        const Solid::AudioInterface::AudioInterfaceTypes * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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

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

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Solid_AudioInterface_AudioInterfaceType)) ||
            sipCanConvertToType(sipPy, sipType_Solid_AudioInterface_AudioInterfaceTypes, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Solid_AudioInterface_AudioInterfaceType)))
{
    *sipCppPtr = new Solid::AudioInterface::AudioInterfaceTypes(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<Solid::AudioInterface::AudioInterfaceTypes *>(sipConvertToType(sipPy, sipType_Solid_AudioInterface_AudioInterfaceTypes, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 514 "sipsolidpart6.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Solid_AudioInterface_AudioInterfaceTypes[] = {
    {(void *)slot_Solid_AudioInterface_AudioInterfaceTypes___bool__, bool_slot},
    {(void *)slot_Solid_AudioInterface_AudioInterfaceTypes___ne__, ne_slot},
    {(void *)slot_Solid_AudioInterface_AudioInterfaceTypes___eq__, eq_slot},
    {(void *)slot_Solid_AudioInterface_AudioInterfaceTypes___invert__, invert_slot},
    {(void *)slot_Solid_AudioInterface_AudioInterfaceTypes___and__, and_slot},
    {(void *)slot_Solid_AudioInterface_AudioInterfaceTypes___xor__, xor_slot},
    {(void *)slot_Solid_AudioInterface_AudioInterfaceTypes___or__, or_slot},
    {(void *)slot_Solid_AudioInterface_AudioInterfaceTypes___int__, int_slot},
    {(void *)slot_Solid_AudioInterface_AudioInterfaceTypes___ixor__, ixor_slot},
    {(void *)slot_Solid_AudioInterface_AudioInterfaceTypes___ior__, ior_slot},
    {(void *)slot_Solid_AudioInterface_AudioInterfaceTypes___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_solid_Solid_AudioInterface_AudioInterfaceTypes = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Solid__AudioInterface__AudioInterfaceTypes,
        {0}
    },
    {
        sipNameNr_AudioInterfaceTypes,
        {5, 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_AudioInterface_AudioInterfaceTypes,
    init_Solid_AudioInterface_AudioInterfaceTypes,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_AudioInterface_AudioInterfaceTypes,
    assign_Solid_AudioInterface_AudioInterfaceTypes,
    array_Solid_AudioInterface_AudioInterfaceTypes,
    copy_Solid_AudioInterface_AudioInterfaceTypes,
    release_Solid_AudioInterface_AudioInterfaceTypes,
    cast_Solid_AudioInterface_AudioInterfaceTypes,
    convertTo_Solid_AudioInterface_AudioInterfaceTypes,
    0,
    0
},
    0,
    1,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/solid/audiointerface.sip"
#include <audiointerface.h>
#line 587 "sipsolidpart6.cpp"

#line 40 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 591 "sipsolidpart6.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/solid/audiointerface.sip"
#include <audiointerface.h>
#line 594 "sipsolidpart6.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 597 "sipsolidpart6.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 600 "sipsolidpart6.cpp"
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 603 "sipsolidpart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 606 "sipsolidpart6.cpp"
#line 318 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 609 "sipsolidpart6.cpp"
#line 305 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 612 "sipsolidpart6.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 615 "sipsolidpart6.cpp"
#line 43 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 618 "sipsolidpart6.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 621 "sipsolidpart6.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 624 "sipsolidpart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 627 "sipsolidpart6.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 630 "sipsolidpart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 633 "sipsolidpart6.cpp"


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

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

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

    return NULL;
}


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

    {
        Solid::AudioInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Solid_AudioInterface, &sipCpp))
        {
            Solid::AudioInterface::AudioDriver sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->driver();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Solid_AudioInterface_AudioDriver);
        }
    }

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

    return NULL;
}


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

    {
        Solid::AudioInterface *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(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_AudioInterface, sipName_driverHandle, NULL);

    return NULL;
}


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

    {
        Solid::AudioInterface *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Solid::AudioInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Solid_AudioInterface, &sipCpp))
        {
            Solid::AudioInterface::AudioInterfaceTypes *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Solid::AudioInterface::AudioInterfaceTypes(sipCpp->deviceType());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Solid::AudioInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Solid_AudioInterface, &sipCpp))
        {
            Solid::AudioInterface::SoundcardType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->soundcardType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Solid_AudioInterface_SoundcardType);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Solid_AudioInterface)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Solid_AudioInterface(sipSimpleWrapper *);}
static void dealloc_Solid_AudioInterface(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Solid_AudioInterface(sipSelf->u.cppPtr,0);
    }
}


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


static PyMethodDef methods_Solid_AudioInterface[] = {
    {SIP_MLNAME_CAST(sipName_deviceInterfaceType), meth_Solid_AudioInterface_deviceInterfaceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deviceType), meth_Solid_AudioInterface_deviceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_driver), meth_Solid_AudioInterface_driver, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_driverHandle), meth_Solid_AudioInterface_driverHandle, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_Solid_AudioInterface_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_soundcardType), meth_Solid_AudioInterface_soundcardType, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Solid_AudioInterface[] = {
    {sipName_Alsa, Solid::AudioInterface::Alsa, 6},
    {sipName_AudioControl, Solid::AudioInterface::AudioControl, 7},
    {sipName_AudioInput, Solid::AudioInterface::AudioInput, 7},
    {sipName_AudioOutput, Solid::AudioInterface::AudioOutput, 7},
    {sipName_FirewireSoundcard, Solid::AudioInterface::FirewireSoundcard, 9},
    {sipName_Headset, Solid::AudioInterface::Headset, 9},
    {sipName_InternalSoundcard, Solid::AudioInterface::InternalSoundcard, 9},
    {sipName_Modem, Solid::AudioInterface::Modem, 9},
    {sipName_OpenSoundSystem, Solid::AudioInterface::OpenSoundSystem, 6},
    {sipName_UnknownAudioDriver, Solid::AudioInterface::UnknownAudioDriver, 6},
    {sipName_UnknownAudioInterfaceType, Solid::AudioInterface::UnknownAudioInterfaceType, 7},
    {sipName_UsbSoundcard, Solid::AudioInterface::UsbSoundcard, 9},
};


pyqt4ClassTypeDef sipTypeDef_solid_Solid_AudioInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Solid__AudioInterface,
        {0}
    },
    {
        sipNameNr_AudioInterface,
        {3, 255, 0},
        6, methods_Solid_AudioInterface,
        12, enummembers_Solid_AudioInterface,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Solid_AudioInterface,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_AudioInterface,
    0,
    0,
    0,
    release_Solid_AudioInterface,
    cast_Solid_AudioInterface,
    0,
    0,
    0
},
    &Solid::AudioInterface::staticMetaObject,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/solid/acadapter.sip"
#include <acadapter.h>
#line 915 "sipsolidpart6.cpp"

#line 40 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 919 "sipsolidpart6.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 922 "sipsolidpart6.cpp"
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 925 "sipsolidpart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 928 "sipsolidpart6.cpp"
#line 318 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 931 "sipsolidpart6.cpp"
#line 305 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 934 "sipsolidpart6.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 937 "sipsolidpart6.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 940 "sipsolidpart6.cpp"
#line 43 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 943 "sipsolidpart6.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 946 "sipsolidpart6.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 949 "sipsolidpart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 952 "sipsolidpart6.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 955 "sipsolidpart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 958 "sipsolidpart6.cpp"


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

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

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

    return NULL;
}


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

    {
        Solid::AcAdapter *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isPlugged();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Solid_AcAdapter)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Solid_AcAdapter(sipSimpleWrapper *);}
static void dealloc_Solid_AcAdapter(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Solid_AcAdapter(sipSelf->u.cppPtr,0);
    }
}


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


static PyMethodDef methods_Solid_AcAdapter[] = {
    {SIP_MLNAME_CAST(sipName_deviceInterfaceType), meth_Solid_AcAdapter_deviceInterfaceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isPlugged), meth_Solid_AcAdapter_isPlugged, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Solid_AcAdapter[] = {
    {"plugStateChanged(bool,const QString&)", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_solid_Solid_AcAdapter = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Solid__AcAdapter,
        {0}
    },
    {
        sipNameNr_AcAdapter,
        {3, 255, 0},
        2, methods_Solid_AcAdapter,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Solid_AcAdapter,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_AcAdapter,
    0,
    0,
    0,
    release_Solid_AcAdapter,
    cast_Solid_AcAdapter,
    0,
    0,
    0
},
    &Solid::AcAdapter::staticMetaObject,
    0,
    pyqt4_signals_Solid_AcAdapter
};

#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 1120 "sipsolidpart6.cpp"

#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1124 "sipsolidpart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1127 "sipsolidpart6.cpp"
#line 318 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1130 "sipsolidpart6.cpp"
#line 305 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1133 "sipsolidpart6.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1136 "sipsolidpart6.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1139 "sipsolidpart6.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1142 "sipsolidpart6.cpp"
#line 43 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1145 "sipsolidpart6.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1148 "sipsolidpart6.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1151 "sipsolidpart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1154 "sipsolidpart6.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1157 "sipsolidpart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1160 "sipsolidpart6.cpp"


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

    {
        Solid::DeviceInterface *sipCpp;

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

    return NULL;
}


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

    {
        Solid::DeviceInterface::Type a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_Solid_DeviceInterface_Type, &a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Solid::DeviceInterface::typeToString(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = Solid::DeviceInterface::stringToType(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromEnum(sipRes,sipType_Solid_DeviceInterface_Type);
        }
    }

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

    return NULL;
}


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

    {
        Solid::DeviceInterface::Type a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_Solid_DeviceInterface_Type, &a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Solid::DeviceInterface::typeDescription(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_Solid_DeviceInterface)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Solid_DeviceInterface(sipSimpleWrapper *);}
static void dealloc_Solid_DeviceInterface(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Solid_DeviceInterface(sipSelf->u.cppPtr,0);
    }
}


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


static PyMethodDef methods_Solid_DeviceInterface[] = {
    {SIP_MLNAME_CAST(sipName_isValid), meth_Solid_DeviceInterface_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stringToType), meth_Solid_DeviceInterface_stringToType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_typeDescription), meth_Solid_DeviceInterface_typeDescription, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_typeToString), meth_Solid_DeviceInterface_typeToString, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Solid_DeviceInterface[] = {
    {sipName_AcAdapter, Solid::DeviceInterface::AcAdapter, 19},
    {sipName_AudioInterface, Solid::DeviceInterface::AudioInterface, 19},
    {sipName_Battery, Solid::DeviceInterface::Battery, 19},
    {sipName_Block, Solid::DeviceInterface::Block, 19},
    {sipName_Button, Solid::DeviceInterface::Button, 19},
    {sipName_Camera, Solid::DeviceInterface::Camera, 19},
    {sipName_DvbInterface, Solid::DeviceInterface::DvbInterface, 19},
    {sipName_GenericInterface, Solid::DeviceInterface::GenericInterface, 19},
    {sipName_Last, Solid::DeviceInterface::Last, 19},
    {sipName_NetworkInterface, Solid::DeviceInterface::NetworkInterface, 19},
    {sipName_OpticalDisc, Solid::DeviceInterface::OpticalDisc, 19},
    {sipName_OpticalDrive, Solid::DeviceInterface::OpticalDrive, 19},
    {sipName_PortableMediaPlayer, Solid::DeviceInterface::PortableMediaPlayer, 19},
    {sipName_Processor, Solid::DeviceInterface::Processor, 19},
    {sipName_SerialInterface, Solid::DeviceInterface::SerialInterface, 19},
    {sipName_SmartCardReader, Solid::DeviceInterface::SmartCardReader, 19},
    {sipName_StorageAccess, Solid::DeviceInterface::StorageAccess, 19},
    {sipName_StorageDrive, Solid::DeviceInterface::StorageDrive, 19},
    {sipName_StorageVolume, Solid::DeviceInterface::StorageVolume, 19},
    {sipName_Unknown, Solid::DeviceInterface::Unknown, 19},
    {sipName_Video, Solid::DeviceInterface::Video, 19},
};


pyqt4ClassTypeDef sipTypeDef_solid_Solid_DeviceInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Solid__DeviceInterface,
        {0}
    },
    {
        sipNameNr_DeviceInterface,
        {3, 255, 0},
        4, methods_Solid_DeviceInterface,
        21, enummembers_Solid_DeviceInterface,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Solid_DeviceInterface,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_DeviceInterface,
    0,
    0,
    0,
    release_Solid_DeviceInterface,
    cast_Solid_DeviceInterface,
    0,
    0,
    0
},
    &Solid::DeviceInterface::staticMetaObject,
    0,
    0
};



static sipEnumMemberDef enummembers_Solid[] = {
    {sipName_NoError, Solid::NoError, 23},
    {sipName_UnauthorizedOperation, Solid::UnauthorizedOperation, 23},
};


pyqt4ClassTypeDef sipTypeDef_solid_Solid = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Solid,
        {0}
    },
    {
        sipNameNr_Solid,
        {0, 0, 1},
        0, 0,
        2, enummembers_Solid,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};
