/*
 * Module code.
 *
 * Generated by SIP 4.8.2 on Sun Oct 11 20:28:59 2009
 */

#include "sipAPIsolid.h"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/opticaldisc.sip"
#include <opticaldisc.h>
#line 12 "sipsolidpart3.cpp"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/opticaldisc.sip"
#include <opticaldisc.h>
#line 16 "sipsolidpart3.cpp"


extern "C" {static int slot_Solid_OpticalDisc_ContentTypes___bool__(PyObject *sipSelf);}
static int slot_Solid_OpticalDisc_ContentTypes___bool__(PyObject *sipSelf)
{
    Solid::OpticalDisc::ContentTypes *sipCpp = reinterpret_cast<Solid::OpticalDisc::ContentTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_OpticalDisc_ContentTypes));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

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

            return sipRes;
        }
    }
}


extern "C" {static PyObject *slot_Solid_OpticalDisc_ContentTypes___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Solid_OpticalDisc_ContentTypes___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Solid::OpticalDisc::ContentTypes *sipCpp = reinterpret_cast<Solid::OpticalDisc::ContentTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_OpticalDisc_ContentTypes));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Solid::OpticalDisc::ContentTypes * a0;
        int a0State = 0;

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

#line 266 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 62 "sipsolidpart3.cpp"

            sipReleaseType(const_cast<Solid::OpticalDisc::ContentTypes *>(a0),sipType_Solid_OpticalDisc_ContentTypes,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_Solid_OpticalDisc_ContentTypes___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Solid_OpticalDisc_ContentTypes___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Solid::OpticalDisc::ContentTypes *sipCpp = reinterpret_cast<Solid::OpticalDisc::ContentTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_OpticalDisc_ContentTypes));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Solid::OpticalDisc::ContentTypes * a0;
        int a0State = 0;

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

#line 261 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 94 "sipsolidpart3.cpp"

            sipReleaseType(const_cast<Solid::OpticalDisc::ContentTypes *>(a0),sipType_Solid_OpticalDisc_ContentTypes,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_Solid_OpticalDisc_ContentTypes___invert__(PyObject *sipSelf);}
static PyObject *slot_Solid_OpticalDisc_ContentTypes___invert__(PyObject *sipSelf)
{
    Solid::OpticalDisc::ContentTypes *sipCpp = reinterpret_cast<Solid::OpticalDisc::ContentTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_OpticalDisc_ContentTypes));

    if (!sipCpp)
        return 0;


    {
        {
            Solid::OpticalDisc::ContentTypes *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Solid::OpticalDisc::ContentTypes(~(*sipCpp));
            Py_END_ALLOW_THREADS

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


extern "C" {static PyObject *slot_Solid_OpticalDisc_ContentTypes___and__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_Solid_OpticalDisc_ContentTypes___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        Solid::OpticalDisc::ContentTypes * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1i",sipType_Solid_OpticalDisc_ContentTypes,&a0,&a0State,&a1))
        {
            Solid::OpticalDisc::ContentTypes *sipRes;

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

            sipReleaseType(a0,sipType_Solid_OpticalDisc_ContentTypes,a0State);

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

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


extern "C" {static PyObject *slot_Solid_OpticalDisc_ContentTypes___xor__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_Solid_OpticalDisc_ContentTypes___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        Solid::OpticalDisc::ContentTypes * a0;
        int a0State = 0;
        Solid::OpticalDisc::ContentTypes * a1;
        int a1State = 0;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_Solid_OpticalDisc_ContentTypes,&a0,&a0State,sipType_Solid_OpticalDisc_ContentTypes,&a1,&a1State))
        {
            Solid::OpticalDisc::ContentTypes *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Solid::OpticalDisc::ContentTypes((*a0 ^ *a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_Solid_OpticalDisc_ContentTypes,a0State);
            sipReleaseType(a1,sipType_Solid_OpticalDisc_ContentTypes,a1State);

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

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


extern "C" {static PyObject *slot_Solid_OpticalDisc_ContentTypes___or__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_Solid_OpticalDisc_ContentTypes___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        Solid::OpticalDisc::ContentTypes * a0;
        int a0State = 0;
        Solid::OpticalDisc::ContentTypes * a1;
        int a1State = 0;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_Solid_OpticalDisc_ContentTypes,&a0,&a0State,sipType_Solid_OpticalDisc_ContentTypes,&a1,&a1State))
        {
            Solid::OpticalDisc::ContentTypes *sipRes;

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

            sipReleaseType(a0,sipType_Solid_OpticalDisc_ContentTypes,a0State);
            sipReleaseType(a1,sipType_Solid_OpticalDisc_ContentTypes,a1State);

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

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


extern "C" {static PyObject *slot_Solid_OpticalDisc_ContentTypes___int__(PyObject *sipSelf);}
static PyObject *slot_Solid_OpticalDisc_ContentTypes___int__(PyObject *sipSelf)
{
    Solid::OpticalDisc::ContentTypes *sipCpp = reinterpret_cast<Solid::OpticalDisc::ContentTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_OpticalDisc_ContentTypes));

    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_OpticalDisc_ContentTypes___ixor__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Solid_OpticalDisc_ContentTypes___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Solid_OpticalDisc_ContentTypes)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Solid::OpticalDisc::ContentTypes *sipCpp = reinterpret_cast<Solid::OpticalDisc::ContentTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_OpticalDisc_ContentTypes));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        Solid::OpticalDisc::ContentTypes * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_Solid_OpticalDisc_ContentTypes,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Solid::OpticalDisc::ContentTypes::operator^=(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_Solid_OpticalDisc_ContentTypes,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    Solid::OpticalDisc::ContentTypes *sipCpp = reinterpret_cast<Solid::OpticalDisc::ContentTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_OpticalDisc_ContentTypes));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        Solid::OpticalDisc::ContentTypes * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_Solid_OpticalDisc_ContentTypes,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Solid::OpticalDisc::ContentTypes::operator|=(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_Solid_OpticalDisc_ContentTypes,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    Solid::OpticalDisc::ContentTypes *sipCpp = reinterpret_cast<Solid::OpticalDisc::ContentTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_OpticalDisc_ContentTypes));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        int a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Solid::OpticalDisc::ContentTypes::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    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_OpticalDisc_ContentTypes(void *, const sipTypeDef *);}
