/*
 * Module code.
 *
 * Generated by SIP 4.11.2 on Wed Feb  9 17:29:53 2011
 */

#include "sipAPIsolid.h"


#line 36 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 13 "sipsolidpart4.cpp"
#line 315 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 16 "sipsolidpart4.cpp"
#line 303 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 19 "sipsolidpart4.cpp"
#line 39 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 22 "sipsolidpart4.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 25 "sipsolidpart4.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 28 "sipsolidpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 31 "sipsolidpart4.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 34 "sipsolidpart4.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 37 "sipsolidpart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 40 "sipsolidpart4.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 43 "sipsolidpart4.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 46 "sipsolidpart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 49 "sipsolidpart4.cpp"


extern "C" {static PyObject *meth_Solid_Networking_Notifier_statusChanged(PyObject *, PyObject *);}
static PyObject *meth_Solid_Networking_Notifier_statusChanged(PyObject *, PyObject *)
{

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

    return NULL;
}


extern "C" {static PyObject *meth_Solid_Networking_Notifier_shouldConnect(PyObject *, PyObject *);}
static PyObject *meth_Solid_Networking_Notifier_shouldConnect(PyObject *, PyObject *)
{

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

    return NULL;
}


extern "C" {static PyObject *meth_Solid_Networking_Notifier_shouldDisconnect(PyObject *, PyObject *);}
static PyObject *meth_Solid_Networking_Notifier_shouldDisconnect(PyObject *, PyObject *)
{

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

    return NULL;
}


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

    if (targetType == sipType_Solid_Networking_Notifier)
        return ptr;

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

    return NULL;
}


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

    delete reinterpret_cast<Solid::Networking::Notifier *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Solid_Networking_Notifier[] = {{133, 0, 1}};


static PyMethodDef methods_Solid_Networking_Notifier[] = {
    {SIP_MLNAME_CAST(sipName_shouldConnect), meth_Solid_Networking_Notifier_shouldConnect, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_shouldDisconnect), meth_Solid_Networking_Notifier_shouldDisconnect, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statusChanged), meth_Solid_Networking_Notifier_statusChanged, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_solid_Solid_Networking_Notifier = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Solid__Networking__Notifier,
        {0}
    },
    {
        sipNameNr_Notifier,
        {27, 255, 0},
        3, methods_Solid_Networking_Notifier,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Solid_Networking_Notifier,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_Networking_Notifier,
    0,
    0,
    0,
    release_Solid_Networking_Notifier,
    cast_Solid_Networking_Notifier,
    0,
    0,
    0
},
    0,
    0,
    0
};




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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Solid::Networking::Notifier *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Solid::Networking::notifier();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_Solid_Networking_Notifier,NULL);
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Solid::Networking::Status sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Solid::Networking::status();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Solid_Networking_Status);
        }
    }

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

    return NULL;
}


