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

#include "sipAPIsolid.h"

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/solid/block.sip"
#include <block.h>
#line 12 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"

#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 16 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 19 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 58 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 22 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 31 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 34 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 37 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 40 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 43 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 46 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 49 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 55 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"


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

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

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

    return NULL;
}


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

    {
        const Solid::Block *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Solid_Block, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->deviceMajor();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Solid::Block *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Solid_Block, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->deviceMinor();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Solid::Block *sipCpp;

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

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

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

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

    return NULL;
}


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

    if (targetType == sipType_Solid_Block)
        return ptr;

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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Solid_Block(void *, int);}
static void release_Solid_Block(void *sipCppV,int)
{
    Solid::Block *sipCpp = reinterpret_cast<Solid::Block *>(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_Block(sipSimpleWrapper *);}
static void dealloc_Solid_Block(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Solid_Block(sipGetAddress(sipSelf),0);
    }
}


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


static PyMethodDef methods_Solid_Block[] = {
    {SIP_MLNAME_CAST(sipName_device), meth_Solid_Block_device, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deviceInterfaceType), meth_Solid_Block_deviceInterfaceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deviceMajor), meth_Solid_Block_deviceMajor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deviceMinor), meth_Solid_Block_deviceMinor, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_solid_Solid_Block = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Solid__Block,
        {0}
    },
    {
        sipNameNr_Block,
        {3, 255, 0},
        4, methods_Solid_Block,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Solid_Block,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_Block,
    0,
    0,
    0,
    release_Solid_Block,
    cast_Solid_Block,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Solid::Block::staticMetaObject,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/solid/battery.sip"
#include <battery.h>
#line 274 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"

#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 278 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 281 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 58 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 284 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 287 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 290 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 293 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 296 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 299 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 302 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 305 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 308 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 311 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 314 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 317 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"


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

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

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

    return NULL;
}


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

    {
        const Solid::Battery *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isPlugged();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Solid::Battery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Solid_Battery, &sipCpp))
        {
            Solid::Battery::BatteryType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->type();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Solid_Battery_BatteryType);
        }
    }

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

    return NULL;
}


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

    {
        const Solid::Battery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Solid_Battery, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->chargePercent();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Solid::Battery *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isRechargeable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Solid::Battery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Solid_Battery, &sipCpp))
        {
            Solid::Battery::ChargeState sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->chargeState();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Solid_Battery_ChargeState);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Solid_Battery)
        return ptr;

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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Solid_Battery(void *, int);}
static void release_Solid_Battery(void *sipCppV,int)
{
    Solid::Battery *sipCpp = reinterpret_cast<Solid::Battery *>(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_Battery(sipSimpleWrapper *);}
static void dealloc_Solid_Battery(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Solid_Battery(sipGetAddress(sipSelf),0);
    }
}


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


static PyMethodDef methods_Solid_Battery[] = {
    {SIP_MLNAME_CAST(sipName_chargePercent), meth_Solid_Battery_chargePercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_chargeState), meth_Solid_Battery_chargeState, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deviceInterfaceType), meth_Solid_Battery_deviceInterfaceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isPlugged), meth_Solid_Battery_isPlugged, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isRechargeable), meth_Solid_Battery_isRechargeable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Solid_Battery_type, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Solid_Battery[] = {
    {sipName_CameraBattery, static_cast<int>(Solid::Battery::CameraBattery), 11},
    {sipName_Charging, static_cast<int>(Solid::Battery::Charging), 12},
    {sipName_Discharging, static_cast<int>(Solid::Battery::Discharging), 12},
    {sipName_KeyboardBattery, static_cast<int>(Solid::Battery::KeyboardBattery), 11},
    {sipName_KeyboardMouseBattery, static_cast<int>(Solid::Battery::KeyboardMouseBattery), 11},
    {sipName_MonitorBattery, static_cast<int>(Solid::Battery::MonitorBattery), 11},
    {sipName_MouseBattery, static_cast<int>(Solid::Battery::MouseBattery), 11},
    {sipName_NoCharge, static_cast<int>(Solid::Battery::NoCharge), 12},
    {sipName_PdaBattery, static_cast<int>(Solid::Battery::PdaBattery), 11},
    {sipName_PhoneBattery, static_cast<int>(Solid::Battery::PhoneBattery), 11},
    {sipName_PrimaryBattery, static_cast<int>(Solid::Battery::PrimaryBattery), 11},
    {sipName_UnknownBattery, static_cast<int>(Solid::Battery::UnknownBattery), 11},
    {sipName_UpsBattery, static_cast<int>(Solid::Battery::UpsBattery), 11},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_Solid_Battery[] = {
    {"plugStateChanged(bool,QString)", 0, 0, 0},
    {"chargeStateChanged(int,QString)", 0, 0, 0},
    {"chargePercentChanged(int,QString)", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_solid_Solid_Battery = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Solid__Battery,
        {0}
    },
    {
        sipNameNr_Battery,
        {3, 255, 0},
        6, methods_Solid_Battery,
        13, enummembers_Solid_Battery,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Solid_Battery,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_Battery,
    0,
    0,
    0,
    release_Solid_Battery,
    cast_Solid_Battery,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Solid::Battery::staticMetaObject,
    0,
    signals_Solid_Battery,
};

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/solid/audiointerface.sip"
#include <audiointerface.h>
#line 617 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/solid/audiointerface.sip"
#include <audiointerface.h>
#line 621 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"


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

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 370 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Solid::AudioInterface::AudioInterfaceTypes::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 643 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"

            return sipRes;
        }
    }

    return 0;
}


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

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