static void *cast_Solid_OpticalDisc_ContentTypes(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_Solid_OpticalDisc_ContentTypes)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<Solid::OpticalDisc::ContentTypes *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Solid_OpticalDisc_ContentTypes(void *, const void*);}
static void assign_Solid_OpticalDisc_ContentTypes(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<Solid::OpticalDisc::ContentTypes *>(sipDst) = *reinterpret_cast<const Solid::OpticalDisc::ContentTypes *>(sipSrc);
}


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


extern "C" {static void *init_Solid_OpticalDisc_ContentTypes(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Solid_OpticalDisc_ContentTypes(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    Solid::OpticalDisc::ContentTypes *sipCpp = 0;

    if (!sipCpp)
    {
        const Solid::OpticalDisc::ContentTypes * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_Solid_OpticalDisc_ContentTypes,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Solid::OpticalDisc::ContentTypes(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<Solid::OpticalDisc::ContentTypes *>(a0),sipType_Solid_OpticalDisc_ContentTypes,a0State);
        }
    }

    if (!sipCpp)
    {
        int a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Solid::OpticalDisc::ContentTypes(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Solid::OpticalDisc::ContentTypes();
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


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

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

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Solid_OpticalDisc_ContentType)) ||
            sipCanConvertToType(sipPy, sipType_Solid_OpticalDisc_ContentTypes, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Solid_OpticalDisc_ContentType)))
{
    *sipCppPtr = new Solid::OpticalDisc::ContentTypes(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<Solid::OpticalDisc::ContentTypes *>(sipConvertToType(sipPy, sipType_Solid_OpticalDisc_ContentTypes, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 465 "sipsolidpart3.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Solid_OpticalDisc_ContentTypes[] = {
    {(void *)slot_Solid_OpticalDisc_ContentTypes___bool__, bool_slot},
    {(void *)slot_Solid_OpticalDisc_ContentTypes___ne__, ne_slot},
    {(void *)slot_Solid_OpticalDisc_ContentTypes___eq__, eq_slot},
    {(void *)slot_Solid_OpticalDisc_ContentTypes___invert__, invert_slot},
    {(void *)slot_Solid_OpticalDisc_ContentTypes___and__, and_slot},
    {(void *)slot_Solid_OpticalDisc_ContentTypes___xor__, xor_slot},
    {(void *)slot_Solid_OpticalDisc_ContentTypes___or__, or_slot},
    {(void *)slot_Solid_OpticalDisc_ContentTypes___int__, int_slot},
    {(void *)slot_Solid_OpticalDisc_ContentTypes___ixor__, ixor_slot},
    {(void *)slot_Solid_OpticalDisc_ContentTypes___ior__, ior_slot},
    {(void *)slot_Solid_OpticalDisc_ContentTypes___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef pyqt4Type_solid_Solid_OpticalDisc_ContentTypes = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Solid__OpticalDisc__ContentTypes,
        {0}
    },
    sipNameNr_ContentTypes,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {30, 255, 0},
    0,
    slots_Solid_OpticalDisc_ContentTypes,
    0, 0,
    0, 0,
    0, 0,
    init_Solid_OpticalDisc_ContentTypes,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_OpticalDisc_ContentTypes,
    release_Solid_OpticalDisc_ContentTypes,
    cast_Solid_OpticalDisc_ContentTypes,
    convertTo_Solid_OpticalDisc_ContentTypes,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Solid_OpticalDisc_ContentTypes,
    0,
    1,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/storagevolume.sip"
#include <storagevolume.h>
#line 533 "sipsolidpart3.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 537 "sipsolidpart3.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/device.sip"
#include <device.h>
#line 540 "sipsolidpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 543 "sipsolidpart3.cpp"
#line 54 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 546 "sipsolidpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 549 "sipsolidpart3.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 552 "sipsolidpart3.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 555 "sipsolidpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 558 "sipsolidpart3.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 589 "sipsolidpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 592 "sipsolidpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 595 "sipsolidpart3.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 598 "sipsolidpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 601 "sipsolidpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 604 "sipsolidpart3.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 607 "sipsolidpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 610 "sipsolidpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 613 "sipsolidpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 616 "sipsolidpart3.cpp"


extern "C" {static PyObject *meth_Solid_StorageVolume_deviceInterfaceType(PyObject *, PyObject *);}
static PyObject *meth_Solid_StorageVolume_deviceInterfaceType(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

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

            return sipConvertFromEnum(sipRes,sipType_Solid_DeviceInterface_Type);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Solid_StorageVolume_isIgnored(PyObject *, PyObject *);}
static PyObject *meth_Solid_StorageVolume_isIgnored(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Solid::StorageVolume *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Solid_StorageVolume,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isIgnored();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_StorageVolume,sipName_isIgnored);

    return NULL;
}


extern "C" {static PyObject *meth_Solid_StorageVolume_usage(PyObject *, PyObject *);}
static PyObject *meth_Solid_StorageVolume_usage(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Solid::StorageVolume *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Solid_StorageVolume,&sipCpp))
        {
            Solid::StorageVolume::UsageType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->usage();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Solid_StorageVolume_UsageType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_StorageVolume,sipName_usage);

    return NULL;
}


extern "C" {static PyObject *meth_Solid_StorageVolume_fsType(PyObject *, PyObject *);}
static PyObject *meth_Solid_StorageVolume_fsType(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Solid::StorageVolume *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_StorageVolume,sipName_fsType);

    return NULL;
}


