/*
 * Module code.
 *
 * Generated by SIP 4.12.4 on Fri Dec 30 00:41:07 2011
 */

#include "sipAPIphonon.h"

#line 41 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/objectdescription.sip"
#include <phonon/objectdescription.h>
#line 12 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"

#line 33 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 16 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 19 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 22 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 31 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"


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

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "i", &a0))
        {
            Phonon::EffectDescription *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Phonon::EffectDescription(Phonon::EffectDescription::fromIndex(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Phonon::EffectDescription *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Phonon::EffectDescription *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const char * a0;
        PyObject *a0Keep;
        Phonon::EffectDescription *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAA", &sipSelf, sipType_Phonon_EffectDescription, &sipCpp, &a0Keep, &a0))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->property(a0));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

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

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

    return NULL;
}


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

    {
        Phonon::EffectDescription *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_EffectDescription, &sipCpp))
        {
            QList<QByteArray> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QByteArray>(sipCpp->propertyNames());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Phonon::EffectDescription *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_EffectDescription, &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(sipParseErr, sipName_EffectDescription, sipName_isValid, NULL);

    return NULL;
}


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

    {
        Phonon::EffectDescription *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->index();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *slot_Phonon_EffectDescription___ne__(PyObject *,PyObject *);}
static PyObject *slot_Phonon_EffectDescription___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Phonon::EffectDescription *sipCpp = reinterpret_cast<Phonon::EffectDescription *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_EffectDescription));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Phonon::EffectDescription * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Phonon_EffectDescription, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Phonon::EffectDescription::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_phonon,ne_slot,sipType_Phonon_EffectDescription,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Phonon_EffectDescription___eq__(PyObject *,PyObject *);}
static PyObject *slot_Phonon_EffectDescription___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Phonon::EffectDescription *sipCpp = reinterpret_cast<Phonon::EffectDescription *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_EffectDescription));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Phonon::EffectDescription * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Phonon_EffectDescription, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Phonon::EffectDescription::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_phonon,eq_slot,sipType_Phonon_EffectDescription,sipSelf,sipArg);
}


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

    return NULL;
}


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

    delete reinterpret_cast<Phonon::EffectDescription *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Phonon_EffectDescription(void *, SIP_SSIZE_T, const void *);}
static void assign_Phonon_EffectDescription(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Phonon::EffectDescription *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Phonon::EffectDescription *>(sipSrc);
}


extern "C" {static void *array_Phonon_EffectDescription(SIP_SSIZE_T);}
static void *array_Phonon_EffectDescription(SIP_SSIZE_T sipNrElem)
{
    return new Phonon::EffectDescription[sipNrElem];
}


extern "C" {static void *copy_Phonon_EffectDescription(const void *, SIP_SSIZE_T);}
static void *copy_Phonon_EffectDescription(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Phonon::EffectDescription(reinterpret_cast<const Phonon::EffectDescription *>(sipSrc)[sipSrcIdx]);
}


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


extern "C" {static void *init_Phonon_EffectDescription(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Phonon_EffectDescription(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Phonon::EffectDescription *sipCpp = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;
        const QHash<QByteArray,QVariant> * a1;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "iJ1", &a0, sipType_QHash_0100QByteArray_0100QVariant,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Phonon::EffectDescription(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHash<QByteArray,QVariant> *>(a1),sipType_QHash_0100QByteArray_0100QVariant,a1State);

            return sipCpp;
        }
    }

    {
        const Phonon::EffectDescription * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Phonon_EffectDescription, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Phonon::EffectDescription(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Phonon_EffectDescription[] = {
    {(void *)slot_Phonon_EffectDescription___ne__, ne_slot},
    {(void *)slot_Phonon_EffectDescription___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Phonon_EffectDescription[] = {
    {SIP_MLNAME_CAST(sipName_description), meth_Phonon_EffectDescription_description, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromIndex), meth_Phonon_EffectDescription_fromIndex, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_index), meth_Phonon_EffectDescription_index, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Phonon_EffectDescription_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_Phonon_EffectDescription_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_property), meth_Phonon_EffectDescription_property, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_propertyNames), meth_Phonon_EffectDescription_propertyNames, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_phonon_Phonon_EffectDescription = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Phonon__EffectDescription,
        {0}
    },
    {
        sipNameNr_EffectDescription,
        {0, 255, 0},
        7, methods_Phonon_EffectDescription,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Phonon_EffectDescription,
    init_Phonon_EffectDescription,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Phonon_EffectDescription,
    assign_Phonon_EffectDescription,
    array_Phonon_EffectDescription,
    copy_Phonon_EffectDescription,
    release_Phonon_EffectDescription,
    cast_Phonon_EffectDescription,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 41 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/objectdescription.sip"
#include <phonon/objectdescription.h>
#line 468 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"

#line 33 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 472 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 475 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 478 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 481 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 484 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 487 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"


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

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "i", &a0))
        {
            Phonon::VideoCaptureDevice *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Phonon::VideoCaptureDevice(Phonon::VideoCaptureDevice::fromIndex(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Phonon::VideoCaptureDevice *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Phonon::VideoCaptureDevice *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const char * a0;
        PyObject *a0Keep;
        Phonon::VideoCaptureDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAA", &sipSelf, sipType_Phonon_VideoCaptureDevice, &sipCpp, &a0Keep, &a0))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->property(a0));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

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

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

    return NULL;
}


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

    {
        Phonon::VideoCaptureDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_VideoCaptureDevice, &sipCpp))
        {
            QList<QByteArray> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QByteArray>(sipCpp->propertyNames());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Phonon::VideoCaptureDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_VideoCaptureDevice, &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(sipParseErr, sipName_VideoCaptureDevice, sipName_isValid, NULL);

    return NULL;
}


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

    {
        Phonon::VideoCaptureDevice *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->index();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *slot_Phonon_VideoCaptureDevice___ne__(PyObject *,PyObject *);}
static PyObject *slot_Phonon_VideoCaptureDevice___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Phonon::VideoCaptureDevice *sipCpp = reinterpret_cast<Phonon::VideoCaptureDevice *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_VideoCaptureDevice));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Phonon::VideoCaptureDevice * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Phonon_VideoCaptureDevice, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Phonon::VideoCaptureDevice::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_phonon,ne_slot,sipType_Phonon_VideoCaptureDevice,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Phonon_VideoCaptureDevice___eq__(PyObject *,PyObject *);}
static PyObject *slot_Phonon_VideoCaptureDevice___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Phonon::VideoCaptureDevice *sipCpp = reinterpret_cast<Phonon::VideoCaptureDevice *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_VideoCaptureDevice));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Phonon::VideoCaptureDevice * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Phonon_VideoCaptureDevice, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Phonon::VideoCaptureDevice::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_phonon,eq_slot,sipType_Phonon_VideoCaptureDevice,sipSelf,sipArg);
}


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

    return NULL;
}


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

    delete reinterpret_cast<Phonon::VideoCaptureDevice *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Phonon_VideoCaptureDevice(void *, SIP_SSIZE_T, const void *);}
