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

#include "sipAPIsolid.h"


#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/powermanagement.sip"
#include <qset.h>
#include <powermanagement.h>
#line 74 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/predicate.sip"
#include <qset.h>
#include <powermanagement.h>
#line 17 "sipsolidpart2.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 20 "sipsolidpart2.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 23 "sipsolidpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 26 "sipsolidpart2.cpp"


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

    {
        int a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"i",&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Solid::PowerManagement::stopSuppressingSleep(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"|J1",sipType_QString,&a0,&a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Solid::PowerManagement::beginSuppressingSleep(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Solid::PowerManagement::SleepState a0;
        QObject * a1;
        const char * a2;
        PyObject *a2Keep;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"EJ8AA",sipType_Solid_PowerManagement_SleepState,&a0,sipType_QObject,&a1,&a2Keep,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            Solid::PowerManagement::requestSleep(a0,a1,a2);
            Py_END_ALLOW_THREADS
            Py_DECREF(a2Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            QSet<Solid::PowerManagement::SleepState> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSet<Solid::PowerManagement::SleepState>(Solid::PowerManagement::supportedSleepStates());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QSet_0500Solid_PowerManagement_SleepState,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Solid::PowerManagement::appShouldConserveResources();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


static PyMethodDef methods_Solid_PowerManagement[] = {
    {SIP_MLNAME_CAST(sipName_appShouldConserveResources), meth_Solid_PowerManagement_appShouldConserveResources, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_beginSuppressingSleep), meth_Solid_PowerManagement_beginSuppressingSleep, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_requestSleep), meth_Solid_PowerManagement_requestSleep, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stopSuppressingSleep), meth_Solid_PowerManagement_stopSuppressingSleep, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedSleepStates), meth_Solid_PowerManagement_supportedSleepStates, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Solid_PowerManagement[] = {
    {sipName_HibernateState, Solid::PowerManagement::HibernateState, 39},
    {sipName_StandbyState, Solid::PowerManagement::StandbyState, 39},
    {sipName_SuspendState, Solid::PowerManagement::SuspendState, 39},
};


pyqt4ClassTypeDef pyqt4Type_solid_Solid_PowerManagement = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Solid__PowerManagement,
        {0}
    },
    sipNameNr_PowerManagement,
    -1,
    -1,
    {3, 255, 0},
    0,
    0,
    5, methods_Solid_PowerManagement,
    3, enummembers_Solid_PowerManagement,
    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
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/portablemediaplayer.sip"
#include <portablemediaplayer.h>
#line 232 "sipsolidpart2.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 236 "sipsolidpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 239 "sipsolidpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 242 "sipsolidpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 245 "sipsolidpart2.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 248 "sipsolidpart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 251 "sipsolidpart2.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 254 "sipsolidpart2.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 257 "sipsolidpart2.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 288 "sipsolidpart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 291 "sipsolidpart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 294 "sipsolidpart2.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 297 "sipsolidpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 300 "sipsolidpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 303 "sipsolidpart2.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 306 "sipsolidpart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 309 "sipsolidpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 312 "sipsolidpart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 315 "sipsolidpart2.cpp"


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = Solid::PortableMediaPlayer::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_PortableMediaPlayer,sipName_deviceInterfaceType);

    return NULL;
}


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

    {
        Solid::PortableMediaPlayer *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->supportedDrivers(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_QString,a0State);

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->driverHandle(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    if (targetType == sipType_Solid_PortableMediaPlayer)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_Solid_PortableMediaPlayer[] = {
    {SIP_MLNAME_CAST(sipName_deviceInterfaceType), meth_Solid_PortableMediaPlayer_deviceInterfaceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_driverHandle), meth_Solid_PortableMediaPlayer_driverHandle, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedDrivers), meth_Solid_PortableMediaPlayer_supportedDrivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedProtocols), meth_Solid_PortableMediaPlayer_supportedProtocols, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_solid_Solid_PortableMediaPlayer = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Solid__PortableMediaPlayer,
        {0}
    },
    sipNameNr_PortableMediaPlayer,
    -1,
    -1,
    {3, 255, 0},
    supers_Solid_PortableMediaPlayer,
    0,
    4, methods_Solid_PortableMediaPlayer,
    0, 0,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_PortableMediaPlayer,
    release_Solid_PortableMediaPlayer,
    cast_Solid_PortableMediaPlayer,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Solid::PortableMediaPlayer::staticMetaObject,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/opticaldrive.sip"