static PyMethodDef methods_Solid_Networking[] = {
    {SIP_MLNAME_CAST(sipName_notifier), meth_Solid_Networking_notifier, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_status), meth_Solid_Networking_status, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Solid_Networking[] = {
    {sipName_Connected, Solid::Networking::Connected, 30},
    {sipName_Connecting, Solid::Networking::Connecting, 30},
    {sipName_Disconnecting, Solid::Networking::Disconnecting, 30},
    {sipName_Managed, Solid::Networking::Managed, 28},
    {sipName_Manual, Solid::Networking::Manual, 28},
    {sipName_OnNextStatusChange, Solid::Networking::OnNextStatusChange, 28},
    {sipName_Unconnected, Solid::Networking::Unconnected, 30},
    {sipName_Unknown, Solid::Networking::Unknown, 30},
};


pyqt4ClassTypeDef sipTypeDef_solid_Solid_Networking = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Solid__Networking,
        {0}
    },
    {
        sipNameNr_Networking,
        {3, 255, 0},
        2, methods_Solid_Networking,
        8, enummembers_Solid_Networking,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    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
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/solid/genericinterface.sip"
#include <genericinterface.h>
#line 306 "sipsolidpart4.cpp"

#line 39 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 310 "sipsolidpart4.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 313 "sipsolidpart4.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 316 "sipsolidpart4.cpp"
#line 82 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 319 "sipsolidpart4.cpp"
#line 130 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 322 "sipsolidpart4.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 325 "sipsolidpart4.cpp"
#line 56 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 328 "sipsolidpart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 331 "sipsolidpart4.cpp"
#line 315 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 334 "sipsolidpart4.cpp"
#line 303 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 337 "sipsolidpart4.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 340 "sipsolidpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 343 "sipsolidpart4.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 346 "sipsolidpart4.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 349 "sipsolidpart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 352 "sipsolidpart4.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 355 "sipsolidpart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 358 "sipsolidpart4.cpp"


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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Solid::GenericInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Solid_GenericInterface, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->property(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        Solid::GenericInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Solid_GenericInterface, &sipCpp))
        {
            QMap<QString,QVariant> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QMap<QString,QVariant>(sipCpp->allProperties());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Solid::GenericInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Solid_GenericInterface, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->propertyExists(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Solid_GenericInterface)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_Solid_GenericInterface[] = {
    {SIP_MLNAME_CAST(sipName_allProperties), meth_Solid_GenericInterface_allProperties, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deviceInterfaceType), meth_Solid_GenericInterface_deviceInterfaceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_property), meth_Solid_GenericInterface_property, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_propertyExists), meth_Solid_GenericInterface_propertyExists, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Solid_GenericInterface[] = {
    {sipName_PropertyAdded, Solid::GenericInterface::PropertyAdded, 25},
    {sipName_PropertyModified, Solid::GenericInterface::PropertyModified, 25},
    {sipName_PropertyRemoved, Solid::GenericInterface::PropertyRemoved, 25},
};


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


pyqt4ClassTypeDef sipTypeDef_solid_Solid_GenericInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Solid__GenericInterface,
        {0}
    },
    {
        sipNameNr_GenericInterface,
        {3, 255, 0},
        4, methods_Solid_GenericInterface,
        3, enummembers_Solid_GenericInterface,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Solid_GenericInterface,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_GenericInterface,
    0,
    0,
    0,
    release_Solid_GenericInterface,
    cast_Solid_GenericInterface,
    0,
    0,
    0
},
    &Solid::GenericInterface::staticMetaObject,
    0,
    pyqt4_signals_Solid_GenericInterface
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/solid/dvbinterface.sip"
#include <dvbinterface.h>
#line 588 "sipsolidpart4.cpp"

#line 39 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 592 "sipsolidpart4.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 595 "sipsolidpart4.cpp"
#line 56 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/solid/deviceinterface.sip"
#include <deviceinterface.h>
#line 598 "sipsolidpart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 601 "sipsolidpart4.cpp"
#line 315 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 604 "sipsolidpart4.cpp"
#line 303 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 607 "sipsolidpart4.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 610 "sipsolidpart4.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 613 "sipsolidpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 616 "sipsolidpart4.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 619 "sipsolidpart4.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 622 "sipsolidpart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 625 "sipsolidpart4.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 628 "sipsolidpart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 631 "sipsolidpart4.cpp"


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

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

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

    return NULL;
}


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

    {
        Solid::DvbInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Solid_DvbInterface, &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_DvbInterface, sipName_device, NULL);

    return NULL;
}


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

    {
        Solid::DvbInterface *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->deviceAdapter();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Solid::DvbInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Solid_DvbInterface, &sipCpp))
        {
            Solid::DvbInterface::DeviceType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->deviceType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Solid_DvbInterface_DeviceType);
        }
    }

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

    return NULL;
}


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

    {
        Solid::DvbInterface *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->deviceIndex();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Solid_DvbInterface)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_Solid_DvbInterface[] = {
    {SIP_MLNAME_CAST(sipName_device), meth_Solid_DvbInterface_device, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deviceAdapter), meth_Solid_DvbInterface_deviceAdapter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deviceIndex), meth_Solid_DvbInterface_deviceIndex, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deviceInterfaceType), meth_Solid_DvbInterface_deviceInterfaceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deviceType), meth_Solid_DvbInterface_deviceType, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Solid_DvbInterface[] = {
    {sipName_DvbAudio, Solid::DvbInterface::DvbAudio, 22},
    {sipName_DvbCa, Solid::DvbInterface::DvbCa, 22},
    {sipName_DvbDemux, Solid::DvbInterface::DvbDemux, 22},
    {sipName_DvbDvr, Solid::DvbInterface::DvbDvr, 22},
    {sipName_DvbFrontend, Solid::DvbInterface::DvbFrontend, 22},
    {sipName_DvbNet, Solid::DvbInterface::DvbNet, 22},
    {sipName_DvbOsd, Solid::DvbInterface::DvbOsd, 22},
    {sipName_DvbSec, Solid::DvbInterface::DvbSec, 22},
    {sipName_DvbUnknown, Solid::DvbInterface::DvbUnknown, 22},
    {sipName_DvbVideo, Solid::DvbInterface::DvbVideo, 22},
};