static void assign_Phonon_VideoCaptureDevice(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Phonon::VideoCaptureDevice *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Phonon::VideoCaptureDevice *>(sipSrc);
}


extern "C" {static void *array_Phonon_VideoCaptureDevice(SIP_SSIZE_T);}
static void *array_Phonon_VideoCaptureDevice(SIP_SSIZE_T sipNrElem)
{
    return new Phonon::VideoCaptureDevice[sipNrElem];
}


extern "C" {static void *copy_Phonon_VideoCaptureDevice(const void *, SIP_SSIZE_T);}
static void *copy_Phonon_VideoCaptureDevice(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Phonon::VideoCaptureDevice(reinterpret_cast<const Phonon::VideoCaptureDevice *>(sipSrc)[sipSrcIdx]);
}


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


extern "C" {static void *init_Phonon_VideoCaptureDevice(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Phonon_VideoCaptureDevice(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Phonon::VideoCaptureDevice *sipCpp = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;
        const QHash<QByteArray,QVariant> * a1;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "iJ1", &a0, sipType_QHash_0100QByteArray_0100QVariant,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Phonon::VideoCaptureDevice(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHash<QByteArray,QVariant> *>(a1),sipType_QHash_0100QByteArray_0100QVariant,a1State);

            return sipCpp;
        }
    }

    {
        const Phonon::VideoCaptureDevice * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Phonon_VideoCaptureDevice, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Phonon::VideoCaptureDevice(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Phonon_VideoCaptureDevice[] = {
    {(void *)slot_Phonon_VideoCaptureDevice___ne__, ne_slot},
    {(void *)slot_Phonon_VideoCaptureDevice___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Phonon_VideoCaptureDevice[] = {
    {SIP_MLNAME_CAST(sipName_description), meth_Phonon_VideoCaptureDevice_description, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromIndex), meth_Phonon_VideoCaptureDevice_fromIndex, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_index), meth_Phonon_VideoCaptureDevice_index, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Phonon_VideoCaptureDevice_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_Phonon_VideoCaptureDevice_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_property), meth_Phonon_VideoCaptureDevice_property, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_propertyNames), meth_Phonon_VideoCaptureDevice_propertyNames, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_phonon_Phonon_VideoCaptureDevice = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Phonon__VideoCaptureDevice,
        {0}
    },
    {
        sipNameNr_VideoCaptureDevice,
        {0, 255, 0},
        7, methods_Phonon_VideoCaptureDevice,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Phonon_VideoCaptureDevice,
    init_Phonon_VideoCaptureDevice,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Phonon_VideoCaptureDevice,
    assign_Phonon_VideoCaptureDevice,
    array_Phonon_VideoCaptureDevice,
    copy_Phonon_VideoCaptureDevice,
    release_Phonon_VideoCaptureDevice,
    cast_Phonon_VideoCaptureDevice,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 41 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/objectdescription.sip"
#include <phonon/objectdescription.h>
#line 924 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"

#line 33 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 928 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 931 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 934 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 937 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 940 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 943 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"


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

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "i", &a0))
        {
            Phonon::AudioCaptureDevice *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Phonon::AudioCaptureDevice(Phonon::AudioCaptureDevice::fromIndex(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Phonon::AudioCaptureDevice *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Phonon::AudioCaptureDevice *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const char * a0;
        PyObject *a0Keep;
        Phonon::AudioCaptureDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAA", &sipSelf, sipType_Phonon_AudioCaptureDevice, &sipCpp, &a0Keep, &a0))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->property(a0));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

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

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

    return NULL;
}


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

    {
        Phonon::AudioCaptureDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_AudioCaptureDevice, &sipCpp))
        {
            QList<QByteArray> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QByteArray>(sipCpp->propertyNames());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Phonon::AudioCaptureDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_AudioCaptureDevice, &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(sipParseErr, sipName_AudioCaptureDevice, sipName_isValid, NULL);

    return NULL;
}


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

    {
        Phonon::AudioCaptureDevice *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->index();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *slot_Phonon_AudioCaptureDevice___ne__(PyObject *,PyObject *);}
static PyObject *slot_Phonon_AudioCaptureDevice___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Phonon::AudioCaptureDevice *sipCpp = reinterpret_cast<Phonon::AudioCaptureDevice *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_AudioCaptureDevice));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Phonon::AudioCaptureDevice * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Phonon_AudioCaptureDevice, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Phonon::AudioCaptureDevice::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_phonon,ne_slot,sipType_Phonon_AudioCaptureDevice,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Phonon_AudioCaptureDevice___eq__(PyObject *,PyObject *);}
static PyObject *slot_Phonon_AudioCaptureDevice___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Phonon::AudioCaptureDevice *sipCpp = reinterpret_cast<Phonon::AudioCaptureDevice *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_AudioCaptureDevice));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Phonon::AudioCaptureDevice * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Phonon_AudioCaptureDevice, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Phonon::AudioCaptureDevice::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_phonon,eq_slot,sipType_Phonon_AudioCaptureDevice,sipSelf,sipArg);
}


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

    return NULL;
}


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

    delete reinterpret_cast<Phonon::AudioCaptureDevice *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Phonon_AudioCaptureDevice(void *, SIP_SSIZE_T, const void *);}
