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

#include "sipAPIsolid.h"

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

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 16 "sipsolidpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 19 "sipsolidpart5.cpp"
#line 54 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 22 "sipsolidpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 25 "sipsolidpart5.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 28 "sipsolidpart5.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 31 "sipsolidpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 34 "sipsolidpart5.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 65 "sipsolidpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 68 "sipsolidpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 71 "sipsolidpart5.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 74 "sipsolidpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 77 "sipsolidpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 80 "sipsolidpart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 83 "sipsolidpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 86 "sipsolidpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 89 "sipsolidpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 92 "sipsolidpart5.cpp"


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

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

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

            return sipConvertFromEnum(sipRes,sipType_Solid_DeviceInterface_Type);
        }
    }

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

    return NULL;
}


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

    {
        Solid::Button *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Solid_Button,&sipCpp))
        {
            Solid::Button::ButtonType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->type();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Solid_Button_ButtonType);
        }
    }

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

    return NULL;
}


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

    {
        Solid::Button *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasState();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Solid::Button *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->stateValue();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Solid_Button)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_Solid_Button[] = {
    {SIP_MLNAME_CAST(sipName_deviceInterfaceType), meth_Solid_Button_deviceInterfaceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasState), meth_Solid_Button_hasState, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stateValue), meth_Solid_Button_stateValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Solid_Button_type, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Solid_Button[] = {
    {sipName_LidButton, Solid::Button::LidButton, 15},
    {sipName_PowerButton, Solid::Button::PowerButton, 15},
    {sipName_SleepButton, Solid::Button::SleepButton, 15},
    {sipName_UnknownButtonType, Solid::Button::UnknownButtonType, 15},
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Solid_Button[] = {
    {"pressed(Solid::Button::ButtonType,const QString&)", 0},
    {0, 0}
};


pyqt4ClassTypeDef pyqt4Type_solid_Solid_Button = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Solid__Button,
        {0}
    },
    sipNameNr_Button,
    -1,
    -1,
    {3, 255, 0},
    supers_Solid_Button,
    0,
    4, methods_Solid_Button,
    4, enummembers_Solid_Button,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_Button,
    release_Solid_Button,
    cast_Solid_Button,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Solid::Button::staticMetaObject,
    0,
    pyqt4_signals_Solid_Button
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/block.sip"
#include <block.h>
#line 312 "sipsolidpart5.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 316 "sipsolidpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 319 "sipsolidpart5.cpp"
#line 54 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 322 "sipsolidpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 325 "sipsolidpart5.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 328 "sipsolidpart5.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 331 "sipsolidpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 334 "sipsolidpart5.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 365 "sipsolidpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 368 "sipsolidpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 371 "sipsolidpart5.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 374 "sipsolidpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 377 "sipsolidpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 380 "sipsolidpart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 383 "sipsolidpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 386 "sipsolidpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 389 "sipsolidpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 392 "sipsolidpart5.cpp"


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

    {
        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Block,sipName_deviceInterfaceType);

    return NULL;
}


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

    {
        Solid::Block *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Block,sipName_deviceMajor);

    return NULL;
}


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

    {
        Solid::Block *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Block,sipName_deviceMinor);

    return NULL;
}


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

    {
        Solid::Block *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Block,sipName_device);

    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)
{
    Py_BEGIN_ALLOW_THREADS

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

    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(sipSelf->u.cppPtr,0);
    }
}


/* Define this type's super-types. */
static sipEncodedClassDef 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 pyqt4Type_solid_Solid_Block = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Solid__Block,
        {0}
    },
    sipNameNr_Block,
    -1,
    -1,
    {3, 255, 0},
    supers_Solid_Block,
    0,
    4, methods_Solid_Block,
    0, 0,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_Block,
    release_Solid_Block,
    cast_Solid_Block,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Solid::Block::staticMetaObject,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/battery.sip"
#include <battery.h>
#line 598 "sipsolidpart5.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 602 "sipsolidpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 605 "sipsolidpart5.cpp"
#line 54 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 608 "sipsolidpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 611 "sipsolidpart5.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 614 "sipsolidpart5.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 617 "sipsolidpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 620 "sipsolidpart5.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 651 "sipsolidpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 654 "sipsolidpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 657 "sipsolidpart5.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 660 "sipsolidpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 663 "sipsolidpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 666 "sipsolidpart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 669 "sipsolidpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 672 "sipsolidpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 675 "sipsolidpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 678 "sipsolidpart5.cpp"


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

    {
        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Battery,sipName_deviceInterfaceType);

    return NULL;
}


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

    {
        Solid::Battery *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Battery,sipName_isPlugged);

    return NULL;
}


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

    {
        Solid::Battery *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Battery,sipName_type);

    return NULL;
}


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

    {
        Solid::Battery *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Battery,sipName_chargePercent);

    return NULL;
}


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

    {
        Solid::Battery *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Battery,sipName_isRechargeable);

    return NULL;
}


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

    {
        Solid::Battery *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Battery,sipName_chargeState);

    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)
{
    Py_BEGIN_ALLOW_THREADS

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

    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(sipSelf->u.cppPtr,0);
    }
}