extern "C" {static PyObject *meth_Solid_StorageVolume_label(PyObject *, PyObject *);}
static PyObject *meth_Solid_StorageVolume_label(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Solid::StorageVolume *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_StorageVolume,sipName_label);

    return NULL;
}


extern "C" {static PyObject *meth_Solid_StorageVolume_uuid(PyObject *, PyObject *);}
static PyObject *meth_Solid_StorageVolume_uuid(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Solid::StorageVolume *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_StorageVolume,sipName_uuid);

    return NULL;
}


extern "C" {static PyObject *meth_Solid_StorageVolume_size(PyObject *, PyObject *);}
static PyObject *meth_Solid_StorageVolume_size(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Solid::StorageVolume *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Solid_StorageVolume,&sipCpp))
        {
            qulonglong sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->size();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_StorageVolume,sipName_size);

    return NULL;
}


extern "C" {static PyObject *meth_Solid_StorageVolume_encryptedContainer(PyObject *, PyObject *);}
static PyObject *meth_Solid_StorageVolume_encryptedContainer(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Solid::StorageVolume *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_StorageVolume,sipName_encryptedContainer);

    return NULL;
}


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

    if (targetType == sipType_Solid_StorageVolume)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_Solid_StorageVolume[] = {
    {SIP_MLNAME_CAST(sipName_deviceInterfaceType), meth_Solid_StorageVolume_deviceInterfaceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encryptedContainer), meth_Solid_StorageVolume_encryptedContainer, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fsType), meth_Solid_StorageVolume_fsType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isIgnored), meth_Solid_StorageVolume_isIgnored, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_label), meth_Solid_StorageVolume_label, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_size), meth_Solid_StorageVolume_size, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_usage), meth_Solid_StorageVolume_usage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_uuid), meth_Solid_StorageVolume_uuid, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Solid_StorageVolume[] = {
    {sipName_Encrypted, Solid::StorageVolume::Encrypted, 54},
    {sipName_FileSystem, Solid::StorageVolume::FileSystem, 54},
    {sipName_Other, Solid::StorageVolume::Other, 54},
    {sipName_PartitionTable, Solid::StorageVolume::PartitionTable, 54},
    {sipName_Raid, Solid::StorageVolume::Raid, 54},
    {sipName_Unused, Solid::StorageVolume::Unused, 54},
};