static void assign_Phonon_AudioCaptureDevice(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Phonon::AudioCaptureDevice *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Phonon::AudioCaptureDevice *>(sipSrc);
}


extern "C" {static void *array_Phonon_AudioCaptureDevice(SIP_SSIZE_T);}
static void *array_Phonon_AudioCaptureDevice(SIP_SSIZE_T sipNrElem)
{
    return new Phonon::AudioCaptureDevice[sipNrElem];
}


extern "C" {static void *copy_Phonon_AudioCaptureDevice(const void *, SIP_SSIZE_T);}
static void *copy_Phonon_AudioCaptureDevice(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Phonon::AudioCaptureDevice(reinterpret_cast<const Phonon::AudioCaptureDevice *>(sipSrc)[sipSrcIdx]);
}


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


extern "C" {static void *init_Phonon_AudioCaptureDevice(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Phonon_AudioCaptureDevice(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Phonon::AudioCaptureDevice *sipCpp = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;
        const QHash<QByteArray,QVariant> * a1;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "iJ1", &a0, sipType_QHash_0100QByteArray_0100QVariant,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Phonon::AudioCaptureDevice(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHash<QByteArray,QVariant> *>(a1),sipType_QHash_0100QByteArray_0100QVariant,a1State);

            return sipCpp;
        }
    }

    {
        const Phonon::AudioCaptureDevice * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Phonon_AudioCaptureDevice, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Phonon::AudioCaptureDevice(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Phonon_AudioCaptureDevice[] = {
    {(void *)slot_Phonon_AudioCaptureDevice___ne__, ne_slot},
    {(void *)slot_Phonon_AudioCaptureDevice___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Phonon_AudioCaptureDevice[] = {
    {SIP_MLNAME_CAST(sipName_description), meth_Phonon_AudioCaptureDevice_description, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromIndex), meth_Phonon_AudioCaptureDevice_fromIndex, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_index), meth_Phonon_AudioCaptureDevice_index, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Phonon_AudioCaptureDevice_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_Phonon_AudioCaptureDevice_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_property), meth_Phonon_AudioCaptureDevice_property, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_propertyNames), meth_Phonon_AudioCaptureDevice_propertyNames, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_phonon_Phonon_AudioCaptureDevice = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Phonon__AudioCaptureDevice,
        {0}
    },
    {
        sipNameNr_AudioCaptureDevice,
        {0, 255, 0},
        7, methods_Phonon_AudioCaptureDevice,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Phonon_AudioCaptureDevice,
    init_Phonon_AudioCaptureDevice,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Phonon_AudioCaptureDevice,
    assign_Phonon_AudioCaptureDevice,
    array_Phonon_AudioCaptureDevice,
    copy_Phonon_AudioCaptureDevice,
    release_Phonon_AudioCaptureDevice,
    cast_Phonon_AudioCaptureDevice,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 41 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/objectdescription.sip"
#include <phonon/objectdescription.h>
#line 1380 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"

#line 33 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 1384 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1387 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1390 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1393 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1396 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1399 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"


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

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "i", &a0))
        {
            Phonon::AudioOutputDevice *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Phonon::AudioOutputDevice(Phonon::AudioOutputDevice::fromIndex(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Phonon::AudioOutputDevice *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Phonon::AudioOutputDevice *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const char * a0;
        PyObject *a0Keep;
        Phonon::AudioOutputDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAA", &sipSelf, sipType_Phonon_AudioOutputDevice, &sipCpp, &a0Keep, &a0))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->property(a0));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

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

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

    return NULL;
}


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

    {
        Phonon::AudioOutputDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_AudioOutputDevice, &sipCpp))
        {
            QList<QByteArray> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QByteArray>(sipCpp->propertyNames());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Phonon::AudioOutputDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_AudioOutputDevice, &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(sipParseErr, sipName_AudioOutputDevice, sipName_isValid, NULL);

    return NULL;
}


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

    {
        Phonon::AudioOutputDevice *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->index();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *slot_Phonon_AudioOutputDevice___ne__(PyObject *,PyObject *);}
static PyObject *slot_Phonon_AudioOutputDevice___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Phonon::AudioOutputDevice *sipCpp = reinterpret_cast<Phonon::AudioOutputDevice *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_AudioOutputDevice));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Phonon::AudioOutputDevice * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Phonon_AudioOutputDevice, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Phonon::AudioOutputDevice::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_phonon,ne_slot,sipType_Phonon_AudioOutputDevice,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Phonon_AudioOutputDevice___eq__(PyObject *,PyObject *);}
static PyObject *slot_Phonon_AudioOutputDevice___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Phonon::AudioOutputDevice *sipCpp = reinterpret_cast<Phonon::AudioOutputDevice *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_AudioOutputDevice));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Phonon::AudioOutputDevice * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Phonon_AudioOutputDevice, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Phonon::AudioOutputDevice::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_phonon,eq_slot,sipType_Phonon_AudioOutputDevice,sipSelf,sipArg);
}


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

    return NULL;
}


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

    delete reinterpret_cast<Phonon::AudioOutputDevice *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Phonon_AudioOutputDevice(void *, SIP_SSIZE_T, const void *);}
static void assign_Phonon_AudioOutputDevice(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Phonon::AudioOutputDevice *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Phonon::AudioOutputDevice *>(sipSrc);
}


extern "C" {static void *array_Phonon_AudioOutputDevice(SIP_SSIZE_T);}
static void *array_Phonon_AudioOutputDevice(SIP_SSIZE_T sipNrElem)
{
    return new Phonon::AudioOutputDevice[sipNrElem];
}


extern "C" {static void *copy_Phonon_AudioOutputDevice(const void *, SIP_SSIZE_T);}
static void *copy_Phonon_AudioOutputDevice(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Phonon::AudioOutputDevice(reinterpret_cast<const Phonon::AudioOutputDevice *>(sipSrc)[sipSrcIdx]);
}


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