#include <opticaldrive.h>
#line 530 "sipsolidpart2.cpp"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/opticaldrive.sip"
#include <opticaldrive.h>
#line 534 "sipsolidpart2.cpp"


extern "C" {static int slot_Solid_OpticalDrive_MediumTypes___bool__(PyObject *sipSelf);}
static int slot_Solid_OpticalDrive_MediumTypes___bool__(PyObject *sipSelf)
{
    Solid::OpticalDrive::MediumTypes *sipCpp = reinterpret_cast<Solid::OpticalDrive::MediumTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_OpticalDrive_MediumTypes));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

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

            return sipRes;
        }
    }
}


extern "C" {static PyObject *slot_Solid_OpticalDrive_MediumTypes___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Solid_OpticalDrive_MediumTypes___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Solid::OpticalDrive::MediumTypes *sipCpp = reinterpret_cast<Solid::OpticalDrive::MediumTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_OpticalDrive_MediumTypes));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Solid::OpticalDrive::MediumTypes * a0;
        int a0State = 0;

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

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

            sipReleaseType(const_cast<Solid::OpticalDrive::MediumTypes *>(a0),sipType_Solid_OpticalDrive_MediumTypes,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_Solid_OpticalDrive_MediumTypes___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Solid_OpticalDrive_MediumTypes___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Solid::OpticalDrive::MediumTypes *sipCpp = reinterpret_cast<Solid::OpticalDrive::MediumTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_OpticalDrive_MediumTypes));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Solid::OpticalDrive::MediumTypes * a0;
        int a0State = 0;

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

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

            sipReleaseType(const_cast<Solid::OpticalDrive::MediumTypes *>(a0),sipType_Solid_OpticalDrive_MediumTypes,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_Solid_OpticalDrive_MediumTypes___invert__(PyObject *sipSelf);}
static PyObject *slot_Solid_OpticalDrive_MediumTypes___invert__(PyObject *sipSelf)
{
    Solid::OpticalDrive::MediumTypes *sipCpp = reinterpret_cast<Solid::OpticalDrive::MediumTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_OpticalDrive_MediumTypes));

    if (!sipCpp)
        return 0;


    {
        {
            Solid::OpticalDrive::MediumTypes *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Solid::OpticalDrive::MediumTypes(~(*sipCpp));
            Py_END_ALLOW_THREADS

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


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

    {
        Solid::OpticalDrive::MediumTypes * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1i",sipType_Solid_OpticalDrive_MediumTypes,&a0,&a0State,&a1))
        {
            Solid::OpticalDrive::MediumTypes *sipRes;

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

            sipReleaseType(a0,sipType_Solid_OpticalDrive_MediumTypes,a0State);

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

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


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

    {
        Solid::OpticalDrive::MediumTypes * a0;
        int a0State = 0;
        Solid::OpticalDrive::MediumTypes * a1;
        int a1State = 0;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_Solid_OpticalDrive_MediumTypes,&a0,&a0State,sipType_Solid_OpticalDrive_MediumTypes,&a1,&a1State))
        {
            Solid::OpticalDrive::MediumTypes *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Solid::OpticalDrive::MediumTypes((*a0 ^ *a1));
            Py_END_ALLOW_THREADS

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

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

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


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

    {
        Solid::OpticalDrive::MediumTypes * a0;
        int a0State = 0;
        Solid::OpticalDrive::MediumTypes * a1;
        int a1State = 0;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_Solid_OpticalDrive_MediumTypes,&a0,&a0State,sipType_Solid_OpticalDrive_MediumTypes,&a1,&a1State))
        {
            Solid::OpticalDrive::MediumTypes *sipRes;

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

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

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

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


extern "C" {static PyObject *slot_Solid_OpticalDrive_MediumTypes___int__(PyObject *sipSelf);}
static PyObject *slot_Solid_OpticalDrive_MediumTypes___int__(PyObject *sipSelf)
{
    Solid::OpticalDrive::MediumTypes *sipCpp = reinterpret_cast<Solid::OpticalDrive::MediumTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_OpticalDrive_MediumTypes));

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

    Solid::OpticalDrive::MediumTypes *sipCpp = reinterpret_cast<Solid::OpticalDrive::MediumTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_OpticalDrive_MediumTypes));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        Solid::OpticalDrive::MediumTypes * a0;
        int a0State = 0;

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

            sipReleaseType(a0,sipType_Solid_OpticalDrive_MediumTypes,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    Solid::OpticalDrive::MediumTypes *sipCpp = reinterpret_cast<Solid::OpticalDrive::MediumTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_OpticalDrive_MediumTypes));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        Solid::OpticalDrive::MediumTypes * a0;
        int a0State = 0;

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

            sipReleaseType(a0,sipType_Solid_OpticalDrive_MediumTypes,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    Solid::OpticalDrive::MediumTypes *sipCpp = reinterpret_cast<Solid::OpticalDrive::MediumTypes *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Solid_OpticalDrive_MediumTypes));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        int a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Solid::OpticalDrive::MediumTypes::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_OpticalDrive_MediumTypes(void *, const sipTypeDef *);}