pyqt4ClassTypeDef sipTypeDef_solid_Solid_DvbInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Solid__DvbInterface,
        {0}
    },
    {
        sipNameNr_DvbInterface,
        {3, 255, 0},
        5, methods_Solid_DvbInterface,
        10, enummembers_Solid_DvbInterface,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Solid_DvbInterface,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_DvbInterface,
    0,
    0,
    0,
    release_Solid_DvbInterface,
    cast_Solid_DvbInterface,
    0,
    0,
    0
},
    &Solid::DvbInterface::staticMetaObject,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/solid/devicenotifier.sip"
#include <devicenotifier.h>
#line 883 "sipsolidpart4.cpp"

#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 887 "sipsolidpart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 890 "sipsolidpart4.cpp"
#line 315 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 893 "sipsolidpart4.cpp"
#line 303 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 896 "sipsolidpart4.cpp"
#line 39 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 899 "sipsolidpart4.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 902 "sipsolidpart4.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 905 "sipsolidpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 908 "sipsolidpart4.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 911 "sipsolidpart4.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 914 "sipsolidpart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 917 "sipsolidpart4.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 920 "sipsolidpart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 923 "sipsolidpart4.cpp"


class sipSolid_DeviceNotifier : public Solid::DeviceNotifier
{
public:
    sipSolid_DeviceNotifier();
    virtual ~sipSolid_DeviceNotifier();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipSolid_DeviceNotifier(const sipSolid_DeviceNotifier &);
    sipSolid_DeviceNotifier &operator = (const sipSolid_DeviceNotifier &);

    char sipPyMethods[7];
};

sipSolid_DeviceNotifier::sipSolid_DeviceNotifier(): Solid::DeviceNotifier(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipSolid_DeviceNotifier::~sipSolid_DeviceNotifier()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipSolid_DeviceNotifier::metaObject() const
{
    return sip_solid_qt_metaobject(sipPySelf,sipType_Solid_DeviceNotifier);
}

int sipSolid_DeviceNotifier::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Solid::DeviceNotifier::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_solid_qt_metacall(sipPySelf,sipType_Solid_DeviceNotifier,_c,_id,_a);

    return _id;
}

void *sipSolid_DeviceNotifier::qt_metacast(const char *_clname)
{
    return (sip_solid_qt_metacast && sip_solid_qt_metacast(sipPySelf,sipType_Solid_DeviceNotifier,_clname)) ? this : Solid::DeviceNotifier::qt_metacast(_clname);
}

bool sipSolid_DeviceNotifier::event(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_event);

    if (!meth)
        return QObject::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *,QEvent *);

    return ((sipVH_QtCore_5)(sipModuleAPI_solid_QtCore->em_virthandlers[5]))(sipGILState,meth,a0);
}

bool sipSolid_DeviceNotifier::eventFilter(QObject *a0,QEvent *a1)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_eventFilter);

    if (!meth)
        return QObject::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    return ((sipVH_QtCore_18)(sipModuleAPI_solid_QtCore->em_virthandlers[18]))(sipGILState,meth,a0,a1);
}

void sipSolid_DeviceNotifier::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_timerEvent);

    if (!meth)
    {
        QObject::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t,PyObject *,QTimerEvent *);

    ((sipVH_QtCore_9)(sipModuleAPI_solid_QtCore->em_virthandlers[9]))(sipGILState,meth,a0);
}

void sipSolid_DeviceNotifier::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!meth)
    {
        QObject::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t,PyObject *,QChildEvent *);

    ((sipVH_QtCore_25)(sipModuleAPI_solid_QtCore->em_virthandlers[25]))(sipGILState,meth,a0);
}