extern "C" {static void *init_Phonon_AudioOutputDevice(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Phonon_AudioOutputDevice(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Phonon::AudioOutputDevice *sipCpp = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;
        const QHash<QByteArray,QVariant> * a1;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "iJ1", &a0, sipType_QHash_0100QByteArray_0100QVariant,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Phonon::AudioOutputDevice(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHash<QByteArray,QVariant> *>(a1),sipType_QHash_0100QByteArray_0100QVariant,a1State);

            return sipCpp;
        }
    }

    {
        const Phonon::AudioOutputDevice * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Phonon_AudioOutputDevice, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Phonon::AudioOutputDevice(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Phonon_AudioOutputDevice[] = {
    {(void *)slot_Phonon_AudioOutputDevice___ne__, ne_slot},
    {(void *)slot_Phonon_AudioOutputDevice___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Phonon_AudioOutputDevice[] = {
    {SIP_MLNAME_CAST(sipName_description), meth_Phonon_AudioOutputDevice_description, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromIndex), meth_Phonon_AudioOutputDevice_fromIndex, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_index), meth_Phonon_AudioOutputDevice_index, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Phonon_AudioOutputDevice_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_Phonon_AudioOutputDevice_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_property), meth_Phonon_AudioOutputDevice_property, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_propertyNames), meth_Phonon_AudioOutputDevice_propertyNames, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_phonon_Phonon_AudioOutputDevice = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Phonon__AudioOutputDevice,
        {0}
    },
    {
        sipNameNr_AudioOutputDevice,
        {0, 255, 0},
        7, methods_Phonon_AudioOutputDevice,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Phonon_AudioOutputDevice,
    init_Phonon_AudioOutputDevice,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Phonon_AudioOutputDevice,
    assign_Phonon_AudioOutputDevice,
    array_Phonon_AudioOutputDevice,
    copy_Phonon_AudioOutputDevice,
    release_Phonon_AudioOutputDevice,
    cast_Phonon_AudioOutputDevice,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/mediasource.sip"
#include <phonon/mediasource.h>
#line 1836 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1840 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 1843 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/abstractmediastream.sip"
#include <phonon/abstractmediastream.h>
#line 1846 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 1849 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 41 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/objectdescription.sip"
#include <phonon/objectdescription.h>
#line 1852 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 41 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/objectdescription.sip"
#include <phonon/objectdescription.h>
#line 1855 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 589 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 1858 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1861 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1864 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/mrl.sip"
#include <mrl.h>
#line 1867 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 201 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 1871 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"


class sipPhonon_MediaSource : public Phonon::MediaSource
{
public:
    sipPhonon_MediaSource();
    sipPhonon_MediaSource(const QString&);
    sipPhonon_MediaSource(const QUrl&);
    sipPhonon_MediaSource(Phonon::AbstractMediaStream *);
    sipPhonon_MediaSource(QIODevice *);
    sipPhonon_MediaSource(const Phonon::MediaSource&);
    sipPhonon_MediaSource(const Phonon::AudioCaptureDevice&);
    sipPhonon_MediaSource(const Phonon::VideoCaptureDevice&);
    sipPhonon_MediaSource(const Phonon::DeviceAccess&);
    sipPhonon_MediaSource(Phonon::DiscType,const QString&);
    sipPhonon_MediaSource(Phonon::Capture::DeviceType,Phonon::CaptureCategory);
    ~sipPhonon_MediaSource();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipPhonon_MediaSource(const sipPhonon_MediaSource &);
    sipPhonon_MediaSource &operator = (const sipPhonon_MediaSource &);
};

sipPhonon_MediaSource::sipPhonon_MediaSource(): Phonon::MediaSource(), sipPySelf(0)
{
}

sipPhonon_MediaSource::sipPhonon_MediaSource(const QString& a0): Phonon::MediaSource(a0), sipPySelf(0)
{
}

sipPhonon_MediaSource::sipPhonon_MediaSource(const QUrl& a0): Phonon::MediaSource(a0), sipPySelf(0)
{
}

sipPhonon_MediaSource::sipPhonon_MediaSource(Phonon::AbstractMediaStream *a0): Phonon::MediaSource(a0), sipPySelf(0)
{
}

sipPhonon_MediaSource::sipPhonon_MediaSource(QIODevice *a0): Phonon::MediaSource(a0), sipPySelf(0)
{
}

sipPhonon_MediaSource::sipPhonon_MediaSource(const Phonon::MediaSource& a0): Phonon::MediaSource(a0), sipPySelf(0)
{
}

sipPhonon_MediaSource::sipPhonon_MediaSource(const Phonon::AudioCaptureDevice& a0): Phonon::MediaSource(a0), sipPySelf(0)
{
}

sipPhonon_MediaSource::sipPhonon_MediaSource(const Phonon::VideoCaptureDevice& a0): Phonon::MediaSource(a0), sipPySelf(0)
{
}

sipPhonon_MediaSource::sipPhonon_MediaSource(const Phonon::DeviceAccess& a0): Phonon::MediaSource(a0), sipPySelf(0)
{
}

sipPhonon_MediaSource::sipPhonon_MediaSource(Phonon::DiscType a0,const QString& a1): Phonon::MediaSource(a0,a1), sipPySelf(0)
{
}

sipPhonon_MediaSource::sipPhonon_MediaSource(Phonon::Capture::DeviceType a0,Phonon::CaptureCategory a1): Phonon::MediaSource(a0,a1), sipPySelf(0)
{
}

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


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

    {
        bool a0;
        Phonon::MediaSource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Phonon_MediaSource, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAutoDelete(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_MediaSource, sipName_setAutoDelete, NULL);

    return NULL;
}


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

    {
        Phonon::MediaSource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->autoDelete();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaSource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_MediaSource, &sipCpp))
        {
            Phonon::MediaSource::Type sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->type();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Phonon_MediaSource_Type);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaSource *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Phonon::MediaSource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(sipCpp->url());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Phonon::MediaSource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_MediaSource, &sipCpp))
        {
            Phonon::DiscType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->discType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Phonon_DiscType);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaSource *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Phonon::MediaSource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_MediaSource, &sipCpp))
        {
            Phonon::AbstractMediaStream *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->stream();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Phonon::MediaSource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_MediaSource, &sipCpp))
        {
            Phonon::DeviceAccessList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Phonon::DeviceAccessList(sipCpp->deviceAccessList());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Phonon::MediaSource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_MediaSource, &sipCpp))
        {
            Phonon::AudioCaptureDevice *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Phonon::AudioCaptureDevice(sipCpp->audioCaptureDevice());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Phonon::MediaSource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_MediaSource, &sipCpp))
        {
            Phonon::VideoCaptureDevice *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Phonon::VideoCaptureDevice(sipCpp->videoCaptureDevice());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Phonon::MediaSource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_MediaSource, &sipCpp))
        {
            Phonon::Mrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Phonon::Mrl(sipCpp->mrl());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *slot_Phonon_MediaSource___ne__(PyObject *,PyObject *);}