static void *cast_Solid_OpticalDrive_MediumTypes(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_Solid_OpticalDrive_MediumTypes)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<Solid::OpticalDrive::MediumTypes *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Solid_OpticalDrive_MediumTypes(void *, const void*);}
static void assign_Solid_OpticalDrive_MediumTypes(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<Solid::OpticalDrive::MediumTypes *>(sipDst) = *reinterpret_cast<const Solid::OpticalDrive::MediumTypes *>(sipSrc);
}


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


extern "C" {static void *init_Solid_OpticalDrive_MediumTypes(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Solid_OpticalDrive_MediumTypes(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    Solid::OpticalDrive::MediumTypes *sipCpp = 0;

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

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_Solid_OpticalDrive_MediumTypes,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Solid::OpticalDrive::MediumTypes(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<Solid::OpticalDrive::MediumTypes *>(a0),sipType_Solid_OpticalDrive_MediumTypes,a0State);
        }
    }

    if (!sipCpp)
    {
        int a0;

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

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

    return sipCpp;
}


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

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

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Solid_OpticalDrive_MediumType)) ||
            sipCanConvertToType(sipPy, sipType_Solid_OpticalDrive_MediumTypes, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Solid_OpticalDrive_MediumType)))
{
    *sipCppPtr = new Solid::OpticalDrive::MediumTypes(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<Solid::OpticalDrive::MediumTypes *>(sipConvertToType(sipPy, sipType_Solid_OpticalDrive_MediumTypes, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 983 "sipsolidpart2.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Solid_OpticalDrive_MediumTypes[] = {
    {(void *)slot_Solid_OpticalDrive_MediumTypes___bool__, bool_slot},
    {(void *)slot_Solid_OpticalDrive_MediumTypes___ne__, ne_slot},
    {(void *)slot_Solid_OpticalDrive_MediumTypes___eq__, eq_slot},
    {(void *)slot_Solid_OpticalDrive_MediumTypes___invert__, invert_slot},
    {(void *)slot_Solid_OpticalDrive_MediumTypes___and__, and_slot},
    {(void *)slot_Solid_OpticalDrive_MediumTypes___xor__, xor_slot},
    {(void *)slot_Solid_OpticalDrive_MediumTypes___or__, or_slot},
    {(void *)slot_Solid_OpticalDrive_MediumTypes___int__, int_slot},
    {(void *)slot_Solid_OpticalDrive_MediumTypes___ixor__, ixor_slot},
    {(void *)slot_Solid_OpticalDrive_MediumTypes___ior__, ior_slot},
    {(void *)slot_Solid_OpticalDrive_MediumTypes___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef pyqt4Type_solid_Solid_OpticalDrive_MediumTypes = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Solid__OpticalDrive__MediumTypes,
        {0}
    },
    sipNameNr_MediumTypes,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {34, 255, 0},
    0,
    slots_Solid_OpticalDrive_MediumTypes,
    0, 0,
    0, 0,
    0, 0,
    init_Solid_OpticalDrive_MediumTypes,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_OpticalDrive_MediumTypes,
    release_Solid_OpticalDrive_MediumTypes,
    cast_Solid_OpticalDrive_MediumTypes,
    convertTo_Solid_OpticalDrive_MediumTypes,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Solid_OpticalDrive_MediumTypes,
    0,
    1,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/storagedrive.sip"
#include <storagedrive.h>
#line 1051 "sipsolidpart2.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1055 "sipsolidpart2.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 1058 "sipsolidpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1061 "sipsolidpart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1064 "sipsolidpart2.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1067 "sipsolidpart2.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1070 "sipsolidpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1073 "sipsolidpart2.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 1104 "sipsolidpart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 1107 "sipsolidpart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 1110 "sipsolidpart2.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1113 "sipsolidpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 1116 "sipsolidpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 1119 "sipsolidpart2.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1122 "sipsolidpart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1125 "sipsolidpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1128 "sipsolidpart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1131 "sipsolidpart2.cpp"


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = Solid::StorageDrive::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_StorageDrive,sipName_deviceInterfaceType);

    return NULL;
}


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

    {
        Solid::StorageDrive *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Solid_StorageDrive,&sipCpp))
        {
            Solid::StorageDrive::Bus sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->bus();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Solid_StorageDrive_Bus);
        }
    }

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

    return NULL;
}


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

    {
        Solid::StorageDrive *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Solid_StorageDrive,&sipCpp))
        {
            Solid::StorageDrive::DriveType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->driveType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Solid_StorageDrive_DriveType);
        }
    }

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

    return NULL;
}


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

    {
        Solid::StorageDrive *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isRemovable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Solid::StorageDrive *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isHotpluggable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Solid_StorageDrive)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_Solid_StorageDrive[] = {
    {SIP_MLNAME_CAST(sipName_bus), meth_Solid_StorageDrive_bus, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deviceInterfaceType), meth_Solid_StorageDrive_deviceInterfaceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_driveType), meth_Solid_StorageDrive_driveType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isHotpluggable), meth_Solid_StorageDrive_isHotpluggable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isRemovable), meth_Solid_StorageDrive_isRemovable, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Solid_StorageDrive[] = {
    {sipName_CdromDrive, Solid::StorageDrive::CdromDrive, 52},
    {sipName_CompactFlash, Solid::StorageDrive::CompactFlash, 52},
    {sipName_Floppy, Solid::StorageDrive::Floppy, 52},
    {sipName_HardDisk, Solid::StorageDrive::HardDisk, 52},
    {sipName_Ide, Solid::StorageDrive::Ide, 51},
    {sipName_Ieee1394, Solid::StorageDrive::Ieee1394, 51},
    {sipName_MemoryStick, Solid::StorageDrive::MemoryStick, 52},
    {sipName_Platform, Solid::StorageDrive::Platform, 51},
    {sipName_Sata, Solid::StorageDrive::Sata, 51},
    {sipName_Scsi, Solid::StorageDrive::Scsi, 51},
    {sipName_SdMmc, Solid::StorageDrive::SdMmc, 52},
    {sipName_SmartMedia, Solid::StorageDrive::SmartMedia, 52},
    {sipName_Tape, Solid::StorageDrive::Tape, 52},
    {sipName_Usb, Solid::StorageDrive::Usb, 51},
    {sipName_Xd, Solid::StorageDrive::Xd, 52},
};


