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

#include "sipAPIphonon.h"


#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 13 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 16 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 19 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.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 22 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.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/sipphononpart6.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 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 31 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.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 34 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 37 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.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 40 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<Phonon::VideoCaptureDevice>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Phonon::VideoCaptureDevice>(Phonon::BackendCapabilities::availableAVCaptureDevices());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<Phonon::VideoCaptureDevice>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Phonon::VideoCaptureDevice>(Phonon::BackendCapabilities::availableVideoCaptureDevices());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<Phonon::EffectDescription>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Phonon::EffectDescription>(Phonon::BackendCapabilities::availableAudioEffects());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<Phonon::AudioCaptureDevice>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Phonon::AudioCaptureDevice>(Phonon::BackendCapabilities::availableAudioCaptureDevices());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<Phonon::AudioOutputDevice>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Phonon::AudioOutputDevice>(Phonon::BackendCapabilities::availableAudioOutputDevices());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Phonon::BackendCapabilities::isMimeTypeAvailable(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(Phonon::BackendCapabilities::availableMimeTypes());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Phonon::BackendCapabilities::Notifier*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Phonon::BackendCapabilities::notifier();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


static PyMethodDef methods_Phonon_BackendCapabilities[] = {
    {SIP_MLNAME_CAST(sipName_availableAVCaptureDevices), meth_Phonon_BackendCapabilities_availableAVCaptureDevices, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_availableAudioCaptureDevices), meth_Phonon_BackendCapabilities_availableAudioCaptureDevices, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_availableAudioEffects), meth_Phonon_BackendCapabilities_availableAudioEffects, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_availableAudioOutputDevices), meth_Phonon_BackendCapabilities_availableAudioOutputDevices, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_availableMimeTypes), meth_Phonon_BackendCapabilities_availableMimeTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_availableVideoCaptureDevices), meth_Phonon_BackendCapabilities_availableVideoCaptureDevices, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isMimeTypeAvailable), meth_Phonon_BackendCapabilities_isMimeTypeAvailable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_notifier), meth_Phonon_BackendCapabilities_notifier, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_phonon_Phonon_BackendCapabilities = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Phonon__BackendCapabilities,
        {0}
    },
    {
        sipNameNr_BackendCapabilities,
        {0, 255, 0},
        8, methods_Phonon_BackendCapabilities,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/phonon/audiooutput.sip"
#include <phonon/audiooutput.h>
#line 314 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 318 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.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 321 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 324 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 327 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.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 330 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"


class sipPhonon_AudioOutput : public Phonon::AudioOutput
{
public:
    sipPhonon_AudioOutput(Phonon::Category,QObject*);
    sipPhonon_AudioOutput(QObject*);
    ~sipPhonon_AudioOutput();

public:
    sipSimpleWrapper *sipPySelf;

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

sipPhonon_AudioOutput::sipPhonon_AudioOutput(Phonon::Category a0,QObject*a1): Phonon::AudioOutput(a0,a1), sipPySelf(0)
{
}

sipPhonon_AudioOutput::sipPhonon_AudioOutput(QObject*a0): Phonon::AudioOutput(a0), sipPySelf(0)
{
}

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


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

    {
        const Phonon::AudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_AudioOutput, &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_AudioOutput, sipName_name, NULL);

    return NULL;
}


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

    {
        const Phonon::AudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_AudioOutput, &sipCpp))
        {
            qreal sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->volume();
            Py_END_ALLOW_THREADS

            return PyFloat_FromDouble(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Phonon::AudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_AudioOutput, &sipCpp))
        {
            qreal sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->volumeDecibel();
            Py_END_ALLOW_THREADS

            return PyFloat_FromDouble(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Phonon::AudioOutput *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->category();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Phonon_Category);
        }
    }

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

    return NULL;
}


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

    {
        const Phonon::AudioOutput *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Phonon::AudioOutputDevice(sipCpp->outputDevice());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Phonon::AudioOutput *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isMuted();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Phonon_AudioOutput, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setName(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        qreal a0;
        Phonon::AudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_Phonon_AudioOutput, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setVolume(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_AudioOutput, sipName_setVolume, NULL);

    return NULL;
}


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

    {
        qreal a0;
        Phonon::AudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_Phonon_AudioOutput, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setVolumeDecibel(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_AudioOutput, sipName_setVolumeDecibel, NULL);

    return NULL;
}


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

    {
        const Phonon::AudioOutputDevice* a0;
        Phonon::AudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Phonon_AudioOutput, &sipCpp, sipType_Phonon_AudioOutputDevice, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setOutputDevice(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        Phonon::AudioOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Phonon_AudioOutput, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMuted(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_AudioOutput, sipName_setMuted, NULL);

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        Phonon::Category a0;
        QObject* a1 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "E|JH", sipType_Phonon_Category, &a0, sipType_QObject, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipPhonon_AudioOutput(a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QObject* a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipPhonon_AudioOutput(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Phonon_AudioOutput[] = {
    {SIP_MLNAME_CAST(sipName_category), meth_Phonon_AudioOutput_category, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isMuted), meth_Phonon_AudioOutput_isMuted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_Phonon_AudioOutput_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_outputDevice), meth_Phonon_AudioOutput_outputDevice, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMuted), meth_Phonon_AudioOutput_setMuted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setName), meth_Phonon_AudioOutput_setName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOutputDevice), meth_Phonon_AudioOutput_setOutputDevice, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setVolume), meth_Phonon_AudioOutput_setVolume, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setVolumeDecibel), meth_Phonon_AudioOutput_setVolumeDecibel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_volume), meth_Phonon_AudioOutput_volume, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_volumeDecibel), meth_Phonon_AudioOutput_volumeDecibel, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_phonon_Phonon_AudioOutput = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Phonon__AudioOutput,
        {0}
    },
    {
        sipNameNr_AudioOutput,
        {0, 255, 0},
        11, methods_Phonon_AudioOutput,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Phonon_AudioOutput,
    0,
    init_type_Phonon_AudioOutput,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Phonon_AudioOutput,
    0,
    0,
    0,
    release_Phonon_AudioOutput,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/phonon/audiodataoutput.sip"
#include <phonon/audiodataoutput.h>
#line 804 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"

#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 808 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 811 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 814 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 817 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 820 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 823 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 826 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 829 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 832 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 835 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 838 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 841 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 844 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 847 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.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 850 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"


class sipPhonon_AudioDataOutput : public Phonon::AudioDataOutput
{
public:
    sipPhonon_AudioDataOutput();
    virtual ~sipPhonon_AudioDataOutput();

    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_AudioDataOutput(const sipPhonon_AudioDataOutput &);
    sipPhonon_AudioDataOutput &operator = (const sipPhonon_AudioDataOutput &);

    char sipPyMethods[7];
};

sipPhonon_AudioDataOutput::sipPhonon_AudioDataOutput(): Phonon::AudioDataOutput(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipPhonon_AudioDataOutput::metaObject() const
{
    return sip_phonon_qt_metaobject(sipPySelf,sipType_Phonon_AudioDataOutput);
}

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

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

    return _id;
}

void *sipPhonon_AudioDataOutput::qt_metacast(const char *_clname)
{
    return (sip_phonon_qt_metacast(sipPySelf, sipType_Phonon_AudioDataOutput, _clname)) ? this : Phonon::AudioDataOutput::qt_metacast(_clname);
}

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

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

    if (!sipMeth)
    {
        Phonon::AudioDataOutput::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_AudioDataOutput::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Phonon::AudioDataOutput::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_AudioDataOutput::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Phonon::AudioDataOutput::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_AudioDataOutput::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Phonon::AudioDataOutput::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_AudioDataOutput::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Phonon::AudioDataOutput::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_AudioDataOutput::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Phonon::AudioDataOutput::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_AudioDataOutput::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Phonon::AudioDataOutput::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_AudioDataOutput_dataSize(PyObject *, PyObject *);}
static PyObject *meth_Phonon_AudioDataOutput_dataSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Phonon::AudioDataOutput *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->dataSize();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Phonon::AudioDataOutput *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sampleRate();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        Phonon::AudioDataOutput *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Phonon_AudioDataOutput, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDataSize(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_AudioDataOutput, sipName_setDataSize, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its multiple inheritance hierarchy. */
extern "C" {static void *cast_Phonon_AudioDataOutput(void *, const sipTypeDef *);}
static void *cast_Phonon_AudioDataOutput(void *sipCppV, const sipTypeDef *targetType)
{
    Phonon::AudioDataOutput *sipCpp = reinterpret_cast<Phonon::AudioDataOutput *>(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_AudioDataOutput(void *, int);}
static void release_Phonon_AudioDataOutput(void *sipCppV,int)
{
    Phonon::AudioDataOutput *sipCpp = reinterpret_cast<Phonon::AudioDataOutput *>(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_AudioDataOutput(sipSimpleWrapper *);}
static void dealloc_Phonon_AudioDataOutput(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipPhonon_AudioDataOutput *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Phonon_AudioDataOutput[] = {
    {SIP_MLNAME_CAST(sipName_dataSize), meth_Phonon_AudioDataOutput_dataSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sampleRate), meth_Phonon_AudioDataOutput_sampleRate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDataSize), meth_Phonon_AudioDataOutput_setDataSize, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Phonon_AudioDataOutput[] = {
    {sipName_CenterChannel, static_cast<int>(Phonon::AudioDataOutput::CenterChannel), 7},
    {sipName_LeftChannel, static_cast<int>(Phonon::AudioDataOutput::LeftChannel), 7},
    {sipName_LeftSurroundChannel, static_cast<int>(Phonon::AudioDataOutput::LeftSurroundChannel), 7},
    {sipName_RightChannel, static_cast<int>(Phonon::AudioDataOutput::RightChannel), 7},
    {sipName_RightSurroundChannel, static_cast<int>(Phonon::AudioDataOutput::RightSurroundChannel), 7},
    {sipName_SubwooferChannel, static_cast<int>(Phonon::AudioDataOutput::SubwooferChannel), 7},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_Phonon_AudioDataOutput[] = {
    {"endOfMedia(int)", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_phonon_Phonon_AudioDataOutput = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Phonon__AudioDataOutput,
        {0}
    },
    {
        sipNameNr_AudioDataOutput,
        {0, 255, 0},
        3, methods_Phonon_AudioDataOutput,
        6, enummembers_Phonon_AudioDataOutput,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Phonon_AudioDataOutput,
    0,
    init_type_Phonon_AudioDataOutput,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Phonon_AudioDataOutput,
    0,
    0,
    0,
    release_Phonon_AudioDataOutput,
    cast_Phonon_AudioDataOutput,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Phonon::AudioDataOutput::staticMetaObject,
    0,
    signals_Phonon_AudioDataOutput,
};

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/phonon/abstractvideooutput.sip"
#include <phonon/abstractvideooutput.h>
#line 1265 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"

#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1269 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.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 1272 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"


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

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

    Py_END_ALLOW_THREADS
}


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


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


pyqt4ClassTypeDef sipTypeDef_phonon_Phonon_AbstractVideoOutput = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Phonon__AbstractVideoOutput,
        {0}
    },
    {
        sipNameNr_AbstractVideoOutput,
        {0, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Phonon_AbstractVideoOutput,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Phonon_AbstractVideoOutput,
    0,
    0,
    0,
    release_Phonon_AbstractVideoOutput,
    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/abstractmediastream.sip"
#include <phonon/abstractmediastream.h>
#line 1356 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 1360 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1363 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1366 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1369 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1372 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1375 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1378 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1381 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1384 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1387 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 1390 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1393 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1396 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"


class sipPhonon_AbstractMediaStream : public Phonon::AbstractMediaStream
{
public:
    sipPhonon_AbstractMediaStream(QObject*);
    virtual ~sipPhonon_AbstractMediaStream();

    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*);
    void seekStream(qint64);
    void enoughData();
    void needData();
    void reset();

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[11];
};

sipPhonon_AbstractMediaStream::sipPhonon_AbstractMediaStream(QObject*a0): Phonon::AbstractMediaStream(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipPhonon_AbstractMediaStream::metaObject() const
{
    return sip_phonon_qt_metaobject(sipPySelf,sipType_Phonon_AbstractMediaStream);
}

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

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

    return _id;
}

void *sipPhonon_AbstractMediaStream::qt_metacast(const char *_clname)
{
    return (sip_phonon_qt_metacast(sipPySelf, sipType_Phonon_AbstractMediaStream, _clname)) ? this : Phonon::AbstractMediaStream::qt_metacast(_clname);
}

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

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

    if (!sipMeth)
    {
        Phonon::AbstractMediaStream::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_AbstractMediaStream::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Phonon::AbstractMediaStream::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_AbstractMediaStream::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Phonon::AbstractMediaStream::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_AbstractMediaStream::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Phonon::AbstractMediaStream::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_AbstractMediaStream::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Phonon::AbstractMediaStream::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_AbstractMediaStream::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Phonon::AbstractMediaStream::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_AbstractMediaStream::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Phonon::AbstractMediaStream::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);
}

void sipPhonon_AbstractMediaStream::seekStream(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_seekStream);

    if (!sipMeth)
    {
        Phonon::AbstractMediaStream::seekStream(a0);
        return;
    }

    typedef void (*sipVH_QtNetwork_2)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG);

    ((sipVH_QtNetwork_2)(sipModuleAPI_phonon_QtNetwork->em_virthandlers[2]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipPhonon_AbstractMediaStream::enoughData()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_enoughData);

    if (!sipMeth)
    {
        Phonon::AbstractMediaStream::enoughData();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_phonon_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipPhonon_AbstractMediaStream::needData()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,sipName_AbstractMediaStream,sipName_needData);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_phonon_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipPhonon_AbstractMediaStream::reset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,sipName_AbstractMediaStream,sipName_reset);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_phonon_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}


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

    {
        const Phonon::AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Phonon_AbstractMediaStream, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->streamSize();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        Phonon::AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pn", &sipSelf, sipType_Phonon_AbstractMediaStream, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setStreamSize(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_AbstractMediaStream, sipName_setStreamSize, NULL);

    return NULL;
}


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

    {
        const Phonon::AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Phonon_AbstractMediaStream, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->streamSeekable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        Phonon::AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pb", &sipSelf, sipType_Phonon_AbstractMediaStream, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setStreamSeekable(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_AbstractMediaStream, sipName_setStreamSeekable, NULL);

    return NULL;
}


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

    {
        const QByteArray* a0;
        int a0State = 0;
        Phonon::AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_Phonon_AbstractMediaStream, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->writeData(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Phonon::AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Phonon_AbstractMediaStream, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->endOfData();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Phonon::ErrorType a0;
        const QString* a1;
        int a1State = 0;
        Phonon::AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pEJ1", &sipSelf, sipType_Phonon_AbstractMediaStream, &sipCpp, sipType_Phonon_ErrorType, &a0, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->error(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Phonon::AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Phonon_AbstractMediaStream, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_AbstractMediaStream, sipName_reset);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->reset();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Phonon::AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Phonon_AbstractMediaStream, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_AbstractMediaStream, sipName_needData);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->needData();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Phonon::AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Phonon_AbstractMediaStream, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Phonon::AbstractMediaStream::enoughData() : sipCpp->enoughData());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        Phonon::AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pn", &sipSelf, sipType_Phonon_AbstractMediaStream, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Phonon::AbstractMediaStream::seekStream(a0) : sipCpp->seekStream(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_AbstractMediaStream, sipName_seekStream, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Phonon_AbstractMediaStream(void *, int);}
static void release_Phonon_AbstractMediaStream(void *sipCppV,int)
{
    Phonon::AbstractMediaStream *sipCpp = reinterpret_cast<Phonon::AbstractMediaStream *>(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_AbstractMediaStream(sipSimpleWrapper *);}
static void dealloc_Phonon_AbstractMediaStream(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipPhonon_AbstractMediaStream *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

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


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

    {
        QObject* a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipPhonon_AbstractMediaStream(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Phonon_AbstractMediaStream[] = {
    {SIP_MLNAME_CAST(sipName_endOfData), meth_Phonon_AbstractMediaStream_endOfData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enoughData), meth_Phonon_AbstractMediaStream_enoughData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_error), meth_Phonon_AbstractMediaStream_error, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_needData), meth_Phonon_AbstractMediaStream_needData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_reset), meth_Phonon_AbstractMediaStream_reset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_seekStream), meth_Phonon_AbstractMediaStream_seekStream, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setStreamSeekable), meth_Phonon_AbstractMediaStream_setStreamSeekable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setStreamSize), meth_Phonon_AbstractMediaStream_setStreamSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_streamSeekable), meth_Phonon_AbstractMediaStream_streamSeekable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_streamSize), meth_Phonon_AbstractMediaStream_streamSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeData), meth_Phonon_AbstractMediaStream_writeData, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_phonon_Phonon_AbstractMediaStream = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Phonon__AbstractMediaStream,
        {0}
    },
    {
        sipNameNr_AbstractMediaStream,
        {0, 255, 0},
        11, methods_Phonon_AbstractMediaStream,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Phonon_AbstractMediaStream,
    0,
    init_type_Phonon_AbstractMediaStream,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Phonon_AbstractMediaStream,
    0,
    0,
    0,
    release_Phonon_AbstractMediaStream,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Phonon::AbstractMediaStream::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/phonon/abstractaudiooutput.sip"
#include <phonon/abstractaudiooutput.h>
#line 2095 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"

#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2099 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2102 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2105 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 2108 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2111 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2114 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2117 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2120 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2123 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 2126 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2129 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2132 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2135 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2138 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.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 2141 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"


/* Cast a pointer to a type somewhere in its multiple inheritance hierarchy. */
extern "C" {static void *cast_Phonon_AbstractAudioOutput(void *, const sipTypeDef *);}
static void *cast_Phonon_AbstractAudioOutput(void *sipCppV, const sipTypeDef *targetType)
{
    Phonon::AbstractAudioOutput *sipCpp = reinterpret_cast<Phonon::AbstractAudioOutput *>(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_AbstractAudioOutput(void *, int);}
static void release_Phonon_AbstractAudioOutput(void *sipCppV,int)
{
    Phonon::AbstractAudioOutput *sipCpp = reinterpret_cast<Phonon::AbstractAudioOutput *>(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_AbstractAudioOutput(sipSimpleWrapper *);}
static void dealloc_Phonon_AbstractAudioOutput(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Phonon_AbstractAudioOutput(sipGetAddress(sipSelf),0);
    }
}


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


pyqt4ClassTypeDef sipTypeDef_phonon_Phonon_AbstractAudioOutput = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Phonon__AbstractAudioOutput,
        {0}
    },
    {
        sipNameNr_AbstractAudioOutput,
        {0, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Phonon_AbstractAudioOutput,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Phonon_AbstractAudioOutput,
    0,
    0,
    0,
    release_Phonon_AbstractAudioOutput,
    cast_Phonon_AbstractAudioOutput,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Phonon::AbstractAudioOutput::staticMetaObject,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/phonon/medianode.sip"
#include <phonon/medianode.h>
#line 2243 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"

#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2247 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.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 2250 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/phonon/sipphononpart6.cpp"


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

    {
        const Phonon::MediaNode *sipCpp;

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

    return NULL;
}


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

    {
        const Phonon::MediaNode *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Phonon::Path>(sipCpp->inputPaths());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Phonon::MediaNode *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Phonon::Path>(sipCpp->outputPaths());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


static PyMethodDef methods_Phonon_MediaNode[] = {
    {SIP_MLNAME_CAST(sipName_inputPaths), meth_Phonon_MediaNode_inputPaths, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Phonon_MediaNode_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_outputPaths), meth_Phonon_MediaNode_outputPaths, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_phonon_Phonon_MediaNode = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Phonon__MediaNode,
        {0}
    },
    {
        sipNameNr_MediaNode,
        {0, 255, 0},
        3, methods_Phonon_MediaNode,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Phonon_MediaNode,
    0,
    0,
    0,
    release_Phonon_MediaNode,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};