static PyObject *slot_Phonon_MediaSource___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Phonon::MediaSource *sipCpp = reinterpret_cast<Phonon::MediaSource *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_MediaSource));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Phonon::MediaSource * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Phonon_MediaSource, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = !sipCpp->Phonon::MediaSource::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_phonon,ne_slot,sipType_Phonon_MediaSource,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Phonon_MediaSource___eq__(PyObject *,PyObject *);}
static PyObject *slot_Phonon_MediaSource___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Phonon::MediaSource *sipCpp = reinterpret_cast<Phonon::MediaSource *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_MediaSource));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Phonon::MediaSource * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Phonon_MediaSource, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Phonon::MediaSource::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_phonon,eq_slot,sipType_Phonon_MediaSource,sipSelf,sipArg);
}


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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipPhonon_MediaSource *>(sipCppV);
    else
        delete reinterpret_cast<Phonon::MediaSource *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Phonon_MediaSource(void *, SIP_SSIZE_T, const void *);}
static void assign_Phonon_MediaSource(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Phonon::MediaSource *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Phonon::MediaSource *>(sipSrc);
}


extern "C" {static void *array_Phonon_MediaSource(SIP_SSIZE_T);}
static void *array_Phonon_MediaSource(SIP_SSIZE_T sipNrElem)
{
    return new Phonon::MediaSource[sipNrElem];
}