pyqt4ClassTypeDef pyqt4Type_solid_Solid_StorageVolume = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Solid__StorageVolume,
        {0}
    },
    sipNameNr_StorageVolume,
    -1,
    -1,
    {3, 255, 0},
    supers_Solid_StorageVolume,
    0,
    8, methods_Solid_StorageVolume,
    6, enummembers_Solid_StorageVolume,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_StorageVolume,
    release_Solid_StorageVolume,
    cast_Solid_StorageVolume,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Solid::StorageVolume::staticMetaObject,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/opticaldisc.sip"
#include <opticaldisc.h>
#line 943 "sipsolidpart3.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 947 "sipsolidpart3.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/opticaldisc.sip"
#include <opticaldisc.h>
#line 950 "sipsolidpart3.cpp"
#line 54 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 953 "sipsolidpart3.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/device.sip"
#include <device.h>
#line 956 "sipsolidpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 959 "sipsolidpart3.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/storagevolume.sip"
#include <storagevolume.h>
#line 962 "sipsolidpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 965 "sipsolidpart3.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 968 "sipsolidpart3.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 971 "sipsolidpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 974 "sipsolidpart3.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 1005 "sipsolidpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 1008 "sipsolidpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 1011 "sipsolidpart3.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1014 "sipsolidpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 1017 "sipsolidpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 1020 "sipsolidpart3.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1023 "sipsolidpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1026 "sipsolidpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1029 "sipsolidpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1032 "sipsolidpart3.cpp"


extern "C" {static PyObject *meth_Solid_OpticalDisc_deviceInterfaceType(PyObject *, PyObject *);}
static PyObject *meth_Solid_OpticalDisc_deviceInterfaceType(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

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

            return sipConvertFromEnum(sipRes,sipType_Solid_DeviceInterface_Type);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Solid_OpticalDisc_availableContent(PyObject *, PyObject *);}
static PyObject *meth_Solid_OpticalDisc_availableContent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Solid::OpticalDisc *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Solid_OpticalDisc,&sipCpp))
        {
            Solid::OpticalDisc::ContentTypes *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Solid::OpticalDisc::ContentTypes(sipCpp->availableContent());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_OpticalDisc,sipName_availableContent);

    return NULL;
}


extern "C" {static PyObject *meth_Solid_OpticalDisc_discType(PyObject *, PyObject *);}
static PyObject *meth_Solid_OpticalDisc_discType(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Solid::OpticalDisc *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Solid_OpticalDisc,&sipCpp))
        {
            Solid::OpticalDisc::DiscType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->discType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Solid_OpticalDisc_DiscType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_OpticalDisc,sipName_discType);

    return NULL;
}


extern "C" {static PyObject *meth_Solid_OpticalDisc_isAppendable(PyObject *, PyObject *);}
static PyObject *meth_Solid_OpticalDisc_isAppendable(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Solid::OpticalDisc *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Solid_OpticalDisc,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isAppendable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_OpticalDisc,sipName_isAppendable);

    return NULL;
}


extern "C" {static PyObject *meth_Solid_OpticalDisc_isBlank(PyObject *, PyObject *);}
static PyObject *meth_Solid_OpticalDisc_isBlank(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Solid::OpticalDisc *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Solid_OpticalDisc,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isBlank();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_OpticalDisc,sipName_isBlank);

    return NULL;
}


extern "C" {static PyObject *meth_Solid_OpticalDisc_isRewritable(PyObject *, PyObject *);}
static PyObject *meth_Solid_OpticalDisc_isRewritable(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Solid::OpticalDisc *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Solid_OpticalDisc,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isRewritable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_OpticalDisc,sipName_isRewritable);

    return NULL;
}