/* Define this type's super-types. */
static sipEncodedClassDef 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, Solid::Battery::CameraBattery, 11},
    {sipName_Charging, Solid::Battery::Charging, 12},
    {sipName_Discharging, Solid::Battery::Discharging, 12},
    {sipName_KeyboardBattery, Solid::Battery::KeyboardBattery, 11},
    {sipName_KeyboardMouseBattery, Solid::Battery::KeyboardMouseBattery, 11},
    {sipName_MouseBattery, Solid::Battery::MouseBattery, 11},
    {sipName_NoCharge, Solid::Battery::NoCharge, 12},
    {sipName_PdaBattery, Solid::Battery::PdaBattery, 11},
    {sipName_PrimaryBattery, Solid::Battery::PrimaryBattery, 11},
    {sipName_UnknownBattery, Solid::Battery::UnknownBattery, 11},
    {sipName_UpsBattery, Solid::Battery::UpsBattery, 11},
};


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


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

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/audiointerface.sip"
#include <audiointerface.h>
#line 963 "sipsolidpart5.cpp"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/audiointerface.sip"
#include <audiointerface.h>
#line 967 "sipsolidpart5.cpp"


extern "C" {static int slot_Solid_AudioInterface_AudioInterfaceTypes___bool__(PyObject *sipSelf);}
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 271 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 985 "sipsolidpart5.cpp"

            return sipRes;
        }
    }
}


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

    int sipArgsParsed = 0;

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

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

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

            sipReleaseType(const_cast<Solid::AudioInterface::AudioInterfaceTypes *>(a0),sipType_Solid_AudioInterface_AudioInterfaceTypes,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


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

    int sipArgsParsed = 0;

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

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

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

            sipReleaseType(const_cast<Solid::AudioInterface::AudioInterfaceTypes *>(a0),sipType_Solid_AudioInterface_AudioInterfaceTypes,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


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


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

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

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

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


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

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

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

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


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

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

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

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


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


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

    int sipArgsParsed = 0;

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

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

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    int sipArgsParsed = 0;

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

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

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    int sipArgsParsed = 0;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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


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


extern "C" {static void *init_Solid_AudioInterface_AudioInterfaceTypes(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Solid_AudioInterface_AudioInterfaceTypes(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    Solid::AudioInterface::AudioInterfaceTypes *sipCpp = 0;

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

        if (sipParseArgs(sipArgsParsed,sipArgs,"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);
        }
    }

    if (!sipCpp)
    {
        int a0;

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

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

    return sipCpp;
}


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 276 "/usr/local/share/py-sip/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(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 1416 "sipsolidpart5.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 pyqt4Type_solid_Solid_AudioInterface_AudioInterfaceTypes = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Solid__AudioInterface__AudioInterfaceTypes,
        {0}
    },
    sipNameNr_AudioInterfaceTypes,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {5, 255, 0},
    0,
    slots_Solid_AudioInterface_AudioInterfaceTypes,
    0, 0,
    0, 0,
    0, 0,
    init_Solid_AudioInterface_AudioInterfaceTypes,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_AudioInterface_AudioInterfaceTypes,
    release_Solid_AudioInterface_AudioInterfaceTypes,
    cast_Solid_AudioInterface_AudioInterfaceTypes,
    convertTo_Solid_AudioInterface_AudioInterfaceTypes,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Solid_AudioInterface_AudioInterfaceTypes,
    0,
    1,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/audiointerface.sip"
#include <audiointerface.h>
#line 1484 "sipsolidpart5.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1488 "sipsolidpart5.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/audiointerface.sip"
#include <audiointerface.h>
#line 1491 "sipsolidpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1494 "sipsolidpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1497 "sipsolidpart5.cpp"
#line 54 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 1500 "sipsolidpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1503 "sipsolidpart5.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1506 "sipsolidpart5.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1509 "sipsolidpart5.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 1540 "sipsolidpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 1543 "sipsolidpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 1546 "sipsolidpart5.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1549 "sipsolidpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 1552 "sipsolidpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 1555 "sipsolidpart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1558 "sipsolidpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1561 "sipsolidpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1564 "sipsolidpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1567 "sipsolidpart5.cpp"


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

    {
        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_AudioInterface,sipName_deviceInterfaceType);

    return NULL;
}


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

    {
        Solid::AudioInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_AudioInterface,sipName_driver);

    return NULL;
}


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

    {
        Solid::AudioInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_AudioInterface,sipName_driverHandle);

    return NULL;
}


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

    {
        Solid::AudioInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_AudioInterface,sipName_name);

    return NULL;
}


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

    {
        Solid::AudioInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_AudioInterface,sipName_deviceType);

    return NULL;
}


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

    {
        Solid::AudioInterface *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_AudioInterface,sipName_soundcardType);

    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)
{
    Py_BEGIN_ALLOW_THREADS

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

    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(sipSelf->u.cppPtr,0);
    }
}


/* Define this type's super-types. */
static sipEncodedClassDef 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, Solid::AudioInterface::Alsa, 6},
    {sipName_AudioControl, Solid::AudioInterface::AudioControl, 7},
    {sipName_AudioInput, Solid::AudioInterface::AudioInput, 7},
    {sipName_AudioOutput, Solid::AudioInterface::AudioOutput, 7},
    {sipName_FirewireSoundcard, Solid::AudioInterface::FirewireSoundcard, 9},
    {sipName_Headset, Solid::AudioInterface::Headset, 9},
    {sipName_InternalSoundcard, Solid::AudioInterface::InternalSoundcard, 9},
    {sipName_Modem, Solid::AudioInterface::Modem, 9},
    {sipName_OpenSoundSystem, Solid::AudioInterface::OpenSoundSystem, 6},
    {sipName_UnknownAudioDriver, Solid::AudioInterface::UnknownAudioDriver, 6},
    {sipName_UnknownAudioInterfaceType, Solid::AudioInterface::UnknownAudioInterfaceType, 7},
    {sipName_UsbSoundcard, Solid::AudioInterface::UsbSoundcard, 9},
};


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