extern "C" {static void *copy_Phonon_MediaSource(const void *, SIP_SSIZE_T);}
static void *copy_Phonon_MediaSource(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Phonon::MediaSource(reinterpret_cast<const Phonon::MediaSource *>(sipSrc)[sipSrcIdx]);
}


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipPhonon_MediaSource(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QUrl * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipPhonon_MediaSource(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        Phonon::AbstractMediaStream * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_Phonon_AbstractMediaStream, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipPhonon_MediaSource(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QIODevice * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_QIODevice, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipPhonon_MediaSource(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Phonon::MediaSource * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Phonon_MediaSource, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipPhonon_MediaSource(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Phonon::AudioCaptureDevice * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Phonon_AudioCaptureDevice, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipPhonon_MediaSource(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Phonon::VideoCaptureDevice * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Phonon_VideoCaptureDevice, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipPhonon_MediaSource(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Phonon::DeviceAccess * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QPair_0100QByteArray_0100QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipPhonon_MediaSource(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<Phonon::DeviceAccess *>(a0),sipType_QPair_0100QByteArray_0100QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        Phonon::DiscType a0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "E|J1", sipType_Phonon_DiscType, &a0, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipPhonon_MediaSource(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        Phonon::Capture::DeviceType a0;
        Phonon::CaptureCategory a1 = Phonon::NoCaptureCategory;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "E|E", sipType_Phonon_Capture_DeviceType, &a0, sipType_Phonon_CaptureCategory, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipPhonon_MediaSource(a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Phonon_MediaSource[] = {
    {(void *)slot_Phonon_MediaSource___ne__, ne_slot},
    {(void *)slot_Phonon_MediaSource___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Phonon_MediaSource[] = {
    {SIP_MLNAME_CAST(sipName_audioCaptureDevice), meth_Phonon_MediaSource_audioCaptureDevice, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_autoDelete), meth_Phonon_MediaSource_autoDelete, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deviceAccessList), meth_Phonon_MediaSource_deviceAccessList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deviceName), meth_Phonon_MediaSource_deviceName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_discType), meth_Phonon_MediaSource_discType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fileName), meth_Phonon_MediaSource_fileName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mrl), meth_Phonon_MediaSource_mrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAutoDelete), meth_Phonon_MediaSource_setAutoDelete, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stream), meth_Phonon_MediaSource_stream, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Phonon_MediaSource_type, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_url), meth_Phonon_MediaSource_url, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_videoCaptureDevice), meth_Phonon_MediaSource_videoCaptureDevice, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Phonon_MediaSource[] = {
    {sipName_CaptureDevice, Phonon::MediaSource::CaptureDevice, 32},
    {sipName_Disc, Phonon::MediaSource::Disc, 32},
    {sipName_Empty, Phonon::MediaSource::Empty, 32},
    {sipName_Invalid, Phonon::MediaSource::Invalid, 32},
    {sipName_LocalFile, Phonon::MediaSource::LocalFile, 32},
    {sipName_Stream, Phonon::MediaSource::Stream, 32},
    {sipName_Url, Phonon::MediaSource::Url, 32},
};


pyqt4ClassTypeDef sipTypeDef_phonon_Phonon_MediaSource = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Phonon__MediaSource,
        {0}
    },
    {
        sipNameNr_MediaSource,
        {0, 255, 0},
        12, methods_Phonon_MediaSource,
        7, enummembers_Phonon_MediaSource,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Phonon_MediaSource,
    init_Phonon_MediaSource,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Phonon_MediaSource,
    assign_Phonon_MediaSource,
    array_Phonon_MediaSource,
    copy_Phonon_MediaSource,
    release_Phonon_MediaSource,
    cast_Phonon_MediaSource,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/mediaobject.sip"
#include <phonon/mediaobject.h>
#line 2667 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/mediasource.sip"
#include <phonon/mediasource.h>
#line 2671 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2674 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2677 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 2680 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2683 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 2686 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 241 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 2689 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2692 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2695 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2698 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2701 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 2704 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2707 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2710 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2713 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2716 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2719 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 2722 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2725 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2728 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2731 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/path.sip"
#include <phonon/path.h>
#line 2734 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"


class sipPhonon_MediaObject : public Phonon::MediaObject
{
public:
    sipPhonon_MediaObject();
    virtual ~sipPhonon_MediaObject();

    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:
    sipPhonon_MediaObject(const sipPhonon_MediaObject &);
    sipPhonon_MediaObject &operator = (const sipPhonon_MediaObject &);

    char sipPyMethods[7];
};

sipPhonon_MediaObject::sipPhonon_MediaObject(): Phonon::MediaObject(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipPhonon_MediaObject::metaObject() const
{
    return sip_phonon_qt_metaobject(sipPySelf,sipType_Phonon_MediaObject);
}

int sipPhonon_MediaObject::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Phonon::MediaObject::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_phonon_qt_metacall(sipPySelf,sipType_Phonon_MediaObject,_c,_id,_a);

    return _id;
}

void *sipPhonon_MediaObject::qt_metacast(const char *_clname)
{
    return (sip_phonon_qt_metacast && sip_phonon_qt_metacast(sipPySelf,sipType_Phonon_MediaObject,_clname)) ? this : Phonon::MediaObject::qt_metacast(_clname);
}

bool sipPhonon_MediaObject::event(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

    return ((sipVH_QtCore_5)(sipModuleAPI_phonon_QtCore->em_virthandlers[5]))(sipGILState,sipMeth,a0);
}

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

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

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

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

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

void sipPhonon_MediaObject::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

    ((sipVH_QtCore_9)(sipModuleAPI_phonon_QtCore->em_virthandlers[9]))(sipGILState,sipMeth,a0);
}

void sipPhonon_MediaObject::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

    ((sipVH_QtCore_25)(sipModuleAPI_phonon_QtCore->em_virthandlers[25]))(sipGILState,sipMeth,a0);
}

void sipPhonon_MediaObject::customEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

    ((sipVH_QtCore_17)(sipModuleAPI_phonon_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

void sipPhonon_MediaObject::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

    ((sipVH_QtCore_24)(sipModuleAPI_phonon_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

void sipPhonon_MediaObject::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

    ((sipVH_QtCore_24)(sipModuleAPI_phonon_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

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

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

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

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

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

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

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


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

    {
        sipPhonon_MediaObject *sipCpp;

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

#line 632 "/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 2994 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipPhonon_MediaObject *sipCpp;

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

#line 649 "/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 3036 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipPhonon_MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Phonon_MediaObject, &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_MediaObject, sipName_timerEvent, NULL);

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipPhonon_MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Phonon_MediaObject, &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_MediaObject, sipName_childEvent, NULL);

    return NULL;
}


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

    {
        QEvent * a0;
        sipPhonon_MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Phonon_MediaObject, &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_MediaObject, sipName_customEvent, NULL);

    return NULL;
}


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

    {
        char * a0;
        sipPhonon_MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Phonon_MediaObject, &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_MediaObject, sipName_connectNotify, NULL);

    return NULL;
}


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

    {
        char * a0;
        sipPhonon_MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Phonon_MediaObject, &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_MediaObject, sipName_disconnectNotify, NULL);

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_MediaObject, &sipCpp))
        {
            Phonon::State sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->state();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Phonon_State);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasVideo();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isSeekable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_MediaObject, &sipCpp))
        {
            qint32 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->tickInterval();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Phonon::MediaObject *sipCpp;

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

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

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

    {
        Phonon::MetaData a0;
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Phonon_MediaObject, &sipCpp, sipType_Phonon_MetaData, &a0))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->metaData(a0));
            Py_END_ALLOW_THREADS

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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_MediaObject, &sipCpp))
        {
            QMultiMap<QString,QString> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QMultiMap<QString,QString>(sipCpp->metaData());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_MediaObject, &sipCpp))
        {
            Phonon::ErrorType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->errorType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Phonon_ErrorType);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_MediaObject, &sipCpp))
        {
            Phonon::MediaSource *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Phonon::MediaSource(sipCpp->currentSource());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Phonon::MediaSource * a0;
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Phonon_MediaObject, &sipCpp, sipType_Phonon_MediaSource, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCurrentSource(*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_MediaObject, sipName_setCurrentSource, NULL);

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_MediaObject, &sipCpp))
        {
            QList<Phonon::MediaSource> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Phonon::MediaSource>(sipCpp->queue());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QList<Phonon::MediaSource> * a0;
        int a0State = 0;
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Phonon_MediaObject, &sipCpp, sipType_QList_0100Phonon_MediaSource,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setQueue(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Phonon::MediaSource> *>(a0),sipType_QList_0100Phonon_MediaSource,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QList<QUrl> * a0;
        int a0State = 0;
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Phonon_MediaObject, &sipCpp, sipType_QList_0100QUrl,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setQueue(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QUrl> *>(a0),sipType_QList_0100QUrl,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Phonon::MediaSource * a0;
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Phonon_MediaObject, &sipCpp, sipType_Phonon_MediaSource, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->enqueue(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QList<Phonon::MediaSource> * a0;
        int a0State = 0;
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Phonon_MediaObject, &sipCpp, sipType_QList_0100Phonon_MediaSource,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->enqueue(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Phonon::MediaSource> *>(a0),sipType_QList_0100Phonon_MediaSource,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QList<QUrl> * a0;
        int a0State = 0;
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Phonon_MediaObject, &sipCpp, sipType_QList_0100QUrl,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->enqueue(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QUrl> *>(a0),sipType_QList_0100QUrl,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_MediaObject, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->clearQueue();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_MediaObject, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->currentTime();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_MediaObject, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->totalTime();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_MediaObject, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->remainingTime();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_MediaObject, &sipCpp))
        {
            qint32 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->prefinishMark();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        qint32 a0;
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Phonon_MediaObject, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPrefinishMark(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_MediaObject, sipName_setPrefinishMark, NULL);

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_MediaObject, &sipCpp))
        {
            qint32 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->transitionTime();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        qint32 a0;
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Phonon_MediaObject, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTransitionTime(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_MediaObject, sipName_setTransitionTime, NULL);

    return NULL;
}


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

    {
        qint32 a0;
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Phonon_MediaObject, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTickInterval(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_MediaObject, sipName_setTickInterval, NULL);

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_MediaObject, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->play();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_MediaObject, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->pause();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_MediaObject, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->stop();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_Phonon_MediaObject, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->seek(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_MediaObject, sipName_seek, NULL);

    return NULL;
}


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

    {
        Phonon::MediaObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_MediaObject, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->clear();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Phonon_MediaObject)
        return ptr;

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

    if ((res = ((const sipClassTypeDef *)sipType_Phonon_MediaNode)->ctd_cast((Phonon::MediaNode *)(Phonon::MediaObject *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipPhonon_MediaObject *>(sipCppV);
    else
        delete reinterpret_cast<Phonon::MediaObject *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Phonon_MediaObject[] = {{134, 0, 0}, {29, 255, 1}};


static PyMethodDef methods_Phonon_MediaObject[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Phonon_MediaObject_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clear), meth_Phonon_MediaObject_clear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearQueue), meth_Phonon_MediaObject_clearQueue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Phonon_MediaObject_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentSource), meth_Phonon_MediaObject_currentSource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentTime), meth_Phonon_MediaObject_currentTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Phonon_MediaObject_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Phonon_MediaObject_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enqueue), meth_Phonon_MediaObject_enqueue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_errorString), meth_Phonon_MediaObject_errorString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_errorType), meth_Phonon_MediaObject_errorType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasVideo), meth_Phonon_MediaObject_hasVideo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSeekable), meth_Phonon_MediaObject_isSeekable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_metaData), meth_Phonon_MediaObject_metaData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pause), meth_Phonon_MediaObject_pause, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_play), meth_Phonon_MediaObject_play, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_prefinishMark), meth_Phonon_MediaObject_prefinishMark, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queue), meth_Phonon_MediaObject_queue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Phonon_MediaObject_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_remainingTime), meth_Phonon_MediaObject_remainingTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_seek), meth_Phonon_MediaObject_seek, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Phonon_MediaObject_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCurrentSource), meth_Phonon_MediaObject_setCurrentSource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPrefinishMark), meth_Phonon_MediaObject_setPrefinishMark, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setQueue), meth_Phonon_MediaObject_setQueue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTickInterval), meth_Phonon_MediaObject_setTickInterval, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTransitionTime), meth_Phonon_MediaObject_setTransitionTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_state), meth_Phonon_MediaObject_state, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stop), meth_Phonon_MediaObject_stop, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tickInterval), meth_Phonon_MediaObject_tickInterval, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Phonon_MediaObject_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_totalTime), meth_Phonon_MediaObject_totalTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_transitionTime), meth_Phonon_MediaObject_transitionTime, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Phonon_MediaObject[] = {
    {"totalTimeChanged(qint64)", 0, 0},
    {"prefinishMarkReached(qint32)", 0, 0},
    {"aboutToFinish()", 0, 0},
    {"currentSourceChanged(Phonon::MediaSource)", 0, 0},
    {"finished()", 0, 0},
    {"bufferStatus(int)", 0, 0},
    {"hasVideoChanged(bool)", 0, 0},
    {"seekableChanged(bool)", 0, 0},
    {"metaDataChanged()", 0, 0},
    {"tick(qint64)", 0, 0},
    {"stateChanged(Phonon::State,Phonon::State)", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_phonon_Phonon_MediaObject = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Phonon__MediaObject,
        {0}
    },
    {
        sipNameNr_MediaObject,
        {0, 255, 0},
        33, methods_Phonon_MediaObject,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Phonon_MediaObject,
    0,
    init_Phonon_MediaObject,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Phonon_MediaObject,
    0,
    0,
    0,
    release_Phonon_MediaObject,
    cast_Phonon_MediaObject,
    0,
    0,
    0
},
    &Phonon::MediaObject::staticMetaObject,
    0,
    pyqt4_signals_Phonon_MediaObject
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/mediacontroller.sip"
#include <phonon/mediacontroller.h>
#line 4152 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/mediacontroller.sip"
#include <phonon/mediacontroller.h>
#line 4156 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"


extern "C" {static int slot_Phonon_MediaController_Features___bool__(PyObject *);}
static int slot_Phonon_MediaController_Features___bool__(PyObject *sipSelf)
{
    Phonon::MediaController::Features *sipCpp = reinterpret_cast<Phonon::MediaController::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_MediaController_Features));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 4174 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_Phonon_MediaController_Features___ne__(PyObject *,PyObject *);}