void sipSolid_DeviceNotifier::customEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_customEvent);

    if (!meth)
    {
        QObject::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,QEvent *);

    ((sipVH_QtCore_17)(sipModuleAPI_solid_QtCore->em_virthandlers[17]))(sipGILState,meth,a0);
}

void sipSolid_DeviceNotifier::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_connectNotify);

    if (!meth)
    {
        QObject::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

    ((sipVH_QtCore_24)(sipModuleAPI_solid_QtCore->em_virthandlers[24]))(sipGILState,meth,a0);
}

void sipSolid_DeviceNotifier::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_disconnectNotify);

    if (!meth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

    ((sipVH_QtCore_24)(sipModuleAPI_solid_QtCore->em_virthandlers[24]))(sipGILState,meth,a0);
}

QObject * sipSolid_DeviceNotifier::sipProtect_sender() const
{
    return QObject::sender();
}

int sipSolid_DeviceNotifier::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipSolid_DeviceNotifier::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipSolid_DeviceNotifier::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipSolid_DeviceNotifier::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipSolid_DeviceNotifier::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipSolid_DeviceNotifier::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}


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

    {
        sipSolid_DeviceNotifier *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Solid_DeviceNotifier, &sipCpp))
        {
            QObject *sipRes = 0;

#line 529 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 1183 "sipsolidpart4.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSolid_DeviceNotifier *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Solid_DeviceNotifier, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 546 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 1225 "sipsolidpart4.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Solid_DeviceNotifier_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_Solid_DeviceNotifier_timerEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipSolid_DeviceNotifier *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Solid_DeviceNotifier, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Solid_DeviceNotifier_childEvent(PyObject *, PyObject *);}
static PyObject *meth_Solid_DeviceNotifier_childEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipSolid_DeviceNotifier *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Solid_DeviceNotifier, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Solid_DeviceNotifier_customEvent(PyObject *, PyObject *);}
static PyObject *meth_Solid_DeviceNotifier_customEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipSolid_DeviceNotifier *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Solid_DeviceNotifier, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Solid_DeviceNotifier_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_Solid_DeviceNotifier_connectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipSolid_DeviceNotifier *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Solid_DeviceNotifier, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Solid_DeviceNotifier_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_Solid_DeviceNotifier_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipSolid_DeviceNotifier *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Solid_DeviceNotifier, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Solid::DeviceNotifier *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Solid::DeviceNotifier::instance();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_Solid_DeviceNotifier,NULL);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Solid_DeviceNotifier)
        return ptr;

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSolid_DeviceNotifier *>(sipCppV);
    else
        delete reinterpret_cast<Solid::DeviceNotifier *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Solid_DeviceNotifier(sipSimpleWrapper *);}
static void dealloc_Solid_DeviceNotifier(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipSolid_DeviceNotifier *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Solid_DeviceNotifier(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_Solid_DeviceNotifier(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Solid_DeviceNotifier(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipSolid_DeviceNotifier *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSolid_DeviceNotifier();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Solid_DeviceNotifier[] = {{133, 0, 1}};


static PyMethodDef methods_Solid_DeviceNotifier[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Solid_DeviceNotifier_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Solid_DeviceNotifier_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Solid_DeviceNotifier_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Solid_DeviceNotifier_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_instance), meth_Solid_DeviceNotifier_instance, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Solid_DeviceNotifier_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Solid_DeviceNotifier_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Solid_DeviceNotifier_timerEvent, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Solid_DeviceNotifier[] = {
    {"deviceRemoved(QString)", 0, 0},
    {"deviceAdded(QString)", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_solid_Solid_DeviceNotifier = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Solid__DeviceNotifier,
        {0}
    },
    {
        sipNameNr_DeviceNotifier,
        {3, 255, 0},
        8, methods_Solid_DeviceNotifier,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Solid_DeviceNotifier,
    0,
    init_Solid_DeviceNotifier,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Solid_DeviceNotifier,
    0,
    0,
    0,
    release_Solid_DeviceNotifier,
    cast_Solid_DeviceNotifier,
    0,
    0,
    0
},
    &Solid::DeviceNotifier::staticMetaObject,
    0,
    pyqt4_signals_Solid_DeviceNotifier
};
