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

#include "sipAPIsolid.h"

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/storagedrive.sip"
#include <storagedrive.h>
#line 12 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"

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

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

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

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

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

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

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


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Solid_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, static_cast<int>(Solid::StorageDrive::CdromDrive), 59},
    {sipName_CompactFlash, static_cast<int>(Solid::StorageDrive::CompactFlash), 59},
    {sipName_Floppy, static_cast<int>(Solid::StorageDrive::Floppy), 59},
    {sipName_HardDisk, static_cast<int>(Solid::StorageDrive::HardDisk), 59},
    {sipName_Ide, static_cast<int>(Solid::StorageDrive::Ide), 58},
    {sipName_Ieee1394, static_cast<int>(Solid::StorageDrive::Ieee1394), 58},
    {sipName_MemoryStick, static_cast<int>(Solid::StorageDrive::MemoryStick), 59},
    {sipName_Platform, static_cast<int>(Solid::StorageDrive::Platform), 58},
    {sipName_Sata, static_cast<int>(Solid::StorageDrive::Sata), 58},
    {sipName_Scsi, static_cast<int>(Solid::StorageDrive::Scsi), 58},
    {sipName_SdMmc, static_cast<int>(Solid::StorageDrive::SdMmc), 59},
    {sipName_SmartMedia, static_cast<int>(Solid::StorageDrive::SmartMedia), 59},
    {sipName_Tape, static_cast<int>(Solid::StorageDrive::Tape), 59},
    {sipName_Usb, static_cast<int>(Solid::StorageDrive::Usb), 58},
    {sipName_Xd, static_cast<int>(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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Solid::StorageDrive::staticMetaObject,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/opticaldisc.sip"
#include <opticaldisc.h>
#line 360 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/opticaldisc.sip"
#include <opticaldisc.h>
#line 364 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 389 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Solid::OpticalDisc::ContentTypes::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 386 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 380 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Solid::OpticalDisc::ContentTypes::Int() != a0->operator Solid::OpticalDisc::ContentTypes::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 420 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 371 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Solid::OpticalDisc::ContentTypes::Int() == a0->operator Solid::OpticalDisc::ContentTypes::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 460 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 365 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new Solid::OpticalDisc::ContentTypes(*a0 ^ a1);
#line 569 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 360 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new Solid::OpticalDisc::ContentTypes(*a0 | a1);
#line 621 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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;
}


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

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/opticaldisc.sip"
#include <opticaldisc.h>
#line 981 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 985 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/opticaldisc.sip"
#include <opticaldisc.h>
#line 988 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 58 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 991 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/device.sip"
#include <device.h>
#line 994 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 997 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/storagevolume.sip"
#include <storagevolume.h>
#line 1000 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1003 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1006 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1009 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1012 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1015 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1018 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1021 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1024 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 1027 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1030 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1033 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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;

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

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

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

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

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

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


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Solid_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, static_cast<int>(Solid::OpticalDisc::Audio), 37},
    {sipName_BluRayRecordable, static_cast<int>(Solid::OpticalDisc::BluRayRecordable), 39},
    {sipName_BluRayRewritable, static_cast<int>(Solid::OpticalDisc::BluRayRewritable), 39},
    {sipName_BluRayRom, static_cast<int>(Solid::OpticalDisc::BluRayRom), 39},
    {sipName_CdRecordable, static_cast<int>(Solid::OpticalDisc::CdRecordable), 39},
    {sipName_CdRewritable, static_cast<int>(Solid::OpticalDisc::CdRewritable), 39},
    {sipName_CdRom, static_cast<int>(Solid::OpticalDisc::CdRom), 39},
    {sipName_Data, static_cast<int>(Solid::OpticalDisc::Data), 37},
    {sipName_DvdPlusRecordable, static_cast<int>(Solid::OpticalDisc::DvdPlusRecordable), 39},
    {sipName_DvdPlusRecordableDuallayer, static_cast<int>(Solid::OpticalDisc::DvdPlusRecordableDuallayer), 39},
    {sipName_DvdPlusRewritable, static_cast<int>(Solid::OpticalDisc::DvdPlusRewritable), 39},
    {sipName_DvdPlusRewritableDuallayer, static_cast<int>(Solid::OpticalDisc::DvdPlusRewritableDuallayer), 39},
    {sipName_DvdRam, static_cast<int>(Solid::OpticalDisc::DvdRam), 39},
    {sipName_DvdRecordable, static_cast<int>(Solid::OpticalDisc::DvdRecordable), 39},
    {sipName_DvdRewritable, static_cast<int>(Solid::OpticalDisc::DvdRewritable), 39},
    {sipName_DvdRom, static_cast<int>(Solid::OpticalDisc::DvdRom), 39},
    {sipName_HdDvdRecordable, static_cast<int>(Solid::OpticalDisc::HdDvdRecordable), 39},
    {sipName_HdDvdRewritable, static_cast<int>(Solid::OpticalDisc::HdDvdRewritable), 39},
    {sipName_HdDvdRom, static_cast<int>(Solid::OpticalDisc::HdDvdRom), 39},
    {sipName_NoContent, static_cast<int>(Solid::OpticalDisc::NoContent), 37},
    {sipName_SuperVideoCd, static_cast<int>(Solid::OpticalDisc::SuperVideoCd), 37},
    {sipName_UnknownDiscType, static_cast<int>(Solid::OpticalDisc::UnknownDiscType), 39},
    {sipName_VideoBluRay, static_cast<int>(Solid::OpticalDisc::VideoBluRay), 37},
    {sipName_VideoCd, static_cast<int>(Solid::OpticalDisc::VideoCd), 37},
    {sipName_VideoDvd, static_cast<int>(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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Solid::OpticalDisc::staticMetaObject,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/storagevolume.sip"
#include <storagevolume.h>
#line 1348 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 1352 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/device.sip"
#include <device.h>
#line 1355 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1358 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 58 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 1361 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1364 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1367 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1370 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1373 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1376 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1379 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1382 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1385 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 1388 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1391 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1394 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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;

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

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

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

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

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

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

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


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Solid_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, static_cast<int>(Solid::StorageVolume::Encrypted), 61},
    {sipName_FileSystem, static_cast<int>(Solid::StorageVolume::FileSystem), 61},
    {sipName_Other, static_cast<int>(Solid::StorageVolume::Other), 61},
    {sipName_PartitionTable, static_cast<int>(Solid::StorageVolume::PartitionTable), 61},
    {sipName_Raid, static_cast<int>(Solid::StorageVolume::Raid), 61},
    {sipName_Unused, static_cast<int>(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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Solid::StorageVolume::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/networkshare.sip"
#include <networkshare.h>
#line 1718 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 1722 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 102 "/usr/share/python3-sip/PyQt4/QtCore/qurl.sip"
#include <qurl.h>
#line 1725 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 58 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 1728 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1731 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1734 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1737 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1740 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1743 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1746 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1749 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1752 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1755 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 1758 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1761 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/solid/sipsolidpart3.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1764 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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;

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

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


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Solid_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, static_cast<int>(Solid::NetworkShare::Cifs), 31},
    {sipName_Nfs, static_cast<int>(Solid::NetworkShare::Nfs), 31},
    {sipName_Unknown, static_cast<int>(Solid::NetworkShare::Unknown), 31},
    {sipName_Upnp, static_cast<int>(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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Solid::NetworkShare::staticMetaObject,
    0,
    0
};
