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

#include "sipAPIsolid.h"

#line 54 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 12 "sipsolidpart6.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 16 "sipsolidpart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 19 "sipsolidpart6.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 22 "sipsolidpart6.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 25 "sipsolidpart6.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 28 "sipsolidpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 31 "sipsolidpart6.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 62 "sipsolidpart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 65 "sipsolidpart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 68 "sipsolidpart6.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 71 "sipsolidpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 74 "sipsolidpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 77 "sipsolidpart6.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 80 "sipsolidpart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 83 "sipsolidpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 86 "sipsolidpart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 89 "sipsolidpart6.cpp"


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

    {
        Solid::DeviceInterface *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Solid::DeviceInterface::Type a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"E",sipType_Solid_DeviceInterface_Type,&a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Solid::DeviceInterface::typeToString(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = Solid::DeviceInterface::stringToType(*a0);
            Py_END_ALLOW_THREADS

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

            return sipConvertFromEnum(sipRes,sipType_Solid_DeviceInterface_Type);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Solid_DeviceInterface)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


/* Define this type's super-types. */
static sipEncodedClassDef supers_Solid_DeviceInterface[] = {{111, 0, 1}};


static PyMethodDef methods_Solid_DeviceInterface[] = {
    {SIP_MLNAME_CAST(sipName_isValid), meth_Solid_DeviceInterface_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stringToType), meth_Solid_DeviceInterface_stringToType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_typeToString), meth_Solid_DeviceInterface_typeToString, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Solid_DeviceInterface[] = {
    {sipName_AcAdapter, Solid::DeviceInterface::AcAdapter, 19},
    {sipName_AudioInterface, Solid::DeviceInterface::AudioInterface, 19},
    {sipName_Battery, Solid::DeviceInterface::Battery, 19},
    {sipName_Block, Solid::DeviceInterface::Block, 19},
    {sipName_Button, Solid::DeviceInterface::Button, 19},
    {sipName_Camera, Solid::DeviceInterface::Camera, 19},
    {sipName_DvbInterface, Solid::DeviceInterface::DvbInterface, 19},
    {sipName_GenericInterface, Solid::DeviceInterface::GenericInterface, 19},
    {sipName_Last, Solid::DeviceInterface::Last, 19},
    {sipName_NetworkInterface, Solid::DeviceInterface::NetworkInterface, 19},
    {sipName_OpticalDisc, Solid::DeviceInterface::OpticalDisc, 19},
    {sipName_OpticalDrive, Solid::DeviceInterface::OpticalDrive, 19},
    {sipName_PortableMediaPlayer, Solid::DeviceInterface::PortableMediaPlayer, 19},
    {sipName_Processor, Solid::DeviceInterface::Processor, 19},
    {sipName_SerialInterface, Solid::DeviceInterface::SerialInterface, 19},
    {sipName_SmartCardReader, Solid::DeviceInterface::SmartCardReader, 19},
    {sipName_StorageAccess, Solid::DeviceInterface::StorageAccess, 19},
    {sipName_StorageDrive, Solid::DeviceInterface::StorageDrive, 19},
    {sipName_StorageVolume, Solid::DeviceInterface::StorageVolume, 19},
    {sipName_Unknown, Solid::DeviceInterface::Unknown, 19},
    {sipName_Video, Solid::DeviceInterface::Video, 19},
};


pyqt4ClassTypeDef pyqt4Type_solid_Solid_DeviceInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Solid__DeviceInterface,
        {0}
    },
    sipNameNr_DeviceInterface,
    -1,
    -1,
    {3, 255, 0},
    supers_Solid_DeviceInterface,
    0,
    3, methods_Solid_DeviceInterface,
    21, enummembers_Solid_DeviceInterface,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_DeviceInterface,
    release_Solid_DeviceInterface,
    cast_Solid_DeviceInterface,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Solid::DeviceInterface::staticMetaObject,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/solid/acadapter.sip"
#include <acadapter.h>
#line 296 "sipsolidpart6.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 300 "sipsolidpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 303 "sipsolidpart6.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 306 "sipsolidpart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 309 "sipsolidpart6.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 312 "sipsolidpart6.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 315 "sipsolidpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 318 "sipsolidpart6.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 349 "sipsolidpart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 352 "sipsolidpart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 355 "sipsolidpart6.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 358 "sipsolidpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 361 "sipsolidpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 364 "sipsolidpart6.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 367 "sipsolidpart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 370 "sipsolidpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 373 "sipsolidpart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 376 "sipsolidpart6.cpp"


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

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

    return NULL;
}


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

    {
        Solid::AcAdapter *sipCpp;

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

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

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

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


/* Define this type's super-types. */
static sipEncodedClassDef 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 PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Solid_AcAdapter[] = {
    {"plugStateChanged(bool,const QString&)", 0},
    {0, 0}
};


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



static sipEnumMemberDef enummembers_Solid[] = {
    {sipName_NoError, Solid::NoError, 23},
    {sipName_UnauthorizedOperation, Solid::UnauthorizedOperation, 23},
};


pyqt4ClassTypeDef pyqt4Type_solid_Solid = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Solid,
        {0}
    },
    sipNameNr_Solid,
    -1,
    -1,
    {0, 0, 1},
    0,
    0,
    0, 0,
    2, enummembers_Solid,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};