#line 361 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Solid::AudioInterface::AudioInterfaceTypes::Int() != a0->operator Solid::AudioInterface::AudioInterfaceTypes::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 677 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
            sipReleaseType(const_cast<Solid::AudioInterface::AudioInterfaceTypes *>(a0),sipType_Solid_AudioInterface_AudioInterfaceTypes,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

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

#line 352 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Solid::AudioInterface::AudioInterfaceTypes::Int() == a0->operator Solid::AudioInterface::AudioInterfaceTypes::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 717 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
            sipReleaseType(const_cast<Solid::AudioInterface::AudioInterfaceTypes *>(a0),sipType_Solid_AudioInterface_AudioInterfaceTypes,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;


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

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

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

    return 0;
}


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

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

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

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

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

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

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

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

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

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

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

#line 346 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new Solid::AudioInterface::AudioInterfaceTypes(*a0 ^ a1);
#line 826 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
            sipReleaseType(a0,sipType_Solid_AudioInterface_AudioInterfaceTypes,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

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

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

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

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

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

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

#line 341 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new Solid::AudioInterface::AudioInterfaceTypes(*a0 | a1);
#line 878 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
            sipReleaseType(a0,sipType_Solid_AudioInterface_AudioInterfaceTypes,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Solid_AudioInterface_AudioInterfaceTypes, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Solid::AudioInterface::AudioInterfaceTypes::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Solid_AudioInterface_AudioInterfaceTypes,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Solid_AudioInterface_AudioInterfaceTypes, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Solid::AudioInterface::AudioInterfaceTypes::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Solid_AudioInterface_AudioInterfaceTypes,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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

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

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

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

    return sipGetState(sipTransferObj);
}

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

return 0;
#line 1173 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
}


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


pyqt4ClassTypeDef sipTypeDef_solid_Solid_AudioInterface_AudioInterfaceTypes = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Solid__AudioInterface__AudioInterfaceTypes,
        {0}
    },
    {
        sipNameNr_AudioInterfaceTypes,
        {5, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Solid_AudioInterface_AudioInterfaceTypes,
    init_type_Solid_AudioInterface_AudioInterfaceTypes,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_AudioInterface_AudioInterfaceTypes,
    assign_Solid_AudioInterface_AudioInterfaceTypes,
    array_Solid_AudioInterface_AudioInterfaceTypes,
    copy_Solid_AudioInterface_AudioInterfaceTypes,
    release_Solid_AudioInterface_AudioInterfaceTypes,
    cast_Solid_AudioInterface_AudioInterfaceTypes,
    convertTo_Solid_AudioInterface_AudioInterfaceTypes,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/solid/audiointerface.sip"
#include <audiointerface.h>
#line 1249 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"

#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 1253 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/solid/audiointerface.sip"
#include <audiointerface.h>
#line 1256 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1259 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1262 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 58 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 1265 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1268 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1271 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1274 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1277 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1280 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1283 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1286 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 1289 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1292 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1295 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"


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

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

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

            return sipConvertFromEnum(sipRes,sipType_Solid_DeviceInterface_Type);
        }
    }

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

    return NULL;
}


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

    {
        const Solid::AudioInterface *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->driver();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Solid_AudioInterface_AudioDriver);
        }
    }

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

    return NULL;
}


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

    {
        const Solid::AudioInterface *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const Solid::AudioInterface *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const Solid::AudioInterface *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const Solid::AudioInterface *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->soundcardType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Solid_AudioInterface_SoundcardType);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Solid_AudioInterface)
        return ptr;

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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Solid_AudioInterface(void *, int);}
static void release_Solid_AudioInterface(void *sipCppV,int)
{
    Solid::AudioInterface *sipCpp = reinterpret_cast<Solid::AudioInterface *>(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_AudioInterface(sipSimpleWrapper *);}
static void dealloc_Solid_AudioInterface(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Solid_AudioInterface(sipGetAddress(sipSelf),0);
    }
}


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


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

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


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

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/solid/acadapter.sip"
#include <acadapter.h>
#line 1585 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"

#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 1589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1592 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 58 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 1595 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1598 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1601 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1604 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1607 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1610 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1613 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1616 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1619 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 1622 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1625 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1628 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/solid/sipsolidpart6.cpp"


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

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

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

            return sipConvertFromEnum(sipRes,sipType_Solid_DeviceInterface_Type);
        }
    }

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

    return NULL;
}


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

    {
        const Solid::AcAdapter *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isPlugged();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Solid_AcAdapter)
        return ptr;

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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Solid_AcAdapter(void *, int);}
static void release_Solid_AcAdapter(void *sipCppV,int)
{
    Solid::AcAdapter *sipCpp = reinterpret_cast<Solid::AcAdapter *>(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_AcAdapter(sipSimpleWrapper *);}
static void dealloc_Solid_AcAdapter(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Solid_AcAdapter(sipGetAddress(sipSelf),0);
    }
}


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


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


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


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