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

#include "sipAPIphonon.h"


#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 13 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 16 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 19 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 41 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/objectdescription.sip"
#include <phonon/objectdescription.h>
#line 22 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 41 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/objectdescription.sip"
#include <phonon/objectdescription.h>
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 31 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 41 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/objectdescription.sip"
#include <phonon/objectdescription.h>
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 37 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 41 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/objectdescription.sip"
#include <phonon/objectdescription.h>
#line 40 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/audiooutput.sip"
#include <phonon/audiooutput.h>
#line 311 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 315 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 41 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/objectdescription.sip"
#include <phonon/objectdescription.h>
#line 318 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 321 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 324 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/path.sip"
#include <phonon/path.h>
#line 327 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;

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

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

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

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

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

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


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

    if (targetType == sipType_Phonon_AudioOutput)
        return ptr;

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

    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_Phonon_AudioOutput(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_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,
    cast_Phonon_AudioOutput,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/audiodataoutput.sip"
#include <phonon/audiodataoutput.h>
#line 814 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"

#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 818 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 821 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 824 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 827 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 830 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 833 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 836 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 839 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 842 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 845 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 848 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 851 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 854 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 857 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/path.sip"
#include <phonon/path.h>
#line 860 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 public method for every protected method visible from
     * this class.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);

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

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipPhonon_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 && sip_phonon_qt_metacast(sipPySelf,sipType_Phonon_AudioDataOutput,_clname)) ? this : Phonon::AudioDataOutput::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        sipPhonon_AudioDataOutput *sipCpp;

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

#line 632 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 1120 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipPhonon_AudioDataOutput *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipPhonon_AudioDataOutput *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipPhonon_AudioDataOutput *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipPhonon_AudioDataOutput *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipPhonon_AudioDataOutput *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipPhonon_AudioDataOutput *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

    {
        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 superclass hierarchy. */
extern "C" {static void *cast_Phonon_AudioDataOutput(void *, const sipTypeDef *);}
static void *cast_Phonon_AudioDataOutput(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Phonon_AudioDataOutput)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Phonon_AbstractAudioOutput)->ctd_cast((Phonon::AbstractAudioOutput *)(Phonon::AudioDataOutput *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    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_Phonon_AudioDataOutput(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_childEvent), meth_Phonon_AudioDataOutput_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Phonon_AudioDataOutput_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Phonon_AudioDataOutput_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dataSize), meth_Phonon_AudioDataOutput_dataSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Phonon_AudioDataOutput_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Phonon_AudioDataOutput_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sampleRate), meth_Phonon_AudioDataOutput_sampleRate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Phonon_AudioDataOutput_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDataSize), meth_Phonon_AudioDataOutput_setDataSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Phonon_AudioDataOutput_timerEvent, METH_VARARGS, NULL}
};

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


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Phonon_AudioDataOutput[] = {
    {"endOfMedia(int)", 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},
        10, 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_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
},
    &Phonon::AudioDataOutput::staticMetaObject,
    0,
    pyqt4_signals_Phonon_AudioDataOutput
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/abstractvideooutput.sip"
#include <phonon/abstractvideooutput.h>
#line 1548 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"

#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1552 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/path.sip"
#include <phonon/path.h>
#line 1555 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"


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

    if (targetType == sipType_Phonon_AbstractVideoOutput)
        return ptr;

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

    return NULL;
}


