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

#include "sipAPIphonon.h"

#line 41 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/phonon/objectdescription.sip"
#include <phonon/objectdescription.h>
#line 12 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"

#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 16 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 19 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 22 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 31 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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;

    {
        const 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;

    {
        const 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;
        const 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;

    {
        const 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;

    {
        const 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;

    {
        const 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);
}


/* 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_type_Phonon_EffectDescription(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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_type_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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 41 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/phonon/objectdescription.sip"
#include <phonon/objectdescription.h>
#line 460 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"

#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 464 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 467 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 470 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 473 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 476 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 479 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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;

    {
        const 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;

    {
        const 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;
        const 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;

    {
        const 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;

    {
        const 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;

    {
        const 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);
}


/* 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_type_Phonon_VideoCaptureDevice(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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_type_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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 41 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/phonon/objectdescription.sip"
#include <phonon/objectdescription.h>
#line 908 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"

#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 912 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 915 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 918 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 921 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 924 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 927 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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;

    {
        const 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;

    {
        const 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;
        const 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;

    {
        const 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;

    {
        const 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;

    {
        const 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);
}


/* 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_type_Phonon_AudioCaptureDevice(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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_type_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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 41 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/phonon/objectdescription.sip"
#include <phonon/objectdescription.h>
#line 1356 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"

#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 1360 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1363 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1366 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1369 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1372 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1375 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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;

    {
        const 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;

    {
        const 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;
        const 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;

    {
        const 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;

    {
        const 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;

    {
        const 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);
}


/* 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_type_Phonon_AudioOutputDevice(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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_type_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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/phonon/mediasource.sip"
#include <phonon/mediasource.h>
#line 1804 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1808 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 102 "/usr/share/python3-sip/PyQt4/QtCore/qurl.sip"
#include <qurl.h>
#line 1811 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/phonon/abstractmediastream.sip"
#include <phonon/abstractmediastream.h>
#line 1814 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 1817 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 41 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/phonon/objectdescription.sip"
#include <phonon/objectdescription.h>
#line 1820 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 41 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/phonon/objectdescription.sip"
#include <phonon/objectdescription.h>
#line 1823 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 1826 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1829 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 72 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1832 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/phonon/mrl.sip"
#include <phonon/mrl.h>
#line 1835 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 196 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 1839 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"


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;

    {
        const 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;

    {
        const 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;

    {
        const 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;

    {
        const 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;

    {
        const 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;

    {
        const 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;

    {
        const 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;

    {
        const 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;

    {
        const 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;

    {
        const 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;

    {
        const 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);
}


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

    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 (sipIsPyOwned(sipSelf))
    {
        release_Phonon_MediaSource(sipGetAddress(sipSelf),0);
    }
}


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

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

            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 Phonon::MediaSource(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipCpp;
        }
    }

    {
        const QUrl* a0;

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

            return sipCpp;
        }
    }

    {
        Phonon::AbstractMediaStream* a0;

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

            return sipCpp;
        }
    }

    {
        QIODevice* a0;

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

            return sipCpp;
        }
    }

    {
        const Phonon::MediaSource* a0;

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

            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::MediaSource(*a0);
            Py_END_ALLOW_THREADS

            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::MediaSource(*a0);
            Py_END_ALLOW_THREADS

            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 Phonon::MediaSource(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<Phonon::DeviceAccess *>(a0),sipType_QPair_0100QByteArray_0100QString,a0State);

            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 Phonon::MediaSource(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            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 Phonon::MediaSource(a0,a1);
            Py_END_ALLOW_THREADS

            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, static_cast<int>(Phonon::MediaSource::CaptureDevice), 32},
    {sipName_Disc, static_cast<int>(Phonon::MediaSource::Disc), 32},
    {sipName_Empty, static_cast<int>(Phonon::MediaSource::Empty), 32},
    {sipName_Invalid, static_cast<int>(Phonon::MediaSource::Invalid), 32},
    {sipName_LocalFile, static_cast<int>(Phonon::MediaSource::LocalFile), 32},
    {sipName_Stream, static_cast<int>(Phonon::MediaSource::Stream), 32},
    {sipName_Url, static_cast<int>(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_type_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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/phonon/mediaobject.sip"
#include <phonon/mediaobject.h>
#line 2525 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/phonon/mediasource.sip"
#include <phonon/mediasource.h>
#line 2529 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2532 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2535 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 102 "/usr/share/python3-sip/PyQt4/QtCore/qurl.sip"
#include <qurl.h>
#line 2538 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2541 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 2544 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 236 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 2547 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 72 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2550 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2553 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2556 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2559 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 2562 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2565 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2568 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2571 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2574 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2577 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 2580 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2583 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2586 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/phonon/path.sip"
#include <phonon/path.h>
#line 2592 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);

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(sipPySelf, sipType_Phonon_MediaObject, _clname)) ? this : Phonon::MediaObject::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    ((sipVH_QtCore_17)(sipModuleAPI_phonon_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, 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)
    {
        Phonon::MediaObject::childEvent(a0);
        return;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Phonon::MediaObject::event(a0);

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

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


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

    {
        const 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;

    {
        const 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;

    {
        const 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;

    {
        const 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;
        const 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;
        const 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);
        }
    }

    {
        const 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;

    {
        const 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;

    {
        const 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;

    {
        const 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;

    {
        const 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;

    {
        const 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;

    {
        const 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;

    {
        const 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;

    {
        const 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;

    {
        const 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 multiple inheritance hierarchy. */
extern "C" {static void *cast_Phonon_MediaObject(void *, const sipTypeDef *);}
static void *cast_Phonon_MediaObject(void *sipCppV, const sipTypeDef *targetType)
{
    Phonon::MediaObject *sipCpp = reinterpret_cast<Phonon::MediaObject *>(sipCppV);

    if (targetType == sipType_Phonon_MediaNode)
        return static_cast<Phonon::MediaNode *>(sipCpp);

    return sipCppV;
}


/* Call the instance's destructor. */
extern "C" {static void release_Phonon_MediaObject(void *, int);}
static void release_Phonon_MediaObject(void *sipCppV,int)
{
    Phonon::MediaObject *sipCpp = reinterpret_cast<Phonon::MediaObject *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    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_type_Phonon_MediaObject(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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[] = {{141, 0, 0}, {29, 255, 1}};


static PyMethodDef methods_Phonon_MediaObject[] = {
    {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_currentSource), meth_Phonon_MediaObject_currentSource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentTime), meth_Phonon_MediaObject_currentTime, 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_remainingTime), meth_Phonon_MediaObject_remainingTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_seek), meth_Phonon_MediaObject_seek, 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_totalTime), meth_Phonon_MediaObject_totalTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_transitionTime), meth_Phonon_MediaObject_transitionTime, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_Phonon_MediaObject[] = {
    {"totalTimeChanged(qint64)", 0, 0, 0},
    {"prefinishMarkReached(qint32)", 0, 0, 0},
    {"aboutToFinish()", 0, 0, 0},
    {"currentSourceChanged(Phonon::MediaSource)", 0, 0, 0},
    {"finished()", 0, 0, 0},
    {"bufferStatus(int)", 0, 0, 0},
    {"hasVideoChanged(bool)", 0, 0, 0},
    {"seekableChanged(bool)", 0, 0, 0},
    {"metaDataChanged()", 0, 0, 0},
    {"tick(qint64)", 0, 0, 0},
    {"stateChanged(Phonon::State,Phonon::State)", 0, 0, 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},
        26, 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_type_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,
    0,
    0,
    0
},
    &Phonon::MediaObject::staticMetaObject,
    0,
    signals_Phonon_MediaObject,
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/phonon/mediacontroller.sip"
#include <phonon/mediacontroller.h>
#line 3734 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart4.cpp"

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/phonon/mediacontroller.sip"
#include <phonon/mediacontroller.h>
#line 3738 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 389 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Phonon::MediaController::Features::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 3760 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 380 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Phonon::MediaController::Features::Int() != a0->operator Phonon::MediaController::Features::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 3794 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 371 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Phonon::MediaController::Features::Int() == a0->operator Phonon::MediaController::Features::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 3834 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 365 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new Phonon::MediaController::Features(*a0 ^ a1);
#line 3943 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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 360 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new Phonon::MediaController::Features(*a0 | a1);
#line 3995 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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;
}


/* 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_type_Phonon_MediaController_Features(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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 398 "/usr/share/python3-sip/PyQt4/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(int(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 4279 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/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_type_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,
    0,
    convertTo_Phonon_MediaController_Features,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};