pyqt4ClassTypeDef pyqt4Type_solid_Solid_StorageDrive = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Solid__StorageDrive,
        {0}
    },
    sipNameNr_StorageDrive,
    -1,
    -1,
    {3, 255, 0},
    supers_Solid_StorageDrive,
    0,
    5, methods_Solid_StorageDrive,
    15, enummembers_Solid_StorageDrive,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_StorageDrive,
    release_Solid_StorageDrive,
    cast_Solid_StorageDrive,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Solid::StorageDrive::staticMetaObject,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/opticaldrive.sip"
#include <opticaldrive.h>
#line 1383 "sipsolidpart2.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1387 "sipsolidpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1390 "sipsolidpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1393 "sipsolidpart2.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 1424 "sipsolidpart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 1427 "sipsolidpart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 1430 "sipsolidpart2.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1433 "sipsolidpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 1436 "sipsolidpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 1439 "sipsolidpart2.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/opticaldrive.sip"
#include <opticaldrive.h>
#line 1442 "sipsolidpart2.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 1445 "sipsolidpart2.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/storagedrive.sip"
#include <storagedrive.h>
#line 1448 "sipsolidpart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1451 "sipsolidpart2.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1454 "sipsolidpart2.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1457 "sipsolidpart2.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1460 "sipsolidpart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1463 "sipsolidpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1466 "sipsolidpart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1469 "sipsolidpart2.cpp"


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = Solid::OpticalDrive::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_OpticalDrive,sipName_deviceInterfaceType);

    return NULL;
}


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

    {
        Solid::OpticalDrive *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Solid_OpticalDrive,&sipCpp))
        {
            Solid::OpticalDrive::MediumTypes *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Solid::OpticalDrive::MediumTypes(sipCpp->supportedMedia());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Solid::OpticalDrive *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Solid_OpticalDrive,&sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->readSpeed();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Solid::OpticalDrive *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Solid_OpticalDrive,&sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->writeSpeed();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Solid::OpticalDrive *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Solid_OpticalDrive,&sipCpp))
        {
            QList<int> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<int>(sipCpp->writeSpeeds());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_1800,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        Solid::OpticalDrive *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->eject();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Solid_OpticalDrive)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Solid_StorageDrive)->ctd_cast((Solid::StorageDrive *)(Solid::OpticalDrive *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_Solid_OpticalDrive[] = {
    {SIP_MLNAME_CAST(sipName_deviceInterfaceType), meth_Solid_OpticalDrive_deviceInterfaceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_eject), meth_Solid_OpticalDrive_eject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readSpeed), meth_Solid_OpticalDrive_readSpeed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedMedia), meth_Solid_OpticalDrive_supportedMedia, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeSpeed), meth_Solid_OpticalDrive_writeSpeed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeSpeeds), meth_Solid_OpticalDrive_writeSpeeds, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Solid_OpticalDrive[] = {
    {sipName_Bd, Solid::OpticalDrive::Bd, 35},
    {sipName_Bdr, Solid::OpticalDrive::Bdr, 35},
    {sipName_Bdre, Solid::OpticalDrive::Bdre, 35},
    {sipName_Cdr, Solid::OpticalDrive::Cdr, 35},
    {sipName_Cdrw, Solid::OpticalDrive::Cdrw, 35},
    {sipName_Dvd, Solid::OpticalDrive::Dvd, 35},
    {sipName_Dvdplusdl, Solid::OpticalDrive::Dvdplusdl, 35},
    {sipName_Dvdplusdlrw, Solid::OpticalDrive::Dvdplusdlrw, 35},
    {sipName_Dvdplusr, Solid::OpticalDrive::Dvdplusr, 35},
    {sipName_Dvdplusrw, Solid::OpticalDrive::Dvdplusrw, 35},
    {sipName_Dvdr, Solid::OpticalDrive::Dvdr, 35},
    {sipName_Dvdram, Solid::OpticalDrive::Dvdram, 35},
    {sipName_Dvdrw, Solid::OpticalDrive::Dvdrw, 35},
    {sipName_HdDvd, Solid::OpticalDrive::HdDvd, 35},
    {sipName_HdDvdr, Solid::OpticalDrive::HdDvdr, 35},
    {sipName_HdDvdrw, Solid::OpticalDrive::HdDvdrw, 35},
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Solid_OpticalDrive[] = {
    {"ejectDone(Solid::ErrorType,QVariant,const QString&)", 0},
    {"ejectPressed(const QString&)", 0},
    {0, 0}
};


pyqt4ClassTypeDef pyqt4Type_solid_Solid_OpticalDrive = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Solid__OpticalDrive,
        {0}
    },
    sipNameNr_OpticalDrive,
    -1,
    -1,
    {3, 255, 0},
    supers_Solid_OpticalDrive,
    0,
    6, methods_Solid_OpticalDrive,
    16, enummembers_Solid_OpticalDrive,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_OpticalDrive,
    release_Solid_OpticalDrive,
    cast_Solid_OpticalDrive,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Solid::OpticalDrive::staticMetaObject,
    0,
    pyqt4_signals_Solid_OpticalDrive
};