/* 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,
    cast_Phonon_AbstractVideoOutput,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/abstractmediastream.sip"
#include <phonon/abstractmediastream.h>
#line 1652 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1656 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1659 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1662 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1665 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1668 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1671 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1674 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1677 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1680 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1683 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1686 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1689 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1692 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 public method for every protected method visible from
     * this class.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    qint64 sipProtect_streamSize() const;
    void sipProtect_setStreamSize(qint64);
    bool sipProtect_streamSeekable() const;
    void sipProtect_setStreamSeekable(bool);
    void sipProtect_writeData(const QByteArray&);
    void sipProtect_endOfData();
    void sipProtect_error(Phonon::ErrorType,const QString&);
    void sipProtect_reset();
    void sipProtect_needData();
    void sipProtectVirt_enoughData(bool);
    void sipProtectVirt_seekStream(bool,qint64);

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

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipPhonon_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 && sip_phonon_qt_metacast(sipPySelf,sipType_Phonon_AbstractMediaStream,_clname)) ? this : Phonon::AbstractMediaStream::qt_metacast(_clname);
}

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

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

    if (!sipMeth)
        return;

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

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

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

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

    if (!sipMeth)
        return;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

qint64 sipPhonon_AbstractMediaStream::sipProtect_streamSize() const
{
    return Phonon::AbstractMediaStream::streamSize();
}

void sipPhonon_AbstractMediaStream::sipProtect_setStreamSize(qint64 a0)
{
    Phonon::AbstractMediaStream::setStreamSize(a0);
}

bool sipPhonon_AbstractMediaStream::sipProtect_streamSeekable() const
{
    return Phonon::AbstractMediaStream::streamSeekable();
}

void sipPhonon_AbstractMediaStream::sipProtect_setStreamSeekable(bool a0)
{
    Phonon::AbstractMediaStream::setStreamSeekable(a0);
}

void sipPhonon_AbstractMediaStream::sipProtect_writeData(const QByteArray& a0)
{
    Phonon::AbstractMediaStream::writeData(a0);
}

void sipPhonon_AbstractMediaStream::sipProtect_endOfData()
{
    Phonon::AbstractMediaStream::endOfData();
}

void sipPhonon_AbstractMediaStream::sipProtect_error(Phonon::ErrorType a0,const QString& a1)
{
    Phonon::AbstractMediaStream::error(a0,a1);
}

void sipPhonon_AbstractMediaStream::sipProtect_reset()
{
    reset();
}

void sipPhonon_AbstractMediaStream::sipProtect_needData()
{
    needData();
}

void sipPhonon_AbstractMediaStream::sipProtectVirt_enoughData(bool sipSelfWasArg)
{
    (sipSelfWasArg ? Phonon::AbstractMediaStream::enoughData() : enoughData());
}

void sipPhonon_AbstractMediaStream::sipProtectVirt_seekStream(bool sipSelfWasArg,qint64 a0)
{
    (sipSelfWasArg ? Phonon::AbstractMediaStream::seekStream(a0) : seekStream(a0));
}


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

    {
        sipPhonon_AbstractMediaStream *sipCpp;

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

#line 632 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 2088 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipPhonon_AbstractMediaStream *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipPhonon_AbstractMediaStream *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipPhonon_AbstractMediaStream *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipPhonon_AbstractMediaStream *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipPhonon_AbstractMediaStream *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipPhonon_AbstractMediaStream *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipPhonon_AbstractMediaStream *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_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;
        sipPhonon_AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_Phonon_AbstractMediaStream, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;

    {
        sipPhonon_AbstractMediaStream *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_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;
        sipPhonon_AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Phonon_AbstractMediaStream, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
        sipPhonon_AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Phonon_AbstractMediaStream, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;

    {
        sipPhonon_AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_AbstractMediaStream, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
        sipPhonon_AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ1", &sipSelf, sipType_Phonon_AbstractMediaStream, &sipCpp, sipType_Phonon_ErrorType, &a0, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;

    {
        sipPhonon_AbstractMediaStream *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;

    {
        sipPhonon_AbstractMediaStream *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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));

    {
        sipPhonon_AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Phonon_AbstractMediaStream, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_enoughData(sipSelfWasArg);
            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;
        sipPhonon_AbstractMediaStream *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_Phonon_AbstractMediaStream, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_seekStream(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Phonon_AbstractMediaStream)
        return ptr;

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

    return NULL;
}


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

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

    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_Phonon_AbstractMediaStream(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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[] = {{134, 0, 1}};


static PyMethodDef methods_Phonon_AbstractMediaStream[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Phonon_AbstractMediaStream_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Phonon_AbstractMediaStream_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Phonon_AbstractMediaStream_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Phonon_AbstractMediaStream_disconnectNotify, METH_VARARGS, NULL},
    {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_receivers), meth_Phonon_AbstractMediaStream_receivers, 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_sender), meth_Phonon_AbstractMediaStream_sender, 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_timerEvent), meth_Phonon_AbstractMediaStream_timerEvent, 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},
        18, 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_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,
    cast_Phonon_AbstractMediaStream,
    0,
    0,
    0
},
    &Phonon::AbstractMediaStream::staticMetaObject,
    0,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/abstractaudiooutput.sip"
#include <phonon/abstractaudiooutput.h>
#line 2743 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"

#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2747 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2750 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2753 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 2756 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2759 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2762 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2765 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2768 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2771 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 2774 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2777 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2780 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2783 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2786 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/path.sip"
#include <phonon/path.h>
#line 2789 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"


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

    if (targetType == sipType_Phonon_AbstractAudioOutput)
        return ptr;

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

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

    return NULL;
}


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

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

    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[] = {{134, 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
},
    &Phonon::AbstractAudioOutput::staticMetaObject,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/medianode.sip"
#include <phonon/medianode.h>
#line 2889 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"

#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2893 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/sipphononpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/phonon/path.sip"
#include <phonon/path.h>
#line 2896 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;

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

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

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


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

    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,
    cast_Phonon_MediaNode,
    0,
    0,
    0
},
    0,
    0,
    0
};