static PyObject *slot_Phonon_MediaController_Features___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Phonon::MediaController::Features *sipCpp = reinterpret_cast<Phonon::MediaController::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_MediaController_Features));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Phonon::MediaController::Features * a0;
        int a0State = 0;

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

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 4204 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
            sipReleaseType(const_cast<Phonon::MediaController::Features *>(a0),sipType_Phonon_MediaController_Features,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_phonon,ne_slot,sipType_Phonon_MediaController_Features,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Phonon_MediaController_Features___eq__(PyObject *,PyObject *);}
static PyObject *slot_Phonon_MediaController_Features___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Phonon::MediaController::Features *sipCpp = reinterpret_cast<Phonon::MediaController::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_MediaController_Features));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Phonon::MediaController::Features * a0;
        int a0State = 0;

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

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 4240 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
            sipReleaseType(const_cast<Phonon::MediaController::Features *>(a0),sipType_Phonon_MediaController_Features,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_phonon,eq_slot,sipType_Phonon_MediaController_Features,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Phonon_MediaController_Features___invert__(PyObject *);}
static PyObject *slot_Phonon_MediaController_Features___invert__(PyObject *sipSelf)
{
    Phonon::MediaController::Features *sipCpp = reinterpret_cast<Phonon::MediaController::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_MediaController_Features));

    if (!sipCpp)
        return 0;


    {
        {
            Phonon::MediaController::Features *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Phonon::MediaController::Features(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        Phonon::MediaController::Features * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Phonon_MediaController_Features, &a0, &a0State, &a1))
        {
            Phonon::MediaController::Features *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Phonon::MediaController::Features((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Phonon_MediaController_Features,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        Phonon::MediaController::Features * a0;
        int a0State = 0;
        Phonon::MediaController::Features * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Phonon_MediaController_Features, &a0, &a0State, sipType_Phonon_MediaController_Features, &a1, &a1State))
        {
            Phonon::MediaController::Features *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Phonon::MediaController::Features((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Phonon_MediaController_Features,a0State);
            sipReleaseType(a1,sipType_Phonon_MediaController_Features,a1State);

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

    {
        Phonon::MediaController::Features * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Phonon_MediaController_Features, &a0, &a0State, &a1))
        {
            Phonon::MediaController::Features *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Phonon::MediaController::Features(*a0 ^ a1);
#line 4349 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
            sipReleaseType(a0,sipType_Phonon_MediaController_Features,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        Phonon::MediaController::Features * a0;
        int a0State = 0;
        Phonon::MediaController::Features * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Phonon_MediaController_Features, &a0, &a0State, sipType_Phonon_MediaController_Features, &a1, &a1State))
        {
            Phonon::MediaController::Features *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Phonon::MediaController::Features((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Phonon_MediaController_Features,a0State);
            sipReleaseType(a1,sipType_Phonon_MediaController_Features,a1State);

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

    {
        Phonon::MediaController::Features * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Phonon_MediaController_Features, &a0, &a0State, &a1))
        {
            Phonon::MediaController::Features *sipRes = 0;

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Phonon::MediaController::Features(*a0 | a1);
#line 4401 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
            sipReleaseType(a0,sipType_Phonon_MediaController_Features,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Phonon_MediaController_Features___int__(PyObject *);}
static PyObject *slot_Phonon_MediaController_Features___int__(PyObject *sipSelf)
{
    Phonon::MediaController::Features *sipCpp = reinterpret_cast<Phonon::MediaController::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_MediaController_Features));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

    Phonon::MediaController::Features *sipCpp = reinterpret_cast<Phonon::MediaController::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_MediaController_Features));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Phonon::MediaController::Features * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Phonon_MediaController_Features, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Phonon::MediaController::Features::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Phonon_MediaController_Features,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    Phonon::MediaController::Features *sipCpp = reinterpret_cast<Phonon::MediaController::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_MediaController_Features));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Phonon::MediaController::Features * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Phonon_MediaController_Features, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Phonon::MediaController::Features::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Phonon_MediaController_Features,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    Phonon::MediaController::Features *sipCpp = reinterpret_cast<Phonon::MediaController::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Phonon_MediaController_Features));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Phonon::MediaController::Features::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

    delete reinterpret_cast<Phonon::MediaController::Features *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Phonon_MediaController_Features(void *, SIP_SSIZE_T, const void *);}
