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

#include "sipAPIsolid.h"

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

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 16 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 19 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 22 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 31 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 37 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 40 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 46 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"


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

    {
        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_StorageDrive, sipName_deviceInterfaceType, NULL);

    return NULL;
}


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

    {
        Solid::StorageDrive *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_StorageDrive, sipName_bus, NULL);

    return NULL;
}


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

    {
        Solid::StorageDrive *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_StorageDrive, sipName_driveType, NULL);

    return NULL;
}


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

    {
        Solid::StorageDrive *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_StorageDrive, sipName_isRemovable, NULL);

    return NULL;
}


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

    {
        Solid::StorageDrive *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_StorageDrive, sipName_isHotpluggable, NULL);

    return NULL;
}


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

    {
        Solid::StorageDrive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Solid_StorageDrive, &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(sipParseErr, sipName_StorageDrive, sipName_size, NULL);

    return NULL;
}


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

    {
        Solid::StorageDrive *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isInUse();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    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(sipGetAddress(sipSelf),0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef 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_isInUse), meth_Solid_StorageDrive_isInUse, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isRemovable), meth_Solid_StorageDrive_isRemovable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_size), meth_Solid_StorageDrive_size, METH_VARARGS, NULL}
};

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


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

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

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


extern "C" {static int slot_Solid_OpticalDisc_ContentTypes___bool__(PyObject *);}
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 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 390 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_Solid_OpticalDisc_ContentTypes___ne__(PyObject *,PyObject *);}
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;

    PyObject *sipParseErr = NULL;

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Solid_OpticalDisc_ContentTypes___eq__(PyObject *,PyObject *);}
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;

    PyObject *sipParseErr = NULL;

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Solid_OpticalDisc_ContentTypes___invert__(PyObject *);}
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);
        }
    }

    return 0;
}


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

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

        if (sipParsePair(&sipParseErr, 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);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

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

        if (sipParsePair(&sipParseErr, 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);
        }
    }

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

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

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Solid::OpticalDisc::ContentTypes(*a0 ^ a1);
#line 565 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
            sipReleaseType(a0,sipType_Solid_OpticalDisc_ContentTypes,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

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

        if (sipParsePair(&sipParseErr, 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);
        }
    }

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

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

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Solid::OpticalDisc::ContentTypes(*a0 | a1);
#line 617 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
            sipReleaseType(a0,sipType_Solid_OpticalDisc_ContentTypes,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Solid_OpticalDisc_ContentTypes___int__(PyObject *);}
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);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_Solid_OpticalDisc_ContentTypes___ixor__(PyObject *,PyObject *);}
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;

    PyObject *sipParseErr = NULL;

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

        if (sipParseArgs(&sipParseErr, 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;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_Solid_OpticalDisc_ContentTypes___ior__(PyObject *,PyObject *);}
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;

    PyObject *sipParseErr = NULL;

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

        if (sipParseArgs(&sipParseErr, 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;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_Solid_OpticalDisc_ContentTypes___iand__(PyObject *,PyObject *);}
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;

    PyObject *sipParseErr = NULL;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Solid_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 *, SIP_SSIZE_T, const void *);}
static void assign_Solid_OpticalDisc_ContentTypes(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Solid::OpticalDisc::ContentTypes *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Solid::OpticalDisc::ContentTypes *>(sipSrc);
}