extern "C" {static PyObject *meth_Solid_OpticalDisc_capacity(PyObject *, PyObject *);}
static PyObject *meth_Solid_OpticalDisc_capacity(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Solid::OpticalDisc *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Solid_OpticalDisc,&sipCpp))
        {
            qulonglong sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->capacity();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_OpticalDisc,sipName_capacity);

    return NULL;
}


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

    if (targetType == sipType_Solid_OpticalDisc)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Solid_StorageVolume)->ctd_cast((Solid::StorageVolume *)(Solid::OpticalDisc *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


/* Define this type's super-types. */
static sipEncodedClassDef supers_Solid_OpticalDisc[] = {{53, 255, 1}};


static PyMethodDef methods_Solid_OpticalDisc[] = {
    {SIP_MLNAME_CAST(sipName_availableContent), meth_Solid_OpticalDisc_availableContent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_capacity), meth_Solid_OpticalDisc_capacity, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deviceInterfaceType), meth_Solid_OpticalDisc_deviceInterfaceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_discType), meth_Solid_OpticalDisc_discType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isAppendable), meth_Solid_OpticalDisc_isAppendable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isBlank), meth_Solid_OpticalDisc_isBlank, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isRewritable), meth_Solid_OpticalDisc_isRewritable, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Solid_OpticalDisc[] = {
    {sipName_Audio, Solid::OpticalDisc::Audio, 31},
    {sipName_BluRayRecordable, Solid::OpticalDisc::BluRayRecordable, 33},
    {sipName_BluRayRewritable, Solid::OpticalDisc::BluRayRewritable, 33},
    {sipName_BluRayRom, Solid::OpticalDisc::BluRayRom, 33},
    {sipName_CdRecordable, Solid::OpticalDisc::CdRecordable, 33},
    {sipName_CdRewritable, Solid::OpticalDisc::CdRewritable, 33},
    {sipName_CdRom, Solid::OpticalDisc::CdRom, 33},
    {sipName_Data, Solid::OpticalDisc::Data, 31},
    {sipName_DvdPlusRecordable, Solid::OpticalDisc::DvdPlusRecordable, 33},
    {sipName_DvdPlusRecordableDuallayer, Solid::OpticalDisc::DvdPlusRecordableDuallayer, 33},
    {sipName_DvdPlusRewritable, Solid::OpticalDisc::DvdPlusRewritable, 33},
    {sipName_DvdPlusRewritableDuallayer, Solid::OpticalDisc::DvdPlusRewritableDuallayer, 33},
    {sipName_DvdRam, Solid::OpticalDisc::DvdRam, 33},
    {sipName_DvdRecordable, Solid::OpticalDisc::DvdRecordable, 33},
    {sipName_DvdRewritable, Solid::OpticalDisc::DvdRewritable, 33},
    {sipName_DvdRom, Solid::OpticalDisc::DvdRom, 33},
    {sipName_HdDvdRecordable, Solid::OpticalDisc::HdDvdRecordable, 33},
    {sipName_HdDvdRewritable, Solid::OpticalDisc::HdDvdRewritable, 33},
    {sipName_HdDvdRom, Solid::OpticalDisc::HdDvdRom, 33},
    {sipName_SuperVideoCd, Solid::OpticalDisc::SuperVideoCd, 31},
    {sipName_UnknownDiscType, Solid::OpticalDisc::UnknownDiscType, 33},
    {sipName_VideoCd, Solid::OpticalDisc::VideoCd, 31},
    {sipName_VideoDvd, Solid::OpticalDisc::VideoDvd, 31},
};


pyqt4ClassTypeDef pyqt4Type_solid_Solid_OpticalDisc = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Solid__OpticalDisc,
        {0}
    },
    sipNameNr_OpticalDisc,
    -1,
    -1,
    {3, 255, 0},
    supers_Solid_OpticalDisc,
    0,
    7, methods_Solid_OpticalDisc,
    23, enummembers_Solid_OpticalDisc,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_OpticalDisc,
    release_Solid_OpticalDisc,
    cast_Solid_OpticalDisc,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Solid::OpticalDisc::staticMetaObject,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/networkinterface.sip"