static void assign_Phonon_MediaController_Features(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Phonon::MediaController::Features *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Phonon::MediaController::Features *>(sipSrc);
}


extern "C" {static void *array_Phonon_MediaController_Features(SIP_SSIZE_T);}
static void *array_Phonon_MediaController_Features(SIP_SSIZE_T sipNrElem)
{
    return new Phonon::MediaController::Features[sipNrElem];
}


extern "C" {static void *copy_Phonon_MediaController_Features(const void *, SIP_SSIZE_T);}
static void *copy_Phonon_MediaController_Features(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Phonon::MediaController::Features(reinterpret_cast<const Phonon::MediaController::Features *>(sipSrc)[sipSrcIdx]);
}


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


extern "C" {static void *init_Phonon_MediaController_Features(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Phonon_MediaController_Features(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Phonon::MediaController::Features *sipCpp = 0;

    {
        const Phonon::MediaController::Features * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_Phonon_MediaController_Features, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Phonon::MediaController::Features(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<Phonon::MediaController::Features *>(a0),sipType_Phonon_MediaController_Features,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Phonon::MediaController::Features(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Phonon::MediaController::Features();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_Phonon_MediaController_Features(PyObject *, void **, int *, PyObject *);}
static int convertTo_Phonon_MediaController_Features(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    Phonon::MediaController::Features **sipCppPtr = reinterpret_cast<Phonon::MediaController::Features **>(sipCppPtrV);

#line 336 "/usr/local/share/py-sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a Phonon::MediaController::Features is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Phonon_MediaController_Feature)) ||
            sipCanConvertToType(sipPy, sipType_Phonon_MediaController_Features, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Phonon_MediaController_Feature)))
{
    *sipCppPtr = new Phonon::MediaController::Features(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<Phonon::MediaController::Features *>(sipConvertToType(sipPy, sipType_Phonon_MediaController_Features, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 4696 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart4.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Phonon_MediaController_Features[] = {
    {(void *)slot_Phonon_MediaController_Features___bool__, bool_slot},
    {(void *)slot_Phonon_MediaController_Features___ne__, ne_slot},
    {(void *)slot_Phonon_MediaController_Features___eq__, eq_slot},
    {(void *)slot_Phonon_MediaController_Features___invert__, invert_slot},
    {(void *)slot_Phonon_MediaController_Features___and__, and_slot},
    {(void *)slot_Phonon_MediaController_Features___xor__, xor_slot},
    {(void *)slot_Phonon_MediaController_Features___or__, or_slot},
    {(void *)slot_Phonon_MediaController_Features___int__, int_slot},
    {(void *)slot_Phonon_MediaController_Features___ixor__, ixor_slot},
    {(void *)slot_Phonon_MediaController_Features___ior__, ior_slot},
    {(void *)slot_Phonon_MediaController_Features___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_phonon_Phonon_MediaController_Features = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Phonon__MediaController__Features,
        {0}
    },
    {
        sipNameNr_Features,
        {26, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Phonon_MediaController_Features,
    init_Phonon_MediaController_Features,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Phonon_MediaController_Features,
    assign_Phonon_MediaController_Features,
    array_Phonon_MediaController_Features,
    copy_Phonon_MediaController_Features,
    release_Phonon_MediaController_Features,
    cast_Phonon_MediaController_Features,
    convertTo_Phonon_MediaController_Features,
    0,
    0
},
    0,
    1,
    0
};