extern "C" {static void *array_Solid_OpticalDisc_ContentTypes(SIP_SSIZE_T);}
static void *array_Solid_OpticalDisc_ContentTypes(SIP_SSIZE_T sipNrElem)
{
    return new Solid::OpticalDisc::ContentTypes[sipNrElem];
}


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


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


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

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "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);

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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 336 "/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 912 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/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 sipTypeDef_solid_Solid_OpticalDisc_ContentTypes = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Solid__OpticalDisc__ContentTypes,
        {0}
    },
    {
        sipNameNr_ContentTypes,
        {36, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Solid_OpticalDisc_ContentTypes,
    init_Solid_OpticalDisc_ContentTypes,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_OpticalDisc_ContentTypes,
    assign_Solid_OpticalDisc_ContentTypes,
    array_Solid_OpticalDisc_ContentTypes,
    copy_Solid_OpticalDisc_ContentTypes,
    release_Solid_OpticalDisc_ContentTypes,
    cast_Solid_OpticalDisc_ContentTypes,
    convertTo_Solid_OpticalDisc_ContentTypes,
    0,
    0
},
    0,
    1,
    0
};

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

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 989 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/opticaldisc.sip"
#include <opticaldisc.h>
#line 992 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 995 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/device.sip"
#include <device.h>
#line 998 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1001 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/storagevolume.sip"
#include <storagevolume.h>
#line 1004 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1007 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1010 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1013 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1016 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1019 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1022 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1025 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1028 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1031 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1034 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1037 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"


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

    {
        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_OpticalDisc, sipName_deviceInterfaceType, NULL);

    return NULL;
}


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

    {
        Solid::OpticalDisc *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_OpticalDisc, sipName_availableContent, NULL);

    return NULL;
}


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

    {
        Solid::OpticalDisc *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_OpticalDisc, sipName_discType, NULL);

    return NULL;
}


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

    {
        Solid::OpticalDisc *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_OpticalDisc, sipName_isAppendable, NULL);

    return NULL;
}


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

    {
        Solid::OpticalDisc *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_OpticalDisc, sipName_isBlank, NULL);

    return NULL;
}


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

    {
        Solid::OpticalDisc *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_OpticalDisc, sipName_isRewritable, NULL);

    return NULL;
}


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

    {
        Solid::OpticalDisc *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_OpticalDisc, sipName_capacity, NULL);

    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(sipGetAddress(sipSelf),0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Solid_OpticalDisc[] = {{60, 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, 37},
    {sipName_BluRayRecordable, Solid::OpticalDisc::BluRayRecordable, 39},
    {sipName_BluRayRewritable, Solid::OpticalDisc::BluRayRewritable, 39},
    {sipName_BluRayRom, Solid::OpticalDisc::BluRayRom, 39},
    {sipName_CdRecordable, Solid::OpticalDisc::CdRecordable, 39},
    {sipName_CdRewritable, Solid::OpticalDisc::CdRewritable, 39},
    {sipName_CdRom, Solid::OpticalDisc::CdRom, 39},
    {sipName_Data, Solid::OpticalDisc::Data, 37},
    {sipName_DvdPlusRecordable, Solid::OpticalDisc::DvdPlusRecordable, 39},
    {sipName_DvdPlusRecordableDuallayer, Solid::OpticalDisc::DvdPlusRecordableDuallayer, 39},
    {sipName_DvdPlusRewritable, Solid::OpticalDisc::DvdPlusRewritable, 39},
    {sipName_DvdPlusRewritableDuallayer, Solid::OpticalDisc::DvdPlusRewritableDuallayer, 39},
    {sipName_DvdRam, Solid::OpticalDisc::DvdRam, 39},
    {sipName_DvdRecordable, Solid::OpticalDisc::DvdRecordable, 39},
    {sipName_DvdRewritable, Solid::OpticalDisc::DvdRewritable, 39},
    {sipName_DvdRom, Solid::OpticalDisc::DvdRom, 39},
    {sipName_HdDvdRecordable, Solid::OpticalDisc::HdDvdRecordable, 39},
    {sipName_HdDvdRewritable, Solid::OpticalDisc::HdDvdRewritable, 39},
    {sipName_HdDvdRom, Solid::OpticalDisc::HdDvdRom, 39},
    {sipName_NoContent, Solid::OpticalDisc::NoContent, 37},
    {sipName_SuperVideoCd, Solid::OpticalDisc::SuperVideoCd, 37},
    {sipName_UnknownDiscType, Solid::OpticalDisc::UnknownDiscType, 39},
    {sipName_VideoBluRay, Solid::OpticalDisc::VideoBluRay, 37},
    {sipName_VideoCd, Solid::OpticalDisc::VideoCd, 37},
    {sipName_VideoDvd, Solid::OpticalDisc::VideoDvd, 37},
};


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

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

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1364 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/device.sip"
#include <device.h>
#line 1367 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1370 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 1373 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1376 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1379 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1382 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1385 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1388 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1391 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1394 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1397 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1400 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1403 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1406 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"


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

    {
        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_StorageVolume, sipName_deviceInterfaceType, NULL);

    return NULL;
}


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

    {
        Solid::StorageVolume *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_StorageVolume, sipName_isIgnored, NULL);

    return NULL;
}


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

    {
        Solid::StorageVolume *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_StorageVolume, sipName_usage, NULL);

    return NULL;
}


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

    {
        Solid::StorageVolume *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_StorageVolume, sipName_fsType, NULL);

    return NULL;
}


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

    {
        Solid::StorageVolume *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_StorageVolume, sipName_label, NULL);

    return NULL;
}


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

    {
        Solid::StorageVolume *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_StorageVolume, sipName_uuid, NULL);

    return NULL;
}


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

    {
        Solid::StorageVolume *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_StorageVolume, sipName_size, NULL);

    return NULL;
}


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

    {
        Solid::StorageVolume *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_StorageVolume, sipName_encryptedContainer, NULL);

    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(sipGetAddress(sipSelf),0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef 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, 61},
    {sipName_FileSystem, Solid::StorageVolume::FileSystem, 61},
    {sipName_Other, Solid::StorageVolume::Other, 61},
    {sipName_PartitionTable, Solid::StorageVolume::PartitionTable, 61},
    {sipName_Raid, Solid::StorageVolume::Raid, 61},
    {sipName_Unused, Solid::StorageVolume::Unused, 61},
};


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

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/networkshare.sip"
#include <networkshare.h>
#line 1738 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1742 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 1745 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 1748 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1751 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1754 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1757 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1760 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1763 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1766 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1769 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1772 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1775 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1778 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1781 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1784 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/solid/sipsolidpart3.cpp"


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

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

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

            return sipConvertFromEnum(sipRes,sipType_Solid_DeviceInterface_Type);
        }
    }

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

    return NULL;
}


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

    {
        Solid::NetworkShare *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Solid_NetworkShare, &sipCpp))
        {
            Solid::NetworkShare::ShareType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->type();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Solid_NetworkShare_ShareType);
        }
    }

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

    return NULL;
}


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

    {
        Solid::NetworkShare *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(sipCpp->url());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_Solid_NetworkShare)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_Solid_NetworkShare[] = {
    {SIP_MLNAME_CAST(sipName_deviceInterfaceType), meth_Solid_NetworkShare_deviceInterfaceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Solid_NetworkShare_type, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_url), meth_Solid_NetworkShare_url, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Solid_NetworkShare[] = {
    {sipName_Cifs, Solid::NetworkShare::Cifs, 31},
    {sipName_Nfs, Solid::NetworkShare::Nfs, 31},
    {sipName_Unknown, Solid::NetworkShare::Unknown, 31},
    {sipName_Upnp, Solid::NetworkShare::Upnp, 31},
};


pyqt4ClassTypeDef sipTypeDef_solid_Solid_NetworkShare = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Solid__NetworkShare,
        {0}
    },
    {
        sipNameNr_NetworkShare,
        {3, 255, 0},
        3, methods_Solid_NetworkShare,
        4, enummembers_Solid_NetworkShare,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Solid_NetworkShare,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_NetworkShare,
    0,
    0,
    0,
    release_Solid_NetworkShare,
    cast_Solid_NetworkShare,
    0,
    0,
    0
},
    &Solid::NetworkShare::staticMetaObject,
    0,
    0
};