#include <networkinterface.h>
#line 1348 "sipsolidpart3.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1352 "sipsolidpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1355 "sipsolidpart3.cpp"
#line 54 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 1358 "sipsolidpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1361 "sipsolidpart3.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1364 "sipsolidpart3.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1367 "sipsolidpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1370 "sipsolidpart3.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 1401 "sipsolidpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 1404 "sipsolidpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 1407 "sipsolidpart3.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1410 "sipsolidpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 1413 "sipsolidpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 1416 "sipsolidpart3.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1419 "sipsolidpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1422 "sipsolidpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1425 "sipsolidpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1428 "sipsolidpart3.cpp"


extern "C" {static PyObject *meth_Solid_NetworkInterface_deviceInterfaceType(PyObject *, PyObject *);}
static PyObject *meth_Solid_NetworkInterface_deviceInterfaceType(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

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

            return sipConvertFromEnum(sipRes,sipType_Solid_DeviceInterface_Type);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Solid_NetworkInterface_ifaceName(PyObject *, PyObject *);}
static PyObject *meth_Solid_NetworkInterface_ifaceName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Solid::NetworkInterface *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_NetworkInterface,sipName_ifaceName);

    return NULL;
}


extern "C" {static PyObject *meth_Solid_NetworkInterface_isWireless(PyObject *, PyObject *);}
static PyObject *meth_Solid_NetworkInterface_isWireless(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Solid::NetworkInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Solid_NetworkInterface,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isWireless();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_NetworkInterface,sipName_isWireless);

    return NULL;
}


extern "C" {static PyObject *meth_Solid_NetworkInterface_hwAddress(PyObject *, PyObject *);}
static PyObject *meth_Solid_NetworkInterface_hwAddress(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Solid::NetworkInterface *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_NetworkInterface,sipName_hwAddress);

    return NULL;
}


extern "C" {static PyObject *meth_Solid_NetworkInterface_macAddress(PyObject *, PyObject *);}
static PyObject *meth_Solid_NetworkInterface_macAddress(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Solid::NetworkInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Solid_NetworkInterface,&sipCpp))
        {
            qulonglong sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->macAddress();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_NetworkInterface,sipName_macAddress);

    return NULL;
}


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

    if (targetType == sipType_Solid_NetworkInterface)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_Solid_NetworkInterface[] = {
    {SIP_MLNAME_CAST(sipName_deviceInterfaceType), meth_Solid_NetworkInterface_deviceInterfaceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hwAddress), meth_Solid_NetworkInterface_hwAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ifaceName), meth_Solid_NetworkInterface_ifaceName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isWireless), meth_Solid_NetworkInterface_isWireless, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_macAddress), meth_Solid_NetworkInterface_macAddress, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_solid_Solid_NetworkInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Solid__NetworkInterface,
        {0}
    },
    sipNameNr_NetworkInterface,
    -1,
    -1,
    {3, 255, 0},
    supers_Solid_NetworkInterface,
    0,
    5, methods_Solid_NetworkInterface,
    0, 0,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_NetworkInterface,
    release_Solid_NetworkInterface,
    cast_Solid_NetworkInterface,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Solid::NetworkInterface::staticMetaObject,
    0,
    0
};




extern "C" {static PyObject *meth_Solid_Networking_status(PyObject *,PyObject *);}
static PyObject *meth_Solid_Networking_status(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            Solid::Networking::Status sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Solid::Networking::status();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Solid_Networking_Status);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_status);

    return NULL;
}


static PyMethodDef methods_Solid_Networking[] = {
    {SIP_MLNAME_CAST(sipName_status), meth_Solid_Networking_status, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Solid_Networking[] = {
    {sipName_Connected, Solid::Networking::Connected, 29},
    {sipName_Connecting, Solid::Networking::Connecting, 29},
    {sipName_Disconnecting, Solid::Networking::Disconnecting, 29},
    {sipName_Managed, Solid::Networking::Managed, 28},
    {sipName_Manual, Solid::Networking::Manual, 28},
    {sipName_OnNextStatusChange, Solid::Networking::OnNextStatusChange, 28},
    {sipName_Unconnected, Solid::Networking::Unconnected, 29},
    {sipName_Unknown, Solid::Networking::Unknown, 29},
};


pyqt4ClassTypeDef pyqt4Type_solid_Solid_Networking = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Solid__Networking,
        {0}
    },
    sipNameNr_Networking,
    -1,
    -1,
    {3, 255, 0},
    0,
    0,
    1, methods_Solid_Networking,
    8, enummembers_Solid_Networking,
    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, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};
